decocms 4.133.8 → 4.134.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/client/assets/{AlertCircle-CKmHeFfd.js → AlertCircle-DkFru66n.js} +1 -1
  2. package/dist/client/assets/{AreaChart-a3cAScnA.js → AreaChart-CvJfqCTs.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-BU24SBrA.js → ArrowUp-CnIHTsmO.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-88Ag6RJh.js → ArrowUpRight-0JyKJQF0.js} +1 -1
  5. package/dist/client/assets/{Check-CyOScp5W.js → Check-ClOKUWq0.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BBeZasVl.js → CheckCircle-B9Qb7yYb.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-H_pCV_WQ.js → ChevronDown-ntSxWeJ4.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DcSLLbgV.js → ChevronRight-4tvQaNhA.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BSbNHk0z.js → ChevronUp-YLZnOKy9.js} +1 -1
  10. package/dist/client/assets/{Copy01-B-HxG37x.js → Copy01-ukmyNVPg.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-mir_c3wV.js → DotsVertical-B0YOF2bb.js} +1 -1
  12. package/dist/client/assets/{Eye-BqCx2GT9.js → Eye-BqFgiEN7.js} +1 -1
  13. package/dist/client/assets/{FilterLines-BQaKMtSp.js → FilterLines-BoNJ34n2.js} +1 -1
  14. package/dist/client/assets/{HardDrive-BK2QGkju.js → HardDrive-Ct0KVNHb.js} +1 -1
  15. package/dist/client/assets/{Key01-CoZIs5Ke.js → Key01-Dwi0gVeB.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-CZcZGCar.js → LayoutLeft-DTNvZZj5.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-DXi0D6sZ.js → LinkExternal01-C2-qXNaf.js} +1 -1
  18. package/dist/client/assets/{LogOut01-C-kjoiOr.js → LogOut01-DE76ndei.js} +1 -1
  19. package/dist/client/assets/{Monitor01-ysvAPzgi.js → Monitor01-BXGmmpPd.js} +1 -1
  20. package/dist/client/assets/{Palette-CiA6ejPt.js → Palette-CvsYfsaU.js} +1 -1
  21. package/dist/client/assets/{Play-CWgBV4Qw.js → Play-Bdo0FcOf.js} +1 -1
  22. package/dist/client/assets/{Plus-Cap5ZqF8.js → Plus-DzwlbeDl.js} +1 -1
  23. package/dist/client/assets/{SearchLg-Dh3S2ux5.js → SearchLg-BhK4Es_D.js} +1 -1
  24. package/dist/client/assets/{SearchMd-CmCQeyoA.js → SearchMd-DMG2zDFL.js} +1 -1
  25. package/dist/client/assets/{Settings02-bFCsNFBU.js → Settings02-ChOR_aS_.js} +1 -1
  26. package/dist/client/assets/{Shield01-CqpmsD2E.js → Shield01-Zrzk98xL.js} +1 -1
  27. package/dist/client/assets/{Star01--bfmlf9l.js → Star01-CqIMVJf_.js} +1 -1
  28. package/dist/client/assets/{Stars01-BWJ5B_eM.js → Stars01-CO1aXk4_.js} +1 -1
  29. package/dist/client/assets/{Stars02-BhcWCPLv.js → Stars02-BWBa6SoG.js} +1 -1
  30. package/dist/client/assets/{Sun-DvRcpDkv.js → Sun-DquTiOlN.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-DNv44Jqt.js → SwitchHorizontal01-BQ0CC3sE.js} +1 -1
  32. package/dist/client/assets/{Tool01-ilHMW5M5.js → Tool01-DAWCFlyh.js} +1 -1
  33. package/dist/client/assets/{Tool02-jBVamTkA.js → Tool02-DqQ2l-s6.js} +1 -1
  34. package/dist/client/assets/{Trash01-D_daef8I.js → Trash01-Bek7H7mS.js} +1 -1
  35. package/dist/client/assets/{TrendUp01-Safncs6g.js → TrendUp01-CvPZvib7.js} +1 -1
  36. package/dist/client/assets/{Upload01-Bdq1j13r.js → Upload01-Nrw2EWNW.js} +1 -1
  37. package/dist/client/assets/{User01-CYOB1QKw.js → User01-JKwt5Mgg.js} +1 -1
  38. package/dist/client/assets/{Users01-CkULKDWS.js → Users01-B-sldtU9.js} +1 -1
  39. package/dist/client/assets/{Users03-JG4uMo4y.js → Users03-D10UUDMP.js} +1 -1
  40. package/dist/client/assets/{X-CxnZ61Dy.js → X-BnxYHTRH.js} +1 -1
  41. package/dist/client/assets/{XCircle-DmIV2_Lv.js → XCircle-WcKyEVeJ.js} +1 -1
  42. package/dist/client/assets/{XClose-lZ5aU5Fe.js → XClose-BiCusmh_.js} +1 -1
  43. package/dist/client/assets/{Zap-CUmqYBvs.js → Zap-DXhySgpI.js} +1 -1
  44. package/dist/client/assets/{ZapSquare-Br6wixNG.js → ZapSquare-HoPYd0YH.js} +1 -1
  45. package/dist/client/assets/{access-gate-Bz7niyrP.js → access-gate-Czkvn9gF.js} +1 -1
  46. package/dist/client/assets/{add-section-modal-Cul4RF_f.js → add-section-modal-Ke_6sM1l.js} +1 -1
  47. package/dist/client/assets/{agent-icon-DMIXj7uI.js → agent-icon-C-PYniVP.js} +1 -1
  48. package/dist/client/assets/{agents-list-CcpsacXD.js → agents-list-BjiTgs_2.js} +1 -1
  49. package/dist/client/assets/{ai-providers-BzHh1Y6X.js → ai-providers-DPGugvmJ.js} +1 -1
  50. package/dist/client/assets/{alert-C8OxnUw0.js → alert-RYoRzXLM.js} +1 -1
  51. package/dist/client/assets/{alert-dialog-YnGvt04g.js → alert-dialog-V6SUVFlI.js} +1 -1
  52. package/dist/client/assets/{app-editor-BjdMqYrY.js → app-editor-G6XQy-Xv.js} +1 -1
  53. package/dist/client/assets/{auth-BlyrFE3C.js → auth-B6jFcYgE.js} +1 -1
  54. package/dist/client/assets/{auth-catchall-DbjRfAcW.js → auth-catchall--Gmjmmje.js} +1 -1
  55. package/dist/client/assets/{auth-entry-CfnAHXCH.js → auth-entry-By_kkx0y.js} +1 -1
  56. package/dist/client/assets/{auth-split-layout-RU-rIhVr.js → auth-split-layout-BOU6GOpH.js} +1 -1
  57. package/dist/client/assets/{authenticate-and-persist-oauth-Ds6h1W6s.js → authenticate-and-persist-oauth-zvu_IV_c.js} +1 -1
  58. package/dist/client/assets/{automation-list-row-DWhixAv5.js → automation-list-row-DCwXw5Oi.js} +1 -1
  59. package/dist/client/assets/{automation-runs-DSPprbCx.js → automation-runs-YvVMHovG.js} +19 -19
  60. package/dist/client/assets/{automations-BEapCfX5.js → automations--_VpEnw2.js} +1 -1
  61. package/dist/client/assets/{avatar--BYUzB4y.js → avatar-B23KIOgZ.js} +1 -1
  62. package/dist/client/assets/{badge-ZRWmP32l.js → badge-fFsqeAJw.js} +1 -1
  63. package/dist/client/assets/{block-document-IE_z8o-p.js → block-document-wSXZzq4V.js} +1 -1
  64. package/dist/client/assets/{brand-context-CKoiCAsX.js → brand-context-v9mf7fQa.js} +1 -1
  65. package/dist/client/assets/{buckets-Diftx4y0.js → buckets-DRZrJnUm.js} +1 -1
  66. package/dist/client/assets/{bulk-category-panel-5QDtryuV.js → bulk-category-panel-BnEj0vvR.js} +1 -1
  67. package/dist/client/assets/{calendar--b7AwkOt.js → calendar-0s-FymB6.js} +1 -1
  68. package/dist/client/assets/{capability-load-error-DAWrY_o9.js → capability-load-error-D3D6-f2t.js} +1 -1
  69. package/dist/client/assets/{card-MTemrP_o.js → card-CnbafLYR.js} +1 -1
  70. package/dist/client/assets/{category-editor-4dPqPkHk.js → category-editor-B2u-eekp.js} +1 -1
  71. package/dist/client/assets/{chat-context-DoFcTTwf.js → chat-context-DHxt5Z5f.js} +1 -1
  72. package/dist/client/assets/{checkbox-hMvtqU7M.js → checkbox-ClM_1Dms.js} +1 -1
  73. package/dist/client/assets/{cli-auth-success-BojNvsEa.js → cli-auth-success-cL_WLHjB.js} +1 -1
  74. package/dist/client/assets/{collection-detail-B2tq49yQ.js → collection-detail-C_VF5gqc.js} +1 -1
  75. package/dist/client/assets/{collection-display-button-U9ZlQmVg.js → collection-display-button-BaZ8ZJYg.js} +1 -1
  76. package/dist/client/assets/{collection-search-qRYx3CYc.js → collection-search-DT7q72t1.js} +1 -1
  77. package/dist/client/assets/{collection-table-wrapper-83v6xxaP.js → collection-table-wrapper-xK3pyCcW.js} +1 -1
  78. package/dist/client/assets/{collection-tabs-D2mzu8jz.js → collection-tabs-Bs3Sl5Z8.js} +1 -1
  79. package/dist/client/assets/{command-BmznqR4d.js → command-Bl64JVM7.js} +1 -1
  80. package/dist/client/assets/{commerce-onboarding-CXjKz3gE.js → commerce-onboarding-gWh4R_kR.js} +1 -1
  81. package/dist/client/assets/{companions-core-CtLrN7Ag.js → companions-core-CVDx4Uvs.js} +1 -1
  82. package/dist/client/assets/{connect-desktop-dialog-ejVUIZL0.js → connect-desktop-dialog-CDI7pr7-.js} +1 -1
  83. package/dist/client/assets/{connect-C8G6hpUw.js → connect-kEcJ_SIb.js} +1 -1
  84. package/dist/client/assets/{connection-card-Cix4A-CC.js → connection-card-BDpyoegy.js} +1 -1
  85. package/dist/client/assets/{connection-detail-BeN0QZUt.js → connection-detail-I7RjLE-w.js} +1 -1
  86. package/dist/client/assets/{connection-Bm9Y_Mh0.js → connection-f_38Qnm7.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-CMZxiuVJ.js → connection-form-helpers-ClXTAyqw.js} +1 -1
  88. package/dist/client/assets/{connections-DAT9fF8o.js → connections-aRaqOToD.js} +1 -1
  89. package/dist/client/assets/{decopilot-sse-pool-IgQIybB4.js → decopilot-sse-pool-Bb2fEZmL.js} +1 -1
  90. package/dist/client/assets/{dialog-B6d9FwDN.js → dialog-fzerDieV.js} +1 -1
  91. package/dist/client/assets/{domain-settings-DjZjKhHb.js → domain-settings-uRIqKsQl.js} +1 -1
  92. package/dist/client/assets/{drawer-BPVST_Ay.js → drawer-M-Xmg5V3.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-D-1EteWB.js → dropdown-menu-zkNW6Xct.js} +1 -1
  94. package/dist/client/assets/{empty-state-BUB0gs2m.js → empty-state-XvCU2Jbb.js} +1 -1
  95. package/dist/client/assets/{extract-connection-data-Bgb-HdXs.js → extract-connection-data-D7PcxGNg.js} +1 -1
  96. package/dist/client/assets/{file-explorer-D1K-P3NB.js → file-explorer-D3jnzP1j.js} +1 -1
  97. package/dist/client/assets/{form-BNC2pIDh.js → form-C700Gvdi.js} +1 -1
  98. package/dist/client/assets/{general-DC_hLE8A.js → general-fhECfGyy.js} +1 -1
  99. package/dist/client/assets/{github-repo-picker-DELXSdlo.js → github-repo-picker-DIbj7770.js} +1 -1
  100. package/dist/client/assets/{hooks-Jb-CUlwF.js → hooks-BxWRKzGz.js} +1 -1
  101. package/dist/client/assets/{index-CrA8C97p.js → index-BFwblmgK.js} +1 -1
  102. package/dist/client/assets/{index-BuG43ksY.js → index-BlKgu3sI.js} +1 -1
  103. package/dist/client/assets/{index-BA55_T38.js → index-C2NhPZDO.js} +7 -7
  104. package/dist/client/assets/{index-Bqugudv4.js → index-ChXShJzf.js} +37 -37
  105. package/dist/client/assets/{index-SK-skBIm.js → index-Cl8G_bjA.js} +1 -1
  106. package/dist/client/assets/{index-CGfW__bh.js → index-CyPSumm4.js} +3 -3
  107. package/dist/client/assets/{index-CbzJbxjH.js → index-D6AuCJX5.js} +1 -1
  108. package/dist/client/assets/{index-UIERQ2mB.js → index-DTyfr7IZ.js} +1 -1
  109. package/dist/client/assets/{index-D9KgR4Rc.js → index-WAbLVQ2b.js} +1 -1
  110. package/dist/client/assets/{index-CLLRcgSM.js → index-nK00K7JC.js} +1 -1
  111. package/dist/client/assets/{index-redirect-vXm17bcm.js → index-redirect-D3GTlyfe.js} +1 -1
  112. package/dist/client/assets/{index-DvKwvM-D.js → index-z9L7sEuJ.js} +1 -1
  113. package/dist/client/assets/{input-BLbgY5Y4.js → input-iRianmfl.js} +1 -1
  114. package/dist/client/assets/{integration-icon-BjEX3F2C.js → integration-icon-Cm9eUMas.js} +1 -1
  115. package/dist/client/assets/{invite-member-dialog-y31KnJnF.js → invite-member-dialog-B4Gsyui8.js} +1 -1
  116. package/dist/client/assets/{label-DBJ9vNaC.js → label-ByEuzRYR.js} +1 -1
  117. package/dist/client/assets/{layout-BrQUrnm6.js → layout-rkrT3Bzp.js} +1 -1
  118. package/dist/client/assets/{login-CwShDnT-.js → login-B8ldKcGZ.js} +1 -1
  119. package/dist/client/assets/{mcp-oauth-DC0NTnYK.js → mcp-oauth-dcW_2hvV.js} +1 -1
  120. package/dist/client/assets/{members-BttVBgrz.js → members-yTHMiAP6.js} +1 -1
  121. package/dist/client/assets/{monaco-editor-BZQLheI9.js → monaco-editor-CSZatNTo.js} +1 -1
  122. package/dist/client/assets/{monitoring-stats-row-C-IR9W3f.js → monitoring-stats-row-BhXG_7Z3.js} +1 -1
  123. package/dist/client/assets/{multi-select-CNEt6Ymq.js → multi-select-DFDpxR3T.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-DfBxOgNN.js → oauth-callback-CWSvdAAJ.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-ai-provider-CySvWl7u.js → oauth-callback-ai-provider-ngN9pz72.js} +1 -1
  126. package/dist/client/assets/{onboarding-DuvKAAal.js → onboarding-D3pH64NX.js} +1 -1
  127. package/dist/client/assets/{org-install-8IlDjSKy.js → org-install-CLFM7pRi.js} +1 -1
  128. package/dist/client/assets/{org-layout-CAn8hL7c.js → org-layout-BxDmKAuW.js} +1 -1
  129. package/dist/client/assets/{organization-choice-6hMpnLUd.js → organization-choice-BSt19X4w.js} +1 -1
  130. package/dist/client/assets/{orgs-HM6cmRH-.js → orgs-DE4WrubW.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-DRkjDKe6.js → page-seo-form-CceMFFxS.js} +1 -1
  132. package/dist/client/assets/{popover-W9XA4J7f.js → popover-D6G9W3Cv.js} +1 -1
  133. package/dist/client/assets/{post-editor-D0wDWBdJ.js → post-editor-VInz2Ulq.js} +1 -1
  134. package/dist/client/assets/{primitives-8h3hlJuV.js → primitives-D5GqvBQk.js} +1 -1
  135. package/dist/client/assets/{profile-D7yfmHxW.js → profile-CP-822UF.js} +1 -1
  136. package/dist/client/assets/project-app-view-CVa-5CL4.js +1 -0
  137. package/dist/client/assets/record-editor-DiGC8kd_.js +1 -0
  138. package/dist/client/assets/{redirect-editor-DknCffYq.js → redirect-editor-DxV_5lJO.js} +1 -1
  139. package/dist/client/assets/registry-Jn7LExN9.js +2 -0
  140. package/dist/client/assets/{registry-layout-Dzv0Y4RU.js → registry-layout-wg8eiwok.js} +1 -1
  141. package/dist/client/assets/{reports-_5d3tbVz.js → reports-0YvS0f-S.js} +1 -1
  142. package/dist/client/assets/{require-capability-C4s6WWYt.js → require-capability-BOeNsAYJ.js} +1 -1
  143. package/dist/client/assets/{required-auth-layout-h2FN2Qog.js → required-auth-layout-CoZaVc4S.js} +1 -1
  144. package/dist/client/assets/{reset-password-p6Tu9swn.js → reset-password-BC_gCCYf.js} +1 -1
  145. package/dist/client/assets/{roles-BN61drgS.js → roles-DdA0Dp3j.js} +1 -1
  146. package/dist/client/assets/{search-input-DpLYCJBA.js → search-input-Dc9Xb9Sz.js} +1 -1
  147. package/dist/client/assets/{secrets-BOx4wL5z.js → secrets-Bq3gXmCd.js} +1 -1
  148. package/dist/client/assets/sections-editor-EoVR-qBI.js +2 -0
  149. package/dist/client/assets/{select-CB8PaH_E.js → select-C4jn1mdS.js} +1 -1
  150. package/dist/client/assets/{select-model-DUVAHvbU.js → select-model-CAFipDGR.js} +1 -1
  151. package/dist/client/assets/{self-tool-result-BofhdwUr.js → self-tool-result-B85ERXCx.js} +1 -1
  152. package/dist/client/assets/{seo-editor-Cn64YCRz.js → seo-editor-D_i64QMQ.js} +1 -1
  153. package/dist/client/assets/{settings-layout-CBO6svV-.js → settings-layout-CTYQ9jGd.js} +1 -1
  154. package/dist/client/assets/{settings-section-Df6cDO7K.js → settings-section-QLUS7DxR.js} +1 -1
  155. package/dist/client/assets/{shell-controls-BQvARJsd.js → shell-controls-DlN_LVHg.js} +1 -1
  156. package/dist/client/assets/{shell-layout-s3rqzqCP.js → shell-layout-kETjcZPq.js} +1 -1
  157. package/dist/client/assets/{sidebar-Bkezhh2B.js → sidebar-C_Qp_qOS.js} +1 -1
  158. package/dist/client/assets/{skeleton-CqSX4tR7.js → skeleton-yEIB55ft.js} +1 -1
  159. package/dist/client/assets/{sso-DYCQicfk.js → sso-214mvCXv.js} +1 -1
  160. package/dist/client/assets/{store-D9MbbsAH.js → store-DUf6AZlh.js} +1 -1
  161. package/dist/client/assets/store-registry-CJrKYYv3.js +2 -0
  162. package/dist/client/assets/{studio-tools-D8p-QgIa.js → studio-tools-BJzu5AbJ.js} +1 -1
  163. package/dist/client/assets/{switch-C3k8Xe4R.js → switch-BXIkU8cp.js} +1 -1
  164. package/dist/client/assets/{tab-id-Bir8Z7Lp.js → tab-id-Dc6fzVD7.js} +1 -1
  165. package/dist/client/assets/{table-DRl1U46x.js → table-D3BegOPX.js} +1 -1
  166. package/dist/client/assets/{tabs-2DuClJPF.js → tabs-CLt0buAd.js} +1 -1
  167. package/dist/client/assets/{textarea-CfxfT5CH.js → textarea-DpKjjVVw.js} +1 -1
  168. package/dist/client/assets/{toggle-group-CBdnxVS2.js → toggle-group-CH__ukeK.js} +1 -1
  169. package/dist/client/assets/{toolbar-DOP7rvD5.js → toolbar-CGisvG-0.js} +1 -1
  170. package/dist/client/assets/{tooltip-pKNcd0PR.js → tooltip-Dm3uR-hj.js} +1 -1
  171. package/dist/client/assets/{use-ai-providers-Bn1IAcew.js → use-ai-providers-DBRDgkaQ.js} +1 -1
  172. package/dist/client/assets/{use-api-keys-CBXVXi3o.js → use-api-keys-DHwq7uqS.js} +1 -1
  173. package/dist/client/assets/{use-automations-DJM8WS3o.js → use-automations-r40x22_1.js} +1 -1
  174. package/dist/client/assets/{use-autosave-C0iwV3lK.js → use-autosave-CVPuzu4A.js} +1 -1
  175. package/dist/client/assets/{use-capability-BnTz8LaD.js → use-capability-BgeAE6DJ.js} +1 -1
  176. package/dist/client/assets/{use-clock-tick-DYN3bD_K.js → use-clock-tick-BB6mdM9v.js} +1 -1
  177. package/dist/client/assets/{use-connection-JZAtb9Oc.js → use-connection-B_FFqd3g.js} +1 -1
  178. package/dist/client/assets/{use-copy-C20VonhA.js → use-copy-D_vW4HWP.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-C5wCDlaE.js → use-create-virtual-mcp-DRv6Fs0H.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-C61lWhhV.js → use-debounced-autosave-CvXDe5Ii.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-CdXQeDds.js → use-debounced-value-Bo694rjz.js} +1 -1
  182. package/dist/client/assets/{use-deco-credits-CxyHiKt2.js → use-deco-credits-CzVJVBJY.js} +1 -1
  183. package/dist/client/assets/{use-decopilot-events-vfN2jIH-.js → use-decopilot-events-DOIgcLkA.js} +1 -1
  184. package/dist/client/assets/{use-delete-connection-D6AxE2q1.js → use-delete-connection-B0n-x1X8.js} +1 -1
  185. package/dist/client/assets/{use-deployment-admin-BeikFsmi.js → use-deployment-admin-PFMxnmam.js} +1 -1
  186. package/dist/client/assets/{use-file-configs-DBQWCorf.js → use-file-configs-BX0v4-R9.js} +1 -1
  187. package/dist/client/assets/{use-infinite-scroll-BBFxH23f.js → use-infinite-scroll-K9WytMO2.js} +1 -1
  188. package/dist/client/assets/{use-join-requests-B_aw28ZG.js → use-join-requests-DCDUgrZN.js} +1 -1
  189. package/dist/client/assets/{use-mcp-auth-status-DC0M84Cm.js → use-mcp-auth-status-CY1D9psZ.js} +1 -1
  190. package/dist/client/assets/{use-mcp-client-Dx7GhOiG.js → use-mcp-client-CvOACGFE.js} +1 -1
  191. package/dist/client/assets/{use-mcp-tools-Cgzmowv4.js → use-mcp-tools-BeOcwPEF.js} +1 -1
  192. package/dist/client/assets/{use-members-iq6z_xrc.js → use-members-vsiM73bu.js} +1 -1
  193. package/dist/client/assets/{use-mobile-BrQ1x2je.js → use-mobile-Btx14bzQ.js} +1 -1
  194. package/dist/client/assets/{use-navigate-to-agent-oYl4vBHG.js → use-navigate-to-agent--y7bLT6q.js} +1 -1
  195. package/dist/client/assets/{use-org-auth-client-CuXcux6K.js → use-org-auth-client-D6SYO0Og.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-DWix9ZB9.js → use-org-sso-BgR138gR.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-Db3_uSY6.js → use-organization-roles-DAh_7smP.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-DxEtmDmx.js → use-organization-settings-BN3uAAX4.js} +1 -1
  199. package/dist/client/assets/{use-registry-app-CIk41xB6.js → use-registry-app-E4zmjVFE.js} +1 -1
  200. package/dist/client/assets/{use-registry-connections-CQXDlECg.js → use-registry-connections-1UKSbqi-.js} +1 -1
  201. package/dist/client/assets/{use-secrets-DblVqTqQ.js → use-secrets-dtDMarAD.js} +1 -1
  202. package/dist/client/assets/{use-status-sounds-Cr--NOcA.js → use-status-sounds-uhYXqbo4.js} +1 -1
  203. package/dist/client/assets/{use-view-mode-DDdcpqDz.js → use-view-mode-BvT3il1N.js} +1 -1
  204. package/dist/client/assets/{use-virtual-mcp-D2jJA7fe.js → use-virtual-mcp-C1LCwSWK.js} +1 -1
  205. package/dist/client/assets/useInfiniteQuery-AkDnnAEF.js +1 -0
  206. package/dist/client/assets/{useQueries-DOgzl7tP.js → useQueries-C5L_Ar-y.js} +1 -1
  207. package/dist/client/assets/{useRouterState-BZN1-pyn.js → useRouterState-DtkKdf5i.js} +1 -1
  208. package/dist/client/assets/useSuspenseInfiniteQuery-DWFDCUXB.js +1 -0
  209. package/dist/client/assets/{users-B0KO96yp.js → users-BMA7Vi19.js} +1 -1
  210. package/dist/client/assets/{variant-calendar-4uL0_GPu.js → variant-calendar-BEGNauTn.js} +1 -1
  211. package/dist/client/assets/{view-mode-toggle-BNlgrqj_.js → view-mode-toggle-DjlhwHZ9.js} +1 -1
  212. package/dist/client/index.html +1 -1
  213. package/dist/server/cli.js +1 -1
  214. package/dist/server/server.js +253 -253
  215. package/package.json +1 -1
  216. package/dist/client/assets/project-app-view-DIKOGvnO.js +0 -1
  217. package/dist/client/assets/record-editor-CV9QSJQ4.js +0 -1
  218. package/dist/client/assets/registry-BwhZVs9H.js +0 -2
  219. package/dist/client/assets/sections-editor-CgkmIxMC.js +0 -2
  220. package/dist/client/assets/store-registry-DhHadeia.js +0 -2
  221. package/dist/client/assets/useInfiniteQuery-DkkQpAzO.js +0 -1
  222. package/dist/client/assets/useSuspenseInfiniteQuery-W9o_tAi5.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CwShDnT-.js","assets/auth-entry-CfnAHXCH.js","assets/input-BLbgY5Y4.js","assets/retry-CErkP7V6.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-RU-rIhVr.js","assets/cli-auth-success-BojNvsEa.js","assets/reset-password-p6Tu9swn.js","assets/oauth-callback-DfBxOgNN.js","assets/mcp-oauth-DC0NTnYK.js","assets/auth-BlyrFE3C.js","assets/layout-BrQUrnm6.js","assets/useRouterState-BZN1-pyn.js","assets/required-auth-layout-h2FN2Qog.js","assets/use-deployment-admin-BeikFsmi.js","assets/users-B0KO96yp.js","assets/index-UIERQ2mB.js","assets/sidebar-Bkezhh2B.js","assets/LayoutLeft-CZcZGCar.js","assets/use-mobile-BrQ1x2je.js","assets/X-CxnZ61Dy.js","assets/tooltip-pKNcd0PR.js","assets/collection-table-wrapper-83v6xxaP.js","assets/table-DRl1U46x.js","assets/ArrowUp-BU24SBrA.js","assets/empty-state-BUB0gs2m.js","assets/search-input-DpLYCJBA.js","assets/SearchMd-CmCQeyoA.js","assets/avatar--BYUzB4y.js","assets/User01-CYOB1QKw.js","assets/badge-ZRWmP32l.js","assets/use-debounced-value-CdXQeDds.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/get-initials-D-f_fDFw.js","assets/orgs-HM6cmRH-.js","assets/label-DBJ9vNaC.js","assets/dialog-B6d9FwDN.js","assets/select-CB8PaH_E.js","assets/Check-CyOScp5W.js","assets/ChevronDown-H_pCV_WQ.js","assets/ChevronUp-BSbNHk0z.js","assets/shell-layout-s3rqzqCP.js","assets/Users03-JG4uMo4y.js","assets/SearchLg-Dh3S2ux5.js","assets/Stars02-BhcWCPLv.js","assets/XClose-lZ5aU5Fe.js","assets/CheckCircle-BBeZasVl.js","assets/FilterLines-BQaKMtSp.js","assets/Zap-CUmqYBvs.js","assets/tab-id-Bir8Z7Lp.js","assets/use-mcp-client-Dx7GhOiG.js","assets/hooks-Jb-CUlwF.js","assets/decopilot-sse-pool-IgQIybB4.js","assets/use-organization-settings-DxEtmDmx.js","assets/studio-tools-D8p-QgIa.js","assets/use-org-sso-DWix9ZB9.js","assets/onboarding-DuvKAAal.js","assets/organization-choice-6hMpnLUd.js","assets/switch-C3k8Xe4R.js","assets/Palette-CiA6ejPt.js","assets/Upload01-Bdq1j13r.js","assets/commerce-onboarding-CXjKz3gE.js","assets/self-tool-result-BofhdwUr.js","assets/integration-icon-BjEX3F2C.js","assets/Tool02-jBVamTkA.js","assets/agent-icon-DMIXj7uI.js","assets/AlertCircle-CKmHeFfd.js","assets/Tool01-ilHMW5M5.js","assets/Settings02-bFCsNFBU.js","assets/XCircle-DmIV2_Lv.js","assets/ArrowUpRight-88Ag6RJh.js","assets/TrendUp01-Safncs6g.js","assets/ZapSquare-Br6wixNG.js","assets/ChevronRight-DcSLLbgV.js","assets/DotsVertical-mir_c3wV.js","assets/Copy01-B-HxG37x.js","assets/Eye-BqCx2GT9.js","assets/Star01--bfmlf9l.js","assets/SwitchHorizontal01-DNv44Jqt.js","assets/HardDrive-BK2QGkju.js","assets/Key01-CoZIs5Ke.js","assets/LinkExternal01-DXi0D6sZ.js","assets/LogOut01-C-kjoiOr.js","assets/Monitor01-ysvAPzgi.js","assets/Sun-DvRcpDkv.js","assets/Play-CWgBV4Qw.js","assets/Plus-Cap5ZqF8.js","assets/Shield01-CqpmsD2E.js","assets/Stars01-BWJ5B_eM.js","assets/Trash01-D_daef8I.js","assets/Users01-CkULKDWS.js","assets/companions-core-CtLrN7Ag.js","assets/extract-connection-data-Bgb-HdXs.js","assets/metadata-dUsYcpuu.js","assets/github-repo-scope-CKSTLD3W.js","assets/form-BNC2pIDh.js","assets/provision-repo-scoped-github-connection-Dp638N7g.js","assets/useQueries-DOgzl7tP.js","assets/authenticate-and-persist-oauth-Ds6h1W6s.js","assets/dropdown-menu-D-1EteWB.js","assets/reports-_5d3tbVz.js","assets/reports-BWI6IDQq.css","assets/index-CLLRcgSM.js","assets/skeleton-CqSX4tR7.js","assets/use-deco-credits-CxyHiKt2.js","assets/use-virtual-mcp-D2jJA7fe.js","assets/popover-W9XA4J7f.js","assets/alert-dialog-YnGvt04g.js","assets/chat-context-DoFcTTwf.js","assets/use-ai-providers-Bn1IAcew.js","assets/use-decopilot-events-vfN2jIH-.js","assets/toolbar-DOP7rvD5.js","assets/drawer-BPVST_Ay.js","assets/use-registry-app-CIk41xB6.js","assets/use-mcp-tools-Cgzmowv4.js","assets/github-repo-picker-DELXSdlo.js","assets/collection-search-qRYx3CYc.js","assets/use-connection-JZAtb9Oc.js","assets/use-navigate-to-agent-oYl4vBHG.js","assets/reusable-new-chat-CouMjkYR.js","assets/agent-capabilities-cXfbMfjV.js","assets/connection-card-Cix4A-CC.js","assets/use-registry-connections-CQXDlECg.js","assets/useInfiniteQuery-DkkQpAzO.js","assets/use-infinite-scroll-BBFxH23f.js","assets/connection-slug-eyAPH6o3.js","assets/card-MTemrP_o.js","assets/textarea-CfxfT5CH.js","assets/connection-form-helpers-CMZxiuVJ.js","assets/collection-tabs-D2mzu8jz.js","assets/useSuspenseInfiniteQuery-W9o_tAi5.js","assets/index-BuG43ksY.js","assets/invite-member-dialog-y31KnJnF.js","assets/use-org-auth-client-CuXcux6K.js","assets/use-organization-roles-Db3_uSY6.js","assets/use-copy-C20VonhA.js","assets/use-api-keys-CBXVXi3o.js","assets/connect-desktop-dialog-ejVUIZL0.js","assets/toggle-group-CBdnxVS2.js","assets/command-BmznqR4d.js","assets/index-DvKwvM-D.js","assets/shell-controls-BQvARJsd.js","assets/use-clock-tick-DYN3bD_K.js","assets/index-Bqugudv4.js","assets/automation-runs-DSPprbCx.js","assets/use-members-iq6z_xrc.js","assets/use-automations-DJM8WS3o.js","assets/monaco-editor-BZQLheI9.js","assets/index-SK-skBIm.js","assets/calendar--b7AwkOt.js","assets/AreaChart-a3cAScnA.js","assets/index-CGfW__bh.js","assets/tabs-2DuClJPF.js","assets/select-model-DUVAHvbU.js","assets/checkbox-hMvtqU7M.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-Df6cDO7K.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-Cr--NOcA.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-BnTz8LaD.js","assets/pt-BR-CLy76QW2.js","assets/use-mcp-auth-status-DC0M84Cm.js","assets/use-debounced-autosave-C61lWhhV.js","assets/use-secrets-DblVqTqQ.js","assets/use-file-configs-DBQWCorf.js","assets/automation-list-row-DWhixAv5.js","assets/index-CiP0VfIv.css","assets/index-CrA8C97p.js","assets/settings-layout-CBO6svV-.js","assets/use-join-requests-B_aw28ZG.js","assets/index-redirect-vXm17bcm.js","assets/capability-load-error-DAWrY_o9.js","assets/connections-DAT9fF8o.js","assets/collection-display-button-U9ZlQmVg.js","assets/view-mode-toggle-BNlgrqj_.js","assets/use-delete-connection-D6AxE2q1.js","assets/use-view-mode-DDdcpqDz.js","assets/connection-detail-BeN0QZUt.js","assets/index-D9KgR4Rc.js","assets/use-create-virtual-mcp-C5wCDlaE.js","assets/monitoring-stats-row-C-IR9W3f.js","assets/connection-Bm9Y_Mh0.js","assets/collection-detail-B2tq49yQ.js","assets/alert-C8OxnUw0.js","assets/index-CbzJbxjH.js","assets/require-capability-C4s6WWYt.js","assets/access-gate-Bz7niyrP.js","assets/multi-select-CNEt6Ymq.js","assets/general-DC_hLE8A.js","assets/domain-settings-DjZjKhHb.js","assets/connect-C8G6hpUw.js","assets/brand-context-CKoiCAsX.js","assets/ai-providers-BzHh1Y6X.js","assets/secrets-BOx4wL5z.js","assets/buckets-Diftx4y0.js","assets/members-BttVBgrz.js","assets/role-color-Dn2tXDDF.js","assets/roles-BN61drgS.js","assets/sso-DYCQicfk.js","assets/profile-D7yfmHxW.js","assets/store-D9MbbsAH.js","assets/registry-BwhZVs9H.js","assets/store-registry-DhHadeia.js","assets/agents-list-CcpsacXD.js","assets/automations-BEapCfX5.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-B8ldKcGZ.js","assets/auth-entry-By_kkx0y.js","assets/input-iRianmfl.js","assets/retry-CErkP7V6.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BOU6GOpH.js","assets/cli-auth-success-cL_WLHjB.js","assets/reset-password-BC_gCCYf.js","assets/oauth-callback-CWSvdAAJ.js","assets/mcp-oauth-dcW_2hvV.js","assets/auth-B6jFcYgE.js","assets/layout-rkrT3Bzp.js","assets/useRouterState-DtkKdf5i.js","assets/required-auth-layout-CoZaVc4S.js","assets/use-deployment-admin-PFMxnmam.js","assets/users-BMA7Vi19.js","assets/index-DTyfr7IZ.js","assets/sidebar-C_Qp_qOS.js","assets/LayoutLeft-DTNvZZj5.js","assets/use-mobile-Btx14bzQ.js","assets/X-BnxYHTRH.js","assets/tooltip-Dm3uR-hj.js","assets/collection-table-wrapper-xK3pyCcW.js","assets/table-D3BegOPX.js","assets/ArrowUp-CnIHTsmO.js","assets/empty-state-XvCU2Jbb.js","assets/search-input-Dc9Xb9Sz.js","assets/SearchMd-DMG2zDFL.js","assets/avatar-B23KIOgZ.js","assets/User01-JKwt5Mgg.js","assets/badge-fFsqeAJw.js","assets/use-debounced-value-Bo694rjz.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/get-initials-D-f_fDFw.js","assets/orgs-DE4WrubW.js","assets/label-ByEuzRYR.js","assets/dialog-fzerDieV.js","assets/select-C4jn1mdS.js","assets/Check-ClOKUWq0.js","assets/ChevronDown-ntSxWeJ4.js","assets/ChevronUp-YLZnOKy9.js","assets/shell-layout-kETjcZPq.js","assets/Users03-D10UUDMP.js","assets/SearchLg-BhK4Es_D.js","assets/Stars02-BWBa6SoG.js","assets/XClose-BiCusmh_.js","assets/CheckCircle-B9Qb7yYb.js","assets/FilterLines-BoNJ34n2.js","assets/Zap-DXhySgpI.js","assets/tab-id-Dc6fzVD7.js","assets/use-mcp-client-CvOACGFE.js","assets/hooks-BxWRKzGz.js","assets/decopilot-sse-pool-Bb2fEZmL.js","assets/use-organization-settings-BN3uAAX4.js","assets/studio-tools-BJzu5AbJ.js","assets/use-org-sso-BgR138gR.js","assets/onboarding-D3pH64NX.js","assets/organization-choice-BSt19X4w.js","assets/switch-BXIkU8cp.js","assets/Palette-CvsYfsaU.js","assets/Upload01-Nrw2EWNW.js","assets/commerce-onboarding-gWh4R_kR.js","assets/self-tool-result-B85ERXCx.js","assets/integration-icon-Cm9eUMas.js","assets/Tool02-DqQ2l-s6.js","assets/agent-icon-C-PYniVP.js","assets/AlertCircle-DkFru66n.js","assets/Tool01-DAWCFlyh.js","assets/Settings02-ChOR_aS_.js","assets/XCircle-WcKyEVeJ.js","assets/ArrowUpRight-0JyKJQF0.js","assets/TrendUp01-CvPZvib7.js","assets/ZapSquare-HoPYd0YH.js","assets/ChevronRight-4tvQaNhA.js","assets/DotsVertical-B0YOF2bb.js","assets/Copy01-ukmyNVPg.js","assets/Eye-BqFgiEN7.js","assets/Star01-CqIMVJf_.js","assets/SwitchHorizontal01-BQ0CC3sE.js","assets/HardDrive-Ct0KVNHb.js","assets/Key01-Dwi0gVeB.js","assets/LinkExternal01-C2-qXNaf.js","assets/LogOut01-DE76ndei.js","assets/Monitor01-BXGmmpPd.js","assets/Sun-DquTiOlN.js","assets/Play-Bdo0FcOf.js","assets/Plus-DzwlbeDl.js","assets/Shield01-Zrzk98xL.js","assets/Stars01-CO1aXk4_.js","assets/Trash01-Bek7H7mS.js","assets/Users01-B-sldtU9.js","assets/companions-core-CVDx4Uvs.js","assets/extract-connection-data-D7PcxGNg.js","assets/metadata-dUsYcpuu.js","assets/github-repo-scope-CKSTLD3W.js","assets/form-C700Gvdi.js","assets/provision-repo-scoped-github-connection-Dp638N7g.js","assets/useQueries-C5L_Ar-y.js","assets/authenticate-and-persist-oauth-zvu_IV_c.js","assets/dropdown-menu-zkNW6Xct.js","assets/reports-0YvS0f-S.js","assets/reports-BWI6IDQq.css","assets/index-nK00K7JC.js","assets/skeleton-yEIB55ft.js","assets/use-deco-credits-CzVJVBJY.js","assets/use-virtual-mcp-C1LCwSWK.js","assets/popover-D6G9W3Cv.js","assets/alert-dialog-V6SUVFlI.js","assets/chat-context-DHxt5Z5f.js","assets/use-ai-providers-DBRDgkaQ.js","assets/use-decopilot-events-DOIgcLkA.js","assets/toolbar-CGisvG-0.js","assets/drawer-M-Xmg5V3.js","assets/use-registry-app-E4zmjVFE.js","assets/use-mcp-tools-BeOcwPEF.js","assets/github-repo-picker-DIbj7770.js","assets/collection-search-DT7q72t1.js","assets/use-connection-B_FFqd3g.js","assets/use-navigate-to-agent--y7bLT6q.js","assets/reusable-new-chat-CouMjkYR.js","assets/agent-capabilities-cXfbMfjV.js","assets/connection-card-BDpyoegy.js","assets/use-registry-connections-1UKSbqi-.js","assets/useInfiniteQuery-AkDnnAEF.js","assets/use-infinite-scroll-K9WytMO2.js","assets/connection-slug-eyAPH6o3.js","assets/card-CnbafLYR.js","assets/textarea-DpKjjVVw.js","assets/connection-form-helpers-ClXTAyqw.js","assets/collection-tabs-Bs3Sl5Z8.js","assets/useSuspenseInfiniteQuery-DWFDCUXB.js","assets/index-BlKgu3sI.js","assets/invite-member-dialog-B4Gsyui8.js","assets/use-org-auth-client-D6SYO0Og.js","assets/use-organization-roles-DAh_7smP.js","assets/use-copy-D_vW4HWP.js","assets/use-api-keys-DHwq7uqS.js","assets/connect-desktop-dialog-CDI7pr7-.js","assets/toggle-group-CH__ukeK.js","assets/command-Bl64JVM7.js","assets/index-z9L7sEuJ.js","assets/shell-controls-DlN_LVHg.js","assets/use-clock-tick-BB6mdM9v.js","assets/index-ChXShJzf.js","assets/automation-runs-YvVMHovG.js","assets/use-members-vsiM73bu.js","assets/use-automations-r40x22_1.js","assets/monaco-editor-CSZatNTo.js","assets/index-Cl8G_bjA.js","assets/calendar-0s-FymB6.js","assets/AreaChart-CvJfqCTs.js","assets/index-CyPSumm4.js","assets/tabs-CLt0buAd.js","assets/select-model-CAFipDGR.js","assets/checkbox-ClM_1Dms.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-QLUS7DxR.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-uhYXqbo4.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-BgeAE6DJ.js","assets/pt-BR-CLy76QW2.js","assets/use-mcp-auth-status-CY1D9psZ.js","assets/use-debounced-autosave-CvXDe5Ii.js","assets/use-secrets-dtDMarAD.js","assets/use-file-configs-BX0v4-R9.js","assets/automation-list-row-DCwXw5Oi.js","assets/index-CiP0VfIv.css","assets/index-BFwblmgK.js","assets/settings-layout-CTYQ9jGd.js","assets/use-join-requests-DCDUgrZN.js","assets/index-redirect-D3GTlyfe.js","assets/capability-load-error-D3D6-f2t.js","assets/connections-aRaqOToD.js","assets/collection-display-button-BaZ8ZJYg.js","assets/view-mode-toggle-DjlhwHZ9.js","assets/use-delete-connection-B0n-x1X8.js","assets/use-view-mode-BvT3il1N.js","assets/connection-detail-I7RjLE-w.js","assets/index-WAbLVQ2b.js","assets/use-create-virtual-mcp-DRv6Fs0H.js","assets/monitoring-stats-row-BhXG_7Z3.js","assets/connection-f_38Qnm7.js","assets/collection-detail-C_VF5gqc.js","assets/alert-RYoRzXLM.js","assets/index-D6AuCJX5.js","assets/require-capability-BOeNsAYJ.js","assets/access-gate-Czkvn9gF.js","assets/multi-select-DFDpxR3T.js","assets/general-fhECfGyy.js","assets/domain-settings-uRIqKsQl.js","assets/connect-kEcJ_SIb.js","assets/brand-context-v9mf7fQa.js","assets/ai-providers-DPGugvmJ.js","assets/secrets-Bq3gXmCd.js","assets/buckets-DRZrJnUm.js","assets/members-yTHMiAP6.js","assets/role-color-Dn2tXDDF.js","assets/roles-DdA0Dp3j.js","assets/sso-214mvCXv.js","assets/profile-CP-822UF.js","assets/store-DUf6AZlh.js","assets/registry-Jn7LExN9.js","assets/store-registry-CJrKYYv3.js","assets/agents-list-BjiTgs_2.js","assets/automations--_VpEnw2.js"])))=>i.map(i=>d[i]);
2
2
  function E6(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(n,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const x6="modulepreload",T6=function(e){return"/"+e},yR={},dt=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){let l=function(m){return Promise.all(m.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");r=l(o.map(m=>{if(m=T6(m),m in yR)return;yR[m]=!0;const h=m.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${f}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":x6,h||(g.as="script"),g.crossOrigin="",g.href=m,d&&g.setAttribute("nonce",d),document.head.appendChild(g),h)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${m}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return r.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var Vue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ny={exports:{}},ed={};var SR;function P6(){if(SR)return ed;SR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(n,r,i){var l=null;if(i!==void 0&&(l=""+i),r.key!==void 0&&(l=""+r.key),"key"in r){i={};for(var c in r)c!=="key"&&(i[c]=r[c])}else i=r;return r=i.ref,{$$typeof:e,type:n,key:l,ref:r!==void 0?r:null,props:i}}return ed.Fragment=t,ed.jsx=o,ed.jsxs=o,ed}var _R;function R6(){return _R||(_R=1,Ny.exports=P6()),Ny.exports}var R=R6(),Fy={exports:{}},By={},zy={exports:{}},rt={};var CR;function A6(){if(CR)return rt;CR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),g=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _(M,H,q){this.props=M,this.context=H,this.refs=E,this.updater=q||y}_.prototype.isReactComponent={},_.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,H,"setState")},_.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function w(){}w.prototype=_.prototype;function P(M,H,q){this.props=M,this.context=H,this.refs=E,this.updater=q||y}var x=P.prototype=new w;x.constructor=P,S(x,_.prototype),x.isPureReactComponent=!0;var T=Array.isArray;function A(){}var k={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function N(M,H,q){var L=q.ref;return{$$typeof:e,type:M,key:H,ref:L!==void 0?L:null,props:q}}function $(M,H){return N(M.type,H,M.props)}function F(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function U(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(q){return H[q]})}var j=/\/+/g;function K(M,H){return typeof M=="object"&&M!==null&&M.key!=null?U(""+M.key):H.toString(36)}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(A,A):(M.status="pending",M.then(function(H){M.status==="pending"&&(M.status="fulfilled",M.value=H)},function(H){M.status==="pending"&&(M.status="rejected",M.reason=H)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function V(M,H,q,L,z){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var me=!1;if(M===null)me=!0;else switch(J){case"bigint":case"string":case"number":me=!0;break;case"object":switch(M.$$typeof){case e:case t:me=!0;break;case h:return me=M._init,V(me(M._payload),H,q,L,z)}}if(me)return z=z(M),me=L===""?"."+K(M,0):L,T(z)?(q="",me!=null&&(q=me.replace(j,"$&/")+"/"),V(z,H,q,"",function(Be){return Be})):z!=null&&(F(z)&&(z=$(z,q+(z.key==null||M&&M.key===z.key?"":(""+z.key).replace(j,"$&/")+"/")+me)),H.push(z)),1;me=0;var he=L===""?".":L+":";if(T(M))for(var we=0;we<M.length;we++)L=M[we],J=he+K(L,we),me+=V(L,H,q,J,z);else if(we=v(M),typeof we=="function")for(M=we.call(M),we=0;!(L=M.next()).done;)L=L.value,J=he+K(L,we++),me+=V(L,H,q,J,z);else if(J==="object"){if(typeof M.then=="function")return V(ae(M),H,q,L,z);throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return me}function Z(M,H,q){if(M==null)return M;var L=[],z=0;return V(M,L,"","",function(J){return H.call(q,J,z++)}),L}function te(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(q){(M._status===0||M._status===-1)&&(M._status=1,M._result=q)},function(q){(M._status===0||M._status===-1)&&(M._status=2,M._result=q)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var le=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:Z,forEach:function(M,H,q){Z(M,function(){H.apply(this,arguments)},q)},count:function(M){var H=0;return Z(M,function(){H++}),H},toArray:function(M){return Z(M,function(H){return H})||[]},only:function(M){if(!F(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return rt.Activity=f,rt.Children=Q,rt.Component=_,rt.Fragment=o,rt.Profiler=r,rt.PureComponent=P,rt.StrictMode=n,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,rt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return k.H.useMemoCache(M)}},rt.cache=function(M){return function(){return M.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(M,H,q){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var L=S({},M.props),z=M.key;if(H!=null)for(J in H.key!==void 0&&(z=""+H.key),H)!O.call(H,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&H.ref===void 0||(L[J]=H[J]);var J=arguments.length-2;if(J===1)L.children=q;else if(1<J){for(var me=Array(J),he=0;he<J;he++)me[he]=arguments[he+2];L.children=me}return N(M.type,z,L)},rt.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:i,_context:M},M},rt.createElement=function(M,H,q){var L,z={},J=null;if(H!=null)for(L in H.key!==void 0&&(J=""+H.key),H)O.call(H,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(z[L]=H[L]);var me=arguments.length-2;if(me===1)z.children=q;else if(1<me){for(var he=Array(me),we=0;we<me;we++)he[we]=arguments[we+2];z.children=he}if(M&&M.defaultProps)for(L in me=M.defaultProps,me)z[L]===void 0&&(z[L]=me[L]);return N(M,J,z)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(M){return{$$typeof:c,render:M}},rt.isValidElement=F,rt.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:te}},rt.memo=function(M,H){return{$$typeof:m,type:M,compare:H===void 0?null:H}},rt.startTransition=function(M){var H=k.T,q={};k.T=q;try{var L=M(),z=k.S;z!==null&&z(q,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(A,le)}catch(J){le(J)}finally{H!==null&&q.types!==null&&(H.types=q.types),k.T=H}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(M){return k.H.use(M)},rt.useActionState=function(M,H,q){return k.H.useActionState(M,H,q)},rt.useCallback=function(M,H){return k.H.useCallback(M,H)},rt.useContext=function(M){return k.H.useContext(M)},rt.useDebugValue=function(){},rt.useDeferredValue=function(M,H){return k.H.useDeferredValue(M,H)},rt.useEffect=function(M,H){return k.H.useEffect(M,H)},rt.useEffectEvent=function(M){return k.H.useEffectEvent(M)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(M,H,q){return k.H.useImperativeHandle(M,H,q)},rt.useInsertionEffect=function(M,H){return k.H.useInsertionEffect(M,H)},rt.useLayoutEffect=function(M,H){return k.H.useLayoutEffect(M,H)},rt.useMemo=function(M,H){return k.H.useMemo(M,H)},rt.useOptimistic=function(M,H){return k.H.useOptimistic(M,H)},rt.useReducer=function(M,H,q){return k.H.useReducer(M,H,q)},rt.useRef=function(M){return k.H.useRef(M)},rt.useState=function(M){return k.H.useState(M)},rt.useSyncExternalStore=function(M,H,q){return k.H.useSyncExternalStore(M,H,q)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.6",rt}var wR;function bs(){return wR||(wR=1,zy.exports=A6()),zy.exports}var ER;function k6(){if(ER)return By;ER=1;var e=bs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return By.c=function(t){return e.H.useMemoCache(t)},By}var xR;function D6(){return xR||(xR=1,Fy.exports=k6()),Fy.exports}var eo=D6(),jy={exports:{}},td={},Uy={exports:{}},$y={};var TR;function O6(){return TR||(TR=1,(function(e){function t(V,Z){var te=V.length;V.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=V[le];if(0<r(Q,Z))V[le]=Z,V[te]=Q,te=le;else break e}}function o(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var Z=V[0],te=V.pop();if(te!==Z){V[0]=te;e:for(var le=0,Q=V.length,M=Q>>>1;le<M;){var H=2*(le+1)-1,q=V[H],L=H+1,z=V[L];if(0>r(q,te))L<Q&&0>r(z,q)?(V[le]=z,V[L]=te,le=L):(V[le]=q,V[H]=te,le=H);else if(L<Q&&0>r(z,te))V[le]=z,V[L]=te,le=L;else break e}}return Z}function r(V,Z){var te=V.sortIndex-Z.sortIndex;return te!==0?te:V.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],m=[],h=1,f=null,g=3,v=!1,y=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function x(V){for(var Z=o(m);Z!==null;){if(Z.callback===null)n(m);else if(Z.startTime<=V)n(m),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=o(m)}}function T(V){if(S=!1,x(V),!y)if(o(d)!==null)y=!0,A||(A=!0,U());else{var Z=o(m);Z!==null&&ae(T,Z.startTime-V)}}var A=!1,k=-1,O=5,N=-1;function $(){return E?!0:!(e.unstable_now()-N<O)}function F(){if(E=!1,A){var V=e.unstable_now();N=V;var Z=!0;try{e:{y=!1,S&&(S=!1,w(k),k=-1),v=!0;var te=g;try{t:{for(x(V),f=o(d);f!==null&&!(f.expirationTime>V&&$());){var le=f.callback;if(typeof le=="function"){f.callback=null,g=f.priorityLevel;var Q=le(f.expirationTime<=V);if(V=e.unstable_now(),typeof Q=="function"){f.callback=Q,x(V),Z=!0;break t}f===o(d)&&n(d),x(V)}else n(d);f=o(d)}if(f!==null)Z=!0;else{var M=o(m);M!==null&&ae(T,M.startTime-V),Z=!1}}break e}finally{f=null,g=te,v=!1}Z=void 0}}finally{Z?U():A=!1}}}var U;if(typeof P=="function")U=function(){P(F)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,K=j.port2;j.port1.onmessage=F,U=function(){K.postMessage(null)}}else U=function(){_(F,0)};function ae(V,Z){k=_(function(){V(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(V){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var te=g;g=Z;try{return V()}finally{g=te}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(V,Z){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var te=g;g=V;try{return Z()}finally{g=te}},e.unstable_scheduleCallback=function(V,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,V){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,V={id:h++,callback:Z,priorityLevel:V,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(V.sortIndex=te,t(m,V),o(d)===null&&V===o(m)&&(S?(w(k),k=-1):S=!0,ae(T,te-le))):(V.sortIndex=Q,t(d,V),y||v||(y=!0,A||(A=!0,U()))),V},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(V){var Z=g;return function(){var te=g;g=Z;try{return V.apply(this,arguments)}finally{g=te}}}})($y)),$y}var PR;function I6(){return PR||(PR=1,Uy.exports=O6()),Uy.exports}var qy={exports:{}},En={};var RR;function M6(){if(RR)return En;RR=1;var e=bs();function t(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)m+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var n={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function i(d,m,h){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:f==null?null:""+f,children:d,containerInfo:m,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return En.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,En.createPortal=function(d,m){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return i(d,m,null,h)},En.flushSync=function(d){var m=l.T,h=n.p;try{if(l.T=null,n.p=2,d)return d()}finally{l.T=m,n.p=h,n.d.f()}},En.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,n.d.C(d,m))},En.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},En.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var h=m.as,f=c(h,m.crossOrigin),g=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;h==="style"?n.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:f,integrity:g,fetchPriority:v}):h==="script"&&n.d.X(d,{crossOrigin:f,integrity:g,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},En.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var h=c(m.as,m.crossOrigin);n.d.M(d,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&n.d.M(d)},En.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var h=m.as,f=c(h,m.crossOrigin);n.d.L(d,h,{crossOrigin:f,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},En.preloadModule=function(d,m){if(typeof d=="string")if(m){var h=c(m.as,m.crossOrigin);n.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else n.d.m(d)},En.requestFormReset=function(d){n.d.r(d)},En.unstable_batchedUpdates=function(d,m){return d(m)},En.useFormState=function(d,m,h){return l.H.useFormState(d,m,h)},En.useFormStatus=function(){return l.H.useHostTransitionStatus()},En.version="19.2.6",En}var AR;function JO(){if(AR)return qy.exports;AR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qy.exports=M6(),qy.exports}var kR;function L6(){if(kR)return td;kR=1;var e=I6(),t=bs(),o=JO();function n(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function i(a){var s=a,u=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(u=s.return),a=s.return;while(a)}return s.tag===3?u:null}function l(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function c(a){if(a.tag===31){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function d(a){if(i(a)!==a)throw Error(n(188))}function m(a){var s=a.alternate;if(!s){if(s=i(a),s===null)throw Error(n(188));return s!==a?null:a}for(var u=a,p=s;;){var b=u.return;if(b===null)break;var C=b.alternate;if(C===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===C.child){for(C=b.child;C;){if(C===u)return d(b),a;if(C===p)return d(b),s;C=C.sibling}throw Error(n(188))}if(u.return!==p.return)u=b,p=C;else{for(var I=!1,B=b.child;B;){if(B===u){I=!0,u=b,p=C;break}if(B===p){I=!0,p=b,u=C;break}B=B.sibling}if(!I){for(B=C.child;B;){if(B===u){I=!0,u=C,p=b;break}if(B===p){I=!0,p=C,u=b;break}B=B.sibling}if(!I)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?a:s}function h(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=h(a),s!==null)return s;a=a.sibling}return null}var f=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),P=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function U(a){return a===null||typeof a!="object"?null:(a=F&&a[F]||a["@@iterator"],typeof a=="function"?a:null)}var j=Symbol.for("react.client.reference");function K(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===j?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList";case N:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return"Portal";case P:return a.displayName||"Context";case w:return(a._context.displayName||"Context")+".Consumer";case x:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return s=a.displayName||null,s!==null?s:K(a.type)||"Memo";case O:s=a._payload,a=a._init;try{return K(a(s))}catch{}}return null}var ae=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function M(a){return{current:a}}function H(a){0>Q||(a.current=le[Q],le[Q]=null,Q--)}function q(a,s){Q++,le[Q]=a.current,a.current=s}var L=M(null),z=M(null),J=M(null),me=M(null);function he(a,s){switch(q(J,s),q(z,a),q(L,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?$P(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=$P(s),a=qP(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}H(L),q(L,a)}function we(){H(L),H(z),H(J)}function Be(a){a.memoizedState!==null&&q(me,a);var s=L.current,u=qP(s,a.type);s!==u&&(q(z,a),q(L,u))}function W(a){z.current===a&&(H(L),H(z)),me.current===a&&(H(me),Zu._currentValue=te)}var ne,ve;function ie(a){if(ne===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ne+a+ve}var _e=!1;function xe(a,s){if(!a||_e)return"";_e=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(ge){var fe=ge}Reflect.construct(a,[],Ce)}else{try{Ce.call()}catch(ge){fe=ge}a.call(Ce.prototype)}}else{try{throw Error()}catch(ge){fe=ge}(Ce=a())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(ge){if(ge&&fe&&typeof ge.stack=="string")return[ge.stack,fe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=p.DetermineComponentFrameRoot(),I=C[0],B=C[1];if(I&&B){var X=I.split(`
@@ -6,8 +6,8 @@ function E6(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&
6
6
  `);for(b=p=0;p<X.length&&!X[p].includes("DetermineComponentFrameRoot");)p++;for(;b<de.length&&!de[b].includes("DetermineComponentFrameRoot");)b++;if(p===X.length||b===de.length)for(p=X.length-1,b=de.length-1;1<=p&&0<=b&&X[p]!==de[b];)b--;for(;1<=p&&0<=b;p--,b--)if(X[p]!==de[b]){if(p!==1||b!==1)do if(p--,b--,0>b||X[p]!==de[b]){var ye=`
7
7
  `+X[p].replace(" at new "," at ");return a.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",a.displayName)),ye}while(1<=p&&0<=b);break}}}finally{_e=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?ie(u):""}function tt(a,s){switch(a.tag){case 26:case 27:case 5:return ie(a.type);case 16:return ie("Lazy");case 13:return a.child!==s&&s!==null?ie("Suspense Fallback"):ie("Suspense");case 19:return ie("SuspenseList");case 0:case 15:return xe(a.type,!1);case 11:return xe(a.type.render,!1);case 1:return xe(a.type,!0);case 31:return ie("Activity");default:return""}}function nt(a){try{var s="",u=null;do s+=tt(a,u),u=a,a=a.return;while(a);return s}catch(p){return`
8
8
  Error generating stack: `+p.message+`
9
- `+p.stack}}var $e=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,De=e.unstable_cancelCallback,ke=e.unstable_shouldYield,Ue=e.unstable_requestPaint,G=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Pe=e.unstable_NormalPriority,Re=e.unstable_LowPriority,Ie=e.unstable_IdlePriority,Xe=e.log,et=e.unstable_setDisableYieldValue,bt=null,Tt=null;function yt(a){if(typeof Xe=="function"&&et(a),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(bt,a)}catch{}}var No=Math.clz32?Math.clz32:Ye,Ia=Math.log,Gr=Math.LN2;function Ye(a){return a>>>=0,a===0?32:31-(Ia(a)/Gr|0)|0}var ft=256,Pt=262144,at=4194304;function It(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ge(a,s,u){var p=a.pendingLanes;if(p===0)return 0;var b=0,C=a.suspendedLanes,I=a.pingedLanes;a=a.warmLanes;var B=p&134217727;return B!==0?(p=B&~C,p!==0?b=It(p):(I&=B,I!==0?b=It(I):u||(u=B&~a,u!==0&&(b=It(u))))):(B=p&~C,B!==0?b=It(B):I!==0?b=It(I):u||(u=p&~a,u!==0&&(b=It(u)))),b===0?0:s!==0&&s!==b&&(s&C)===0&&(C=b&-b,u=s&-s,C>=u||C===32&&(u&4194048)!==0)?s:b}function ut(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function Qt(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gt(){var a=at;return at<<=1,(at&62914560)===0&&(at=4194304),a}function wn(a){for(var s=[],u=0;31>u;u++)s.push(a);return s}function Mt(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function ao(a,s,u,p,b,C){var I=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var B=a.entanglements,X=a.expirationTimes,de=a.hiddenUpdates;for(u=I&~u;0<u;){var ye=31-No(u),Ce=1<<ye;B[ye]=0,X[ye]=-1;var fe=de[ye];if(fe!==null)for(de[ye]=null,ye=0;ye<fe.length;ye++){var ge=fe[ye];ge!==null&&(ge.lane&=-536870913)}u&=~Ce}p!==0&&Cr(a,p,0),C!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=C&~(I&~s))}function Cr(a,s,u){a.pendingLanes|=s,a.suspendedLanes&=~s;var p=31-No(s);a.entangledLanes|=s,a.entanglements[p]=a.entanglements[p]|1073741824|u&261930}function an(a,s){var u=a.entangledLanes|=s;for(a=a.entanglements;u;){var p=31-No(u),b=1<<p;b&s|a[p]&s&&(a[p]|=s),u&=~b}}function Un(a,s){var u=s&-s;return u=(u&42)!==0?1:wl(u),(u&(a.suspendedLanes|s))!==0?0:u}function wl(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Kr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Tv(){var a=Z.p;return a!==0?a:(a=window.event,a===void 0?32:mR(a.type))}function RE(a,s){var u=Z.p;try{return Z.p=a,s()}finally{Z.p=u}}var Si=Math.random().toString(36).slice(2),sn="__reactFiber$"+Si,$n="__reactProps$"+Si,El="__reactContainer$"+Si,Pv="__reactEvents$"+Si,f4="__reactListeners$"+Si,h4="__reactHandles$"+Si,AE="__reactResources$"+Si,du="__reactMarker$"+Si;function Rv(a){delete a[sn],delete a[$n],delete a[Pv],delete a[f4],delete a[h4]}function xl(a){var s=a[sn];if(s)return s;for(var u=a.parentNode;u;){if(s=u[El]||u[sn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(a=ZP(a);a!==null;){if(u=a[sn])return u;a=ZP(a)}return s}a=u,u=a.parentNode}return null}function Tl(a){if(a=a[sn]||a[El]){var s=a.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return a}return null}function mu(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(n(33))}function Pl(a){var s=a[AE];return s||(s=a[AE]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(a){a[du]=!0}var kE=new Set,DE={};function Ts(a,s){Rl(a,s),Rl(a+"Capture",s)}function Rl(a,s){for(DE[a]=s,a=0;a<s.length;a++)kE.add(s[a])}var p4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),OE={},IE={};function g4(a){return $e.call(IE,a)?!0:$e.call(OE,a)?!1:p4.test(a)?IE[a]=!0:(OE[a]=!0,!1)}function Bm(a,s,u){if(g4(s))if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+u)}}function zm(a,s,u){if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+u)}}function Ma(a,s,u,p){if(p===null)a.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(s,u,""+p)}}function wr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ME(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function v4(a,s,u){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,s);if(!a.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,C=p.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return b.call(this)},set:function(I){u=""+I,C.call(this,I)}}),Object.defineProperty(a,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(I){u=""+I},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Av(a){if(!a._valueTracker){var s=ME(a)?"checked":"value";a._valueTracker=v4(a,s,""+a[s])}}function LE(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return a&&(p=ME(a)?a.checked?"true":"false":a.value),a=p,a!==u?(s.setValue(a),!0):!1}function jm(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var b4=/[\n"\\]/g;function Er(a){return a.replace(b4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function kv(a,s,u,p,b,C,I,B){a.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?a.type=I:a.removeAttribute("type"),s!=null?I==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+wr(s)):a.value!==""+wr(s)&&(a.value=""+wr(s)):I!=="submit"&&I!=="reset"||a.removeAttribute("value"),s!=null?Dv(a,I,wr(s)):u!=null?Dv(a,I,wr(u)):p!=null&&a.removeAttribute("value"),b==null&&C!=null&&(a.defaultChecked=!!C),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?a.name=""+wr(B):a.removeAttribute("name")}function NE(a,s,u,p,b,C,I,B){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.type=C),s!=null||u!=null){if(!(C!=="submit"&&C!=="reset"||s!=null)){Av(a);return}u=u!=null?""+wr(u):"",s=s!=null?""+wr(s):u,B||s===a.value||(a.value=s),a.defaultValue=s}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=B?a.checked:!!p,a.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.name=I),Av(a)}function Dv(a,s,u){s==="number"&&jm(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Al(a,s,u,p){if(a=a.options,s){s={};for(var b=0;b<u.length;b++)s["$"+u[b]]=!0;for(u=0;u<a.length;u++)b=s.hasOwnProperty("$"+a[u].value),a[u].selected!==b&&(a[u].selected=b),b&&p&&(a[u].defaultSelected=!0)}else{for(u=""+wr(u),s=null,b=0;b<a.length;b++){if(a[b].value===u){a[b].selected=!0,p&&(a[b].defaultSelected=!0);return}s!==null||a[b].disabled||(s=a[b])}s!==null&&(s.selected=!0)}}function FE(a,s,u){if(s!=null&&(s=""+wr(s),s!==a.value&&(a.value=s),u==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=u!=null?""+wr(u):""}function BE(a,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(n(92));if(ae(p)){if(1<p.length)throw Error(n(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=wr(s),a.defaultValue=u,p=a.textContent,p===u&&p!==""&&p!==null&&(a.value=p),Av(a)}function kl(a,s){if(s){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=s;return}}a.textContent=s}var y4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zE(a,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":p?a.setProperty(s,u):typeof u!="number"||u===0||y4.has(s)?s==="float"?a.cssFloat=u:a[s]=(""+u).trim():a[s]=u+"px"}function jE(a,s,u){if(s!=null&&typeof s!="object")throw Error(n(62));if(a=a.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="");for(var b in s)p=s[b],s.hasOwnProperty(b)&&u[b]!==p&&zE(a,b,p)}else for(var C in s)s.hasOwnProperty(C)&&zE(a,C,s[C])}function Ov(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var S4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Um(a){return _4.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function La(){}var Iv=null;function Mv(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Dl=null,Ol=null;function UE(a){var s=Tl(a);if(s&&(a=s.stateNode)){var u=a[$n]||null;e:switch(a=s.stateNode,s.type){case"input":if(kv(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Er(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==a&&p.form===a.form){var b=p[$n]||null;if(!b)throw Error(n(90));kv(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===a.form&&LE(p)}break e;case"textarea":FE(a,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Al(a,!!u.multiple,s,!1)}}}var Lv=!1;function $E(a,s,u){if(Lv)return a(s,u);Lv=!0;try{var p=a(s);return p}finally{if(Lv=!1,(Dl!==null||Ol!==null)&&(Af(),Dl&&(s=Dl,a=Ol,Ol=Dl=null,UE(s),a)))for(s=0;s<a.length;s++)UE(a[s])}}function fu(a,s){var u=a.stateNode;if(u===null)return null;var p=u[$n]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(n(231,s,typeof u));return u}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nv=!1;if(Na)try{var hu={};Object.defineProperty(hu,"passive",{get:function(){Nv=!0}}),window.addEventListener("test",hu,hu),window.removeEventListener("test",hu,hu)}catch{Nv=!1}var _i=null,Fv=null,$m=null;function qE(){if($m)return $m;var a,s=Fv,u=s.length,p,b="value"in _i?_i.value:_i.textContent,C=b.length;for(a=0;a<u&&s[a]===b[a];a++);var I=u-a;for(p=1;p<=I&&s[u-p]===b[C-p];p++);return $m=b.slice(a,1<p?1-p:void 0)}function qm(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function Vm(){return!0}function VE(){return!1}function qn(a){function s(u,p,b,C,I){this._reactName=u,this._targetInst=b,this.type=p,this.nativeEvent=C,this.target=I,this.currentTarget=null;for(var B in a)a.hasOwnProperty(B)&&(u=a[B],this[B]=u?u(C):C[B]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Vm:VE,this.isPropagationStopped=VE,this}return f(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Vm)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Vm)},persist:function(){},isPersistent:Vm}),s}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hm=qn(Ps),pu=f({},Ps,{view:0,detail:0}),C4=qn(pu),Bv,zv,gu,Gm=f({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uv,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gu&&(gu&&a.type==="mousemove"?(Bv=a.screenX-gu.screenX,zv=a.screenY-gu.screenY):zv=Bv=0,gu=a),Bv)},movementY:function(a){return"movementY"in a?a.movementY:zv}}),HE=qn(Gm),w4=f({},Gm,{dataTransfer:0}),E4=qn(w4),x4=f({},pu,{relatedTarget:0}),jv=qn(x4),T4=f({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),P4=qn(T4),R4=f({},Ps,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),A4=qn(R4),k4=f({},Ps,{data:0}),GE=qn(k4),D4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},I4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M4(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=I4[a])?!!s[a]:!1}function Uv(){return M4}var L4=f({},pu,{key:function(a){if(a.key){var s=D4[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=qm(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?O4[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uv,charCode:function(a){return a.type==="keypress"?qm(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?qm(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),N4=qn(L4),F4=f({},Gm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KE=qn(F4),B4=f({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uv}),z4=qn(B4),j4=f({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),U4=qn(j4),$4=f({},Gm,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),q4=qn($4),V4=f({},Ps,{newState:0,oldState:0}),H4=qn(V4),G4=[9,13,27,32],$v=Na&&"CompositionEvent"in window,vu=null;Na&&"documentMode"in document&&(vu=document.documentMode);var K4=Na&&"TextEvent"in window&&!vu,WE=Na&&(!$v||vu&&8<vu&&11>=vu),YE=" ",ZE=!1;function QE(a,s){switch(a){case"keyup":return G4.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JE(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Il=!1;function W4(a,s){switch(a){case"compositionend":return JE(s);case"keypress":return s.which!==32?null:(ZE=!0,YE);case"textInput":return a=s.data,a===YE&&ZE?null:a;default:return null}}function Y4(a,s){if(Il)return a==="compositionend"||!$v&&QE(a,s)?(a=qE(),$m=Fv=_i=null,Il=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return WE&&s.locale!=="ko"?null:s.data;default:return null}}var Z4={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function XE(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!Z4[a.type]:s==="textarea"}function ex(a,s,u,p){Dl?Ol?Ol.push(p):Ol=[p]:Dl=p,s=Nf(s,"onChange"),0<s.length&&(u=new Hm("onChange","change",null,u,p),a.push({event:u,listeners:s}))}var bu=null,yu=null;function Q4(a){NP(a,0)}function Km(a){var s=mu(a);if(LE(s))return a}function tx(a,s){if(a==="change")return s}var ox=!1;if(Na){var qv;if(Na){var Vv="oninput"in document;if(!Vv){var nx=document.createElement("div");nx.setAttribute("oninput","return;"),Vv=typeof nx.oninput=="function"}qv=Vv}else qv=!1;ox=qv&&(!document.documentMode||9<document.documentMode)}function rx(){bu&&(bu.detachEvent("onpropertychange",ax),yu=bu=null)}function ax(a){if(a.propertyName==="value"&&Km(yu)){var s=[];ex(s,yu,a,Mv(a)),$E(Q4,s)}}function J4(a,s,u){a==="focusin"?(rx(),bu=s,yu=u,bu.attachEvent("onpropertychange",ax)):a==="focusout"&&rx()}function X4(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Km(yu)}function e5(a,s){if(a==="click")return Km(s)}function t5(a,s){if(a==="input"||a==="change")return Km(s)}function o5(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var or=typeof Object.is=="function"?Object.is:o5;function Su(a,s){if(or(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var u=Object.keys(a),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var b=u[p];if(!$e.call(s,b)||!or(a[b],s[b]))return!1}return!0}function ix(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function sx(a,s){var u=ix(a);a=0;for(var p;u;){if(u.nodeType===3){if(p=a+u.textContent.length,a<=s&&p>=s)return{node:u,offset:s-a};a=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ix(u)}}function lx(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?lx(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function cx(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=jm(a.document);s instanceof a.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)a=s.contentWindow;else break;s=jm(a.document)}return s}function Hv(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}var n5=Na&&"documentMode"in document&&11>=document.documentMode,Ml=null,Gv=null,_u=null,Kv=!1;function ux(a,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Kv||Ml==null||Ml!==jm(p)||(p=Ml,"selectionStart"in p&&Hv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),_u&&Su(_u,p)||(_u=p,p=Nf(Gv,"onSelect"),0<p.length&&(s=new Hm("onSelect","select",null,s,u),a.push({event:s,listeners:p}),s.target=Ml)))}function Rs(a,s){var u={};return u[a.toLowerCase()]=s.toLowerCase(),u["Webkit"+a]="webkit"+s,u["Moz"+a]="moz"+s,u}var Ll={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionrun:Rs("Transition","TransitionRun"),transitionstart:Rs("Transition","TransitionStart"),transitioncancel:Rs("Transition","TransitionCancel"),transitionend:Rs("Transition","TransitionEnd")},Wv={},dx={};Na&&(dx=document.createElement("div").style,"AnimationEvent"in window||(delete Ll.animationend.animation,delete Ll.animationiteration.animation,delete Ll.animationstart.animation),"TransitionEvent"in window||delete Ll.transitionend.transition);function As(a){if(Wv[a])return Wv[a];if(!Ll[a])return a;var s=Ll[a],u;for(u in s)if(s.hasOwnProperty(u)&&u in dx)return Wv[a]=s[u];return a}var mx=As("animationend"),fx=As("animationiteration"),hx=As("animationstart"),r5=As("transitionrun"),a5=As("transitionstart"),i5=As("transitioncancel"),px=As("transitionend"),gx=new Map,Yv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yv.push("scrollEnd");function Wr(a,s){gx.set(a,s),Ts(s,[a])}var Wm=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},xr=[],Nl=0,Zv=0;function Ym(){for(var a=Nl,s=Zv=Nl=0;s<a;){var u=xr[s];xr[s++]=null;var p=xr[s];xr[s++]=null;var b=xr[s];xr[s++]=null;var C=xr[s];if(xr[s++]=null,p!==null&&b!==null){var I=p.pending;I===null?b.next=b:(b.next=I.next,I.next=b),p.pending=b}C!==0&&vx(u,b,C)}}function Zm(a,s,u,p){xr[Nl++]=a,xr[Nl++]=s,xr[Nl++]=u,xr[Nl++]=p,Zv|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function Qv(a,s,u,p){return Zm(a,s,u,p),Qm(a)}function ks(a,s){return Zm(a,null,null,s),Qm(a)}function vx(a,s,u){a.lanes|=u;var p=a.alternate;p!==null&&(p.lanes|=u);for(var b=!1,C=a.return;C!==null;)C.childLanes|=u,p=C.alternate,p!==null&&(p.childLanes|=u),C.tag===22&&(a=C.stateNode,a===null||a._visibility&1||(b=!0)),a=C,C=C.return;return a.tag===3?(C=a.stateNode,b&&s!==null&&(b=31-No(u),a=C.hiddenUpdates,p=a[b],p===null?a[b]=[s]:p.push(s),s.lane=u|536870912),C):null}function Qm(a){if(50<qu)throw qu=0,iy=null,Error(n(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var Fl={};function s5(a,s,u,p){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nr(a,s,u,p){return new s5(a,s,u,p)}function Jv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Fa(a,s){var u=a.alternate;return u===null?(u=nr(a.tag,s,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=s,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,s=a.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function bx(a,s){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,s=u.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function Jm(a,s,u,p,b,C){var I=0;if(p=a,typeof a=="function")Jv(a)&&(I=1);else if(typeof a=="string")I=m6(a,u,L.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case N:return a=nr(31,u,s,b),a.elementType=N,a.lanes=C,a;case S:return Ds(u.children,b,C,s);case E:I=8,b|=24;break;case _:return a=nr(12,u,s,b|2),a.elementType=_,a.lanes=C,a;case T:return a=nr(13,u,s,b),a.elementType=T,a.lanes=C,a;case A:return a=nr(19,u,s,b),a.elementType=A,a.lanes=C,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case P:I=10;break e;case w:I=9;break e;case x:I=11;break e;case k:I=14;break e;case O:I=16,p=null;break e}I=29,u=Error(n(130,a===null?"null":typeof a,"")),p=null}return s=nr(I,u,s,b),s.elementType=a,s.type=p,s.lanes=C,s}function Ds(a,s,u,p){return a=nr(7,a,p,s),a.lanes=u,a}function Xv(a,s,u){return a=nr(6,a,null,s),a.lanes=u,a}function yx(a){var s=nr(18,null,null,0);return s.stateNode=a,s}function eb(a,s,u){return s=nr(4,a.children!==null?a.children:[],a.key,s),s.lanes=u,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}var Sx=new WeakMap;function Tr(a,s){if(typeof a=="object"&&a!==null){var u=Sx.get(a);return u!==void 0?u:(s={value:a,source:s,stack:nt(s)},Sx.set(a,s),s)}return{value:a,source:s,stack:nt(s)}}var Bl=[],zl=0,Xm=null,Cu=0,Pr=[],Rr=0,Ci=null,ua=1,da="";function Ba(a,s){Bl[zl++]=Cu,Bl[zl++]=Xm,Xm=a,Cu=s}function _x(a,s,u){Pr[Rr++]=ua,Pr[Rr++]=da,Pr[Rr++]=Ci,Ci=a;var p=ua;a=da;var b=32-No(p)-1;p&=~(1<<b),u+=1;var C=32-No(s)+b;if(30<C){var I=b-b%5;C=(p&(1<<I)-1).toString(32),p>>=I,b-=I,ua=1<<32-No(s)+b|u<<b|p,da=C+a}else ua=1<<C|u<<b|p,da=a}function tb(a){a.return!==null&&(Ba(a,1),_x(a,1,0))}function ob(a){for(;a===Xm;)Xm=Bl[--zl],Bl[zl]=null,Cu=Bl[--zl],Bl[zl]=null;for(;a===Ci;)Ci=Pr[--Rr],Pr[Rr]=null,da=Pr[--Rr],Pr[Rr]=null,ua=Pr[--Rr],Pr[Rr]=null}function Cx(a,s){Pr[Rr++]=ua,Pr[Rr++]=da,Pr[Rr++]=Ci,ua=s.id,da=s.overflow,Ci=a}var ln=null,io=null,Rt=!1,wi=null,Ar=!1,nb=Error(n(519));function Ei(a){var s=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wu(Tr(s,a)),nb}function wx(a){var s=a.stateNode,u=a.type,p=a.memoizedProps;switch(s[sn]=a,s[$n]=p,u){case"dialog":_t("cancel",s),_t("close",s);break;case"iframe":case"object":case"embed":_t("load",s);break;case"video":case"audio":for(u=0;u<Hu.length;u++)_t(Hu[u],s);break;case"source":_t("error",s);break;case"img":case"image":case"link":_t("error",s),_t("load",s);break;case"details":_t("toggle",s);break;case"input":_t("invalid",s),NE(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":_t("invalid",s);break;case"textarea":_t("invalid",s),BE(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||jP(s.textContent,u)?(p.popover!=null&&(_t("beforetoggle",s),_t("toggle",s)),p.onScroll!=null&&_t("scroll",s),p.onScrollEnd!=null&&_t("scrollend",s),p.onClick!=null&&(s.onclick=La),s=!0):s=!1,s||Ei(a,!0)}function Ex(a){for(ln=a.return;ln;)switch(ln.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:ln=ln.return}}function jl(a){if(a!==ln)return!1;if(!Rt)return Ex(a),Rt=!0,!1;var s=a.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||_y(a.type,a.memoizedProps)),u=!u),u&&io&&Ei(a),Ex(a),s===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));io=YP(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));io=YP(a)}else s===27?(s=io,Bi(a.type)?(a=Ty,Ty=null,io=a):io=s):io=ln?Dr(a.stateNode.nextSibling):null;return!0}function Os(){io=ln=null,Rt=!1}function rb(){var a=wi;return a!==null&&(Kn===null?Kn=a:Kn.push.apply(Kn,a),wi=null),a}function wu(a){wi===null?wi=[a]:wi.push(a)}var ab=M(null),Is=null,za=null;function xi(a,s,u){q(ab,s._currentValue),s._currentValue=u}function ja(a){a._currentValue=ab.current,H(ab)}function ib(a,s,u){for(;a!==null;){var p=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),a===u)break;a=a.return}}function sb(a,s,u,p){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var C=b.dependencies;if(C!==null){var I=b.child;C=C.firstContext;e:for(;C!==null;){var B=C;C=b;for(var X=0;X<s.length;X++)if(B.context===s[X]){C.lanes|=u,B=C.alternate,B!==null&&(B.lanes|=u),ib(C.return,u,a),p||(I=null);break e}C=B.next}}else if(b.tag===18){if(I=b.return,I===null)throw Error(n(341));I.lanes|=u,C=I.alternate,C!==null&&(C.lanes|=u),ib(I,u,a),I=null}else I=b.child;if(I!==null)I.return=b;else for(I=b;I!==null;){if(I===a){I=null;break}if(b=I.sibling,b!==null){b.return=I.return,I=b;break}I=I.return}b=I}}function Ul(a,s,u,p){a=null;for(var b=s,C=!1;b!==null;){if(!C){if((b.flags&524288)!==0)C=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var I=b.alternate;if(I===null)throw Error(n(387));if(I=I.memoizedProps,I!==null){var B=b.type;or(b.pendingProps.value,I.value)||(a!==null?a.push(B):a=[B])}}else if(b===me.current){if(I=b.alternate,I===null)throw Error(n(387));I.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(Zu):a=[Zu])}b=b.return}a!==null&&sb(s,a,u,p),s.flags|=262144}function ef(a){for(a=a.firstContext;a!==null;){if(!or(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ms(a){Is=a,za=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function cn(a){return xx(Is,a)}function tf(a,s){return Is===null&&Ms(a),xx(a,s)}function xx(a,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},za===null){if(a===null)throw Error(n(308));za=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else za=za.next=s;return u}var l5=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(u,p){a.push(p)}};this.abort=function(){s.aborted=!0,a.forEach(function(u){return u()})}},c5=e.unstable_scheduleCallback,u5=e.unstable_NormalPriority,Fo={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lb(){return{controller:new l5,data:new Map,refCount:0}}function Eu(a){a.refCount--,a.refCount===0&&c5(u5,function(){a.controller.abort()})}var xu=null,cb=0,$l=0,ql=null;function d5(a,s){if(xu===null){var u=xu=[];cb=0,$l=my(),ql={status:"pending",value:void 0,then:function(p){u.push(p)}}}return cb++,s.then(Tx,Tx),s}function Tx(){if(--cb===0&&xu!==null){ql!==null&&(ql.status="fulfilled");var a=xu;xu=null,$l=0,ql=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function m5(a,s){var u=[],p={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return a.then(function(){p.status="fulfilled",p.value=s;for(var b=0;b<u.length;b++)(0,u[b])(s)},function(b){for(p.status="rejected",p.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),p}var Px=V.S;V.S=function(a,s){uP=G(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&d5(a,s),Px!==null&&Px(a,s)};var Ls=M(null);function ub(){var a=Ls.current;return a!==null?a:Jt.pooledCache}function of(a,s){s===null?q(Ls,Ls.current):q(Ls,s.pool)}function Rx(){var a=ub();return a===null?null:{parent:Fo._currentValue,pool:a}}var Vl=Error(n(460)),db=Error(n(474)),nf=Error(n(542)),rf={then:function(){}};function Ax(a){return a=a.status,a==="fulfilled"||a==="rejected"}function kx(a,s,u){switch(u=a[u],u===void 0?a.push(s):u!==s&&(s.then(La,La),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,Ox(a),a;default:if(typeof s.status=="string")s.then(La,La);else{if(a=Jt,a!==null&&100<a.shellSuspendCounter)throw Error(n(482));a=s,a.status="pending",a.then(function(p){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=p}},function(p){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,Ox(a),a}throw Fs=s,Vl}}function Ns(a){try{var s=a._init;return s(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Fs=u,Vl):u}}var Fs=null;function Dx(){if(Fs===null)throw Error(n(459));var a=Fs;return Fs=null,a}function Ox(a){if(a===Vl||a===nf)throw Error(n(483))}var Hl=null,Tu=0;function af(a){var s=Tu;return Tu+=1,Hl===null&&(Hl=[]),kx(Hl,a,s)}function Pu(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function sf(a,s){throw s.$$typeof===g?Error(n(525)):(a=Object.prototype.toString.call(s),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function Ix(a){function s(ce,re){if(a){var ue=ce.deletions;ue===null?(ce.deletions=[re],ce.flags|=16):ue.push(re)}}function u(ce,re){if(!a)return null;for(;re!==null;)s(ce,re),re=re.sibling;return null}function p(ce){for(var re=new Map;ce!==null;)ce.key!==null?re.set(ce.key,ce):re.set(ce.index,ce),ce=ce.sibling;return re}function b(ce,re){return ce=Fa(ce,re),ce.index=0,ce.sibling=null,ce}function C(ce,re,ue){return ce.index=ue,a?(ue=ce.alternate,ue!==null?(ue=ue.index,ue<re?(ce.flags|=67108866,re):ue):(ce.flags|=67108866,re)):(ce.flags|=1048576,re)}function I(ce){return a&&ce.alternate===null&&(ce.flags|=67108866),ce}function B(ce,re,ue,Se){return re===null||re.tag!==6?(re=Xv(ue,ce.mode,Se),re.return=ce,re):(re=b(re,ue),re.return=ce,re)}function X(ce,re,ue,Se){var Je=ue.type;return Je===S?ye(ce,re,ue.props.children,Se,ue.key):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===O&&Ns(Je)===re.type)?(re=b(re,ue.props),Pu(re,ue),re.return=ce,re):(re=Jm(ue.type,ue.key,ue.props,null,ce.mode,Se),Pu(re,ue),re.return=ce,re)}function de(ce,re,ue,Se){return re===null||re.tag!==4||re.stateNode.containerInfo!==ue.containerInfo||re.stateNode.implementation!==ue.implementation?(re=eb(ue,ce.mode,Se),re.return=ce,re):(re=b(re,ue.children||[]),re.return=ce,re)}function ye(ce,re,ue,Se,Je){return re===null||re.tag!==7?(re=Ds(ue,ce.mode,Se,Je),re.return=ce,re):(re=b(re,ue),re.return=ce,re)}function Ce(ce,re,ue){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Xv(""+re,ce.mode,ue),re.return=ce,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case v:return ue=Jm(re.type,re.key,re.props,null,ce.mode,ue),Pu(ue,re),ue.return=ce,ue;case y:return re=eb(re,ce.mode,ue),re.return=ce,re;case O:return re=Ns(re),Ce(ce,re,ue)}if(ae(re)||U(re))return re=Ds(re,ce.mode,ue,null),re.return=ce,re;if(typeof re.then=="function")return Ce(ce,af(re),ue);if(re.$$typeof===P)return Ce(ce,tf(ce,re),ue);sf(ce,re)}return null}function fe(ce,re,ue,Se){var Je=re!==null?re.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Je!==null?null:B(ce,re,""+ue,Se);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return ue.key===Je?X(ce,re,ue,Se):null;case y:return ue.key===Je?de(ce,re,ue,Se):null;case O:return ue=Ns(ue),fe(ce,re,ue,Se)}if(ae(ue)||U(ue))return Je!==null?null:ye(ce,re,ue,Se,null);if(typeof ue.then=="function")return fe(ce,re,af(ue),Se);if(ue.$$typeof===P)return fe(ce,re,tf(ce,ue),Se);sf(ce,ue)}return null}function ge(ce,re,ue,Se,Je){if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return ce=ce.get(ue)||null,B(re,ce,""+Se,Je);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case v:return ce=ce.get(Se.key===null?ue:Se.key)||null,X(re,ce,Se,Je);case y:return ce=ce.get(Se.key===null?ue:Se.key)||null,de(re,ce,Se,Je);case O:return Se=Ns(Se),ge(ce,re,ue,Se,Je)}if(ae(Se)||U(Se))return ce=ce.get(ue)||null,ye(re,ce,Se,Je,null);if(typeof Se.then=="function")return ge(ce,re,ue,af(Se),Je);if(Se.$$typeof===P)return ge(ce,re,ue,tf(re,Se),Je);sf(re,Se)}return null}function He(ce,re,ue,Se){for(var Je=null,Lt=null,Ke=re,lt=re=0,xt=null;Ke!==null&&lt<ue.length;lt++){Ke.index>lt?(xt=Ke,Ke=null):xt=Ke.sibling;var Nt=fe(ce,Ke,ue[lt],Se);if(Nt===null){Ke===null&&(Ke=xt);break}a&&Ke&&Nt.alternate===null&&s(ce,Ke),re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt,Ke=xt}if(lt===ue.length)return u(ce,Ke),Rt&&Ba(ce,lt),Je;if(Ke===null){for(;lt<ue.length;lt++)Ke=Ce(ce,ue[lt],Se),Ke!==null&&(re=C(Ke,re,lt),Lt===null?Je=Ke:Lt.sibling=Ke,Lt=Ke);return Rt&&Ba(ce,lt),Je}for(Ke=p(Ke);lt<ue.length;lt++)xt=ge(Ke,ce,lt,ue[lt],Se),xt!==null&&(a&&xt.alternate!==null&&Ke.delete(xt.key===null?lt:xt.key),re=C(xt,re,lt),Lt===null?Je=xt:Lt.sibling=xt,Lt=xt);return a&&Ke.forEach(function(qi){return s(ce,qi)}),Rt&&Ba(ce,lt),Je}function ot(ce,re,ue,Se){if(ue==null)throw Error(n(151));for(var Je=null,Lt=null,Ke=re,lt=re=0,xt=null,Nt=ue.next();Ke!==null&&!Nt.done;lt++,Nt=ue.next()){Ke.index>lt?(xt=Ke,Ke=null):xt=Ke.sibling;var qi=fe(ce,Ke,Nt.value,Se);if(qi===null){Ke===null&&(Ke=xt);break}a&&Ke&&qi.alternate===null&&s(ce,Ke),re=C(qi,re,lt),Lt===null?Je=qi:Lt.sibling=qi,Lt=qi,Ke=xt}if(Nt.done)return u(ce,Ke),Rt&&Ba(ce,lt),Je;if(Ke===null){for(;!Nt.done;lt++,Nt=ue.next())Nt=Ce(ce,Nt.value,Se),Nt!==null&&(re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt);return Rt&&Ba(ce,lt),Je}for(Ke=p(Ke);!Nt.done;lt++,Nt=ue.next())Nt=ge(Ke,ce,lt,Nt.value,Se),Nt!==null&&(a&&Nt.alternate!==null&&Ke.delete(Nt.key===null?lt:Nt.key),re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt);return a&&Ke.forEach(function(w6){return s(ce,w6)}),Rt&&Ba(ce,lt),Je}function Yt(ce,re,ue,Se){if(typeof ue=="object"&&ue!==null&&ue.type===S&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:e:{for(var Je=ue.key;re!==null;){if(re.key===Je){if(Je=ue.type,Je===S){if(re.tag===7){u(ce,re.sibling),Se=b(re,ue.props.children),Se.return=ce,ce=Se;break e}}else if(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===O&&Ns(Je)===re.type){u(ce,re.sibling),Se=b(re,ue.props),Pu(Se,ue),Se.return=ce,ce=Se;break e}u(ce,re);break}else s(ce,re);re=re.sibling}ue.type===S?(Se=Ds(ue.props.children,ce.mode,Se,ue.key),Se.return=ce,ce=Se):(Se=Jm(ue.type,ue.key,ue.props,null,ce.mode,Se),Pu(Se,ue),Se.return=ce,ce=Se)}return I(ce);case y:e:{for(Je=ue.key;re!==null;){if(re.key===Je)if(re.tag===4&&re.stateNode.containerInfo===ue.containerInfo&&re.stateNode.implementation===ue.implementation){u(ce,re.sibling),Se=b(re,ue.children||[]),Se.return=ce,ce=Se;break e}else{u(ce,re);break}else s(ce,re);re=re.sibling}Se=eb(ue,ce.mode,Se),Se.return=ce,ce=Se}return I(ce);case O:return ue=Ns(ue),Yt(ce,re,ue,Se)}if(ae(ue))return He(ce,re,ue,Se);if(U(ue)){if(Je=U(ue),typeof Je!="function")throw Error(n(150));return ue=Je.call(ue),ot(ce,re,ue,Se)}if(typeof ue.then=="function")return Yt(ce,re,af(ue),Se);if(ue.$$typeof===P)return Yt(ce,re,tf(ce,ue),Se);sf(ce,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,re!==null&&re.tag===6?(u(ce,re.sibling),Se=b(re,ue),Se.return=ce,ce=Se):(u(ce,re),Se=Xv(ue,ce.mode,Se),Se.return=ce,ce=Se),I(ce)):u(ce,re)}return function(ce,re,ue,Se){try{Tu=0;var Je=Yt(ce,re,ue,Se);return Hl=null,Je}catch(Ke){if(Ke===Vl||Ke===nf)throw Ke;var Lt=nr(29,Ke,null,ce.mode);return Lt.lanes=Se,Lt.return=ce,Lt}}}var Bs=Ix(!0),Mx=Ix(!1),Ti=!1;function mb(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fb(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Pi(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ri(a,s,u){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(Bt&2)!==0){var b=p.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),p.pending=s,s=Qm(a),vx(a,null,u),s}return Zm(a,p,s,u),Qm(a)}function Ru(a,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=a.pendingLanes,u|=p,s.lanes=u,an(a,u)}}function hb(a,s){var u=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var b=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var I={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};C===null?b=C=I:C=C.next=I,u=u.next}while(u!==null);C===null?b=C=s:C=C.next=s}else b=C=s;u={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:C,shared:p.shared,callbacks:p.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=s:a.next=s,u.lastBaseUpdate=s}var pb=!1;function Au(){if(pb){var a=ql;if(a!==null)throw a}}function ku(a,s,u,p){pb=!1;var b=a.updateQueue;Ti=!1;var C=b.firstBaseUpdate,I=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var X=B,de=X.next;X.next=null,I===null?C=de:I.next=de,I=X;var ye=a.alternate;ye!==null&&(ye=ye.updateQueue,B=ye.lastBaseUpdate,B!==I&&(B===null?ye.firstBaseUpdate=de:B.next=de,ye.lastBaseUpdate=X))}if(C!==null){var Ce=b.baseState;I=0,ye=de=X=null,B=C;do{var fe=B.lane&-536870913,ge=fe!==B.lane;if(ge?(Et&fe)===fe:(p&fe)===fe){fe!==0&&fe===$l&&(pb=!0),ye!==null&&(ye=ye.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var He=a,ot=B;fe=s;var Yt=u;switch(ot.tag){case 1:if(He=ot.payload,typeof He=="function"){Ce=He.call(Yt,Ce,fe);break e}Ce=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=ot.payload,fe=typeof He=="function"?He.call(Yt,Ce,fe):He,fe==null)break e;Ce=f({},Ce,fe);break e;case 2:Ti=!0}}fe=B.callback,fe!==null&&(a.flags|=64,ge&&(a.flags|=8192),ge=b.callbacks,ge===null?b.callbacks=[fe]:ge.push(fe))}else ge={lane:fe,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ye===null?(de=ye=ge,X=Ce):ye=ye.next=ge,I|=fe;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;ge=B,B=ge.next,ge.next=null,b.lastBaseUpdate=ge,b.shared.pending=null}}while(!0);ye===null&&(X=Ce),b.baseState=X,b.firstBaseUpdate=de,b.lastBaseUpdate=ye,C===null&&(b.shared.lanes=0),Ii|=I,a.lanes=I,a.memoizedState=Ce}}function Lx(a,s){if(typeof a!="function")throw Error(n(191,a));a.call(s)}function Nx(a,s){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)Lx(u[a],s)}var Gl=M(null),lf=M(0);function Fx(a,s){a=Ya,q(lf,a),q(Gl,s),Ya=a|s.baseLanes}function gb(){q(lf,Ya),q(Gl,Gl.current)}function vb(){Ya=lf.current,H(Gl),H(lf)}var rr=M(null),kr=null;function Ai(a){var s=a.alternate;q(To,To.current&1),q(rr,a),kr===null&&(s===null||Gl.current!==null||s.memoizedState!==null)&&(kr=a)}function bb(a){q(To,To.current),q(rr,a),kr===null&&(kr=a)}function Bx(a){a.tag===22?(q(To,To.current),q(rr,a),kr===null&&(kr=a)):ki()}function ki(){q(To,To.current),q(rr,rr.current)}function ar(a){H(rr),kr===a&&(kr=null),H(To)}var To=M(0);function cf(a){for(var s=a;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Ey(u)||xy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ua=0,st=null,Kt=null,Bo=null,uf=!1,Kl=!1,zs=!1,df=0,Du=0,Wl=null,f5=0;function wo(){throw Error(n(321))}function yb(a,s){if(s===null)return!1;for(var u=0;u<s.length&&u<a.length;u++)if(!or(a[u],s[u]))return!1;return!0}function Sb(a,s,u,p,b,C){return Ua=C,st=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,V.H=a===null||a.memoizedState===null?_T:Lb,zs=!1,C=u(p,b),zs=!1,Kl&&(C=jx(s,u,p,b)),zx(a),C}function zx(a){V.H=Mu;var s=Kt!==null&&Kt.next!==null;if(Ua=0,Bo=Kt=st=null,uf=!1,Du=0,Wl=null,s)throw Error(n(300));a===null||zo||(a=a.dependencies,a!==null&&ef(a)&&(zo=!0))}function jx(a,s,u,p){st=a;var b=0;do{if(Kl&&(Wl=null),Du=0,Kl=!1,25<=b)throw Error(n(301));if(b+=1,Bo=Kt=null,a.updateQueue!=null){var C=a.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}V.H=CT,C=s(u,p)}while(Kl);return C}function h5(){var a=V.H,s=a.useState()[0];return s=typeof s.then=="function"?Ou(s):s,a=a.useState()[0],(Kt!==null?Kt.memoizedState:null)!==a&&(st.flags|=1024),s}function _b(){var a=df!==0;return df=0,a}function Cb(a,s,u){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~u}function wb(a){if(uf){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}uf=!1}Ua=0,Bo=Kt=st=null,Kl=!1,Du=df=0,Wl=null}function In(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?st.memoizedState=Bo=a:Bo=Bo.next=a,Bo}function Po(){if(Kt===null){var a=st.alternate;a=a!==null?a.memoizedState:null}else a=Kt.next;var s=Bo===null?st.memoizedState:Bo.next;if(s!==null)Bo=s,Kt=a;else{if(a===null)throw st.alternate===null?Error(n(467)):Error(n(310));Kt=a,a={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Bo===null?st.memoizedState=Bo=a:Bo=Bo.next=a}return Bo}function mf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(a){var s=Du;return Du+=1,Wl===null&&(Wl=[]),a=kx(Wl,a,s),s=st,(Bo===null?s.memoizedState:Bo.next)===null&&(s=s.alternate,V.H=s===null||s.memoizedState===null?_T:Lb),a}function ff(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ou(a);if(a.$$typeof===P)return cn(a)}throw Error(n(438,String(a)))}function Eb(a){var s=null,u=st.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=st.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=mf(),st.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(a),p=0;p<a;p++)u[p]=$;return s.index++,u}function $a(a,s){return typeof s=="function"?s(a):s}function hf(a){var s=Po();return xb(s,Kt,a)}function xb(a,s,u){var p=a.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=u;var b=a.baseQueue,C=p.pending;if(C!==null){if(b!==null){var I=b.next;b.next=C.next,C.next=I}s.baseQueue=b=C,p.pending=null}if(C=a.baseState,b===null)a.memoizedState=C;else{s=b.next;var B=I=null,X=null,de=s,ye=!1;do{var Ce=de.lane&-536870913;if(Ce!==de.lane?(Et&Ce)===Ce:(Ua&Ce)===Ce){var fe=de.revertLane;if(fe===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ce===$l&&(ye=!0);else if((Ua&fe)===fe){de=de.next,fe===$l&&(ye=!0);continue}else Ce={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(B=X=Ce,I=C):X=X.next=Ce,st.lanes|=fe,Ii|=fe;Ce=de.action,zs&&u(C,Ce),C=de.hasEagerState?de.eagerState:u(C,Ce)}else fe={lane:Ce,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(B=X=fe,I=C):X=X.next=fe,st.lanes|=Ce,Ii|=Ce;de=de.next}while(de!==null&&de!==s);if(X===null?I=C:X.next=B,!or(C,a.memoizedState)&&(zo=!0,ye&&(u=ql,u!==null)))throw u;a.memoizedState=C,a.baseState=I,a.baseQueue=X,p.lastRenderedState=C}return b===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function Tb(a){var s=Po(),u=s.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=a;var p=u.dispatch,b=u.pending,C=s.memoizedState;if(b!==null){u.pending=null;var I=b=b.next;do C=a(C,I.action),I=I.next;while(I!==b);or(C,s.memoizedState)||(zo=!0),s.memoizedState=C,s.baseQueue===null&&(s.baseState=C),u.lastRenderedState=C}return[C,p]}function Ux(a,s,u){var p=st,b=Po(),C=Rt;if(C){if(u===void 0)throw Error(n(407));u=u()}else u=s();var I=!or((Kt||b).memoizedState,u);if(I&&(b.memoizedState=u,zo=!0),b=b.queue,Ab(Vx.bind(null,p,b,a),[a]),b.getSnapshot!==s||I||Bo!==null&&Bo.memoizedState.tag&1){if(p.flags|=2048,Yl(9,{destroy:void 0},qx.bind(null,p,b,u,s),null),Jt===null)throw Error(n(349));C||(Ua&127)!==0||$x(p,s,u)}return u}function $x(a,s,u){a.flags|=16384,a={getSnapshot:s,value:u},s=st.updateQueue,s===null?(s=mf(),st.updateQueue=s,s.stores=[a]):(u=s.stores,u===null?s.stores=[a]:u.push(a))}function qx(a,s,u,p){s.value=u,s.getSnapshot=p,Hx(s)&&Gx(a)}function Vx(a,s,u){return u(function(){Hx(s)&&Gx(a)})}function Hx(a){var s=a.getSnapshot;a=a.value;try{var u=s();return!or(a,u)}catch{return!0}}function Gx(a){var s=ks(a,2);s!==null&&Wn(s,a,2)}function Pb(a){var s=In();if(typeof a=="function"){var u=a;if(a=u(),zs){yt(!0);try{u()}finally{yt(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:a},s}function Kx(a,s,u,p){return a.baseState=u,xb(a,Kt,typeof p=="function"?p:$a)}function p5(a,s,u,p,b){if(vf(a))throw Error(n(485));if(a=s.action,a!==null){var C={payload:b,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){C.listeners.push(I)}};V.T!==null?u(!0):C.isTransition=!1,p(C),u=s.pending,u===null?(C.next=s.pending=C,Wx(s,C)):(C.next=u.next,s.pending=u.next=C)}}function Wx(a,s){var u=s.action,p=s.payload,b=a.state;if(s.isTransition){var C=V.T,I={};V.T=I;try{var B=u(b,p),X=V.S;X!==null&&X(I,B),Yx(a,s,B)}catch(de){Rb(a,s,de)}finally{C!==null&&I.types!==null&&(C.types=I.types),V.T=C}}else try{C=u(b,p),Yx(a,s,C)}catch(de){Rb(a,s,de)}}function Yx(a,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Zx(a,s,p)},function(p){return Rb(a,s,p)}):Zx(a,s,u)}function Zx(a,s,u){s.status="fulfilled",s.value=u,Qx(s),a.state=u,s=a.pending,s!==null&&(u=s.next,u===s?a.pending=null:(u=u.next,s.next=u,Wx(a,u)))}function Rb(a,s,u){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,Qx(s),s=s.next;while(s!==p)}a.action=null}function Qx(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function Jx(a,s){return s}function Xx(a,s){if(Rt){var u=Jt.formState;if(u!==null){e:{var p=st;if(Rt){if(io){t:{for(var b=io,C=Ar;b.nodeType!==8;){if(!C){b=null;break t}if(b=Dr(b.nextSibling),b===null){b=null;break t}}C=b.data,b=C==="F!"||C==="F"?b:null}if(b){io=Dr(b.nextSibling),p=b.data==="F!";break e}}Ei(p)}p=!1}p&&(s=u[0])}}return u=In(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jx,lastRenderedState:s},u.queue=p,u=bT.bind(null,st,p),p.dispatch=u,p=Pb(!1),C=Mb.bind(null,st,!1,p.queue),p=In(),b={state:s,dispatch:null,action:a,pending:null},p.queue=b,u=p5.bind(null,st,b,C,u),b.dispatch=u,p.memoizedState=a,[s,u,!1]}function eT(a){var s=Po();return tT(s,Kt,a)}function tT(a,s,u){if(s=xb(a,s,Jx)[0],a=hf($a)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=Ou(s)}catch(I){throw I===Vl?nf:I}else p=s;s=Po();var b=s.queue,C=b.dispatch;return u!==s.memoizedState&&(st.flags|=2048,Yl(9,{destroy:void 0},g5.bind(null,b,u),null)),[p,C,a]}function g5(a,s){a.action=s}function oT(a){var s=Po(),u=Kt;if(u!==null)return tT(s,u,a);Po(),s=s.memoizedState,u=Po();var p=u.queue.dispatch;return u.memoizedState=a,[s,p,!1]}function Yl(a,s,u,p){return a={tag:a,create:u,deps:p,inst:s,next:null},s=st.updateQueue,s===null&&(s=mf(),st.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=a.next=a:(p=u.next,u.next=a,a.next=p,s.lastEffect=a),a}function nT(){return Po().memoizedState}function pf(a,s,u,p){var b=In();st.flags|=a,b.memoizedState=Yl(1|s,{destroy:void 0},u,p===void 0?null:p)}function gf(a,s,u,p){var b=Po();p=p===void 0?null:p;var C=b.memoizedState.inst;Kt!==null&&p!==null&&yb(p,Kt.memoizedState.deps)?b.memoizedState=Yl(s,C,u,p):(st.flags|=a,b.memoizedState=Yl(1|s,C,u,p))}function rT(a,s){pf(8390656,8,a,s)}function Ab(a,s){gf(2048,8,a,s)}function v5(a){st.flags|=4;var s=st.updateQueue;if(s===null)s=mf(),st.updateQueue=s,s.events=[a];else{var u=s.events;u===null?s.events=[a]:u.push(a)}}function aT(a){var s=Po().memoizedState;return v5({ref:s,nextImpl:a}),function(){if((Bt&2)!==0)throw Error(n(440));return s.impl.apply(void 0,arguments)}}function iT(a,s){return gf(4,2,a,s)}function sT(a,s){return gf(4,4,a,s)}function lT(a,s){if(typeof s=="function"){a=a();var u=s(a);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function cT(a,s,u){u=u!=null?u.concat([a]):null,gf(4,4,lT.bind(null,s,a),u)}function kb(){}function uT(a,s){var u=Po();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&yb(s,p[1])?p[0]:(u.memoizedState=[a,s],a)}function dT(a,s){var u=Po();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&yb(s,p[1]))return p[0];if(p=a(),zs){yt(!0);try{a()}finally{yt(!1)}}return u.memoizedState=[p,s],p}function Db(a,s,u){return u===void 0||(Ua&1073741824)!==0&&(Et&261930)===0?a.memoizedState=s:(a.memoizedState=u,a=mP(),st.lanes|=a,Ii|=a,u)}function mT(a,s,u,p){return or(u,s)?u:Gl.current!==null?(a=Db(a,u,p),or(a,s)||(zo=!0),a):(Ua&42)===0||(Ua&1073741824)!==0&&(Et&261930)===0?(zo=!0,a.memoizedState=u):(a=mP(),st.lanes|=a,Ii|=a,s)}function fT(a,s,u,p,b){var C=Z.p;Z.p=C!==0&&8>C?C:8;var I=V.T,B={};V.T=B,Mb(a,!1,s,u);try{var X=b(),de=V.S;if(de!==null&&de(B,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var ye=m5(X,p);Iu(a,s,ye,lr(a))}else Iu(a,s,p,lr(a))}catch(Ce){Iu(a,s,{then:function(){},status:"rejected",reason:Ce},lr())}finally{Z.p=C,I!==null&&B.types!==null&&(I.types=B.types),V.T=I}}function b5(){}function Ob(a,s,u,p){if(a.tag!==5)throw Error(n(476));var b=hT(a).queue;fT(a,b,s,te,u===null?b5:function(){return pT(a),u(p)})}function hT(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:te},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:u},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function pT(a){var s=hT(a);s.next===null&&(s=a.alternate.memoizedState),Iu(a,s.next.queue,{},lr())}function Ib(){return cn(Zu)}function gT(){return Po().memoizedState}function vT(){return Po().memoizedState}function y5(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var u=lr();a=Pi(u);var p=Ri(s,a,u);p!==null&&(Wn(p,s,u),Ru(p,s,u)),s={cache:lb()},a.payload=s;return}s=s.return}}function S5(a,s,u){var p=lr();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},vf(a)?yT(s,u):(u=Qv(a,s,u,p),u!==null&&(Wn(u,a,p),ST(u,s,p)))}function bT(a,s,u){var p=lr();Iu(a,s,u,p)}function Iu(a,s,u,p){var b={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(vf(a))yT(s,b);else{var C=a.alternate;if(a.lanes===0&&(C===null||C.lanes===0)&&(C=s.lastRenderedReducer,C!==null))try{var I=s.lastRenderedState,B=C(I,u);if(b.hasEagerState=!0,b.eagerState=B,or(B,I))return Zm(a,s,b,0),Jt===null&&Ym(),!1}catch{}if(u=Qv(a,s,b,p),u!==null)return Wn(u,a,p),ST(u,s,p),!0}return!1}function Mb(a,s,u,p){if(p={lane:2,revertLane:my(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},vf(a)){if(s)throw Error(n(479))}else s=Qv(a,u,p,2),s!==null&&Wn(s,a,2)}function vf(a){var s=a.alternate;return a===st||s!==null&&s===st}function yT(a,s){Kl=uf=!0;var u=a.pending;u===null?s.next=s:(s.next=u.next,u.next=s),a.pending=s}function ST(a,s,u){if((u&4194048)!==0){var p=s.lanes;p&=a.pendingLanes,u|=p,s.lanes=u,an(a,u)}}var Mu={readContext:cn,use:ff,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo};Mu.useEffectEvent=wo;var _T={readContext:cn,use:ff,useCallback:function(a,s){return In().memoizedState=[a,s===void 0?null:s],a},useContext:cn,useEffect:rT,useImperativeHandle:function(a,s,u){u=u!=null?u.concat([a]):null,pf(4194308,4,lT.bind(null,s,a),u)},useLayoutEffect:function(a,s){return pf(4194308,4,a,s)},useInsertionEffect:function(a,s){pf(4,2,a,s)},useMemo:function(a,s){var u=In();s=s===void 0?null:s;var p=a();if(zs){yt(!0);try{a()}finally{yt(!1)}}return u.memoizedState=[p,s],p},useReducer:function(a,s,u){var p=In();if(u!==void 0){var b=u(s);if(zs){yt(!0);try{u(s)}finally{yt(!1)}}}else b=s;return p.memoizedState=p.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},p.queue=a,a=a.dispatch=S5.bind(null,st,a),[p.memoizedState,a]},useRef:function(a){var s=In();return a={current:a},s.memoizedState=a},useState:function(a){a=Pb(a);var s=a.queue,u=bT.bind(null,st,s);return s.dispatch=u,[a.memoizedState,u]},useDebugValue:kb,useDeferredValue:function(a,s){var u=In();return Db(u,a,s)},useTransition:function(){var a=Pb(!1);return a=fT.bind(null,st,a.queue,!0,!1),In().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,u){var p=st,b=In();if(Rt){if(u===void 0)throw Error(n(407));u=u()}else{if(u=s(),Jt===null)throw Error(n(349));(Et&127)!==0||$x(p,s,u)}b.memoizedState=u;var C={value:u,getSnapshot:s};return b.queue=C,rT(Vx.bind(null,p,C,a),[a]),p.flags|=2048,Yl(9,{destroy:void 0},qx.bind(null,p,C,u,s),null),u},useId:function(){var a=In(),s=Jt.identifierPrefix;if(Rt){var u=da,p=ua;u=(p&~(1<<32-No(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=df++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=f5++,s="_"+s+"r_"+u.toString(32)+"_";return a.memoizedState=s},useHostTransitionStatus:Ib,useFormState:Xx,useActionState:Xx,useOptimistic:function(a){var s=In();s.memoizedState=s.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Mb.bind(null,st,!0,u),u.dispatch=s,[a,s]},useMemoCache:Eb,useCacheRefresh:function(){return In().memoizedState=y5.bind(null,st)},useEffectEvent:function(a){var s=In(),u={impl:a};return s.memoizedState=u,function(){if((Bt&2)!==0)throw Error(n(440));return u.impl.apply(void 0,arguments)}}},Lb={readContext:cn,use:ff,useCallback:uT,useContext:cn,useEffect:Ab,useImperativeHandle:cT,useInsertionEffect:iT,useLayoutEffect:sT,useMemo:dT,useReducer:hf,useRef:nT,useState:function(){return hf($a)},useDebugValue:kb,useDeferredValue:function(a,s){var u=Po();return mT(u,Kt.memoizedState,a,s)},useTransition:function(){var a=hf($a)[0],s=Po().memoizedState;return[typeof a=="boolean"?a:Ou(a),s]},useSyncExternalStore:Ux,useId:gT,useHostTransitionStatus:Ib,useFormState:eT,useActionState:eT,useOptimistic:function(a,s){var u=Po();return Kx(u,Kt,a,s)},useMemoCache:Eb,useCacheRefresh:vT};Lb.useEffectEvent=aT;var CT={readContext:cn,use:ff,useCallback:uT,useContext:cn,useEffect:Ab,useImperativeHandle:cT,useInsertionEffect:iT,useLayoutEffect:sT,useMemo:dT,useReducer:Tb,useRef:nT,useState:function(){return Tb($a)},useDebugValue:kb,useDeferredValue:function(a,s){var u=Po();return Kt===null?Db(u,a,s):mT(u,Kt.memoizedState,a,s)},useTransition:function(){var a=Tb($a)[0],s=Po().memoizedState;return[typeof a=="boolean"?a:Ou(a),s]},useSyncExternalStore:Ux,useId:gT,useHostTransitionStatus:Ib,useFormState:oT,useActionState:oT,useOptimistic:function(a,s){var u=Po();return Kt!==null?Kx(u,Kt,a,s):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Eb,useCacheRefresh:vT};CT.useEffectEvent=aT;function Nb(a,s,u,p){s=a.memoizedState,u=u(p,s),u=u==null?s:f({},s,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Fb={enqueueSetState:function(a,s,u){a=a._reactInternals;var p=lr(),b=Pi(p);b.payload=s,u!=null&&(b.callback=u),s=Ri(a,b,p),s!==null&&(Wn(s,a,p),Ru(s,a,p))},enqueueReplaceState:function(a,s,u){a=a._reactInternals;var p=lr(),b=Pi(p);b.tag=1,b.payload=s,u!=null&&(b.callback=u),s=Ri(a,b,p),s!==null&&(Wn(s,a,p),Ru(s,a,p))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var u=lr(),p=Pi(u);p.tag=2,s!=null&&(p.callback=s),s=Ri(a,p,u),s!==null&&(Wn(s,a,u),Ru(s,a,u))}};function wT(a,s,u,p,b,C,I){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,C,I):s.prototype&&s.prototype.isPureReactComponent?!Su(u,p)||!Su(b,C):!0}function ET(a,s,u,p){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==a&&Fb.enqueueReplaceState(s,s.state,null)}function js(a,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(a=a.defaultProps){u===s&&(u=f({},u));for(var b in a)u[b]===void 0&&(u[b]=a[b])}return u}function xT(a){Wm(a)}function TT(a){console.error(a)}function PT(a){Wm(a)}function bf(a,s){try{var u=a.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function RT(a,s,u){try{var p=a.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Bb(a,s,u){return u=Pi(u),u.tag=3,u.payload={element:null},u.callback=function(){bf(a,s)},u}function AT(a){return a=Pi(a),a.tag=3,a}function kT(a,s,u,p){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var C=p.value;a.payload=function(){return b(C)},a.callback=function(){RT(s,u,p)}}var I=u.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(a.callback=function(){RT(s,u,p),typeof b!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var B=p.stack;this.componentDidCatch(p.value,{componentStack:B!==null?B:""})})}function _5(a,s,u,p,b){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&Ul(s,u,b,!0),u=rr.current,u!==null){switch(u.tag){case 31:case 13:return kr===null?kf():u.alternate===null&&Eo===0&&(Eo=3),u.flags&=-257,u.flags|=65536,u.lanes=b,p===rf?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),cy(a,p,b)),!1;case 22:return u.flags|=65536,p===rf?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),cy(a,p,b)),!1}throw Error(n(435,u.tag))}return cy(a,p,b),kf(),!1}if(Rt)return s=rr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,p!==nb&&(a=Error(n(422),{cause:p}),wu(Tr(a,u)))):(p!==nb&&(s=Error(n(423),{cause:p}),wu(Tr(s,u))),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,p=Tr(p,u),b=Bb(a.stateNode,p,b),hb(a,b),Eo!==4&&(Eo=2)),!1;var C=Error(n(520),{cause:p});if(C=Tr(C,u),$u===null?$u=[C]:$u.push(C),Eo!==4&&(Eo=2),s===null)return!0;p=Tr(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,a=b&-b,u.lanes|=a,a=Bb(u.stateNode,p,a),hb(u,a),!1;case 1:if(s=u.type,C=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Mi===null||!Mi.has(C))))return u.flags|=65536,b&=-b,u.lanes|=b,b=AT(b),kT(b,a,u,p),hb(u,b),!1}u=u.return}while(u!==null);return!1}var zb=Error(n(461)),zo=!1;function un(a,s,u,p){s.child=a===null?Mx(s,null,u,p):Bs(s,a.child,u,p)}function DT(a,s,u,p,b){u=u.render;var C=s.ref;if("ref"in p){var I={};for(var B in p)B!=="ref"&&(I[B]=p[B])}else I=p;return Ms(s),p=Sb(a,s,u,I,C,b),B=_b(),a!==null&&!zo?(Cb(a,s,b),qa(a,s,b)):(Rt&&B&&tb(s),s.flags|=1,un(a,s,p,b),s.child)}function OT(a,s,u,p,b){if(a===null){var C=u.type;return typeof C=="function"&&!Jv(C)&&C.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=C,IT(a,s,C,p,b)):(a=Jm(u.type,null,p,s,s.mode,b),a.ref=s.ref,a.return=s,s.child=a)}if(C=a.child,!Kb(a,b)){var I=C.memoizedProps;if(u=u.compare,u=u!==null?u:Su,u(I,p)&&a.ref===s.ref)return qa(a,s,b)}return s.flags|=1,a=Fa(C,p),a.ref=s.ref,a.return=s,s.child=a}function IT(a,s,u,p,b){if(a!==null){var C=a.memoizedProps;if(Su(C,p)&&a.ref===s.ref)if(zo=!1,s.pendingProps=p=C,Kb(a,b))(a.flags&131072)!==0&&(zo=!0);else return s.lanes=a.lanes,qa(a,s,b)}return jb(a,s,u,p,b)}function MT(a,s,u,p){var b=p.children,C=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(C=C!==null?C.baseLanes|u:u,a!==null){for(p=s.child=a.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~C}else p=0,s.child=null;return LT(a,s,C,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&of(s,C!==null?C.cachePool:null),C!==null?Fx(s,C):gb(),Bx(s);else return p=s.lanes=536870912,LT(a,s,C!==null?C.baseLanes|u:u,u,p)}else C!==null?(of(s,C.cachePool),Fx(s,C),ki(),s.memoizedState=null):(a!==null&&of(s,null),gb(),ki());return un(a,s,b,u),s.child}function Lu(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function LT(a,s,u,p,b){var C=ub();return C=C===null?null:{parent:Fo._currentValue,pool:C},s.memoizedState={baseLanes:u,cachePool:C},a!==null&&of(s,null),gb(),Bx(s),a!==null&&Ul(a,s,p,!0),s.childLanes=b,null}function yf(a,s){return s=_f({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}function NT(a,s,u){return Bs(s,a.child,null,u),a=yf(s,s.pendingProps),a.flags|=2,ar(s),s.memoizedState=null,a}function C5(a,s,u){var p=s.pendingProps,b=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(Rt){if(p.mode==="hidden")return a=yf(s,p),s.lanes=536870912,Lu(null,a);if(bb(s),(a=io)?(a=WP(a,Ar),a=a!==null&&a.data==="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:ua,overflow:da}:null,retryLane:536870912,hydrationErrors:null},u=yx(a),u.return=s,s.child=u,ln=s,io=null)):a=null,a===null)throw Ei(s);return s.lanes=536870912,null}return yf(s,p)}var C=a.memoizedState;if(C!==null){var I=C.dehydrated;if(bb(s),b)if(s.flags&256)s.flags&=-257,s=NT(a,s,u);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(n(558));else if(zo||Ul(a,s,u,!1),b=(u&a.childLanes)!==0,zo||b){if(p=Jt,p!==null&&(I=Un(p,u),I!==0&&I!==C.retryLane))throw C.retryLane=I,ks(a,I),Wn(p,a,I),zb;kf(),s=NT(a,s,u)}else a=C.treeContext,io=Dr(I.nextSibling),ln=s,Rt=!0,wi=null,Ar=!1,a!==null&&Cx(s,a),s=yf(s,p),s.flags|=4096;return s}return a=Fa(a.child,{mode:p.mode,children:p.children}),a.ref=s.ref,s.child=a,a.return=s,a}function Sf(a,s){var u=s.ref;if(u===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(n(284));(a===null||a.ref!==u)&&(s.flags|=4194816)}}function jb(a,s,u,p,b){return Ms(s),u=Sb(a,s,u,p,void 0,b),p=_b(),a!==null&&!zo?(Cb(a,s,b),qa(a,s,b)):(Rt&&p&&tb(s),s.flags|=1,un(a,s,u,b),s.child)}function FT(a,s,u,p,b,C){return Ms(s),s.updateQueue=null,u=jx(s,p,u,b),zx(a),p=_b(),a!==null&&!zo?(Cb(a,s,C),qa(a,s,C)):(Rt&&p&&tb(s),s.flags|=1,un(a,s,u,C),s.child)}function BT(a,s,u,p,b){if(Ms(s),s.stateNode===null){var C=Fl,I=u.contextType;typeof I=="object"&&I!==null&&(C=cn(I)),C=new u(p,C),s.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Fb,s.stateNode=C,C._reactInternals=s,C=s.stateNode,C.props=p,C.state=s.memoizedState,C.refs={},mb(s),I=u.contextType,C.context=typeof I=="object"&&I!==null?cn(I):Fl,C.state=s.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(Nb(s,u,I,p),C.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(I=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),I!==C.state&&Fb.enqueueReplaceState(C,C.state,null),ku(s,p,C,b),Au(),C.state=s.memoizedState),typeof C.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(a===null){C=s.stateNode;var B=s.memoizedProps,X=js(u,B);C.props=X;var de=C.context,ye=u.contextType;I=Fl,typeof ye=="object"&&ye!==null&&(I=cn(ye));var Ce=u.getDerivedStateFromProps;ye=typeof Ce=="function"||typeof C.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ye||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(B||de!==I)&&ET(s,C,p,I),Ti=!1;var fe=s.memoizedState;C.state=fe,ku(s,p,C,b),Au(),de=s.memoizedState,B||fe!==de||Ti?(typeof Ce=="function"&&(Nb(s,u,Ce,p),de=s.memoizedState),(X=Ti||wT(s,u,X,p,fe,de,I))?(ye||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(s.flags|=4194308)):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=de),C.props=p,C.state=de,C.context=I,p=X):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{C=s.stateNode,fb(a,s),I=s.memoizedProps,ye=js(u,I),C.props=ye,Ce=s.pendingProps,fe=C.context,de=u.contextType,X=Fl,typeof de=="object"&&de!==null&&(X=cn(de)),B=u.getDerivedStateFromProps,(de=typeof B=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==Ce||fe!==X)&&ET(s,C,p,X),Ti=!1,fe=s.memoizedState,C.state=fe,ku(s,p,C,b),Au();var ge=s.memoizedState;I!==Ce||fe!==ge||Ti||a!==null&&a.dependencies!==null&&ef(a.dependencies)?(typeof B=="function"&&(Nb(s,u,B,p),ge=s.memoizedState),(ye=Ti||wT(s,u,ye,p,fe,ge,X)||a!==null&&a.dependencies!==null&&ef(a.dependencies))?(de||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(p,ge,X),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(p,ge,X)),typeof C.componentDidUpdate=="function"&&(s.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=ge),C.props=p,C.state=ge,C.context=X,p=ye):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=1024),p=!1)}return C=p,Sf(a,s),p=(s.flags&128)!==0,C||p?(C=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:C.render(),s.flags|=1,a!==null&&p?(s.child=Bs(s,a.child,null,b),s.child=Bs(s,null,u,b)):un(a,s,u,b),s.memoizedState=C.state,a=s.child):a=qa(a,s,b),a}function zT(a,s,u,p){return Os(),s.flags|=256,un(a,s,u,p),s.child}var Ub={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $b(a){return{baseLanes:a,cachePool:Rx()}}function qb(a,s,u){return a=a!==null?a.childLanes&~u:0,s&&(a|=sr),a}function jT(a,s,u){var p=s.pendingProps,b=!1,C=(s.flags&128)!==0,I;if((I=C)||(I=a!==null&&a.memoizedState===null?!1:(To.current&2)!==0),I&&(b=!0,s.flags&=-129),I=(s.flags&32)!==0,s.flags&=-33,a===null){if(Rt){if(b?Ai(s):ki(),(a=io)?(a=WP(a,Ar),a=a!==null&&a.data!=="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:ua,overflow:da}:null,retryLane:536870912,hydrationErrors:null},u=yx(a),u.return=s,s.child=u,ln=s,io=null)):a=null,a===null)throw Ei(s);return xy(a)?s.lanes=32:s.lanes=536870912,null}var B=p.children;return p=p.fallback,b?(ki(),b=s.mode,B=_f({mode:"hidden",children:B},b),p=Ds(p,b,u,null),B.return=s,p.return=s,B.sibling=p,s.child=B,p=s.child,p.memoizedState=$b(u),p.childLanes=qb(a,I,u),s.memoizedState=Ub,Lu(null,p)):(Ai(s),Vb(s,B))}var X=a.memoizedState;if(X!==null&&(B=X.dehydrated,B!==null)){if(C)s.flags&256?(Ai(s),s.flags&=-257,s=Hb(a,s,u)):s.memoizedState!==null?(ki(),s.child=a.child,s.flags|=128,s=null):(ki(),B=p.fallback,b=s.mode,p=_f({mode:"visible",children:p.children},b),B=Ds(B,b,u,null),B.flags|=2,p.return=s,B.return=s,p.sibling=B,s.child=p,Bs(s,a.child,null,u),p=s.child,p.memoizedState=$b(u),p.childLanes=qb(a,I,u),s.memoizedState=Ub,s=Lu(null,p));else if(Ai(s),xy(B)){if(I=B.nextSibling&&B.nextSibling.dataset,I)var de=I.dgst;I=de,p=Error(n(419)),p.stack="",p.digest=I,wu({value:p,source:null,stack:null}),s=Hb(a,s,u)}else if(zo||Ul(a,s,u,!1),I=(u&a.childLanes)!==0,zo||I){if(I=Jt,I!==null&&(p=Un(I,u),p!==0&&p!==X.retryLane))throw X.retryLane=p,ks(a,p),Wn(I,a,p),zb;Ey(B)||kf(),s=Hb(a,s,u)}else Ey(B)?(s.flags|=192,s.child=a.child,s=null):(a=X.treeContext,io=Dr(B.nextSibling),ln=s,Rt=!0,wi=null,Ar=!1,a!==null&&Cx(s,a),s=Vb(s,p.children),s.flags|=4096);return s}return b?(ki(),B=p.fallback,b=s.mode,X=a.child,de=X.sibling,p=Fa(X,{mode:"hidden",children:p.children}),p.subtreeFlags=X.subtreeFlags&65011712,de!==null?B=Fa(de,B):(B=Ds(B,b,u,null),B.flags|=2),B.return=s,p.return=s,p.sibling=B,s.child=p,Lu(null,p),p=s.child,B=a.child.memoizedState,B===null?B=$b(u):(b=B.cachePool,b!==null?(X=Fo._currentValue,b=b.parent!==X?{parent:X,pool:X}:b):b=Rx(),B={baseLanes:B.baseLanes|u,cachePool:b}),p.memoizedState=B,p.childLanes=qb(a,I,u),s.memoizedState=Ub,Lu(a.child,p)):(Ai(s),u=a.child,a=u.sibling,u=Fa(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,a!==null&&(I=s.deletions,I===null?(s.deletions=[a],s.flags|=16):I.push(a)),s.child=u,s.memoizedState=null,u)}function Vb(a,s){return s=_f({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function _f(a,s){return a=nr(22,a,null,s),a.lanes=0,a}function Hb(a,s,u){return Bs(s,a.child,null,u),a=Vb(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function UT(a,s,u){a.lanes|=s;var p=a.alternate;p!==null&&(p.lanes|=s),ib(a.return,s,u)}function Gb(a,s,u,p,b,C){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:b,treeForkCount:C}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=u,I.tailMode=b,I.treeForkCount=C)}function $T(a,s,u){var p=s.pendingProps,b=p.revealOrder,C=p.tail;p=p.children;var I=To.current,B=(I&2)!==0;if(B?(I=I&1|2,s.flags|=128):I&=1,q(To,I),un(a,s,p,u),p=Rt?Cu:0,!B&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&UT(a,u,s);else if(a.tag===19)UT(a,u,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(b){case"forwards":for(u=s.child,b=null;u!==null;)a=u.alternate,a!==null&&cf(a)===null&&(b=u),u=u.sibling;u=b,u===null?(b=s.child,s.child=null):(b=u.sibling,u.sibling=null),Gb(s,!1,b,u,C,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=s.child,s.child=null;b!==null;){if(a=b.alternate,a!==null&&cf(a)===null){s.child=b;break}a=b.sibling,b.sibling=u,u=b,b=a}Gb(s,!0,u,null,C,p);break;case"together":Gb(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function qa(a,s,u){if(a!==null&&(s.dependencies=a.dependencies),Ii|=s.lanes,(u&s.childLanes)===0)if(a!==null){if(Ul(a,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(n(153));if(s.child!==null){for(a=s.child,u=Fa(a,a.pendingProps),s.child=u,u.return=s;a.sibling!==null;)a=a.sibling,u=u.sibling=Fa(a,a.pendingProps),u.return=s;u.sibling=null}return s.child}function Kb(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&ef(a)))}function w5(a,s,u){switch(s.tag){case 3:he(s,s.stateNode.containerInfo),xi(s,Fo,a.memoizedState.cache),Os();break;case 27:case 5:Be(s);break;case 4:he(s,s.stateNode.containerInfo);break;case 10:xi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,bb(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Ai(s),s.flags|=128,null):(u&s.child.childLanes)!==0?jT(a,s,u):(Ai(s),a=qa(a,s,u),a!==null?a.sibling:null);Ai(s);break;case 19:var b=(a.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(Ul(a,s,u,!1),p=(u&s.childLanes)!==0),b){if(p)return $T(a,s,u);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),q(To,To.current),p)break;return null;case 22:return s.lanes=0,MT(a,s,u,s.pendingProps);case 24:xi(s,Fo,a.memoizedState.cache)}return qa(a,s,u)}function qT(a,s,u){if(a!==null)if(a.memoizedProps!==s.pendingProps)zo=!0;else{if(!Kb(a,u)&&(s.flags&128)===0)return zo=!1,w5(a,s,u);zo=(a.flags&131072)!==0}else zo=!1,Rt&&(s.flags&1048576)!==0&&_x(s,Cu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(a=Ns(s.elementType),s.type=a,typeof a=="function")Jv(a)?(p=js(a,p),s.tag=1,s=BT(null,s,a,p,u)):(s.tag=0,s=jb(null,s,a,p,u));else{if(a!=null){var b=a.$$typeof;if(b===x){s.tag=11,s=DT(null,s,a,p,u);break e}else if(b===k){s.tag=14,s=OT(null,s,a,p,u);break e}}throw s=K(a)||a,Error(n(306,s,""))}}return s;case 0:return jb(a,s,s.type,s.pendingProps,u);case 1:return p=s.type,b=js(p,s.pendingProps),BT(a,s,p,b,u);case 3:e:{if(he(s,s.stateNode.containerInfo),a===null)throw Error(n(387));p=s.pendingProps;var C=s.memoizedState;b=C.element,fb(a,s),ku(s,p,null,u);var I=s.memoizedState;if(p=I.cache,xi(s,Fo,p),p!==C.cache&&sb(s,[Fo],u,!0),Au(),p=I.element,C.isDehydrated)if(C={element:p,isDehydrated:!1,cache:I.cache},s.updateQueue.baseState=C,s.memoizedState=C,s.flags&256){s=zT(a,s,p,u);break e}else if(p!==b){b=Tr(Error(n(424)),s),wu(b),s=zT(a,s,p,u);break e}else for(a=s.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,io=Dr(a.firstChild),ln=s,Rt=!0,wi=null,Ar=!0,u=Mx(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Os(),p===b){s=qa(a,s,u);break e}un(a,s,p,u)}s=s.child}return s;case 26:return Sf(a,s),a===null?(u=eR(s.type,null,s.pendingProps,null))?s.memoizedState=u:Rt||(u=s.type,a=s.pendingProps,p=Ff(J.current).createElement(u),p[sn]=s,p[$n]=a,dn(p,u,a),en(p),s.stateNode=p):s.memoizedState=eR(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Be(s),a===null&&Rt&&(p=s.stateNode=QP(s.type,s.pendingProps,J.current),ln=s,Ar=!0,b=io,Bi(s.type)?(Ty=b,io=Dr(p.firstChild)):io=b),un(a,s,s.pendingProps.children,u),Sf(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&Rt&&((b=p=io)&&(p=X5(p,s.type,s.pendingProps,Ar),p!==null?(s.stateNode=p,ln=s,io=Dr(p.firstChild),Ar=!1,b=!0):b=!1),b||Ei(s)),Be(s),b=s.type,C=s.pendingProps,I=a!==null?a.memoizedProps:null,p=C.children,_y(b,C)?p=null:I!==null&&_y(b,I)&&(s.flags|=32),s.memoizedState!==null&&(b=Sb(a,s,h5,null,null,u),Zu._currentValue=b),Sf(a,s),un(a,s,p,u),s.child;case 6:return a===null&&Rt&&((a=u=io)&&(u=e6(u,s.pendingProps,Ar),u!==null?(s.stateNode=u,ln=s,io=null,a=!0):a=!1),a||Ei(s)),null;case 13:return jT(a,s,u);case 4:return he(s,s.stateNode.containerInfo),p=s.pendingProps,a===null?s.child=Bs(s,null,p,u):un(a,s,p,u),s.child;case 11:return DT(a,s,s.type,s.pendingProps,u);case 7:return un(a,s,s.pendingProps,u),s.child;case 8:return un(a,s,s.pendingProps.children,u),s.child;case 12:return un(a,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,xi(s,s.type,p.value),un(a,s,p.children,u),s.child;case 9:return b=s.type._context,p=s.pendingProps.children,Ms(s),b=cn(b),p=p(b),s.flags|=1,un(a,s,p,u),s.child;case 14:return OT(a,s,s.type,s.pendingProps,u);case 15:return IT(a,s,s.type,s.pendingProps,u);case 19:return $T(a,s,u);case 31:return C5(a,s,u);case 22:return MT(a,s,u,s.pendingProps);case 24:return Ms(s),p=cn(Fo),a===null?(b=ub(),b===null&&(b=Jt,C=lb(),b.pooledCache=C,C.refCount++,C!==null&&(b.pooledCacheLanes|=u),b=C),s.memoizedState={parent:p,cache:b},mb(s),xi(s,Fo,b)):((a.lanes&u)!==0&&(fb(a,s),ku(s,null,null,u),Au()),b=a.memoizedState,C=s.memoizedState,b.parent!==p?(b={parent:p,cache:p},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),xi(s,Fo,p)):(p=C.cache,xi(s,Fo,p),p!==b.cache&&sb(s,[Fo],u,!0))),un(a,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(n(156,s.tag))}function Va(a){a.flags|=4}function Wb(a,s,u,p,b){if((s=(a.mode&32)!==0)&&(s=!1),s){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(gP())a.flags|=8192;else throw Fs=rf,db}else a.flags&=-16777217}function VT(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!aR(s))if(gP())a.flags|=8192;else throw Fs=rf,db}function Cf(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Gt():536870912,a.lanes|=s,Xl|=s)}function Nu(a,s){if(!Rt)switch(a.tailMode){case"hidden":s=a.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function so(a){var s=a.alternate!==null&&a.alternate.child===a.child,u=0,p=0;if(s)for(var b=a.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=p,a.childLanes=u,s}function E5(a,s,u){var p=s.pendingProps;switch(ob(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return so(s),null;case 1:return so(s),null;case 3:return u=s.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),ja(Fo),we(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(jl(s)?Va(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,rb())),so(s),null;case 26:var b=s.type,C=s.memoizedState;return a===null?(Va(s),C!==null?(so(s),VT(s,C)):(so(s),Wb(s,b,null,p,u))):C?C!==a.memoizedState?(Va(s),so(s),VT(s,C)):(so(s),s.flags&=-16777217):(a=a.memoizedProps,a!==p&&Va(s),so(s),Wb(s,b,a,p,u)),null;case 27:if(W(s),u=J.current,b=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(!p){if(s.stateNode===null)throw Error(n(166));return so(s),null}a=L.current,jl(s)?wx(s):(a=QP(b,p,u),s.stateNode=a,Va(s))}return so(s),null;case 5:if(W(s),b=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(!p){if(s.stateNode===null)throw Error(n(166));return so(s),null}if(C=L.current,jl(s))wx(s);else{var I=Ff(J.current);switch(C){case 1:C=I.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:C=I.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":C=I.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":C=I.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":C=I.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?C.multiple=!0:p.size&&(C.size=p.size);break;default:C=typeof p.is=="string"?I.createElement(b,{is:p.is}):I.createElement(b)}}C[sn]=s,C[$n]=p;e:for(I=s.child;I!==null;){if(I.tag===5||I.tag===6)C.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===s)break e;for(;I.sibling===null;){if(I.return===null||I.return===s)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}s.stateNode=C;e:switch(dn(C,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Va(s)}}return so(s),Wb(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,u),null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(n(166));if(a=J.current,jl(s)){if(a=s.stateNode,u=s.memoizedProps,p=null,b=ln,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}a[sn]=s,a=!!(a.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||jP(a.nodeValue,u)),a||Ei(s,!0)}else a=Ff(a).createTextNode(p),a[sn]=s,s.stateNode=a}return so(s),null;case 31:if(u=s.memoizedState,a===null||a.memoizedState!==null){if(p=jl(s),u!==null){if(a===null){if(!p)throw Error(n(318));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(557));a[sn]=s}else Os(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;so(s),a=!1}else u=rb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return s.flags&256?(ar(s),s):(ar(s),null);if((s.flags&128)!==0)throw Error(n(558))}return so(s),null;case 13:if(p=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=jl(s),p!==null&&p.dehydrated!==null){if(a===null){if(!b)throw Error(n(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[sn]=s}else Os(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;so(s),b=!1}else b=rb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(ar(s),s):(ar(s),null)}return ar(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,a=a!==null&&a.memoizedState!==null,u&&(p=s.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),C=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(C=p.memoizedState.cachePool.pool),C!==b&&(p.flags|=2048)),u!==a&&u&&(s.child.flags|=8192),Cf(s,s.updateQueue),so(s),null);case 4:return we(),a===null&&gy(s.stateNode.containerInfo),so(s),null;case 10:return ja(s.type),so(s),null;case 19:if(H(To),p=s.memoizedState,p===null)return so(s),null;if(b=(s.flags&128)!==0,C=p.rendering,C===null)if(b)Nu(p,!1);else{if(Eo!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(C=cf(a),C!==null){for(s.flags|=128,Nu(p,!1),a=C.updateQueue,s.updateQueue=a,Cf(s,a),s.subtreeFlags=0,a=u,u=s.child;u!==null;)bx(u,a),u=u.sibling;return q(To,To.current&1|2),Rt&&Ba(s,p.treeForkCount),s.child}a=a.sibling}p.tail!==null&&G()>Pf&&(s.flags|=128,b=!0,Nu(p,!1),s.lanes=4194304)}else{if(!b)if(a=cf(C),a!==null){if(s.flags|=128,b=!0,a=a.updateQueue,s.updateQueue=a,Cf(s,a),Nu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!C.alternate&&!Rt)return so(s),null}else 2*G()-p.renderingStartTime>Pf&&u!==536870912&&(s.flags|=128,b=!0,Nu(p,!1),s.lanes=4194304);p.isBackwards?(C.sibling=s.child,s.child=C):(a=p.last,a!==null?a.sibling=C:s.child=C,p.last=C)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=G(),a.sibling=null,u=To.current,q(To,b?u&1|2:u&1),Rt&&Ba(s,p.treeForkCount),a):(so(s),null);case 22:case 23:return ar(s),vb(),p=s.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(so(s),s.subtreeFlags&6&&(s.flags|=8192)):so(s),u=s.updateQueue,u!==null&&Cf(s,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),a!==null&&H(Ls),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ja(Fo),so(s),null;case 25:return null;case 30:return null}throw Error(n(156,s.tag))}function x5(a,s){switch(ob(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return ja(Fo),we(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return W(s),null;case 31:if(s.memoizedState!==null){if(ar(s),s.alternate===null)throw Error(n(340));Os()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(ar(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Os()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return H(To),null;case 4:return we(),null;case 10:return ja(s.type),null;case 22:case 23:return ar(s),vb(),a!==null&&H(Ls),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return ja(Fo),null;case 25:return null;default:return null}}function HT(a,s){switch(ob(s),s.tag){case 3:ja(Fo),we();break;case 26:case 27:case 5:W(s);break;case 4:we();break;case 31:s.memoizedState!==null&&ar(s);break;case 13:ar(s);break;case 19:H(To);break;case 10:ja(s.type);break;case 22:case 23:ar(s),vb(),a!==null&&H(Ls);break;case 24:ja(Fo)}}function Fu(a,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var b=p.next;u=b;do{if((u.tag&a)===a){p=void 0;var C=u.create,I=u.inst;p=C(),I.destroy=p}u=u.next}while(u!==b)}}catch(B){$t(s,s.return,B)}}function Di(a,s,u){try{var p=s.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var C=b.next;p=C;do{if((p.tag&a)===a){var I=p.inst,B=I.destroy;if(B!==void 0){I.destroy=void 0,b=s;var X=u,de=B;try{de()}catch(ye){$t(b,X,ye)}}}p=p.next}while(p!==C)}}catch(ye){$t(s,s.return,ye)}}function GT(a){var s=a.updateQueue;if(s!==null){var u=a.stateNode;try{Nx(s,u)}catch(p){$t(a,a.return,p)}}}function KT(a,s,u){u.props=js(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(p){$t(a,s,p)}}function Bu(a,s){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}typeof u=="function"?a.refCleanup=u(p):u.current=p}}catch(b){$t(a,s,b)}}function ma(a,s){var u=a.ref,p=a.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(b){$t(a,s,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){$t(a,s,b)}else u.current=null}function WT(a){var s=a.type,u=a.memoizedProps,p=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(b){$t(a,a.return,b)}}function Yb(a,s,u){try{var p=a.stateNode;K5(p,a.type,u,s),p[$n]=s}catch(b){$t(a,a.return,b)}}function YT(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Bi(a.type)||a.tag===4}function Zb(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||YT(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Bi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Qb(a,s,u){var p=a.tag;if(p===5||p===6)a=a.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(a),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=La));else if(p!==4&&(p===27&&Bi(a.type)&&(u=a.stateNode,s=null),a=a.child,a!==null))for(Qb(a,s,u),a=a.sibling;a!==null;)Qb(a,s,u),a=a.sibling}function wf(a,s,u){var p=a.tag;if(p===5||p===6)a=a.stateNode,s?u.insertBefore(a,s):u.appendChild(a);else if(p!==4&&(p===27&&Bi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(wf(a,s,u),a=a.sibling;a!==null;)wf(a,s,u),a=a.sibling}function ZT(a){var s=a.stateNode,u=a.memoizedProps;try{for(var p=a.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);dn(s,p,u),s[sn]=a,s[$n]=u}catch(C){$t(a,a.return,C)}}var Ha=!1,jo=!1,Jb=!1,QT=typeof WeakSet=="function"?WeakSet:Set,tn=null;function T5(a,s){if(a=a.containerInfo,yy=Vf,a=cx(a),Hv(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var b=p.anchorOffset,C=p.focusNode;p=p.focusOffset;try{u.nodeType,C.nodeType}catch{u=null;break e}var I=0,B=-1,X=-1,de=0,ye=0,Ce=a,fe=null;t:for(;;){for(var ge;Ce!==u||b!==0&&Ce.nodeType!==3||(B=I+b),Ce!==C||p!==0&&Ce.nodeType!==3||(X=I+p),Ce.nodeType===3&&(I+=Ce.nodeValue.length),(ge=Ce.firstChild)!==null;)fe=Ce,Ce=ge;for(;;){if(Ce===a)break t;if(fe===u&&++de===b&&(B=I),fe===C&&++ye===p&&(X=I),(ge=Ce.nextSibling)!==null)break;Ce=fe,fe=Ce.parentNode}Ce=ge}u=B===-1||X===-1?null:{start:B,end:X}}else u=null}u=u||{start:0,end:0}}else u=null;for(Sy={focusedElem:a,selectionRange:u},Vf=!1,tn=s;tn!==null;)if(s=tn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,tn=a;else for(;tn!==null;){switch(s=tn,C=s.alternate,a=s.flags,s.tag){case 0:if((a&4)!==0&&(a=s.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)b=a[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&C!==null){a=void 0,u=s,b=C.memoizedProps,C=C.memoizedState,p=u.stateNode;try{var He=js(u.type,b);a=p.getSnapshotBeforeUpdate(He,C),p.__reactInternalSnapshotBeforeUpdate=a}catch(ot){$t(u,u.return,ot)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,u=a.nodeType,u===9)wy(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":wy(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(n(163))}if(a=s.sibling,a!==null){a.return=s.return,tn=a;break}tn=s.return}}function JT(a,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:Ka(a,u),p&4&&Fu(5,u);break;case 1:if(Ka(a,u),p&4)if(a=u.stateNode,s===null)try{a.componentDidMount()}catch(I){$t(u,u.return,I)}else{var b=js(u.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(b,s,a.__reactInternalSnapshotBeforeUpdate)}catch(I){$t(u,u.return,I)}}p&64&&GT(u),p&512&&Bu(u,u.return);break;case 3:if(Ka(a,u),p&64&&(a=u.updateQueue,a!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{Nx(a,s)}catch(I){$t(u,u.return,I)}}break;case 27:s===null&&p&4&&ZT(u);case 26:case 5:Ka(a,u),s===null&&p&4&&WT(u),p&512&&Bu(u,u.return);break;case 12:Ka(a,u);break;case 31:Ka(a,u),p&4&&tP(a,u);break;case 13:Ka(a,u),p&4&&oP(a,u),p&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=L5.bind(null,u),t6(a,u))));break;case 22:if(p=u.memoizedState!==null||Ha,!p){s=s!==null&&s.memoizedState!==null||jo,b=Ha;var C=jo;Ha=p,(jo=s)&&!C?Wa(a,u,(u.subtreeFlags&8772)!==0):Ka(a,u),Ha=b,jo=C}break;case 30:break;default:Ka(a,u)}}function XT(a){var s=a.alternate;s!==null&&(a.alternate=null,XT(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Rv(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var mo=null,Vn=!1;function Ga(a,s,u){for(u=u.child;u!==null;)eP(a,s,u),u=u.sibling}function eP(a,s,u){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(bt,u)}catch{}switch(u.tag){case 26:jo||ma(u,s),Ga(a,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:jo||ma(u,s);var p=mo,b=Vn;Bi(u.type)&&(mo=u.stateNode,Vn=!1),Ga(a,s,u),Ku(u.stateNode),mo=p,Vn=b;break;case 5:jo||ma(u,s);case 6:if(p=mo,b=Vn,mo=null,Ga(a,s,u),mo=p,Vn=b,mo!==null)if(Vn)try{(mo.nodeType===9?mo.body:mo.nodeName==="HTML"?mo.ownerDocument.body:mo).removeChild(u.stateNode)}catch(C){$t(u,s,C)}else try{mo.removeChild(u.stateNode)}catch(C){$t(u,s,C)}break;case 18:mo!==null&&(Vn?(a=mo,GP(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),sc(a)):GP(mo,u.stateNode));break;case 4:p=mo,b=Vn,mo=u.stateNode.containerInfo,Vn=!0,Ga(a,s,u),mo=p,Vn=b;break;case 0:case 11:case 14:case 15:Di(2,u,s),jo||Di(4,u,s),Ga(a,s,u);break;case 1:jo||(ma(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&KT(u,s,p)),Ga(a,s,u);break;case 21:Ga(a,s,u);break;case 22:jo=(p=jo)||u.memoizedState!==null,Ga(a,s,u),jo=p;break;default:Ga(a,s,u)}}function tP(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{sc(a)}catch(u){$t(s,s.return,u)}}}function oP(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{sc(a)}catch(u){$t(s,s.return,u)}}function P5(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new QT),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new QT),s;default:throw Error(n(435,a.tag))}}function Ef(a,s){var u=P5(a);s.forEach(function(p){if(!u.has(p)){u.add(p);var b=N5.bind(null,a,p);p.then(b,b)}})}function Hn(a,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],C=a,I=s,B=I;e:for(;B!==null;){switch(B.tag){case 27:if(Bi(B.type)){mo=B.stateNode,Vn=!1;break e}break;case 5:mo=B.stateNode,Vn=!1;break e;case 3:case 4:mo=B.stateNode.containerInfo,Vn=!0;break e}B=B.return}if(mo===null)throw Error(n(160));eP(C,I,b),mo=null,Vn=!1,C=b.alternate,C!==null&&(C.return=null),b.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)nP(s,a),s=s.sibling}var Yr=null;function nP(a,s){var u=a.alternate,p=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Hn(s,a),Gn(a),p&4&&(Di(3,a,a.return),Fu(3,a),Di(5,a,a.return));break;case 1:Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),p&64&&Ha&&(a=a.updateQueue,a!==null&&(p=a.callbacks,p!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var b=Yr;if(Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),p&4){var C=u!==null?u.memoizedState:null;if(p=a.memoizedState,u===null)if(p===null)if(a.stateNode===null){e:{p=a.type,u=a.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":C=b.getElementsByTagName("title")[0],(!C||C[du]||C[sn]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=b.createElement(p),b.head.insertBefore(C,b.querySelector("head > title"))),dn(C,p,u),C[sn]=a,en(C),p=C;break e;case"link":var I=nR("link","href",b).get(p+(u.href||""));if(I){for(var B=0;B<I.length;B++)if(C=I[B],C.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&C.getAttribute("rel")===(u.rel==null?null:u.rel)&&C.getAttribute("title")===(u.title==null?null:u.title)&&C.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){I.splice(B,1);break t}}C=b.createElement(p),dn(C,p,u),b.head.appendChild(C);break;case"meta":if(I=nR("meta","content",b).get(p+(u.content||""))){for(B=0;B<I.length;B++)if(C=I[B],C.getAttribute("content")===(u.content==null?null:""+u.content)&&C.getAttribute("name")===(u.name==null?null:u.name)&&C.getAttribute("property")===(u.property==null?null:u.property)&&C.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&C.getAttribute("charset")===(u.charSet==null?null:u.charSet)){I.splice(B,1);break t}}C=b.createElement(p),dn(C,p,u),b.head.appendChild(C);break;default:throw Error(n(468,p))}C[sn]=a,en(C),p=C}a.stateNode=p}else rR(b,a.type,a.stateNode);else a.stateNode=oR(b,p,a.memoizedProps);else C!==p?(C===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):C.count--,p===null?rR(b,a.type,a.stateNode):oR(b,p,a.memoizedProps)):p===null&&a.stateNode!==null&&Yb(a,a.memoizedProps,u.memoizedProps)}break;case 27:Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),u!==null&&p&4&&Yb(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),a.flags&32){b=a.stateNode;try{kl(b,"")}catch(He){$t(a,a.return,He)}}p&4&&a.stateNode!=null&&(b=a.memoizedProps,Yb(a,b,u!==null?u.memoizedProps:b)),p&1024&&(Jb=!0);break;case 6:if(Hn(s,a),Gn(a),p&4){if(a.stateNode===null)throw Error(n(162));p=a.memoizedProps,u=a.stateNode;try{u.nodeValue=p}catch(He){$t(a,a.return,He)}}break;case 3:if(jf=null,b=Yr,Yr=Bf(s.containerInfo),Hn(s,a),Yr=b,Gn(a),p&4&&u!==null&&u.memoizedState.isDehydrated)try{sc(s.containerInfo)}catch(He){$t(a,a.return,He)}Jb&&(Jb=!1,rP(a));break;case 4:p=Yr,Yr=Bf(a.stateNode.containerInfo),Hn(s,a),Gn(a),Yr=p;break;case 12:Hn(s,a),Gn(a);break;case 31:Hn(s,a),Gn(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 13:Hn(s,a),Gn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Tf=G()),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 22:b=a.memoizedState!==null;var X=u!==null&&u.memoizedState!==null,de=Ha,ye=jo;if(Ha=de||b,jo=ye||X,Hn(s,a),jo=ye,Ha=de,Gn(a),p&8192)e:for(s=a.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(u===null||X||Ha||jo||Us(a)),u=null,s=a;;){if(s.tag===5||s.tag===26){if(u===null){X=u=s;try{if(C=X.stateNode,b)I=C.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{B=X.stateNode;var Ce=X.memoizedProps.style,fe=Ce!=null&&Ce.hasOwnProperty("display")?Ce.display:null;B.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(He){$t(X,X.return,He)}}}else if(s.tag===6){if(u===null){X=s;try{X.stateNode.nodeValue=b?"":X.memoizedProps}catch(He){$t(X,X.return,He)}}}else if(s.tag===18){if(u===null){X=s;try{var ge=X.stateNode;b?KP(ge,!0):KP(X.stateNode,!1)}catch(He){$t(X,X.return,He)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=a.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,Ef(a,u))));break;case 19:Hn(s,a),Gn(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 30:break;case 21:break;default:Hn(s,a),Gn(a)}}function Gn(a){var s=a.flags;if(s&2){try{for(var u,p=a.return;p!==null;){if(YT(p)){u=p;break}p=p.return}if(u==null)throw Error(n(160));switch(u.tag){case 27:var b=u.stateNode,C=Zb(a);wf(a,C,b);break;case 5:var I=u.stateNode;u.flags&32&&(kl(I,""),u.flags&=-33);var B=Zb(a);wf(a,B,I);break;case 3:case 4:var X=u.stateNode.containerInfo,de=Zb(a);Qb(a,de,X);break;default:throw Error(n(161))}}catch(ye){$t(a,a.return,ye)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function rP(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;rP(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function Ka(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)JT(a,s.alternate,s),s=s.sibling}function Us(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Di(4,s,s.return),Us(s);break;case 1:ma(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&KT(s,s.return,u),Us(s);break;case 27:Ku(s.stateNode);case 26:case 5:ma(s,s.return),Us(s);break;case 22:s.memoizedState===null&&Us(s);break;case 30:Us(s);break;default:Us(s)}a=a.sibling}}function Wa(a,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,b=a,C=s,I=C.flags;switch(C.tag){case 0:case 11:case 15:Wa(b,C,u),Fu(4,C);break;case 1:if(Wa(b,C,u),p=C,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(de){$t(p,p.return,de)}if(p=C,b=p.updateQueue,b!==null){var B=p.stateNode;try{var X=b.shared.hiddenCallbacks;if(X!==null)for(b.shared.hiddenCallbacks=null,b=0;b<X.length;b++)Lx(X[b],B)}catch(de){$t(p,p.return,de)}}u&&I&64&&GT(C),Bu(C,C.return);break;case 27:ZT(C);case 26:case 5:Wa(b,C,u),u&&p===null&&I&4&&WT(C),Bu(C,C.return);break;case 12:Wa(b,C,u);break;case 31:Wa(b,C,u),u&&I&4&&tP(b,C);break;case 13:Wa(b,C,u),u&&I&4&&oP(b,C);break;case 22:C.memoizedState===null&&Wa(b,C,u),Bu(C,C.return);break;case 30:break;default:Wa(b,C,u)}s=s.sibling}}function Xb(a,s){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Eu(u))}function ey(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Eu(a))}function Zr(a,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)aP(a,s,u,p),s=s.sibling}function aP(a,s,u,p){var b=s.flags;switch(s.tag){case 0:case 11:case 15:Zr(a,s,u,p),b&2048&&Fu(9,s);break;case 1:Zr(a,s,u,p);break;case 3:Zr(a,s,u,p),b&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Eu(a)));break;case 12:if(b&2048){Zr(a,s,u,p),a=s.stateNode;try{var C=s.memoizedProps,I=C.id,B=C.onPostCommit;typeof B=="function"&&B(I,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(X){$t(s,s.return,X)}}else Zr(a,s,u,p);break;case 31:Zr(a,s,u,p);break;case 13:Zr(a,s,u,p);break;case 23:break;case 22:C=s.stateNode,I=s.alternate,s.memoizedState!==null?C._visibility&2?Zr(a,s,u,p):zu(a,s):C._visibility&2?Zr(a,s,u,p):(C._visibility|=2,Zl(a,s,u,p,(s.subtreeFlags&10256)!==0||!1)),b&2048&&Xb(I,s);break;case 24:Zr(a,s,u,p),b&2048&&ey(s.alternate,s);break;default:Zr(a,s,u,p)}}function Zl(a,s,u,p,b){for(b=b&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var C=a,I=s,B=u,X=p,de=I.flags;switch(I.tag){case 0:case 11:case 15:Zl(C,I,B,X,b),Fu(8,I);break;case 23:break;case 22:var ye=I.stateNode;I.memoizedState!==null?ye._visibility&2?Zl(C,I,B,X,b):zu(C,I):(ye._visibility|=2,Zl(C,I,B,X,b)),b&&de&2048&&Xb(I.alternate,I);break;case 24:Zl(C,I,B,X,b),b&&de&2048&&ey(I.alternate,I);break;default:Zl(C,I,B,X,b)}s=s.sibling}}function zu(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=a,p=s,b=p.flags;switch(p.tag){case 22:zu(u,p),b&2048&&Xb(p.alternate,p);break;case 24:zu(u,p),b&2048&&ey(p.alternate,p);break;default:zu(u,p)}s=s.sibling}}var ju=8192;function Ql(a,s,u){if(a.subtreeFlags&ju)for(a=a.child;a!==null;)iP(a,s,u),a=a.sibling}function iP(a,s,u){switch(a.tag){case 26:Ql(a,s,u),a.flags&ju&&a.memoizedState!==null&&f6(u,Yr,a.memoizedState,a.memoizedProps);break;case 5:Ql(a,s,u);break;case 3:case 4:var p=Yr;Yr=Bf(a.stateNode.containerInfo),Ql(a,s,u),Yr=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=ju,ju=16777216,Ql(a,s,u),ju=p):Ql(a,s,u));break;default:Ql(a,s,u)}}function sP(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function Uu(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,cP(p,a)}sP(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)lP(a),a=a.sibling}function lP(a){switch(a.tag){case 0:case 11:case 15:Uu(a),a.flags&2048&&Di(9,a,a.return);break;case 3:Uu(a);break;case 12:Uu(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,xf(a)):Uu(a);break;default:Uu(a)}}function xf(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,cP(p,a)}sP(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Di(8,s,s.return),xf(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,xf(s));break;default:xf(s)}a=a.sibling}}function cP(a,s){for(;tn!==null;){var u=tn;switch(u.tag){case 0:case 11:case 15:Di(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Eu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,tn=p;else e:for(u=a;tn!==null;){p=tn;var b=p.sibling,C=p.return;if(XT(p),p===u){tn=null;break e}if(b!==null){b.return=C,tn=b;break e}tn=C}}}var R5={getCacheForType:function(a){var s=cn(Fo),u=s.data.get(a);return u===void 0&&(u=a(),s.data.set(a,u)),u},cacheSignal:function(){return cn(Fo).controller.signal}},A5=typeof WeakMap=="function"?WeakMap:Map,Bt=0,Jt=null,St=null,Et=0,Ut=0,ir=null,Oi=!1,Jl=!1,ty=!1,Ya=0,Eo=0,Ii=0,$s=0,oy=0,sr=0,Xl=0,$u=null,Kn=null,ny=!1,Tf=0,uP=0,Pf=1/0,Rf=null,Mi=null,Ho=0,Li=null,ec=null,Za=0,ry=0,ay=null,dP=null,qu=0,iy=null;function lr(){return(Bt&2)!==0&&Et!==0?Et&-Et:V.T!==null?my():Tv()}function mP(){if(sr===0)if((Et&536870912)===0||Rt){var a=Pt;Pt<<=1,(Pt&3932160)===0&&(Pt=262144),sr=a}else sr=536870912;return a=rr.current,a!==null&&(a.flags|=32),sr}function Wn(a,s,u){(a===Jt&&(Ut===2||Ut===9)||a.cancelPendingCommit!==null)&&(tc(a,0),Ni(a,Et,sr,!1)),Mt(a,u),((Bt&2)===0||a!==Jt)&&(a===Jt&&((Bt&2)===0&&($s|=u),Eo===4&&Ni(a,Et,sr,!1)),fa(a))}function fP(a,s,u){if((Bt&6)!==0)throw Error(n(327));var p=!u&&(s&127)===0&&(s&a.expiredLanes)===0||ut(a,s),b=p?O5(a,s):ly(a,s,!0),C=p;do{if(b===0){Jl&&!p&&Ni(a,s,0,!1);break}else{if(u=a.current.alternate,C&&!k5(u)){b=ly(a,s,!1),C=!1;continue}if(b===2){if(C=s,a.errorRecoveryDisabledLanes&C)var I=0;else I=a.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){s=I;e:{var B=a;b=$u;var X=B.current.memoizedState.isDehydrated;if(X&&(tc(B,I).flags|=256),I=ly(B,I,!1),I!==2){if(ty&&!X){B.errorRecoveryDisabledLanes|=C,$s|=C,b=4;break e}C=Kn,Kn=b,C!==null&&(Kn===null?Kn=C:Kn.push.apply(Kn,C))}b=I}if(C=!1,b!==2)continue}}if(b===1){tc(a,0),Ni(a,s,0,!0);break}e:{switch(p=a,C=b,C){case 0:case 1:throw Error(n(345));case 4:if((s&4194048)!==s)break;case 6:Ni(p,s,sr,!Oi);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(n(329))}if((s&62914560)===s&&(b=Tf+300-G(),10<b)){if(Ni(p,s,sr,!Oi),Ge(p,0,!0)!==0)break e;Za=s,p.timeoutHandle=VP(hP.bind(null,p,u,Kn,Rf,ny,s,sr,$s,Xl,Oi,C,"Throttled",-0,0),b);break e}hP(p,u,Kn,Rf,ny,s,sr,$s,Xl,Oi,C,null,-0,0)}}break}while(!0);fa(a)}function hP(a,s,u,p,b,C,I,B,X,de,ye,Ce,fe,ge){if(a.timeoutHandle=-1,Ce=s.subtreeFlags,Ce&8192||(Ce&16785408)===16785408){Ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:La},iP(s,C,Ce);var He=(C&62914560)===C?Tf-G():(C&4194048)===C?uP-G():0;if(He=h6(Ce,He),He!==null){Za=C,a.cancelPendingCommit=He(CP.bind(null,a,s,C,u,p,b,I,B,X,ye,Ce,null,fe,ge)),Ni(a,C,I,!de);return}}CP(a,s,C,u,p,b,I,B,X)}function k5(a){for(var s=a;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var b=u[p],C=b.getSnapshot;b=b.value;try{if(!or(C(),b))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ni(a,s,u,p){s&=~oy,s&=~$s,a.suspendedLanes|=s,a.pingedLanes&=~s,p&&(a.warmLanes|=s),p=a.expirationTimes;for(var b=s;0<b;){var C=31-No(b),I=1<<C;p[C]=-1,b&=~I}u!==0&&Cr(a,u,s)}function Af(){return(Bt&6)===0?(Vu(0),!1):!0}function sy(){if(St!==null){if(Ut===0)var a=St.return;else a=St,za=Is=null,wb(a),Hl=null,Tu=0,a=St;for(;a!==null;)HT(a.alternate,a),a=a.return;St=null}}function tc(a,s){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,Z5(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Za=0,sy(),Jt=a,St=u=Fa(a.current,null),Et=s,Ut=0,ir=null,Oi=!1,Jl=ut(a,s),ty=!1,Xl=sr=oy=$s=Ii=Eo=0,Kn=$u=null,ny=!1,(s&8)!==0&&(s|=s&32);var p=a.entangledLanes;if(p!==0)for(a=a.entanglements,p&=s;0<p;){var b=31-No(p),C=1<<b;s|=a[b],p&=~C}return Ya=s,Ym(),u}function pP(a,s){st=null,V.H=Mu,s===Vl||s===nf?(s=Dx(),Ut=3):s===db?(s=Dx(),Ut=4):Ut=s===zb?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ir=s,St===null&&(Eo=1,bf(a,Tr(s,a.current)))}function gP(){var a=rr.current;return a===null?!0:(Et&4194048)===Et?kr===null:(Et&62914560)===Et||(Et&536870912)!==0?a===kr:!1}function vP(){var a=V.H;return V.H=Mu,a===null?Mu:a}function bP(){var a=V.A;return V.A=R5,a}function kf(){Eo=4,Oi||(Et&4194048)!==Et&&rr.current!==null||(Jl=!0),(Ii&134217727)===0&&($s&134217727)===0||Jt===null||Ni(Jt,Et,sr,!1)}function ly(a,s,u){var p=Bt;Bt|=2;var b=vP(),C=bP();(Jt!==a||Et!==s)&&(Rf=null,tc(a,s)),s=!1;var I=Eo;e:do try{if(Ut!==0&&St!==null){var B=St,X=ir;switch(Ut){case 8:sy(),I=6;break e;case 3:case 2:case 9:case 6:rr.current===null&&(s=!0);var de=Ut;if(Ut=0,ir=null,oc(a,B,X,de),u&&Jl){I=0;break e}break;default:de=Ut,Ut=0,ir=null,oc(a,B,X,de)}}D5(),I=Eo;break}catch(ye){pP(a,ye)}while(!0);return s&&a.shellSuspendCounter++,za=Is=null,Bt=p,V.H=b,V.A=C,St===null&&(Jt=null,Et=0,Ym()),I}function D5(){for(;St!==null;)yP(St)}function O5(a,s){var u=Bt;Bt|=2;var p=vP(),b=bP();Jt!==a||Et!==s?(Rf=null,Pf=G()+500,tc(a,s)):Jl=ut(a,s);e:do try{if(Ut!==0&&St!==null){s=St;var C=ir;t:switch(Ut){case 1:Ut=0,ir=null,oc(a,s,C,1);break;case 2:case 9:if(Ax(C)){Ut=0,ir=null,SP(s);break}s=function(){Ut!==2&&Ut!==9||Jt!==a||(Ut=7),fa(a)},C.then(s,s);break e;case 3:Ut=7;break e;case 4:Ut=5;break e;case 7:Ax(C)?(Ut=0,ir=null,SP(s)):(Ut=0,ir=null,oc(a,s,C,7));break;case 5:var I=null;switch(St.tag){case 26:I=St.memoizedState;case 5:case 27:var B=St;if(I?aR(I):B.stateNode.complete){Ut=0,ir=null;var X=B.sibling;if(X!==null)St=X;else{var de=B.return;de!==null?(St=de,Df(de)):St=null}break t}}Ut=0,ir=null,oc(a,s,C,5);break;case 6:Ut=0,ir=null,oc(a,s,C,6);break;case 8:sy(),Eo=6;break e;default:throw Error(n(462))}}I5();break}catch(ye){pP(a,ye)}while(!0);return za=Is=null,V.H=p,V.A=b,Bt=u,St!==null?0:(Jt=null,Et=0,Ym(),Eo)}function I5(){for(;St!==null&&!ke();)yP(St)}function yP(a){var s=qT(a.alternate,a,Ya);a.memoizedProps=a.pendingProps,s===null?Df(a):St=s}function SP(a){var s=a,u=s.alternate;switch(s.tag){case 15:case 0:s=FT(u,s,s.pendingProps,s.type,void 0,Et);break;case 11:s=FT(u,s,s.pendingProps,s.type.render,s.ref,Et);break;case 5:wb(s);default:HT(u,s),s=St=bx(s,Ya),s=qT(u,s,Ya)}a.memoizedProps=a.pendingProps,s===null?Df(a):St=s}function oc(a,s,u,p){za=Is=null,wb(s),Hl=null,Tu=0;var b=s.return;try{if(_5(a,b,s,u,Et)){Eo=1,bf(a,Tr(u,a.current)),St=null;return}}catch(C){if(b!==null)throw St=b,C;Eo=1,bf(a,Tr(u,a.current)),St=null;return}s.flags&32768?(Rt||p===1?a=!0:Jl||(Et&536870912)!==0?a=!1:(Oi=a=!0,(p===2||p===9||p===3||p===6)&&(p=rr.current,p!==null&&p.tag===13&&(p.flags|=16384))),_P(s,a)):Df(s)}function Df(a){var s=a;do{if((s.flags&32768)!==0){_P(s,Oi);return}a=s.return;var u=E5(s.alternate,s,Ya);if(u!==null){St=u;return}if(s=s.sibling,s!==null){St=s;return}St=s=a}while(s!==null);Eo===0&&(Eo=5)}function _P(a,s){do{var u=x5(a.alternate,a);if(u!==null){u.flags&=32767,St=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(a=a.sibling,a!==null)){St=a;return}St=a=u}while(a!==null);Eo=6,St=null}function CP(a,s,u,p,b,C,I,B,X){a.cancelPendingCommit=null;do Of();while(Ho!==0);if((Bt&6)!==0)throw Error(n(327));if(s!==null){if(s===a.current)throw Error(n(177));if(C=s.lanes|s.childLanes,C|=Zv,ao(a,u,C,I,B,X),a===Jt&&(St=Jt=null,Et=0),ec=s,Li=a,Za=u,ry=C,ay=b,dP=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,F5(Pe,function(){return PP(),null})):(a.callbackNode=null,a.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=V.T,V.T=null,b=Z.p,Z.p=2,I=Bt,Bt|=4;try{T5(a,s,u)}finally{Bt=I,Z.p=b,V.T=p}}Ho=1,wP(),EP(),xP()}}function wP(){if(Ho===1){Ho=0;var a=Li,s=ec,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var p=Z.p;Z.p=2;var b=Bt;Bt|=4;try{nP(s,a);var C=Sy,I=cx(a.containerInfo),B=C.focusedElem,X=C.selectionRange;if(I!==B&&B&&B.ownerDocument&&lx(B.ownerDocument.documentElement,B)){if(X!==null&&Hv(B)){var de=X.start,ye=X.end;if(ye===void 0&&(ye=de),"selectionStart"in B)B.selectionStart=de,B.selectionEnd=Math.min(ye,B.value.length);else{var Ce=B.ownerDocument||document,fe=Ce&&Ce.defaultView||window;if(fe.getSelection){var ge=fe.getSelection(),He=B.textContent.length,ot=Math.min(X.start,He),Yt=X.end===void 0?ot:Math.min(X.end,He);!ge.extend&&ot>Yt&&(I=Yt,Yt=ot,ot=I);var ce=sx(B,ot),re=sx(B,Yt);if(ce&&re&&(ge.rangeCount!==1||ge.anchorNode!==ce.node||ge.anchorOffset!==ce.offset||ge.focusNode!==re.node||ge.focusOffset!==re.offset)){var ue=Ce.createRange();ue.setStart(ce.node,ce.offset),ge.removeAllRanges(),ot>Yt?(ge.addRange(ue),ge.extend(re.node,re.offset)):(ue.setEnd(re.node,re.offset),ge.addRange(ue))}}}}for(Ce=[],ge=B;ge=ge.parentNode;)ge.nodeType===1&&Ce.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Ce.length;B++){var Se=Ce[B];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}Vf=!!yy,Sy=yy=null}finally{Bt=b,Z.p=p,V.T=u}}a.current=s,Ho=2}}function EP(){if(Ho===2){Ho=0;var a=Li,s=ec,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var p=Z.p;Z.p=2;var b=Bt;Bt|=4;try{JT(a,s.alternate,s)}finally{Bt=b,Z.p=p,V.T=u}}Ho=3}}function xP(){if(Ho===4||Ho===3){Ho=0,Ue();var a=Li,s=ec,u=Za,p=dP;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Ho=5:(Ho=0,ec=Li=null,TP(a,a.pendingLanes));var b=a.pendingLanes;if(b===0&&(Mi=null),Kr(u),s=s.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(bt,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=V.T,b=Z.p,Z.p=2,V.T=null;try{for(var C=a.onRecoverableError,I=0;I<p.length;I++){var B=p[I];C(B.value,{componentStack:B.stack})}}finally{V.T=s,Z.p=b}}(Za&3)!==0&&Of(),fa(a),b=a.pendingLanes,(u&261930)!==0&&(b&42)!==0?a===iy?qu++:(qu=0,iy=a):qu=0,Vu(0)}}function TP(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Eu(s)))}function Of(){return wP(),EP(),xP(),PP()}function PP(){if(Ho!==5)return!1;var a=Li,s=ry;ry=0;var u=Kr(Za),p=V.T,b=Z.p;try{Z.p=32>u?32:u,V.T=null,u=ay,ay=null;var C=Li,I=Za;if(Ho=0,ec=Li=null,Za=0,(Bt&6)!==0)throw Error(n(331));var B=Bt;if(Bt|=4,lP(C.current),aP(C,C.current,I,u),Bt=B,Vu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(bt,C)}catch{}return!0}finally{Z.p=b,V.T=p,TP(a,s)}}function RP(a,s,u){s=Tr(u,s),s=Bb(a.stateNode,s,2),a=Ri(a,s,2),a!==null&&(Mt(a,2),fa(a))}function $t(a,s,u){if(a.tag===3)RP(a,a,u);else for(;s!==null;){if(s.tag===3){RP(s,a,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Mi===null||!Mi.has(p))){a=Tr(u,a),u=AT(2),p=Ri(s,u,2),p!==null&&(kT(u,p,s,a),Mt(p,2),fa(p));break}}s=s.return}}function cy(a,s,u){var p=a.pingCache;if(p===null){p=a.pingCache=new A5;var b=new Set;p.set(s,b)}else b=p.get(s),b===void 0&&(b=new Set,p.set(s,b));b.has(u)||(ty=!0,b.add(u),a=M5.bind(null,a,s,u),s.then(a,a))}function M5(a,s,u){var p=a.pingCache;p!==null&&p.delete(s),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,Jt===a&&(Et&u)===u&&(Eo===4||Eo===3&&(Et&62914560)===Et&&300>G()-Tf?(Bt&2)===0&&tc(a,0):oy|=u,Xl===Et&&(Xl=0)),fa(a)}function AP(a,s){s===0&&(s=Gt()),a=ks(a,s),a!==null&&(Mt(a,s),fa(a))}function L5(a){var s=a.memoizedState,u=0;s!==null&&(u=s.retryLane),AP(a,u)}function N5(a,s){var u=0;switch(a.tag){case 31:case 13:var p=a.stateNode,b=a.memoizedState;b!==null&&(u=b.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(n(314))}p!==null&&p.delete(s),AP(a,u)}function F5(a,s){return Qe(a,s)}var If=null,nc=null,uy=!1,Mf=!1,dy=!1,Fi=0;function fa(a){a!==nc&&a.next===null&&(nc===null?If=nc=a:nc=nc.next=a),Mf=!0,uy||(uy=!0,z5())}function Vu(a,s){if(!dy&&Mf){dy=!0;do for(var u=!1,p=If;p!==null;){if(a!==0){var b=p.pendingLanes;if(b===0)var C=0;else{var I=p.suspendedLanes,B=p.pingedLanes;C=(1<<31-No(42|a)+1)-1,C&=b&~(I&~B),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(u=!0,IP(p,C))}else C=Et,C=Ge(p,p===Jt?C:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(C&3)===0||ut(p,C)||(u=!0,IP(p,C));p=p.next}while(u);dy=!1}}function B5(){kP()}function kP(){Mf=uy=!1;var a=0;Fi!==0&&Y5()&&(a=Fi);for(var s=G(),u=null,p=If;p!==null;){var b=p.next,C=DP(p,s);C===0?(p.next=null,u===null?If=b:u.next=b,b===null&&(nc=u)):(u=p,(a!==0||(C&3)!==0)&&(Mf=!0)),p=b}Ho!==0&&Ho!==5||Vu(a),Fi!==0&&(Fi=0)}function DP(a,s){for(var u=a.suspendedLanes,p=a.pingedLanes,b=a.expirationTimes,C=a.pendingLanes&-62914561;0<C;){var I=31-No(C),B=1<<I,X=b[I];X===-1?((B&u)===0||(B&p)!==0)&&(b[I]=Qt(B,s)):X<=s&&(a.expiredLanes|=B),C&=~B}if(s=Jt,u=Et,u=Ge(a,a===s?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,u===0||a===s&&(Ut===2||Ut===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&De(p),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||ut(a,u)){if(s=u&-u,s===a.callbackPriority)return s;switch(p!==null&&De(p),Kr(u)){case 2:case 8:u=Ee;break;case 32:u=Pe;break;case 268435456:u=Ie;break;default:u=Pe}return p=OP.bind(null,a),u=Qe(u,p),a.callbackPriority=s,a.callbackNode=u,s}return p!==null&&p!==null&&De(p),a.callbackPriority=2,a.callbackNode=null,2}function OP(a,s){if(Ho!==0&&Ho!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(Of()&&a.callbackNode!==u)return null;var p=Et;return p=Ge(a,a===Jt?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(fP(a,p,s),DP(a,G()),a.callbackNode!=null&&a.callbackNode===u?OP.bind(null,a):null)}function IP(a,s){if(Of())return null;fP(a,s,!0)}function z5(){Q5(function(){(Bt&6)!==0?Qe(se,B5):kP()})}function my(){if(Fi===0){var a=$l;a===0&&(a=ft,ft<<=1,(ft&261888)===0&&(ft=256)),Fi=a}return Fi}function MP(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Um(""+a)}function LP(a,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,a.id&&u.setAttribute("form",a.id),s.parentNode.insertBefore(u,s),a=new FormData(a),u.parentNode.removeChild(u),a}function j5(a,s,u,p,b){if(s==="submit"&&u&&u.stateNode===b){var C=MP((b[$n]||null).action),I=p.submitter;I&&(s=(s=I[$n]||null)?MP(s.formAction):I.getAttribute("formAction"),s!==null&&(C=s,I=null));var B=new Hm("action","action",null,p,b);a.push({event:B,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Fi!==0){var X=I?LP(b,I):new FormData(b);Ob(u,{pending:!0,data:X,method:b.method,action:C},null,X)}}else typeof C=="function"&&(B.preventDefault(),X=I?LP(b,I):new FormData(b),Ob(u,{pending:!0,data:X,method:b.method,action:C},C,X))},currentTarget:b}]})}}for(var fy=0;fy<Yv.length;fy++){var hy=Yv[fy],U5=hy.toLowerCase(),$5=hy[0].toUpperCase()+hy.slice(1);Wr(U5,"on"+$5)}Wr(mx,"onAnimationEnd"),Wr(fx,"onAnimationIteration"),Wr(hx,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(r5,"onTransitionRun"),Wr(a5,"onTransitionStart"),Wr(i5,"onTransitionCancel"),Wr(px,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),q5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hu));function NP(a,s){s=(s&4)!==0;for(var u=0;u<a.length;u++){var p=a[u],b=p.event;p=p.listeners;e:{var C=void 0;if(s)for(var I=p.length-1;0<=I;I--){var B=p[I],X=B.instance,de=B.currentTarget;if(B=B.listener,X!==C&&b.isPropagationStopped())break e;C=B,b.currentTarget=de;try{C(b)}catch(ye){Wm(ye)}b.currentTarget=null,C=X}else for(I=0;I<p.length;I++){if(B=p[I],X=B.instance,de=B.currentTarget,B=B.listener,X!==C&&b.isPropagationStopped())break e;C=B,b.currentTarget=de;try{C(b)}catch(ye){Wm(ye)}b.currentTarget=null,C=X}}}}function _t(a,s){var u=s[Pv];u===void 0&&(u=s[Pv]=new Set);var p=a+"__bubble";u.has(p)||(FP(s,a,2,!1),u.add(p))}function py(a,s,u){var p=0;s&&(p|=4),FP(u,a,p,s)}var Lf="_reactListening"+Math.random().toString(36).slice(2);function gy(a){if(!a[Lf]){a[Lf]=!0,kE.forEach(function(u){u!=="selectionchange"&&(q5.has(u)||py(u,!1,a),py(u,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[Lf]||(s[Lf]=!0,py("selectionchange",!1,s))}}function FP(a,s,u,p){switch(mR(s)){case 2:var b=v6;break;case 8:b=b6;break;default:b=Dy}u=b.bind(null,s,u,a),b=void 0,!Nv||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),p?b!==void 0?a.addEventListener(s,u,{capture:!0,passive:b}):a.addEventListener(s,u,!0):b!==void 0?a.addEventListener(s,u,{passive:b}):a.addEventListener(s,u,!1)}function vy(a,s,u,p,b){var C=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var B=p.stateNode.containerInfo;if(B===b)break;if(I===4)for(I=p.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===b)return;I=I.return}for(;B!==null;){if(I=xl(B),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){p=C=I;continue e}B=B.parentNode}}p=p.return}$E(function(){var de=C,ye=Mv(u),Ce=[];e:{var fe=gx.get(a);if(fe!==void 0){var ge=Hm,He=a;switch(a){case"keypress":if(qm(u)===0)break e;case"keydown":case"keyup":ge=N4;break;case"focusin":He="focus",ge=jv;break;case"focusout":He="blur",ge=jv;break;case"beforeblur":case"afterblur":ge=jv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=HE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=E4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=z4;break;case mx:case fx:case hx:ge=P4;break;case px:ge=U4;break;case"scroll":case"scrollend":ge=C4;break;case"wheel":ge=q4;break;case"copy":case"cut":case"paste":ge=A4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=KE;break;case"toggle":case"beforetoggle":ge=H4}var ot=(s&4)!==0,Yt=!ot&&(a==="scroll"||a==="scrollend"),ce=ot?fe!==null?fe+"Capture":null:fe;ot=[];for(var re=de,ue;re!==null;){var Se=re;if(ue=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||ue===null||ce===null||(Se=fu(re,ce),Se!=null&&ot.push(Gu(re,Se,ue))),Yt)break;re=re.return}0<ot.length&&(fe=new ge(fe,He,null,u,ye),Ce.push({event:fe,listeners:ot}))}}if((s&7)===0){e:{if(fe=a==="mouseover"||a==="pointerover",ge=a==="mouseout"||a==="pointerout",fe&&u!==Iv&&(He=u.relatedTarget||u.fromElement)&&(xl(He)||He[El]))break e;if((ge||fe)&&(fe=ye.window===ye?ye:(fe=ye.ownerDocument)?fe.defaultView||fe.parentWindow:window,ge?(He=u.relatedTarget||u.toElement,ge=de,He=He?xl(He):null,He!==null&&(Yt=i(He),ot=He.tag,He!==Yt||ot!==5&&ot!==27&&ot!==6)&&(He=null)):(ge=null,He=de),ge!==He)){if(ot=HE,Se="onMouseLeave",ce="onMouseEnter",re="mouse",(a==="pointerout"||a==="pointerover")&&(ot=KE,Se="onPointerLeave",ce="onPointerEnter",re="pointer"),Yt=ge==null?fe:mu(ge),ue=He==null?fe:mu(He),fe=new ot(Se,re+"leave",ge,u,ye),fe.target=Yt,fe.relatedTarget=ue,Se=null,xl(ye)===de&&(ot=new ot(ce,re+"enter",He,u,ye),ot.target=ue,ot.relatedTarget=Yt,Se=ot),Yt=Se,ge&&He)t:{for(ot=V5,ce=ge,re=He,ue=0,Se=ce;Se;Se=ot(Se))ue++;Se=0;for(var Je=re;Je;Je=ot(Je))Se++;for(;0<ue-Se;)ce=ot(ce),ue--;for(;0<Se-ue;)re=ot(re),Se--;for(;ue--;){if(ce===re||re!==null&&ce===re.alternate){ot=ce;break t}ce=ot(ce),re=ot(re)}ot=null}else ot=null;ge!==null&&BP(Ce,fe,ge,ot,!1),He!==null&&Yt!==null&&BP(Ce,Yt,He,ot,!0)}}e:{if(fe=de?mu(de):window,ge=fe.nodeName&&fe.nodeName.toLowerCase(),ge==="select"||ge==="input"&&fe.type==="file")var Lt=tx;else if(XE(fe))if(ox)Lt=t5;else{Lt=X4;var Ke=J4}else ge=fe.nodeName,!ge||ge.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?de&&Ov(de.elementType)&&(Lt=tx):Lt=e5;if(Lt&&(Lt=Lt(a,de))){ex(Ce,Lt,u,ye);break e}Ke&&Ke(a,fe,de),a==="focusout"&&de&&fe.type==="number"&&de.memoizedProps.value!=null&&Dv(fe,"number",fe.value)}switch(Ke=de?mu(de):window,a){case"focusin":(XE(Ke)||Ke.contentEditable==="true")&&(Ml=Ke,Gv=de,_u=null);break;case"focusout":_u=Gv=Ml=null;break;case"mousedown":Kv=!0;break;case"contextmenu":case"mouseup":case"dragend":Kv=!1,ux(Ce,u,ye);break;case"selectionchange":if(n5)break;case"keydown":case"keyup":ux(Ce,u,ye)}var lt;if($v)e:{switch(a){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else Il?QE(a,u)&&(xt="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(xt="onCompositionStart");xt&&(WE&&u.locale!=="ko"&&(Il||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&Il&&(lt=qE()):(_i=ye,Fv="value"in _i?_i.value:_i.textContent,Il=!0)),Ke=Nf(de,xt),0<Ke.length&&(xt=new GE(xt,a,null,u,ye),Ce.push({event:xt,listeners:Ke}),lt?xt.data=lt:(lt=JE(u),lt!==null&&(xt.data=lt)))),(lt=K4?W4(a,u):Y4(a,u))&&(xt=Nf(de,"onBeforeInput"),0<xt.length&&(Ke=new GE("onBeforeInput","beforeinput",null,u,ye),Ce.push({event:Ke,listeners:xt}),Ke.data=lt)),j5(Ce,a,de,u,ye)}NP(Ce,s)})}function Gu(a,s,u){return{instance:a,listener:s,currentTarget:u}}function Nf(a,s){for(var u=s+"Capture",p=[];a!==null;){var b=a,C=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||C===null||(b=fu(a,u),b!=null&&p.unshift(Gu(a,b,C)),b=fu(a,s),b!=null&&p.push(Gu(a,b,C))),a.tag===3)return p;a=a.return}return[]}function V5(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function BP(a,s,u,p,b){for(var C=s._reactName,I=[];u!==null&&u!==p;){var B=u,X=B.alternate,de=B.stateNode;if(B=B.tag,X!==null&&X===p)break;B!==5&&B!==26&&B!==27||de===null||(X=de,b?(de=fu(u,C),de!=null&&I.unshift(Gu(u,de,X))):b||(de=fu(u,C),de!=null&&I.push(Gu(u,de,X)))),u=u.return}I.length!==0&&a.push({event:s,listeners:I})}var H5=/\r\n?/g,G5=/\u0000|\uFFFD/g;function zP(a){return(typeof a=="string"?a:""+a).replace(H5,`
10
- `).replace(G5,"")}function jP(a,s){return s=zP(s),zP(a)===s}function Wt(a,s,u,p,b,C){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||kl(a,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&kl(a,""+p);break;case"className":zm(a,"class",p);break;case"tabIndex":zm(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":zm(a,u,p);break;case"style":jE(a,p,C);break;case"data":if(s!=="object"){zm(a,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){a.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(u);break}p=Um(""+p),a.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(u==="formAction"?(s!=="input"&&Wt(a,s,"name",b.name,b,null),Wt(a,s,"formEncType",b.formEncType,b,null),Wt(a,s,"formMethod",b.formMethod,b,null),Wt(a,s,"formTarget",b.formTarget,b,null)):(Wt(a,s,"encType",b.encType,b,null),Wt(a,s,"method",b.method,b,null),Wt(a,s,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(u);break}p=Um(""+p),a.setAttribute(u,p);break;case"onClick":p!=null&&(a.onclick=La);break;case"onScroll":p!=null&&_t("scroll",a);break;case"onScrollEnd":p!=null&&_t("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(n(60));a.innerHTML=u}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}u=Um(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,""+p):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":p===!0?a.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,p):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(u,p):a.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(u):a.setAttribute(u,p);break;case"popover":_t("beforetoggle",a),_t("toggle",a),Bm(a,"popover",p);break;case"xlinkActuate":Ma(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Ma(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Ma(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Ma(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Ma(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Ma(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Bm(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=S4.get(u)||u,Bm(a,u,p))}}function by(a,s,u,p,b,C){switch(u){case"style":jE(a,p,C);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(n(60));a.innerHTML=u}}break;case"children":typeof p=="string"?kl(a,p):(typeof p=="number"||typeof p=="bigint")&&kl(a,""+p);break;case"onScroll":p!=null&&_t("scroll",a);break;case"onScrollEnd":p!=null&&_t("scrollend",a);break;case"onClick":p!=null&&(a.onclick=La);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!DE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),s=u.slice(2,b?u.length-7:void 0),C=a[$n]||null,C=C!=null?C[u]:null,typeof C=="function"&&a.removeEventListener(s,C,b),typeof p=="function")){typeof C!="function"&&C!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(s,p,b);break e}u in a?a[u]=p:p===!0?a.setAttribute(u,""):Bm(a,u,p)}}}function dn(a,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",a),_t("load",a);var p=!1,b=!1,C;for(C in u)if(u.hasOwnProperty(C)){var I=u[C];if(I!=null)switch(C){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Wt(a,s,C,I,u,null)}}b&&Wt(a,s,"srcSet",u.srcSet,u,null),p&&Wt(a,s,"src",u.src,u,null);return;case"input":_t("invalid",a);var B=C=I=b=null,X=null,de=null;for(p in u)if(u.hasOwnProperty(p)){var ye=u[p];if(ye!=null)switch(p){case"name":b=ye;break;case"type":I=ye;break;case"checked":X=ye;break;case"defaultChecked":de=ye;break;case"value":C=ye;break;case"defaultValue":B=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(n(137,s));break;default:Wt(a,s,p,ye,u,null)}}NE(a,C,B,X,de,I,b,!1);return;case"select":_t("invalid",a),p=I=C=null;for(b in u)if(u.hasOwnProperty(b)&&(B=u[b],B!=null))switch(b){case"value":C=B;break;case"defaultValue":I=B;break;case"multiple":p=B;default:Wt(a,s,b,B,u,null)}s=C,u=I,a.multiple=!!p,s!=null?Al(a,!!p,s,!1):u!=null&&Al(a,!!p,u,!0);return;case"textarea":_t("invalid",a),C=b=p=null;for(I in u)if(u.hasOwnProperty(I)&&(B=u[I],B!=null))switch(I){case"value":p=B;break;case"defaultValue":b=B;break;case"children":C=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(n(91));break;default:Wt(a,s,I,B,u,null)}BE(a,p,b,C);return;case"option":for(X in u)u.hasOwnProperty(X)&&(p=u[X],p!=null)&&(X==="selected"?a.selected=p&&typeof p!="function"&&typeof p!="symbol":Wt(a,s,X,p,u,null));return;case"dialog":_t("beforetoggle",a),_t("toggle",a),_t("cancel",a),_t("close",a);break;case"iframe":case"object":_t("load",a);break;case"video":case"audio":for(p=0;p<Hu.length;p++)_t(Hu[p],a);break;case"image":_t("error",a),_t("load",a);break;case"details":_t("toggle",a);break;case"embed":case"source":case"link":_t("error",a),_t("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(p=u[de],p!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Wt(a,s,de,p,u,null)}return;default:if(Ov(s)){for(ye in u)u.hasOwnProperty(ye)&&(p=u[ye],p!==void 0&&by(a,s,ye,p,u,void 0));return}}for(B in u)u.hasOwnProperty(B)&&(p=u[B],p!=null&&Wt(a,s,B,p,u,null))}function K5(a,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,C=null,I=null,B=null,X=null,de=null,ye=null;for(ge in u){var Ce=u[ge];if(u.hasOwnProperty(ge)&&Ce!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":X=Ce;default:p.hasOwnProperty(ge)||Wt(a,s,ge,null,p,Ce)}}for(var fe in p){var ge=p[fe];if(Ce=u[fe],p.hasOwnProperty(fe)&&(ge!=null||Ce!=null))switch(fe){case"type":C=ge;break;case"name":b=ge;break;case"checked":de=ge;break;case"defaultChecked":ye=ge;break;case"value":I=ge;break;case"defaultValue":B=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(n(137,s));break;default:ge!==Ce&&Wt(a,s,fe,ge,p,Ce)}}kv(a,I,B,X,de,ye,C,b);return;case"select":ge=I=B=fe=null;for(C in u)if(X=u[C],u.hasOwnProperty(C)&&X!=null)switch(C){case"value":break;case"multiple":ge=X;default:p.hasOwnProperty(C)||Wt(a,s,C,null,p,X)}for(b in p)if(C=p[b],X=u[b],p.hasOwnProperty(b)&&(C!=null||X!=null))switch(b){case"value":fe=C;break;case"defaultValue":B=C;break;case"multiple":I=C;default:C!==X&&Wt(a,s,b,C,p,X)}s=B,u=I,p=ge,fe!=null?Al(a,!!u,fe,!1):!!p!=!!u&&(s!=null?Al(a,!!u,s,!0):Al(a,!!u,u?[]:"",!1));return;case"textarea":ge=fe=null;for(B in u)if(b=u[B],u.hasOwnProperty(B)&&b!=null&&!p.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:Wt(a,s,B,null,p,b)}for(I in p)if(b=p[I],C=u[I],p.hasOwnProperty(I)&&(b!=null||C!=null))switch(I){case"value":fe=b;break;case"defaultValue":ge=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(n(91));break;default:b!==C&&Wt(a,s,I,b,p,C)}FE(a,fe,ge);return;case"option":for(var He in u)fe=u[He],u.hasOwnProperty(He)&&fe!=null&&!p.hasOwnProperty(He)&&(He==="selected"?a.selected=!1:Wt(a,s,He,null,p,fe));for(X in p)fe=p[X],ge=u[X],p.hasOwnProperty(X)&&fe!==ge&&(fe!=null||ge!=null)&&(X==="selected"?a.selected=fe&&typeof fe!="function"&&typeof fe!="symbol":Wt(a,s,X,fe,p,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in u)fe=u[ot],u.hasOwnProperty(ot)&&fe!=null&&!p.hasOwnProperty(ot)&&Wt(a,s,ot,null,p,fe);for(de in p)if(fe=p[de],ge=u[de],p.hasOwnProperty(de)&&fe!==ge&&(fe!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(n(137,s));break;default:Wt(a,s,de,fe,p,ge)}return;default:if(Ov(s)){for(var Yt in u)fe=u[Yt],u.hasOwnProperty(Yt)&&fe!==void 0&&!p.hasOwnProperty(Yt)&&by(a,s,Yt,void 0,p,fe);for(ye in p)fe=p[ye],ge=u[ye],!p.hasOwnProperty(ye)||fe===ge||fe===void 0&&ge===void 0||by(a,s,ye,fe,p,ge);return}}for(var ce in u)fe=u[ce],u.hasOwnProperty(ce)&&fe!=null&&!p.hasOwnProperty(ce)&&Wt(a,s,ce,null,p,fe);for(Ce in p)fe=p[Ce],ge=u[Ce],!p.hasOwnProperty(Ce)||fe===ge||fe==null&&ge==null||Wt(a,s,Ce,fe,p,ge)}function UP(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W5(){if(typeof performance.getEntriesByType=="function"){for(var a=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var b=u[p],C=b.transferSize,I=b.initiatorType,B=b.duration;if(C&&B&&UP(I)){for(I=0,B=b.responseEnd,p+=1;p<u.length;p++){var X=u[p],de=X.startTime;if(de>B)break;var ye=X.transferSize,Ce=X.initiatorType;ye&&UP(Ce)&&(X=X.responseEnd,I+=ye*(X<B?1:(B-de)/(X-de)))}if(--p,s+=8*(C+I)/(b.duration/1e3),a++,10<a)break}}if(0<a)return s/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var yy=null,Sy=null;function Ff(a){return a.nodeType===9?a:a.ownerDocument}function $P(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qP(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function _y(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Cy=null;function Y5(){var a=window.event;return a&&a.type==="popstate"?a===Cy?!1:(Cy=a,!0):(Cy=null,!1)}var VP=typeof setTimeout=="function"?setTimeout:void 0,Z5=typeof clearTimeout=="function"?clearTimeout:void 0,HP=typeof Promise=="function"?Promise:void 0,Q5=typeof queueMicrotask=="function"?queueMicrotask:typeof HP<"u"?function(a){return HP.resolve(null).then(a).catch(J5)}:VP;function J5(a){setTimeout(function(){throw a})}function Bi(a){return a==="head"}function GP(a,s){var u=s,p=0;do{var b=u.nextSibling;if(a.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(p===0){a.removeChild(b),sc(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Ku(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Ku(u);for(var C=u.firstChild;C;){var I=C.nextSibling,B=C.nodeName;C[du]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&C.rel.toLowerCase()==="stylesheet"||u.removeChild(C),C=I}}else u==="body"&&Ku(a.ownerDocument.body);u=b}while(u);sc(s)}function KP(a,s){var u=a;a=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=p}while(u)}function wy(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":wy(u),Rv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function X5(a,s,u,p){for(;a.nodeType===1;){var b=u;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[du])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(C=a.getAttribute("rel"),C==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(C!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(C=a.getAttribute("src"),(C!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&C&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var C=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===C)return a}else return a;if(a=Dr(a.nextSibling),a===null)break}return null}function e6(a,s,u){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Dr(a.nextSibling),a===null))return null;return a}function WP(a,s){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=Dr(a.nextSibling),a===null))return null;return a}function Ey(a){return a.data==="$?"||a.data==="$~"}function xy(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function t6(a,s){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=s;else if(a.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Dr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return a}var Ty=null;function YP(a){a=a.nextSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(s===0)return Dr(a.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}a=a.nextSibling}return null}function ZP(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return a;s--}else u!=="/$"&&u!=="/&"||s++}a=a.previousSibling}return null}function QP(a,s,u){switch(s=Ff(u),a){case"html":if(a=s.documentElement,!a)throw Error(n(452));return a;case"head":if(a=s.head,!a)throw Error(n(453));return a;case"body":if(a=s.body,!a)throw Error(n(454));return a;default:throw Error(n(451))}}function Ku(a){for(var s=a.attributes;s.length;)a.removeAttributeNode(s[0]);Rv(a)}var Or=new Map,JP=new Set;function Bf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Qa=Z.d;Z.d={f:o6,r:n6,D:r6,C:a6,L:i6,m:s6,X:c6,S:l6,M:u6};function o6(){var a=Qa.f(),s=Af();return a||s}function n6(a){var s=Tl(a);s!==null&&s.tag===5&&s.type==="form"?pT(s):Qa.r(a)}var rc=typeof document>"u"?null:document;function XP(a,s,u){var p=rc;if(p&&typeof s=="string"&&s){var b=Er(s);b='link[rel="'+a+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),JP.has(b)||(JP.add(b),a={rel:a,crossOrigin:u,href:s},p.querySelector(b)===null&&(s=p.createElement("link"),dn(s,"link",a),en(s),p.head.appendChild(s)))}}function r6(a){Qa.D(a),XP("dns-prefetch",a,null)}function a6(a,s){Qa.C(a,s),XP("preconnect",a,s)}function i6(a,s,u){Qa.L(a,s,u);var p=rc;if(p&&a&&s){var b='link[rel="preload"][as="'+Er(s)+'"]';s==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+Er(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+Er(u.imageSizes)+'"]')):b+='[href="'+Er(a)+'"]';var C=b;switch(s){case"style":C=ac(a);break;case"script":C=ic(a)}Or.has(C)||(a=f({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:a,as:s},u),Or.set(C,a),p.querySelector(b)!==null||s==="style"&&p.querySelector(Wu(C))||s==="script"&&p.querySelector(Yu(C))||(s=p.createElement("link"),dn(s,"link",a),en(s),p.head.appendChild(s)))}}function s6(a,s){Qa.m(a,s);var u=rc;if(u&&a){var p=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+Er(p)+'"][href="'+Er(a)+'"]',C=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=ic(a)}if(!Or.has(C)&&(a=f({rel:"modulepreload",href:a},s),Or.set(C,a),u.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Yu(C)))return}p=u.createElement("link"),dn(p,"link",a),en(p),u.head.appendChild(p)}}}function l6(a,s,u){Qa.S(a,s,u);var p=rc;if(p&&a){var b=Pl(p).hoistableStyles,C=ac(a);s=s||"default";var I=b.get(C);if(!I){var B={loading:0,preload:null};if(I=p.querySelector(Wu(C)))B.loading=5;else{a=f({rel:"stylesheet",href:a,"data-precedence":s},u),(u=Or.get(C))&&Py(a,u);var X=I=p.createElement("link");en(X),dn(X,"link",a),X._p=new Promise(function(de,ye){X.onload=de,X.onerror=ye}),X.addEventListener("load",function(){B.loading|=1}),X.addEventListener("error",function(){B.loading|=2}),B.loading|=4,zf(I,s,p)}I={type:"stylesheet",instance:I,count:1,state:B},b.set(C,I)}}}function c6(a,s){Qa.X(a,s);var u=rc;if(u&&a){var p=Pl(u).hoistableScripts,b=ic(a),C=p.get(b);C||(C=u.querySelector(Yu(b)),C||(a=f({src:a,async:!0},s),(s=Or.get(b))&&Ry(a,s),C=u.createElement("script"),en(C),dn(C,"link",a),u.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},p.set(b,C))}}function u6(a,s){Qa.M(a,s);var u=rc;if(u&&a){var p=Pl(u).hoistableScripts,b=ic(a),C=p.get(b);C||(C=u.querySelector(Yu(b)),C||(a=f({src:a,async:!0,type:"module"},s),(s=Or.get(b))&&Ry(a,s),C=u.createElement("script"),en(C),dn(C,"link",a),u.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},p.set(b,C))}}function eR(a,s,u,p){var b=(b=J.current)?Bf(b):null;if(!b)throw Error(n(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=ac(u.href),u=Pl(b).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=ac(u.href);var C=Pl(b).hoistableStyles,I=C.get(a);if(I||(b=b.ownerDocument||b,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(a,I),(C=b.querySelector(Wu(a)))&&!C._p&&(I.instance=C,I.state.loading=5),Or.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Or.set(a,u),C||d6(b,a,u,I.state))),s&&p===null)throw Error(n(528,""));return I}if(s&&p!==null)throw Error(n(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ic(u),u=Pl(b).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,a))}}function ac(a){return'href="'+Er(a)+'"'}function Wu(a){return'link[rel="stylesheet"]['+a+"]"}function tR(a){return f({},a,{"data-precedence":a.precedence,precedence:null})}function d6(a,s,u,p){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=a.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),dn(s,"link",u),en(s),a.head.appendChild(s))}function ic(a){return'[src="'+Er(a)+'"]'}function Yu(a){return"script[async]"+a}function oR(a,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=a.querySelector('style[data-href~="'+Er(u.href)+'"]');if(p)return s.instance=p,en(p),p;var b=f({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),en(p),dn(p,"style",b),zf(p,u.precedence,a),s.instance=p;case"stylesheet":b=ac(u.href);var C=a.querySelector(Wu(b));if(C)return s.state.loading|=4,s.instance=C,en(C),C;p=tR(u),(b=Or.get(b))&&Py(p,b),C=(a.ownerDocument||a).createElement("link"),en(C);var I=C;return I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),dn(C,"link",p),s.state.loading|=4,zf(C,u.precedence,a),s.instance=C;case"script":return C=ic(u.src),(b=a.querySelector(Yu(C)))?(s.instance=b,en(b),b):(p=u,(b=Or.get(C))&&(p=f({},u),Ry(p,b)),a=a.ownerDocument||a,b=a.createElement("script"),en(b),dn(b,"link",p),a.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(n(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,zf(p,u.precedence,a));return s.instance}function zf(a,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,C=b,I=0;I<p.length;I++){var B=p[I];if(B.dataset.precedence===s)C=B;else if(C!==b)break}C?C.parentNode.insertBefore(a,C.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(a,s.firstChild))}function Py(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function Ry(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var jf=null;function nR(a,s,u){if(jf===null){var p=new Map,b=jf=new Map;b.set(u,p)}else b=jf,p=b.get(u),p||(p=new Map,b.set(u,p));if(p.has(a))return p;for(p.set(a,null),u=u.getElementsByTagName(a),b=0;b<u.length;b++){var C=u[b];if(!(C[du]||C[sn]||a==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var I=C.getAttribute(s)||"";I=a+I;var B=p.get(I);B?B.push(C):p.set(I,[C])}}return p}function rR(a,s,u){a=a.ownerDocument||a,a.head.insertBefore(u,s==="title"?a.querySelector("head > title"):null)}function m6(a,s,u){if(u===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(a=s.disabled,typeof s.precedence=="string"&&a==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function aR(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function f6(a,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=ac(p.href),C=s.querySelector(Wu(b));if(C){s=C._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(a.count++,a=Uf.bind(a),s.then(a,a)),u.state.loading|=4,u.instance=C,en(C);return}C=s.ownerDocument||s,p=tR(p),(b=Or.get(b))&&Py(p,b),C=C.createElement("link"),en(C);var I=C;I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),dn(C,"link",p),u.instance=C}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=Uf.bind(a),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ay=0;function h6(a,s){return a.stylesheets&&a.count===0&&qf(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var p=setTimeout(function(){if(a.stylesheets&&qf(a,a.stylesheets),a.unsuspend){var C=a.unsuspend;a.unsuspend=null,C()}},6e4+s);0<a.imgBytes&&Ay===0&&(Ay=62500*W5());var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&qf(a,a.stylesheets),a.unsuspend)){var C=a.unsuspend;a.unsuspend=null,C()}},(a.imgBytes>Ay?50:800)+s);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var $f=null;function qf(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,$f=new Map,s.forEach(p6,a),$f=null,Uf.call(a))}function p6(a,s){if(!(s.state.loading&4)){var u=$f.get(a);if(u)var p=u.get(null);else{u=new Map,$f.set(a,u);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<b.length;C++){var I=b[C];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),p=I)}p&&u.set(null,p)}b=s.instance,I=b.getAttribute("data-precedence"),C=u.get(I)||p,C===p&&u.set(null,b),u.set(I,b),this.count++,p=Uf.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),C?C.parentNode.insertBefore(b,C.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),s.state.loading|=4}}var Zu={$$typeof:P,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function g6(a,s,u,p,b,C,I,B,X){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.hiddenUpdates=wn(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=C,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function iR(a,s,u,p,b,C,I,B,X,de,ye,Ce){return a=new g6(a,s,u,I,X,de,ye,Ce,B),s=1,C===!0&&(s|=24),C=nr(3,null,null,s),a.current=C,C.stateNode=a,s=lb(),s.refCount++,a.pooledCache=s,s.refCount++,C.memoizedState={element:p,isDehydrated:u,cache:s},mb(C),a}function sR(a){return a?(a=Fl,a):Fl}function lR(a,s,u,p,b,C){b=sR(b),p.context===null?p.context=b:p.pendingContext=b,p=Pi(s),p.payload={element:u},C=C===void 0?null:C,C!==null&&(p.callback=C),u=Ri(a,p,s),u!==null&&(Wn(u,a,s),Ru(u,a,s))}function cR(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<s?u:s}}function ky(a,s){cR(a,s),(a=a.alternate)&&cR(a,s)}function uR(a){if(a.tag===13||a.tag===31){var s=ks(a,67108864);s!==null&&Wn(s,a,67108864),ky(a,67108864)}}function dR(a){if(a.tag===13||a.tag===31){var s=lr();s=wl(s);var u=ks(a,s);u!==null&&Wn(u,a,s),ky(a,s)}}var Vf=!0;function v6(a,s,u,p){var b=V.T;V.T=null;var C=Z.p;try{Z.p=2,Dy(a,s,u,p)}finally{Z.p=C,V.T=b}}function b6(a,s,u,p){var b=V.T;V.T=null;var C=Z.p;try{Z.p=8,Dy(a,s,u,p)}finally{Z.p=C,V.T=b}}function Dy(a,s,u,p){if(Vf){var b=Oy(p);if(b===null)vy(a,s,p,Hf,u),fR(a,p);else if(S6(b,a,s,u,p))p.stopPropagation();else if(fR(a,p),s&4&&-1<y6.indexOf(a)){for(;b!==null;){var C=Tl(b);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var I=It(C.pendingLanes);if(I!==0){var B=C;for(B.pendingLanes|=2,B.entangledLanes|=2;I;){var X=1<<31-No(I);B.entanglements[1]|=X,I&=~X}fa(C),(Bt&6)===0&&(Pf=G()+500,Vu(0))}}break;case 31:case 13:B=ks(C,2),B!==null&&Wn(B,C,2),Af(),ky(C,2)}if(C=Oy(p),C===null&&vy(a,s,p,Hf,u),C===b)break;b=C}b!==null&&p.stopPropagation()}else vy(a,s,p,null,u)}}function Oy(a){return a=Mv(a),Iy(a)}var Hf=null;function Iy(a){if(Hf=null,a=xl(a),a!==null){var s=i(a);if(s===null)a=null;else{var u=s.tag;if(u===13){if(a=l(s),a!==null)return a;a=null}else if(u===31){if(a=c(s),a!==null)return a;a=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return Hf=a,null}function mR(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case se:return 2;case Ee:return 8;case Pe:case Re:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var My=!1,zi=null,ji=null,Ui=null,Qu=new Map,Ju=new Map,$i=[],y6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fR(a,s){switch(a){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":Qu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ju.delete(s.pointerId)}}function Xu(a,s,u,p,b,C){return a===null||a.nativeEvent!==C?(a={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:C,targetContainers:[b]},s!==null&&(s=Tl(s),s!==null&&uR(s)),a):(a.eventSystemFlags|=p,s=a.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),a)}function S6(a,s,u,p,b){switch(s){case"focusin":return zi=Xu(zi,a,s,u,p,b),!0;case"dragenter":return ji=Xu(ji,a,s,u,p,b),!0;case"mouseover":return Ui=Xu(Ui,a,s,u,p,b),!0;case"pointerover":var C=b.pointerId;return Qu.set(C,Xu(Qu.get(C)||null,a,s,u,p,b)),!0;case"gotpointercapture":return C=b.pointerId,Ju.set(C,Xu(Ju.get(C)||null,a,s,u,p,b)),!0}return!1}function hR(a){var s=xl(a.target);if(s!==null){var u=i(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){a.blockedOn=s,RE(a.priority,function(){dR(u)});return}}else if(s===31){if(s=c(u),s!==null){a.blockedOn=s,RE(a.priority,function(){dR(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Gf(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var u=Oy(a.nativeEvent);if(u===null){u=a.nativeEvent;var p=new u.constructor(u.type,u);Iv=p,u.target.dispatchEvent(p),Iv=null}else return s=Tl(u),s!==null&&uR(s),a.blockedOn=u,!1;s.shift()}return!0}function pR(a,s,u){Gf(a)&&u.delete(s)}function _6(){My=!1,zi!==null&&Gf(zi)&&(zi=null),ji!==null&&Gf(ji)&&(ji=null),Ui!==null&&Gf(Ui)&&(Ui=null),Qu.forEach(pR),Ju.forEach(pR)}function Kf(a,s){a.blockedOn===s&&(a.blockedOn=null,My||(My=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_6)))}var Wf=null;function gR(a){Wf!==a&&(Wf=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wf===a&&(Wf=null);for(var s=0;s<a.length;s+=3){var u=a[s],p=a[s+1],b=a[s+2];if(typeof p!="function"){if(Iy(p||u)===null)continue;break}var C=Tl(u);C!==null&&(a.splice(s,3),s-=3,Ob(C,{pending:!0,data:b,method:u.method,action:p},p,b))}}))}function sc(a){function s(X){return Kf(X,a)}zi!==null&&Kf(zi,a),ji!==null&&Kf(ji,a),Ui!==null&&Kf(Ui,a),Qu.forEach(s),Ju.forEach(s);for(var u=0;u<$i.length;u++){var p=$i[u];p.blockedOn===a&&(p.blockedOn=null)}for(;0<$i.length&&(u=$i[0],u.blockedOn===null);)hR(u),u.blockedOn===null&&$i.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var b=u[p],C=u[p+1],I=b[$n]||null;if(typeof C=="function")I||gR(u);else if(I){var B=null;if(C&&C.hasAttribute("formAction")){if(b=C,I=C[$n]||null)B=I.formAction;else if(Iy(b)!==null)continue}else B=I.action;typeof B=="function"?u[p+1]=B:(u.splice(p,3),p-=3),gR(u)}}}function vR(){function a(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(I){return b=I})},focusReset:"manual",scroll:"manual"})}function s(){b!==null&&(b(),b=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),b!==null&&(b(),b=null)}}}function Ly(a){this._internalRoot=a}Yf.prototype.render=Ly.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(n(409));var u=s.current,p=lr();lR(u,p,a,s,null,null)},Yf.prototype.unmount=Ly.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;lR(a.current,2,null,a,null,null),Af(),s[El]=null}};function Yf(a){this._internalRoot=a}Yf.prototype.unstable_scheduleHydration=function(a){if(a){var s=Tv();a={blockedOn:null,target:a,priority:s};for(var u=0;u<$i.length&&s!==0&&s<$i[u].priority;u++);$i.splice(u,0,a),u===0&&hR(a)}};var bR=t.version;if(bR!=="19.2.6")throw Error(n(527,bR,"19.2.6"));Z.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=m(s),a=a!==null?h(a):null,a=a===null?null:a.stateNode,a};var C6={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{bt=Zf.inject(C6),Tt=Zf}catch{}}return td.createRoot=function(a,s){if(!r(a))throw Error(n(299));var u=!1,p="",b=xT,C=TT,I=PT;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(C=s.onCaughtError),s.onRecoverableError!==void 0&&(I=s.onRecoverableError)),s=iR(a,1,!1,null,null,u,p,null,b,C,I,vR),a[El]=s.current,gy(a),new Ly(s)},td.hydrateRoot=function(a,s,u){if(!r(a))throw Error(n(299));var p=!1,b="",C=xT,I=TT,B=PT,X=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(C=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(B=u.onRecoverableError),u.formState!==void 0&&(X=u.formState)),s=iR(a,1,!0,s,u??null,p,b,X,C,I,B,vR),s.context=sR(null),u=s.current,p=lr(),p=wl(p),b=Pi(p),b.callback=null,Ri(u,b,p),u=p,s.current.lanes=u,Mt(s,u),fa(s),a[El]=s.current,gy(a),new Yf(s)},td.version="19.2.6",td}var DR;function N6(){if(DR)return jy.exports;DR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),jy.exports=L6(),jy.exports}var F6=N6(),D=bs();const ee=pl(D),OC=E6({__proto__:null,default:ee},[D]);var au=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},B6=class extends au{#e;#t;#o;constructor(){super(),this.#o=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},IC=new B6,z6={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},j6=class{#e=z6;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ol=new j6;function U6(e){setTimeout(e,0)}var $6=typeof window>"u"||"Deno"in globalThis;function Wo(){}function q6(e,t){return typeof e=="function"?e(t):e}function LS(e){return typeof e=="number"&&e>=0&&e!==1/0}function XO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ls(e,t){return typeof e=="function"?e(t):e}function mr(e,t){return typeof e=="function"?e(t):e}function OR(e,t){const{type:o="all",exact:n,fetchStatus:r,predicate:i,queryKey:l,stale:c}=e;if(l){if(n){if(t.queryHash!==MC(l,t.options))return!1}else if(!Gd(t.queryKey,l))return!1}if(o!=="all"){const d=t.isActive();if(o==="active"&&!d||o==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||r&&r!==t.state.fetchStatus||i&&!i(t))}function IR(e,t){const{exact:o,status:n,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(o){if(dl(t.options.mutationKey)!==dl(i))return!1}else if(!Gd(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||r&&!r(t))}function MC(e,t){return(t?.queryKeyHashFn||dl)(e)}function dl(e){return JSON.stringify(e,(t,o)=>NS(o)?Object.keys(o).sort().reduce((n,r)=>(n[r]=o[r],n),{}):o)}function Gd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Gd(e[o],t[o])):!1}var V6=Object.prototype.hasOwnProperty;function eI(e,t,o=0){if(e===t)return e;if(o>500)return t;const n=MR(e)&&MR(t);if(!n&&!(NS(e)&&NS(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,d=n?new Array(c):{};let m=0;for(let h=0;h<c;h++){const f=n?h:l[h],g=e[f],v=t[f];if(g===v){d[f]=g,(n?h<i:V6.call(e,f))&&m++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[f]=v;continue}const y=eI(g,v,o+1);d[f]=y,y===g&&m++}return i===c&&m===i?e:d}function Np(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(e[o]!==t[o])return!1;return!0}function MR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function NS(e){if(!LR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const o=t.prototype;return!(!LR(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function LR(e){return Object.prototype.toString.call(e)==="[object Object]"}function H6(e){return new Promise(t=>{ol.setTimeout(t,e)})}function FS(e,t,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,t):o.structuralSharing!==!1?eI(e,t):t}function Hue(e){return e}function G6(e,t,o=0){const n=[...e,t];return o&&n.length>o?n.slice(1):n}function K6(e,t,o=0){const n=[t,...e];return o&&n.length>o?n.slice(0,-1):n}var LC=Symbol();function tI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===LC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function NC(e,t){return typeof e=="function"?e(...t):!!e}function W6(e,t,o){let n=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),n||(n=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),e}var Kd=(()=>{let e=()=>$6;return{isServer(){return e()},setIsServer(t){e=t}}})();function BS(){let e,t;const o=new Promise((r,i)=>{e=r,t=i});o.status="pending",o.catch(()=>{});function n(r){Object.assign(o,r),delete o.resolve,delete o.reject}return o.resolve=r=>{n({status:"fulfilled",value:r}),e(r)},o.reject=r=>{n({status:"rejected",reason:r}),t(r)},o}function Y6(e){let t;if(e.then(o=>(t=o,o),Wo)?.catch(Wo),t!==void 0)return{data:t}}function oI(e){return e}function Z6(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Q6(e,t,o){const n=()=>{const r=e.promise?.then(t).catch(i=>o(i)?Promise.reject(new Error("redacted")):Promise.reject(i));return r?.catch(Wo),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:n()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function J6(e){return e.state.isPaused}function X6(e){return e.state.status==="success"}function ez(e){return!0}function tz(e,t={}){const o=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??J6,n=e.getMutationCache().getAll().flatMap(d=>o(d)?[Z6(d)]:[]),r=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??X6,i=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??ez,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??oI,c=e.getQueryCache().getAll().flatMap(d=>r(d)?[Q6(d,l,i)]:[]);return{mutations:n,queries:c}}function oz(e,t,o){if(typeof t!="object"||t===null)return;const n=e.getMutationCache(),r=e.getQueryCache(),i=e.getDefaultOptions().hydrate?.deserializeData??oI,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...m})=>{n.build(e,{...e.getDefaultOptions().hydrate?.mutations,...o?.defaultOptions?.mutations,...m},d)}),c.forEach(({queryKey:d,state:m,queryHash:h,meta:f,promise:g,dehydratedAt:v,queryType:y})=>{const S=g?Y6(g):void 0,E=m.data===void 0?S?.data:m.data,_=E===void 0?E:i(E);let w=r.get(h);const P=w?.state.status==="pending",x=w?.state.fetchStatus==="fetching";if(w){const T=S&&v!==void 0&&v>w.state.dataUpdatedAt;if(m.dataUpdatedAt>w.state.dataUpdatedAt||T){const{fetchStatus:A,...k}=m;w.setState({...k,data:_,...m.status==="pending"&&_!==void 0&&{status:"success",...!x&&{fetchStatus:"idle"}}})}}else w=r.build(e,{...e.getDefaultOptions().hydrate?.queries,...o?.defaultOptions?.queries,queryKey:d,queryHash:h,meta:f,_type:y},{...m,data:_,fetchStatus:"idle",status:m.status==="pending"&&_!==void 0?"success":m.status});g&&!S&&!P&&!x&&(v===void 0||v>w.state.dataUpdatedAt)&&w.fetch(void 0,{initialPromise:Promise.resolve(g).then(i)}).catch(Wo)})}var nz=U6;function rz(){let e=[],t=0,o=c=>{c()},n=c=>{c()},r=nz;const i=c=>{t?e.push(c):r(()=>{o(c)})},l=()=>{const c=e;e=[],c.length&&r(()=>{n(()=>{c.forEach(d=>{o(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{i(()=>{c(...d)})},schedule:i,setNotifyFunction:c=>{o=c},setBatchNotifyFunction:c=>{n=c},setScheduler:c=>{r=c}}}var Zo=rz(),az=class extends au{#e=!0;#t;#o;constructor(){super(),this.#o=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},Fp=new az;function iz(e){return Math.min(1e3*2**e,3e4)}function nI(e){return(e??"online")==="online"?Fp.isOnline():!0}var zS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function rI(e){let t=!1,o=0,n;const r=BS(),i=()=>r.status!=="pending",l=S=>{if(!i()){const E=new zS(S);g(E),e.onCancel?.(E)}},c=()=>{t=!0},d=()=>{t=!1},m=()=>IC.isFocused()&&(e.networkMode==="always"||Fp.isOnline())&&e.canRun(),h=()=>nI(e.networkMode)&&e.canRun(),f=S=>{i()||(n?.(),r.resolve(S))},g=S=>{i()||(n?.(),r.reject(S))},v=()=>new Promise(S=>{n=E=>{(i()||m())&&S(E)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),y=()=>{if(i())return;let S;const E=o===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(f).catch(_=>{if(i())return;const w=e.retry??(Kd.isServer()?0:3),P=e.retryDelay??iz,x=typeof P=="function"?P(o,_):P,T=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,_);if(t||!T){g(_);return}o++,e.onFail?.(o,_),H6(x).then(()=>m()?void 0:v()).then(()=>{t?g(_):y()})})};return{promise:r,status:()=>r.status,cancel:l,continue:()=>(n?.(),r),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?y():v().then(y),r)}}var aI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LS(this.gcTime)&&(this.#e=ol.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ol.clearTimeout(this.#e),this.#e=void 0)}};function sz(e){return{onFetch:(t,o)=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const m=async()=>{let h=!1;const f=y=>{W6(y,()=>t.signal,()=>h=!0)},g=tI(t.options,t.fetchOptions),v=async(y,S,E)=>{if(h)return Promise.reject(t.signal.reason);if(S==null&&y.pages.length)return Promise.resolve(y);const w=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return f(A),A})(),P=await g(w),{maxPages:x}=t.options,T=E?K6:G6;return{pages:T(y.pages,P,x),pageParams:T(y.pageParams,S,x)}};if(r&&i.length){const y=r==="backward",S=y?iI:jS,E={pages:i,pageParams:l},_=S(n,E);c=await v(E,_,y)}else{const y=e??i.length;do{const S=d===0?l[0]??n.initialPageParam:jS(n,c);if(d>0&&S==null)break;c=await v(c,S),d++}while(d<y)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o):t.fetchFn=m}}}function jS(e,{pages:t,pageParams:o}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,o[n],o):void 0}function iI(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}function Gue(e,t){return t?jS(e,t)!=null:!1}function Kue(e,t){return!t||!e.getPreviousPageParam?!1:iI(e,t)!=null}var lz=class extends aI{#e;#t;#o;#n;#a;#r;#s;#i;constructor(e){super(),this.#i=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=FR(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=FR(this.options);t.data!==void 0&&(this.setState(NR(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const o=FS(this.state.data,e,this.options);return this.#l({data:o,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),o}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Wo).catch(Wo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>mr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===LC||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ls(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!XO(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#u()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const o=new AbortController,n=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#i=!0,o.signal)})},r=()=>{const d=tI(this.options,t),h=(()=>{const f={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#i=!1,this.options.persister?this.options.persister(d,h,this):d(h)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:r};return n(d),d})();(this.#e==="infinite"?sz(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#o=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=rI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof zS&&d.revert&&this.setState({...this.#o,fetchStatus:"idle"}),o.abort()},onFail:(d,m)=>{this.#l({type:"failed",failureCount:d,error:m})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof zS){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...sI(o.data,this.options),fetchMeta:e.meta??null};case"success":const n={...o,...NR(e.data,e.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#o=e.manual?n:void 0,n;case"error":const r=e.error;return{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=t(this.state),Zo.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function sI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function NR(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function FR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,n=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var lI=class extends au{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=BS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#o=void 0;#n=void 0;#a;#r;#s;#i;#u;#l;#h;#d;#m;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),BR(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return US(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return US(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#_(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,o=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Np(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&zR(this.#t,o,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#t!==o||mr(this.options.enabled,this.#t)!==mr(t.enabled,this.#t)||ls(this.options.staleTime,this.#t)!==ls(t.staleTime,this.#t))&&this.#g();const r=this.#v();n&&(this.#t!==o||mr(this.options.enabled,this.#t)!==mr(t.enabled,this.#t)||r!==this.#c)&&this.#b(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(t,e);return uz(this,o)&&(this.#n=o,this.#r=this.options,this.#a=this.#t.state),o}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(o,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),o=this.#e.getQueryCache().build(this.#e,t);return o.fetch().then(()=>this.createResult(o,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Wo)),t}#g(){this.#S();const e=ls(this.options.staleTime,this.#t);if(Kd.isServer()||this.#n.isStale||!LS(e))return;const o=XO(this.#n.dataUpdatedAt,e)+1;this.#d=ol.setTimeout(()=>{this.#n.isStale||this.updateResult()},o)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#_(),this.#c=e,!(Kd.isServer()||mr(this.options.enabled,this.#t)===!1||!LS(this.#c)||this.#c===0)&&(this.#m=ol.setInterval(()=>{(this.options.refetchIntervalInBackground||IC.isFocused())&&this.#f()},this.#c))}#y(){this.#g(),this.#b(this.#v())}#S(){this.#d!==void 0&&(ol.clearTimeout(this.#d),this.#d=void 0)}#_(){this.#m!==void 0&&(ol.clearInterval(this.#m),this.#m=void 0)}createResult(e,t){const o=this.#t,n=this.options,r=this.#n,i=this.#a,l=this.#r,d=e!==o?e.state:this.#o,{state:m}=e;let h={...m},f=!1,g;if(t._optimisticResults){const O=this.hasListeners(),N=!O&&BR(e,t),$=O&&zR(e,o,t,n);(N||$)&&(h={...h,...sI(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:S}=h;g=h.data;let E=!1;if(t.placeholderData!==void 0&&g===void 0&&S==="pending"){let O;r?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(O=r.data,E=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,O!==void 0&&(S="success",g=FS(r?.data,O,t),f=!0)}if(t.select&&g!==void 0&&!E)if(r&&g===i?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=FS(r?.data,g,t),this.#l=g,this.#i=null}catch(O){this.#i=O}this.#i&&(v=this.#i,g=this.#l,y=Date.now(),S="error");const _=h.fetchStatus==="fetching",w=S==="pending",P=S==="error",x=w&&_,T=g!==void 0,k={status:S,fetchStatus:h.fetchStatus,isPending:w,isSuccess:S==="success",isError:P,isInitialLoading:x,isLoading:x,data:g,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:_,isRefetching:_&&!w,isLoadingError:P&&!T,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:P&&T,isStale:FC(e,t),refetch:this.refetch,promise:this.#s,isEnabled:mr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=k.data!==void 0,N=k.status==="error"&&!O,$=j=>{N?j.reject(k.error):O&&j.resolve(k.data)},F=()=>{const j=this.#s=k.promise=BS();$(j)},U=this.#s;switch(U.status){case"pending":e.queryHash===o.queryHash&&$(U);break;case"fulfilled":(N||k.data!==U.value)&&F();break;case"rejected":(!N||k.error!==U.reason)&&F();break}}return k}updateResult(){const e=this.#n,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Np(t,e))return;this.#n=t;const o=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,r=typeof n=="function"?n():n;if(r==="all"||!r&&!this.#p.size)return!0;const i=new Set(r??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#n).some(l=>{const c=l;return this.#n[c]!==e[c]&&i.has(c)})};this.#w({listeners:o()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#w(e){Zo.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cz(e,t){return mr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&mr(t.retryOnMount,e)===!1)}function BR(e,t){return cz(e,t)||e.state.data!==void 0&&US(e,t,t.refetchOnMount)}function US(e,t,o){if(mr(t.enabled,e)!==!1&&ls(t.staleTime,e)!=="static"){const n=typeof o=="function"?o(e):o;return n==="always"||n!==!1&&FC(e,t)}return!1}function zR(e,t,o,n){return(e!==t||mr(n.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&FC(e,o)}function FC(e,t){return mr(t.enabled,e)!==!1&&e.isStaleByTime(ls(t.staleTime,e))}function uz(e,t){return!Np(e.getCurrentResult(),t)}var dz=class extends aI{#e;#t;#o;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#o=e.mutationCache,this.#t=[],this.state=e.state||cI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#o.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=rI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,o):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#a({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:r}),this.#o.config.onMutate&&await this.#o.config.onMutate(e,this,o);const l=await this.options.onMutate?.(e,o);l!==this.state.context&&this.#a({type:"pending",context:l,variables:e,isPaused:r})}const i=await this.#n.start();return await this.#o.config.onSuccess?.(i,e,this.state.context,this,o),await this.options.onSuccess?.(i,e,this.state.context,o),await this.#o.config.onSettled?.(i,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(i,null,e,this.state.context,o),this.#a({type:"success",data:i}),i}catch(i){try{await this.#o.config.onError?.(i,e,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onError?.(i,e,this.state.context,o)}catch(l){Promise.reject(l)}try{await this.#o.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,o)}catch(l){Promise.reject(l)}throw this.#a({type:"error",error:i}),i}finally{this.#o.runNext(this)}}#a(e){const t=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Zo.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#o.notify({mutation:this,type:"updated",action:e})})}};function cI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mz=class extends au{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#o=0}#e;#t;#o;build(e,t,o){const n=new dz({client:e,mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(n),n}add(e){this.#e.add(e);const t=Qf(e);if(typeof t=="string"){const o=this.#t.get(t);o?o.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Qf(e);if(typeof t=="string"){const o=this.#t.get(t);if(o)if(o.length>1){const n=o.indexOf(e);n!==-1&&o.splice(n,1)}else o[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Qf(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(r=>r.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Qf(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zo.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(o=>IR(t,o))}findAll(e={}){return this.getAll().filter(t=>IR(e,t))}notify(e){Zo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Zo.batch(()=>Promise.all(e.map(t=>t.continue().catch(Wo))))}};function Qf(e){return e.options.scope?.id}var fz=class extends au{#e;#t=void 0;#o;#n;constructor(t,o){super(),this.#e=t,this.setOptions(o),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const o=this.options;this.options=this.#e.defaultMutationOptions(t),Np(this.options,o)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),o?.mutationKey&&this.options.mutationKey&&dl(o.mutationKey)!==dl(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#r(t)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#a(),this.#r()}mutate(t,o){return this.#n=o,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(t)}#a(){const t=this.#o?.state??cI();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){Zo.batch(()=>{if(this.#n&&this.hasListeners()){const o=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,o,n,r)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(t.data,null,o,n,r)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,o,n,r)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(void 0,t.error,o,n,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(o=>{o(this.#t)})})}},hz=class extends au{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,o){const n=t.queryKey,r=t.queryHash??MC(n,t);let i=this.get(r);return i||(i=new lz({client:e,queryKey:n,queryHash:r,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zo.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(o=>OR(t,o))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(o=>OR(e,o)):t}notify(e){Zo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Zo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pz=class{#e;#t;#o;#n;#a;#r;#s;#i;constructor(e={}){this.#e=e.queryCache||new hz,this.#t=e.mutationCache||new mz,this.#o=e.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=IC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Fp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),o=this.#e.build(this,t),n=o.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(ls(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:o})=>{const n=o.data;return[t,n]})}setQueryData(e,t,o){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,l=q6(t,i);if(l!==void 0)return this.#e.build(this,n).setData(l,{...o,manual:!0})}setQueriesData(e,t,o){return Zo.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,o)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Zo.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){const o=this.#e;return Zo.batch(()=>(o.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const o={revert:!0,...t},n=Zo.batch(()=>this.#e.findAll(e).map(r=>r.cancel(o)));return Promise.all(n).then(Wo).catch(Wo)}invalidateQueries(e,t={}){return Zo.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const o={...t,cancelRefetch:t.cancelRefetch??!0},n=Zo.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,o);return o.throwOnError||(i=i.catch(Wo)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Wo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const o=this.#e.build(this,t);return o.isStaleByTime(ls(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wo).catch(Wo)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wo).catch(Wo)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Fp.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#n.set(dl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],o={};return t.forEach(n=>{Gd(e,n.queryKey)&&Object.assign(o,n.defaultOptions)}),o}setMutationDefaults(e,t){this.#a.set(dl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],o={};return t.forEach(n=>{Gd(e,n.mutationKey)&&Object.assign(o,n.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=MC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===LC&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},uI=D.createContext(void 0),Ng=e=>{const t=D.useContext(uI);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gz=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(uI.Provider,{value:e,children:t})),dI=D.createContext(!1),vz=()=>D.useContext(dI);dI.Provider;function mI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fI=D.createContext(mI()),bz=()=>D.useContext(fI),Yue=({children:e})=>{const[t]=D.useState(()=>mI());return R.jsx(fI.Provider,{value:t,children:typeof e=="function"?e(t):e})},yz=(e,t,o)=>{const n=o?.state.error&&typeof e.throwOnError=="function"?NC(e.throwOnError,[o.state.error,o]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},Sz=e=>{D.useEffect(()=>{e.clearReset()},[e])},_z=({result:e,errorResetBoundary:t,throwOnError:o,query:n,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&e.data===void 0||NC(o,[e.error,n])),Cz=(e,t)=>t.state.data===void 0,wz=e=>{if(e.suspense){const o=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>o(n(...r)):o(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ez=(e,t)=>e.isLoading&&e.isFetching&&!t,xz=(e,t)=>e?.suspense&&t.isPending,jR=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});function hI(e,t,o){const n=vz(),r=bz(),i=Ng(o),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=i.getQueryCache().get(l.queryHash);l._optimisticResults=n?"isRestoring":"optimistic",wz(l),yz(l,r,c),Sz(r);const d=!i.getQueryCache().get(l.queryHash),[m]=D.useState(()=>new t(i,l)),h=m.getOptimisticResult(l),f=!n&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(g=>{const v=f?m.subscribe(Zo.batchCalls(g)):Wo;return m.updateResult(),v},[m,f]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),D.useEffect(()=>{m.setOptions(l)},[l,m]),xz(l,h))throw jR(l,m,r);if(_z({result:h,errorResetBoundary:r,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!Kd.isServer()&&Ez(h,n)&&(d?jR(l,m,r):c?.promise)?.catch(Wo).finally(()=>{m.updateResult()}),l.notifyOnChangeProps?h:m.trackResult(h)}function pI(e,t){return hI(e,lI,t)}function gl(e,t){return hI({...e,enabled:!0,suspense:!0,throwOnError:Cz,placeholderData:void 0},lI,t)}function yp(e,t){const o=Ng(t),[n]=D.useState(()=>new fz(o,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const r=D.useSyncExternalStore(D.useCallback(l=>n.subscribe(Zo.batchCalls(l)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=D.useCallback((l,c)=>{n.mutate(l,c).catch(Wo)},[n]);if(r.error&&NC(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}const Tz=Object.freeze({status:"aborted"});function be(e,t,o){function n(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const m=l.prototype,h=Object.keys(m);for(let f=0;f<h.length;f++){const g=h[f];g in c||(c[g]=m[g].bind(c))}}const r=o?.Parent??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function l(c){var d;const m=o?.Parent?new i:this;n(m,c),(d=m._zod).deferred??(d.deferred=[]);for(const h of m._zod.deferred)h();return m}return Object.defineProperty(l,"init",{value:n}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Nc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class gI extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const vI={};function hs(e){return vI}function bI(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function $S(e,t){return typeof t=="bigint"?t.toString():t}function Fg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function pm(e){return e==null}function BC(e){const t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function Pz(e,t){const o=(e.toString().split(".")[1]||"").length,n=t.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const d=n.match(/\d?e-(\d?)/);d?.[1]&&(r=Number.parseInt(d[1]))}const i=o>r?o:r,l=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return l%c/10**i}const UR=Symbol("evaluating");function At(e,t,o){let n;Object.defineProperty(e,t,{get(){if(n!==UR)return n===void 0&&(n=UR,n=o()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function vl(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function ys(...e){const t={};for(const o of e){const n=Object.getOwnPropertyDescriptors(o);Object.assign(t,n)}return Object.defineProperties({},t)}function $R(e){return JSON.stringify(e)}function Rz(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const yI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Wd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Az=Fg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Gc(e){if(Wd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const o=t.prototype;return!(Wd(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function SI(e){return Gc(e)?{...e}:Array.isArray(e)?[...e]:e}const kz=new Set(["string","number","symbol"]);function Kc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ss(e,t,o){const n=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(n._zod.parent=e),n}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Dz(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Oz={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Iz(e,t){const o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=ys(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=o.shape[c])}return vl(this,"shape",l),l},checks:[]});return Ss(e,i)}function Mz(e,t){const o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=ys(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return vl(this,"shape",l),l},checks:[]});return Ss(e,i)}function Lz(e,t){if(!Gc(t))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0){const i=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(i,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=ys(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return vl(this,"shape",i),i}});return Ss(e,r)}function Nz(e,t){if(!Gc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const o=ys(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return vl(this,"shape",n),n}});return Ss(e,o)}function Fz(e,t){const o=ys(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return vl(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Ss(e,o)}function Bz(e,t,o){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ys(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(o)for(const m in o){if(!(m in c))throw new Error(`Unrecognized key: "${m}"`);o[m]&&(d[m]=e?new e({type:"optional",innerType:c[m]}):c[m])}else for(const m in c)d[m]=e?new e({type:"optional",innerType:c[m]}):c[m];return vl(this,"shape",d),d},checks:[]});return Ss(t,l)}function zz(e,t,o){const n=ys(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(o)for(const l in o){if(!(l in i))throw new Error(`Unrecognized key: "${l}"`);o[l]&&(i[l]=new e({type:"nonoptional",innerType:r[l]}))}else for(const l in r)i[l]=new e({type:"nonoptional",innerType:r[l]});return vl(this,"shape",i),i}});return Ss(t,n)}function Ac(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function nl(e,t){return t.map(o=>{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}function Jf(e){return typeof e=="string"?e:e?.message}function ps(e,t,o){const n={...e,path:e.path??[]};if(!e.message){const r=Jf(e.inst?._zod.def?.error?.(e))??Jf(t?.error?.(e))??Jf(o.customError?.(e))??Jf(o.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function _I(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zC(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yd(...e){const[t,o,n]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:n}:{...t}}const CI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$S,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jC=be("$ZodError",CI),Bg=be("$ZodError",CI,{Parent:Error});function jz(e,t=o=>o.message){const o={},n=[];for(const r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:o}}function Uz(e,t=o=>o.message){const o={_errors:[]},n=r=>{for(const i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>n({issues:l}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)o._errors.push(t(i));else{let l=o,c=0;for(;c<i.path.length;){const d=i.path[c];c===i.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(i))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return n(e),o}const zg=e=>(t,o,n,r)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:o,issues:[]},i);if(l instanceof Promise)throw new Nc;if(l.issues.length){const c=new(r?.Err??e)(l.issues.map(d=>ps(d,i,hs())));throw yI(c,r?.callee),c}return l.value},$z=zg(Bg),jg=e=>async(t,o,n,r)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let l=t._zod.run({value:o,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(r?.Err??e)(l.issues.map(d=>ps(d,i,hs())));throw yI(c,r?.callee),c}return l.value},qz=jg(Bg),Ug=e=>(t,o,n)=>{const r=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:o,issues:[]},r);if(i instanceof Promise)throw new Nc;return i.issues.length?{success:!1,error:new(e??jC)(i.issues.map(l=>ps(l,r,hs())))}:{success:!0,data:i.value}},Vz=Ug(Bg),$g=e=>async(t,o,n)=>{const r=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:o,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(l=>ps(l,r,hs())))}:{success:!0,data:i.value}},Hz=$g(Bg),Gz=e=>(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zg(e)(t,o,r)},Kz=e=>(t,o,n)=>zg(e)(t,o,n),Wz=e=>async(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return jg(e)(t,o,r)},Yz=e=>async(t,o,n)=>jg(e)(t,o,n),Zz=e=>(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ug(e)(t,o,r)},Qz=e=>(t,o,n)=>Ug(e)(t,o,n),Jz=e=>async(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return $g(e)(t,o,r)},Xz=e=>async(t,o,n)=>$g(e)(t,o,n),ej=/^[cC][^\s-]{8,}$/,tj=/^[0-9a-z]+$/,oj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nj=/^[0-9a-vA-V]{20}$/,rj=/^[A-Za-z0-9]{27}$/,aj=/^[a-zA-Z0-9_-]{21}$/,ij=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sj=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qR=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lj=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function uj(){return new RegExp(cj,"u")}const dj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wI=/^[A-Za-z0-9_-]*$/,gj=/^\+[1-9]\d{6,14}$/,EI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vj=new RegExp(`^${EI}$`);function xI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bj(e){return new RegExp(`^${xI(e)}$`)}function yj(e){const t=xI({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${o.join("|")})`;return new RegExp(`^${EI}T(?:${n})$`)}const Sj=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},_j=/^-?\d+$/,TI=/^-?\d+(?:\.\d+)?$/,Cj=/^(?:true|false)$/i,wj=/^null$/i,Ej=/^undefined$/i,xj=/^[^A-Z]*$/,Tj=/^[^a-z]*$/,yn=be("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),PI={number:"number",bigint:"bigint",object:"date"},RI=be("$ZodCheckLessThan",(e,t)=>{yn.init(e,t);const o=PI[typeof t.value];e._zod.onattach.push(n=>{const r=n._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),AI=be("$ZodCheckGreaterThan",(e,t)=>{yn.init(e,t);const o=PI[typeof t.value];e._zod.onattach.push(n=>{const r=n._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pj=be("$ZodCheckMultipleOf",(e,t)=>{yn.init(e,t),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):Pz(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),Rj=be("$ZodCheckNumberFormat",(e,t)=>{yn.init(e,t),t.format=t.format||"float64";const o=t.format?.includes("int"),n=o?"int":"number",[r,i]=Oz[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=r,c.maximum=i,o&&(c.pattern=_j)}),e._zod.check=l=>{const c=l.value;if(o){if(!Number.isInteger(c)){l.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}c<r&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>i&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Aj=be("$ZodCheckMaxSize",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;r.size<=t.maximum||n.issues.push({origin:_I(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kj=be("$ZodCheckMinSize",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;r.size>=t.minimum||n.issues.push({origin:_I(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dj=be("$ZodCheckMaxLength",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const l=zC(r);n.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Oj=be("$ZodCheckMinLength",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const l=zC(r);n.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ij=be("$ZodCheckLengthEquals",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{const r=n.value,i=r.length;if(i===t.length)return;const l=zC(r),c=i>t.length;n.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qg=be("$ZodCheckStringFormat",(e,t)=>{var o,n;yn.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Mj=be("$ZodCheckRegex",(e,t)=>{qg.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Lj=be("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xj),qg.init(e,t)}),Nj=be("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tj),qg.init(e,t)}),Fj=be("$ZodCheckIncludes",(e,t)=>{yn.init(e,t);const o=Kc(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=n,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Bj=be("$ZodCheckStartsWith",(e,t)=>{yn.init(e,t);const o=new RegExp(`^${Kc(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{const r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),zj=be("$ZodCheckEndsWith",(e,t)=>{yn.init(e,t);const o=new RegExp(`.*${Kc(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{const r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),jj=be("$ZodCheckMimeType",(e,t)=>{yn.init(e,t);const o=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Uj=be("$ZodCheckOverwrite",(e,t)=>{yn.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});class $j{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
9
+ `+p.stack}}var $e=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,De=e.unstable_cancelCallback,ke=e.unstable_shouldYield,Ue=e.unstable_requestPaint,G=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Pe=e.unstable_NormalPriority,Re=e.unstable_LowPriority,Ie=e.unstable_IdlePriority,Xe=e.log,et=e.unstable_setDisableYieldValue,bt=null,Tt=null;function yt(a){if(typeof Xe=="function"&&et(a),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(bt,a)}catch{}}var No=Math.clz32?Math.clz32:Ye,Ia=Math.log,Gr=Math.LN2;function Ye(a){return a>>>=0,a===0?32:31-(Ia(a)/Gr|0)|0}var ft=256,Pt=262144,at=4194304;function It(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ge(a,s,u){var p=a.pendingLanes;if(p===0)return 0;var b=0,C=a.suspendedLanes,I=a.pingedLanes;a=a.warmLanes;var B=p&134217727;return B!==0?(p=B&~C,p!==0?b=It(p):(I&=B,I!==0?b=It(I):u||(u=B&~a,u!==0&&(b=It(u))))):(B=p&~C,B!==0?b=It(B):I!==0?b=It(I):u||(u=p&~a,u!==0&&(b=It(u)))),b===0?0:s!==0&&s!==b&&(s&C)===0&&(C=b&-b,u=s&-s,C>=u||C===32&&(u&4194048)!==0)?s:b}function ut(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function Qt(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gt(){var a=at;return at<<=1,(at&62914560)===0&&(at=4194304),a}function wn(a){for(var s=[],u=0;31>u;u++)s.push(a);return s}function Mt(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function ao(a,s,u,p,b,C){var I=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var B=a.entanglements,X=a.expirationTimes,de=a.hiddenUpdates;for(u=I&~u;0<u;){var ye=31-No(u),Ce=1<<ye;B[ye]=0,X[ye]=-1;var fe=de[ye];if(fe!==null)for(de[ye]=null,ye=0;ye<fe.length;ye++){var ge=fe[ye];ge!==null&&(ge.lane&=-536870913)}u&=~Ce}p!==0&&Cr(a,p,0),C!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=C&~(I&~s))}function Cr(a,s,u){a.pendingLanes|=s,a.suspendedLanes&=~s;var p=31-No(s);a.entangledLanes|=s,a.entanglements[p]=a.entanglements[p]|1073741824|u&261930}function an(a,s){var u=a.entangledLanes|=s;for(a=a.entanglements;u;){var p=31-No(u),b=1<<p;b&s|a[p]&s&&(a[p]|=s),u&=~b}}function Un(a,s){var u=s&-s;return u=(u&42)!==0?1:wl(u),(u&(a.suspendedLanes|s))!==0?0:u}function wl(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Kr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Tv(){var a=Z.p;return a!==0?a:(a=window.event,a===void 0?32:mR(a.type))}function RE(a,s){var u=Z.p;try{return Z.p=a,s()}finally{Z.p=u}}var Si=Math.random().toString(36).slice(2),sn="__reactFiber$"+Si,$n="__reactProps$"+Si,El="__reactContainer$"+Si,Pv="__reactEvents$"+Si,fB="__reactListeners$"+Si,hB="__reactHandles$"+Si,AE="__reactResources$"+Si,du="__reactMarker$"+Si;function Rv(a){delete a[sn],delete a[$n],delete a[Pv],delete a[fB],delete a[hB]}function xl(a){var s=a[sn];if(s)return s;for(var u=a.parentNode;u;){if(s=u[El]||u[sn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(a=ZP(a);a!==null;){if(u=a[sn])return u;a=ZP(a)}return s}a=u,u=a.parentNode}return null}function Tl(a){if(a=a[sn]||a[El]){var s=a.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return a}return null}function mu(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(n(33))}function Pl(a){var s=a[AE];return s||(s=a[AE]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(a){a[du]=!0}var kE=new Set,DE={};function Ts(a,s){Rl(a,s),Rl(a+"Capture",s)}function Rl(a,s){for(DE[a]=s,a=0;a<s.length;a++)kE.add(s[a])}var pB=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),OE={},IE={};function gB(a){return $e.call(IE,a)?!0:$e.call(OE,a)?!1:pB.test(a)?IE[a]=!0:(OE[a]=!0,!1)}function Bm(a,s,u){if(gB(s))if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+u)}}function zm(a,s,u){if(u===null)a.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+u)}}function Ma(a,s,u,p){if(p===null)a.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(s,u,""+p)}}function wr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ME(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function vB(a,s,u){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,s);if(!a.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,C=p.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return b.call(this)},set:function(I){u=""+I,C.call(this,I)}}),Object.defineProperty(a,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(I){u=""+I},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Av(a){if(!a._valueTracker){var s=ME(a)?"checked":"value";a._valueTracker=vB(a,s,""+a[s])}}function LE(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return a&&(p=ME(a)?a.checked?"true":"false":a.value),a=p,a!==u?(s.setValue(a),!0):!1}function jm(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var bB=/[\n"\\]/g;function Er(a){return a.replace(bB,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function kv(a,s,u,p,b,C,I,B){a.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?a.type=I:a.removeAttribute("type"),s!=null?I==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+wr(s)):a.value!==""+wr(s)&&(a.value=""+wr(s)):I!=="submit"&&I!=="reset"||a.removeAttribute("value"),s!=null?Dv(a,I,wr(s)):u!=null?Dv(a,I,wr(u)):p!=null&&a.removeAttribute("value"),b==null&&C!=null&&(a.defaultChecked=!!C),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?a.name=""+wr(B):a.removeAttribute("name")}function NE(a,s,u,p,b,C,I,B){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.type=C),s!=null||u!=null){if(!(C!=="submit"&&C!=="reset"||s!=null)){Av(a);return}u=u!=null?""+wr(u):"",s=s!=null?""+wr(s):u,B||s===a.value||(a.value=s),a.defaultValue=s}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=B?a.checked:!!p,a.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.name=I),Av(a)}function Dv(a,s,u){s==="number"&&jm(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Al(a,s,u,p){if(a=a.options,s){s={};for(var b=0;b<u.length;b++)s["$"+u[b]]=!0;for(u=0;u<a.length;u++)b=s.hasOwnProperty("$"+a[u].value),a[u].selected!==b&&(a[u].selected=b),b&&p&&(a[u].defaultSelected=!0)}else{for(u=""+wr(u),s=null,b=0;b<a.length;b++){if(a[b].value===u){a[b].selected=!0,p&&(a[b].defaultSelected=!0);return}s!==null||a[b].disabled||(s=a[b])}s!==null&&(s.selected=!0)}}function FE(a,s,u){if(s!=null&&(s=""+wr(s),s!==a.value&&(a.value=s),u==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=u!=null?""+wr(u):""}function BE(a,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(n(92));if(ae(p)){if(1<p.length)throw Error(n(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=wr(s),a.defaultValue=u,p=a.textContent,p===u&&p!==""&&p!==null&&(a.value=p),Av(a)}function kl(a,s){if(s){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=s;return}}a.textContent=s}var yB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zE(a,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":p?a.setProperty(s,u):typeof u!="number"||u===0||yB.has(s)?s==="float"?a.cssFloat=u:a[s]=(""+u).trim():a[s]=u+"px"}function jE(a,s,u){if(s!=null&&typeof s!="object")throw Error(n(62));if(a=a.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="");for(var b in s)p=s[b],s.hasOwnProperty(b)&&u[b]!==p&&zE(a,b,p)}else for(var C in s)s.hasOwnProperty(C)&&zE(a,C,s[C])}function Ov(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_B=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Um(a){return _B.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function La(){}var Iv=null;function Mv(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Dl=null,Ol=null;function UE(a){var s=Tl(a);if(s&&(a=s.stateNode)){var u=a[$n]||null;e:switch(a=s.stateNode,s.type){case"input":if(kv(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Er(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==a&&p.form===a.form){var b=p[$n]||null;if(!b)throw Error(n(90));kv(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===a.form&&LE(p)}break e;case"textarea":FE(a,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Al(a,!!u.multiple,s,!1)}}}var Lv=!1;function $E(a,s,u){if(Lv)return a(s,u);Lv=!0;try{var p=a(s);return p}finally{if(Lv=!1,(Dl!==null||Ol!==null)&&(Af(),Dl&&(s=Dl,a=Ol,Ol=Dl=null,UE(s),a)))for(s=0;s<a.length;s++)UE(a[s])}}function fu(a,s){var u=a.stateNode;if(u===null)return null;var p=u[$n]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(n(231,s,typeof u));return u}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nv=!1;if(Na)try{var hu={};Object.defineProperty(hu,"passive",{get:function(){Nv=!0}}),window.addEventListener("test",hu,hu),window.removeEventListener("test",hu,hu)}catch{Nv=!1}var _i=null,Fv=null,$m=null;function qE(){if($m)return $m;var a,s=Fv,u=s.length,p,b="value"in _i?_i.value:_i.textContent,C=b.length;for(a=0;a<u&&s[a]===b[a];a++);var I=u-a;for(p=1;p<=I&&s[u-p]===b[C-p];p++);return $m=b.slice(a,1<p?1-p:void 0)}function qm(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function Vm(){return!0}function VE(){return!1}function qn(a){function s(u,p,b,C,I){this._reactName=u,this._targetInst=b,this.type=p,this.nativeEvent=C,this.target=I,this.currentTarget=null;for(var B in a)a.hasOwnProperty(B)&&(u=a[B],this[B]=u?u(C):C[B]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Vm:VE,this.isPropagationStopped=VE,this}return f(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Vm)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Vm)},persist:function(){},isPersistent:Vm}),s}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hm=qn(Ps),pu=f({},Ps,{view:0,detail:0}),CB=qn(pu),Bv,zv,gu,Gm=f({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uv,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==gu&&(gu&&a.type==="mousemove"?(Bv=a.screenX-gu.screenX,zv=a.screenY-gu.screenY):zv=Bv=0,gu=a),Bv)},movementY:function(a){return"movementY"in a?a.movementY:zv}}),HE=qn(Gm),wB=f({},Gm,{dataTransfer:0}),EB=qn(wB),xB=f({},pu,{relatedTarget:0}),jv=qn(xB),TB=f({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),PB=qn(TB),RB=f({},Ps,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),AB=qn(RB),kB=f({},Ps,{data:0}),GE=qn(kB),DB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},IB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MB(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=IB[a])?!!s[a]:!1}function Uv(){return MB}var LB=f({},pu,{key:function(a){if(a.key){var s=DB[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=qm(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?OB[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uv,charCode:function(a){return a.type==="keypress"?qm(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?qm(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),NB=qn(LB),FB=f({},Gm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KE=qn(FB),BB=f({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uv}),zB=qn(BB),jB=f({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),UB=qn(jB),$B=f({},Gm,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),qB=qn($B),VB=f({},Ps,{newState:0,oldState:0}),HB=qn(VB),GB=[9,13,27,32],$v=Na&&"CompositionEvent"in window,vu=null;Na&&"documentMode"in document&&(vu=document.documentMode);var KB=Na&&"TextEvent"in window&&!vu,WE=Na&&(!$v||vu&&8<vu&&11>=vu),YE=" ",ZE=!1;function QE(a,s){switch(a){case"keyup":return GB.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JE(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Il=!1;function WB(a,s){switch(a){case"compositionend":return JE(s);case"keypress":return s.which!==32?null:(ZE=!0,YE);case"textInput":return a=s.data,a===YE&&ZE?null:a;default:return null}}function YB(a,s){if(Il)return a==="compositionend"||!$v&&QE(a,s)?(a=qE(),$m=Fv=_i=null,Il=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return WE&&s.locale!=="ko"?null:s.data;default:return null}}var ZB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function XE(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!ZB[a.type]:s==="textarea"}function ex(a,s,u,p){Dl?Ol?Ol.push(p):Ol=[p]:Dl=p,s=Nf(s,"onChange"),0<s.length&&(u=new Hm("onChange","change",null,u,p),a.push({event:u,listeners:s}))}var bu=null,yu=null;function QB(a){NP(a,0)}function Km(a){var s=mu(a);if(LE(s))return a}function tx(a,s){if(a==="change")return s}var ox=!1;if(Na){var qv;if(Na){var Vv="oninput"in document;if(!Vv){var nx=document.createElement("div");nx.setAttribute("oninput","return;"),Vv=typeof nx.oninput=="function"}qv=Vv}else qv=!1;ox=qv&&(!document.documentMode||9<document.documentMode)}function rx(){bu&&(bu.detachEvent("onpropertychange",ax),yu=bu=null)}function ax(a){if(a.propertyName==="value"&&Km(yu)){var s=[];ex(s,yu,a,Mv(a)),$E(QB,s)}}function JB(a,s,u){a==="focusin"?(rx(),bu=s,yu=u,bu.attachEvent("onpropertychange",ax)):a==="focusout"&&rx()}function XB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Km(yu)}function e5(a,s){if(a==="click")return Km(s)}function t5(a,s){if(a==="input"||a==="change")return Km(s)}function o5(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var or=typeof Object.is=="function"?Object.is:o5;function Su(a,s){if(or(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var u=Object.keys(a),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var b=u[p];if(!$e.call(s,b)||!or(a[b],s[b]))return!1}return!0}function ix(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function sx(a,s){var u=ix(a);a=0;for(var p;u;){if(u.nodeType===3){if(p=a+u.textContent.length,a<=s&&p>=s)return{node:u,offset:s-a};a=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ix(u)}}function lx(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?lx(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function cx(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=jm(a.document);s instanceof a.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)a=s.contentWindow;else break;s=jm(a.document)}return s}function Hv(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}var n5=Na&&"documentMode"in document&&11>=document.documentMode,Ml=null,Gv=null,_u=null,Kv=!1;function ux(a,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Kv||Ml==null||Ml!==jm(p)||(p=Ml,"selectionStart"in p&&Hv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),_u&&Su(_u,p)||(_u=p,p=Nf(Gv,"onSelect"),0<p.length&&(s=new Hm("onSelect","select",null,s,u),a.push({event:s,listeners:p}),s.target=Ml)))}function Rs(a,s){var u={};return u[a.toLowerCase()]=s.toLowerCase(),u["Webkit"+a]="webkit"+s,u["Moz"+a]="moz"+s,u}var Ll={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionrun:Rs("Transition","TransitionRun"),transitionstart:Rs("Transition","TransitionStart"),transitioncancel:Rs("Transition","TransitionCancel"),transitionend:Rs("Transition","TransitionEnd")},Wv={},dx={};Na&&(dx=document.createElement("div").style,"AnimationEvent"in window||(delete Ll.animationend.animation,delete Ll.animationiteration.animation,delete Ll.animationstart.animation),"TransitionEvent"in window||delete Ll.transitionend.transition);function As(a){if(Wv[a])return Wv[a];if(!Ll[a])return a;var s=Ll[a],u;for(u in s)if(s.hasOwnProperty(u)&&u in dx)return Wv[a]=s[u];return a}var mx=As("animationend"),fx=As("animationiteration"),hx=As("animationstart"),r5=As("transitionrun"),a5=As("transitionstart"),i5=As("transitioncancel"),px=As("transitionend"),gx=new Map,Yv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yv.push("scrollEnd");function Wr(a,s){gx.set(a,s),Ts(s,[a])}var Wm=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},xr=[],Nl=0,Zv=0;function Ym(){for(var a=Nl,s=Zv=Nl=0;s<a;){var u=xr[s];xr[s++]=null;var p=xr[s];xr[s++]=null;var b=xr[s];xr[s++]=null;var C=xr[s];if(xr[s++]=null,p!==null&&b!==null){var I=p.pending;I===null?b.next=b:(b.next=I.next,I.next=b),p.pending=b}C!==0&&vx(u,b,C)}}function Zm(a,s,u,p){xr[Nl++]=a,xr[Nl++]=s,xr[Nl++]=u,xr[Nl++]=p,Zv|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function Qv(a,s,u,p){return Zm(a,s,u,p),Qm(a)}function ks(a,s){return Zm(a,null,null,s),Qm(a)}function vx(a,s,u){a.lanes|=u;var p=a.alternate;p!==null&&(p.lanes|=u);for(var b=!1,C=a.return;C!==null;)C.childLanes|=u,p=C.alternate,p!==null&&(p.childLanes|=u),C.tag===22&&(a=C.stateNode,a===null||a._visibility&1||(b=!0)),a=C,C=C.return;return a.tag===3?(C=a.stateNode,b&&s!==null&&(b=31-No(u),a=C.hiddenUpdates,p=a[b],p===null?a[b]=[s]:p.push(s),s.lane=u|536870912),C):null}function Qm(a){if(50<qu)throw qu=0,iy=null,Error(n(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var Fl={};function s5(a,s,u,p){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nr(a,s,u,p){return new s5(a,s,u,p)}function Jv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Fa(a,s){var u=a.alternate;return u===null?(u=nr(a.tag,s,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=s,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,s=a.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function bx(a,s){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,s=u.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function Jm(a,s,u,p,b,C){var I=0;if(p=a,typeof a=="function")Jv(a)&&(I=1);else if(typeof a=="string")I=m6(a,u,L.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case N:return a=nr(31,u,s,b),a.elementType=N,a.lanes=C,a;case S:return Ds(u.children,b,C,s);case E:I=8,b|=24;break;case _:return a=nr(12,u,s,b|2),a.elementType=_,a.lanes=C,a;case T:return a=nr(13,u,s,b),a.elementType=T,a.lanes=C,a;case A:return a=nr(19,u,s,b),a.elementType=A,a.lanes=C,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case P:I=10;break e;case w:I=9;break e;case x:I=11;break e;case k:I=14;break e;case O:I=16,p=null;break e}I=29,u=Error(n(130,a===null?"null":typeof a,"")),p=null}return s=nr(I,u,s,b),s.elementType=a,s.type=p,s.lanes=C,s}function Ds(a,s,u,p){return a=nr(7,a,p,s),a.lanes=u,a}function Xv(a,s,u){return a=nr(6,a,null,s),a.lanes=u,a}function yx(a){var s=nr(18,null,null,0);return s.stateNode=a,s}function eb(a,s,u){return s=nr(4,a.children!==null?a.children:[],a.key,s),s.lanes=u,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}var Sx=new WeakMap;function Tr(a,s){if(typeof a=="object"&&a!==null){var u=Sx.get(a);return u!==void 0?u:(s={value:a,source:s,stack:nt(s)},Sx.set(a,s),s)}return{value:a,source:s,stack:nt(s)}}var Bl=[],zl=0,Xm=null,Cu=0,Pr=[],Rr=0,Ci=null,ua=1,da="";function Ba(a,s){Bl[zl++]=Cu,Bl[zl++]=Xm,Xm=a,Cu=s}function _x(a,s,u){Pr[Rr++]=ua,Pr[Rr++]=da,Pr[Rr++]=Ci,Ci=a;var p=ua;a=da;var b=32-No(p)-1;p&=~(1<<b),u+=1;var C=32-No(s)+b;if(30<C){var I=b-b%5;C=(p&(1<<I)-1).toString(32),p>>=I,b-=I,ua=1<<32-No(s)+b|u<<b|p,da=C+a}else ua=1<<C|u<<b|p,da=a}function tb(a){a.return!==null&&(Ba(a,1),_x(a,1,0))}function ob(a){for(;a===Xm;)Xm=Bl[--zl],Bl[zl]=null,Cu=Bl[--zl],Bl[zl]=null;for(;a===Ci;)Ci=Pr[--Rr],Pr[Rr]=null,da=Pr[--Rr],Pr[Rr]=null,ua=Pr[--Rr],Pr[Rr]=null}function Cx(a,s){Pr[Rr++]=ua,Pr[Rr++]=da,Pr[Rr++]=Ci,ua=s.id,da=s.overflow,Ci=a}var ln=null,io=null,Rt=!1,wi=null,Ar=!1,nb=Error(n(519));function Ei(a){var s=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wu(Tr(s,a)),nb}function wx(a){var s=a.stateNode,u=a.type,p=a.memoizedProps;switch(s[sn]=a,s[$n]=p,u){case"dialog":_t("cancel",s),_t("close",s);break;case"iframe":case"object":case"embed":_t("load",s);break;case"video":case"audio":for(u=0;u<Hu.length;u++)_t(Hu[u],s);break;case"source":_t("error",s);break;case"img":case"image":case"link":_t("error",s),_t("load",s);break;case"details":_t("toggle",s);break;case"input":_t("invalid",s),NE(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":_t("invalid",s);break;case"textarea":_t("invalid",s),BE(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||jP(s.textContent,u)?(p.popover!=null&&(_t("beforetoggle",s),_t("toggle",s)),p.onScroll!=null&&_t("scroll",s),p.onScrollEnd!=null&&_t("scrollend",s),p.onClick!=null&&(s.onclick=La),s=!0):s=!1,s||Ei(a,!0)}function Ex(a){for(ln=a.return;ln;)switch(ln.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:ln=ln.return}}function jl(a){if(a!==ln)return!1;if(!Rt)return Ex(a),Rt=!0,!1;var s=a.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||_y(a.type,a.memoizedProps)),u=!u),u&&io&&Ei(a),Ex(a),s===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));io=YP(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));io=YP(a)}else s===27?(s=io,Bi(a.type)?(a=Ty,Ty=null,io=a):io=s):io=ln?Dr(a.stateNode.nextSibling):null;return!0}function Os(){io=ln=null,Rt=!1}function rb(){var a=wi;return a!==null&&(Kn===null?Kn=a:Kn.push.apply(Kn,a),wi=null),a}function wu(a){wi===null?wi=[a]:wi.push(a)}var ab=M(null),Is=null,za=null;function xi(a,s,u){q(ab,s._currentValue),s._currentValue=u}function ja(a){a._currentValue=ab.current,H(ab)}function ib(a,s,u){for(;a!==null;){var p=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),a===u)break;a=a.return}}function sb(a,s,u,p){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var C=b.dependencies;if(C!==null){var I=b.child;C=C.firstContext;e:for(;C!==null;){var B=C;C=b;for(var X=0;X<s.length;X++)if(B.context===s[X]){C.lanes|=u,B=C.alternate,B!==null&&(B.lanes|=u),ib(C.return,u,a),p||(I=null);break e}C=B.next}}else if(b.tag===18){if(I=b.return,I===null)throw Error(n(341));I.lanes|=u,C=I.alternate,C!==null&&(C.lanes|=u),ib(I,u,a),I=null}else I=b.child;if(I!==null)I.return=b;else for(I=b;I!==null;){if(I===a){I=null;break}if(b=I.sibling,b!==null){b.return=I.return,I=b;break}I=I.return}b=I}}function Ul(a,s,u,p){a=null;for(var b=s,C=!1;b!==null;){if(!C){if((b.flags&524288)!==0)C=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var I=b.alternate;if(I===null)throw Error(n(387));if(I=I.memoizedProps,I!==null){var B=b.type;or(b.pendingProps.value,I.value)||(a!==null?a.push(B):a=[B])}}else if(b===me.current){if(I=b.alternate,I===null)throw Error(n(387));I.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(Zu):a=[Zu])}b=b.return}a!==null&&sb(s,a,u,p),s.flags|=262144}function ef(a){for(a=a.firstContext;a!==null;){if(!or(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ms(a){Is=a,za=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function cn(a){return xx(Is,a)}function tf(a,s){return Is===null&&Ms(a),xx(a,s)}function xx(a,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},za===null){if(a===null)throw Error(n(308));za=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else za=za.next=s;return u}var l5=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(u,p){a.push(p)}};this.abort=function(){s.aborted=!0,a.forEach(function(u){return u()})}},c5=e.unstable_scheduleCallback,u5=e.unstable_NormalPriority,Fo={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lb(){return{controller:new l5,data:new Map,refCount:0}}function Eu(a){a.refCount--,a.refCount===0&&c5(u5,function(){a.controller.abort()})}var xu=null,cb=0,$l=0,ql=null;function d5(a,s){if(xu===null){var u=xu=[];cb=0,$l=my(),ql={status:"pending",value:void 0,then:function(p){u.push(p)}}}return cb++,s.then(Tx,Tx),s}function Tx(){if(--cb===0&&xu!==null){ql!==null&&(ql.status="fulfilled");var a=xu;xu=null,$l=0,ql=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function m5(a,s){var u=[],p={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return a.then(function(){p.status="fulfilled",p.value=s;for(var b=0;b<u.length;b++)(0,u[b])(s)},function(b){for(p.status="rejected",p.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),p}var Px=V.S;V.S=function(a,s){uP=G(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&d5(a,s),Px!==null&&Px(a,s)};var Ls=M(null);function ub(){var a=Ls.current;return a!==null?a:Jt.pooledCache}function of(a,s){s===null?q(Ls,Ls.current):q(Ls,s.pool)}function Rx(){var a=ub();return a===null?null:{parent:Fo._currentValue,pool:a}}var Vl=Error(n(460)),db=Error(n(474)),nf=Error(n(542)),rf={then:function(){}};function Ax(a){return a=a.status,a==="fulfilled"||a==="rejected"}function kx(a,s,u){switch(u=a[u],u===void 0?a.push(s):u!==s&&(s.then(La,La),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,Ox(a),a;default:if(typeof s.status=="string")s.then(La,La);else{if(a=Jt,a!==null&&100<a.shellSuspendCounter)throw Error(n(482));a=s,a.status="pending",a.then(function(p){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=p}},function(p){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,Ox(a),a}throw Fs=s,Vl}}function Ns(a){try{var s=a._init;return s(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Fs=u,Vl):u}}var Fs=null;function Dx(){if(Fs===null)throw Error(n(459));var a=Fs;return Fs=null,a}function Ox(a){if(a===Vl||a===nf)throw Error(n(483))}var Hl=null,Tu=0;function af(a){var s=Tu;return Tu+=1,Hl===null&&(Hl=[]),kx(Hl,a,s)}function Pu(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function sf(a,s){throw s.$$typeof===g?Error(n(525)):(a=Object.prototype.toString.call(s),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function Ix(a){function s(ce,re){if(a){var ue=ce.deletions;ue===null?(ce.deletions=[re],ce.flags|=16):ue.push(re)}}function u(ce,re){if(!a)return null;for(;re!==null;)s(ce,re),re=re.sibling;return null}function p(ce){for(var re=new Map;ce!==null;)ce.key!==null?re.set(ce.key,ce):re.set(ce.index,ce),ce=ce.sibling;return re}function b(ce,re){return ce=Fa(ce,re),ce.index=0,ce.sibling=null,ce}function C(ce,re,ue){return ce.index=ue,a?(ue=ce.alternate,ue!==null?(ue=ue.index,ue<re?(ce.flags|=67108866,re):ue):(ce.flags|=67108866,re)):(ce.flags|=1048576,re)}function I(ce){return a&&ce.alternate===null&&(ce.flags|=67108866),ce}function B(ce,re,ue,Se){return re===null||re.tag!==6?(re=Xv(ue,ce.mode,Se),re.return=ce,re):(re=b(re,ue),re.return=ce,re)}function X(ce,re,ue,Se){var Je=ue.type;return Je===S?ye(ce,re,ue.props.children,Se,ue.key):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===O&&Ns(Je)===re.type)?(re=b(re,ue.props),Pu(re,ue),re.return=ce,re):(re=Jm(ue.type,ue.key,ue.props,null,ce.mode,Se),Pu(re,ue),re.return=ce,re)}function de(ce,re,ue,Se){return re===null||re.tag!==4||re.stateNode.containerInfo!==ue.containerInfo||re.stateNode.implementation!==ue.implementation?(re=eb(ue,ce.mode,Se),re.return=ce,re):(re=b(re,ue.children||[]),re.return=ce,re)}function ye(ce,re,ue,Se,Je){return re===null||re.tag!==7?(re=Ds(ue,ce.mode,Se,Je),re.return=ce,re):(re=b(re,ue),re.return=ce,re)}function Ce(ce,re,ue){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Xv(""+re,ce.mode,ue),re.return=ce,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case v:return ue=Jm(re.type,re.key,re.props,null,ce.mode,ue),Pu(ue,re),ue.return=ce,ue;case y:return re=eb(re,ce.mode,ue),re.return=ce,re;case O:return re=Ns(re),Ce(ce,re,ue)}if(ae(re)||U(re))return re=Ds(re,ce.mode,ue,null),re.return=ce,re;if(typeof re.then=="function")return Ce(ce,af(re),ue);if(re.$$typeof===P)return Ce(ce,tf(ce,re),ue);sf(ce,re)}return null}function fe(ce,re,ue,Se){var Je=re!==null?re.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Je!==null?null:B(ce,re,""+ue,Se);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return ue.key===Je?X(ce,re,ue,Se):null;case y:return ue.key===Je?de(ce,re,ue,Se):null;case O:return ue=Ns(ue),fe(ce,re,ue,Se)}if(ae(ue)||U(ue))return Je!==null?null:ye(ce,re,ue,Se,null);if(typeof ue.then=="function")return fe(ce,re,af(ue),Se);if(ue.$$typeof===P)return fe(ce,re,tf(ce,ue),Se);sf(ce,ue)}return null}function ge(ce,re,ue,Se,Je){if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return ce=ce.get(ue)||null,B(re,ce,""+Se,Je);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case v:return ce=ce.get(Se.key===null?ue:Se.key)||null,X(re,ce,Se,Je);case y:return ce=ce.get(Se.key===null?ue:Se.key)||null,de(re,ce,Se,Je);case O:return Se=Ns(Se),ge(ce,re,ue,Se,Je)}if(ae(Se)||U(Se))return ce=ce.get(ue)||null,ye(re,ce,Se,Je,null);if(typeof Se.then=="function")return ge(ce,re,ue,af(Se),Je);if(Se.$$typeof===P)return ge(ce,re,ue,tf(re,Se),Je);sf(re,Se)}return null}function He(ce,re,ue,Se){for(var Je=null,Lt=null,Ke=re,lt=re=0,xt=null;Ke!==null&&lt<ue.length;lt++){Ke.index>lt?(xt=Ke,Ke=null):xt=Ke.sibling;var Nt=fe(ce,Ke,ue[lt],Se);if(Nt===null){Ke===null&&(Ke=xt);break}a&&Ke&&Nt.alternate===null&&s(ce,Ke),re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt,Ke=xt}if(lt===ue.length)return u(ce,Ke),Rt&&Ba(ce,lt),Je;if(Ke===null){for(;lt<ue.length;lt++)Ke=Ce(ce,ue[lt],Se),Ke!==null&&(re=C(Ke,re,lt),Lt===null?Je=Ke:Lt.sibling=Ke,Lt=Ke);return Rt&&Ba(ce,lt),Je}for(Ke=p(Ke);lt<ue.length;lt++)xt=ge(Ke,ce,lt,ue[lt],Se),xt!==null&&(a&&xt.alternate!==null&&Ke.delete(xt.key===null?lt:xt.key),re=C(xt,re,lt),Lt===null?Je=xt:Lt.sibling=xt,Lt=xt);return a&&Ke.forEach(function(qi){return s(ce,qi)}),Rt&&Ba(ce,lt),Je}function ot(ce,re,ue,Se){if(ue==null)throw Error(n(151));for(var Je=null,Lt=null,Ke=re,lt=re=0,xt=null,Nt=ue.next();Ke!==null&&!Nt.done;lt++,Nt=ue.next()){Ke.index>lt?(xt=Ke,Ke=null):xt=Ke.sibling;var qi=fe(ce,Ke,Nt.value,Se);if(qi===null){Ke===null&&(Ke=xt);break}a&&Ke&&qi.alternate===null&&s(ce,Ke),re=C(qi,re,lt),Lt===null?Je=qi:Lt.sibling=qi,Lt=qi,Ke=xt}if(Nt.done)return u(ce,Ke),Rt&&Ba(ce,lt),Je;if(Ke===null){for(;!Nt.done;lt++,Nt=ue.next())Nt=Ce(ce,Nt.value,Se),Nt!==null&&(re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt);return Rt&&Ba(ce,lt),Je}for(Ke=p(Ke);!Nt.done;lt++,Nt=ue.next())Nt=ge(Ke,ce,lt,Nt.value,Se),Nt!==null&&(a&&Nt.alternate!==null&&Ke.delete(Nt.key===null?lt:Nt.key),re=C(Nt,re,lt),Lt===null?Je=Nt:Lt.sibling=Nt,Lt=Nt);return a&&Ke.forEach(function(w6){return s(ce,w6)}),Rt&&Ba(ce,lt),Je}function Yt(ce,re,ue,Se){if(typeof ue=="object"&&ue!==null&&ue.type===S&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:e:{for(var Je=ue.key;re!==null;){if(re.key===Je){if(Je=ue.type,Je===S){if(re.tag===7){u(ce,re.sibling),Se=b(re,ue.props.children),Se.return=ce,ce=Se;break e}}else if(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===O&&Ns(Je)===re.type){u(ce,re.sibling),Se=b(re,ue.props),Pu(Se,ue),Se.return=ce,ce=Se;break e}u(ce,re);break}else s(ce,re);re=re.sibling}ue.type===S?(Se=Ds(ue.props.children,ce.mode,Se,ue.key),Se.return=ce,ce=Se):(Se=Jm(ue.type,ue.key,ue.props,null,ce.mode,Se),Pu(Se,ue),Se.return=ce,ce=Se)}return I(ce);case y:e:{for(Je=ue.key;re!==null;){if(re.key===Je)if(re.tag===4&&re.stateNode.containerInfo===ue.containerInfo&&re.stateNode.implementation===ue.implementation){u(ce,re.sibling),Se=b(re,ue.children||[]),Se.return=ce,ce=Se;break e}else{u(ce,re);break}else s(ce,re);re=re.sibling}Se=eb(ue,ce.mode,Se),Se.return=ce,ce=Se}return I(ce);case O:return ue=Ns(ue),Yt(ce,re,ue,Se)}if(ae(ue))return He(ce,re,ue,Se);if(U(ue)){if(Je=U(ue),typeof Je!="function")throw Error(n(150));return ue=Je.call(ue),ot(ce,re,ue,Se)}if(typeof ue.then=="function")return Yt(ce,re,af(ue),Se);if(ue.$$typeof===P)return Yt(ce,re,tf(ce,ue),Se);sf(ce,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,re!==null&&re.tag===6?(u(ce,re.sibling),Se=b(re,ue),Se.return=ce,ce=Se):(u(ce,re),Se=Xv(ue,ce.mode,Se),Se.return=ce,ce=Se),I(ce)):u(ce,re)}return function(ce,re,ue,Se){try{Tu=0;var Je=Yt(ce,re,ue,Se);return Hl=null,Je}catch(Ke){if(Ke===Vl||Ke===nf)throw Ke;var Lt=nr(29,Ke,null,ce.mode);return Lt.lanes=Se,Lt.return=ce,Lt}}}var Bs=Ix(!0),Mx=Ix(!1),Ti=!1;function mb(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fb(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Pi(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ri(a,s,u){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(Bt&2)!==0){var b=p.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),p.pending=s,s=Qm(a),vx(a,null,u),s}return Zm(a,p,s,u),Qm(a)}function Ru(a,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=a.pendingLanes,u|=p,s.lanes=u,an(a,u)}}function hb(a,s){var u=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var b=null,C=null;if(u=u.firstBaseUpdate,u!==null){do{var I={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};C===null?b=C=I:C=C.next=I,u=u.next}while(u!==null);C===null?b=C=s:C=C.next=s}else b=C=s;u={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:C,shared:p.shared,callbacks:p.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=s:a.next=s,u.lastBaseUpdate=s}var pb=!1;function Au(){if(pb){var a=ql;if(a!==null)throw a}}function ku(a,s,u,p){pb=!1;var b=a.updateQueue;Ti=!1;var C=b.firstBaseUpdate,I=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var X=B,de=X.next;X.next=null,I===null?C=de:I.next=de,I=X;var ye=a.alternate;ye!==null&&(ye=ye.updateQueue,B=ye.lastBaseUpdate,B!==I&&(B===null?ye.firstBaseUpdate=de:B.next=de,ye.lastBaseUpdate=X))}if(C!==null){var Ce=b.baseState;I=0,ye=de=X=null,B=C;do{var fe=B.lane&-536870913,ge=fe!==B.lane;if(ge?(Et&fe)===fe:(p&fe)===fe){fe!==0&&fe===$l&&(pb=!0),ye!==null&&(ye=ye.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var He=a,ot=B;fe=s;var Yt=u;switch(ot.tag){case 1:if(He=ot.payload,typeof He=="function"){Ce=He.call(Yt,Ce,fe);break e}Ce=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=ot.payload,fe=typeof He=="function"?He.call(Yt,Ce,fe):He,fe==null)break e;Ce=f({},Ce,fe);break e;case 2:Ti=!0}}fe=B.callback,fe!==null&&(a.flags|=64,ge&&(a.flags|=8192),ge=b.callbacks,ge===null?b.callbacks=[fe]:ge.push(fe))}else ge={lane:fe,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ye===null?(de=ye=ge,X=Ce):ye=ye.next=ge,I|=fe;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;ge=B,B=ge.next,ge.next=null,b.lastBaseUpdate=ge,b.shared.pending=null}}while(!0);ye===null&&(X=Ce),b.baseState=X,b.firstBaseUpdate=de,b.lastBaseUpdate=ye,C===null&&(b.shared.lanes=0),Ii|=I,a.lanes=I,a.memoizedState=Ce}}function Lx(a,s){if(typeof a!="function")throw Error(n(191,a));a.call(s)}function Nx(a,s){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)Lx(u[a],s)}var Gl=M(null),lf=M(0);function Fx(a,s){a=Ya,q(lf,a),q(Gl,s),Ya=a|s.baseLanes}function gb(){q(lf,Ya),q(Gl,Gl.current)}function vb(){Ya=lf.current,H(Gl),H(lf)}var rr=M(null),kr=null;function Ai(a){var s=a.alternate;q(To,To.current&1),q(rr,a),kr===null&&(s===null||Gl.current!==null||s.memoizedState!==null)&&(kr=a)}function bb(a){q(To,To.current),q(rr,a),kr===null&&(kr=a)}function Bx(a){a.tag===22?(q(To,To.current),q(rr,a),kr===null&&(kr=a)):ki()}function ki(){q(To,To.current),q(rr,rr.current)}function ar(a){H(rr),kr===a&&(kr=null),H(To)}var To=M(0);function cf(a){for(var s=a;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Ey(u)||xy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ua=0,st=null,Kt=null,Bo=null,uf=!1,Kl=!1,zs=!1,df=0,Du=0,Wl=null,f5=0;function wo(){throw Error(n(321))}function yb(a,s){if(s===null)return!1;for(var u=0;u<s.length&&u<a.length;u++)if(!or(a[u],s[u]))return!1;return!0}function Sb(a,s,u,p,b,C){return Ua=C,st=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,V.H=a===null||a.memoizedState===null?_T:Lb,zs=!1,C=u(p,b),zs=!1,Kl&&(C=jx(s,u,p,b)),zx(a),C}function zx(a){V.H=Mu;var s=Kt!==null&&Kt.next!==null;if(Ua=0,Bo=Kt=st=null,uf=!1,Du=0,Wl=null,s)throw Error(n(300));a===null||zo||(a=a.dependencies,a!==null&&ef(a)&&(zo=!0))}function jx(a,s,u,p){st=a;var b=0;do{if(Kl&&(Wl=null),Du=0,Kl=!1,25<=b)throw Error(n(301));if(b+=1,Bo=Kt=null,a.updateQueue!=null){var C=a.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}V.H=CT,C=s(u,p)}while(Kl);return C}function h5(){var a=V.H,s=a.useState()[0];return s=typeof s.then=="function"?Ou(s):s,a=a.useState()[0],(Kt!==null?Kt.memoizedState:null)!==a&&(st.flags|=1024),s}function _b(){var a=df!==0;return df=0,a}function Cb(a,s,u){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~u}function wb(a){if(uf){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}uf=!1}Ua=0,Bo=Kt=st=null,Kl=!1,Du=df=0,Wl=null}function In(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?st.memoizedState=Bo=a:Bo=Bo.next=a,Bo}function Po(){if(Kt===null){var a=st.alternate;a=a!==null?a.memoizedState:null}else a=Kt.next;var s=Bo===null?st.memoizedState:Bo.next;if(s!==null)Bo=s,Kt=a;else{if(a===null)throw st.alternate===null?Error(n(467)):Error(n(310));Kt=a,a={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Bo===null?st.memoizedState=Bo=a:Bo=Bo.next=a}return Bo}function mf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(a){var s=Du;return Du+=1,Wl===null&&(Wl=[]),a=kx(Wl,a,s),s=st,(Bo===null?s.memoizedState:Bo.next)===null&&(s=s.alternate,V.H=s===null||s.memoizedState===null?_T:Lb),a}function ff(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ou(a);if(a.$$typeof===P)return cn(a)}throw Error(n(438,String(a)))}function Eb(a){var s=null,u=st.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=st.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=mf(),st.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(a),p=0;p<a;p++)u[p]=$;return s.index++,u}function $a(a,s){return typeof s=="function"?s(a):s}function hf(a){var s=Po();return xb(s,Kt,a)}function xb(a,s,u){var p=a.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=u;var b=a.baseQueue,C=p.pending;if(C!==null){if(b!==null){var I=b.next;b.next=C.next,C.next=I}s.baseQueue=b=C,p.pending=null}if(C=a.baseState,b===null)a.memoizedState=C;else{s=b.next;var B=I=null,X=null,de=s,ye=!1;do{var Ce=de.lane&-536870913;if(Ce!==de.lane?(Et&Ce)===Ce:(Ua&Ce)===Ce){var fe=de.revertLane;if(fe===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ce===$l&&(ye=!0);else if((Ua&fe)===fe){de=de.next,fe===$l&&(ye=!0);continue}else Ce={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(B=X=Ce,I=C):X=X.next=Ce,st.lanes|=fe,Ii|=fe;Ce=de.action,zs&&u(C,Ce),C=de.hasEagerState?de.eagerState:u(C,Ce)}else fe={lane:Ce,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},X===null?(B=X=fe,I=C):X=X.next=fe,st.lanes|=Ce,Ii|=Ce;de=de.next}while(de!==null&&de!==s);if(X===null?I=C:X.next=B,!or(C,a.memoizedState)&&(zo=!0,ye&&(u=ql,u!==null)))throw u;a.memoizedState=C,a.baseState=I,a.baseQueue=X,p.lastRenderedState=C}return b===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function Tb(a){var s=Po(),u=s.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=a;var p=u.dispatch,b=u.pending,C=s.memoizedState;if(b!==null){u.pending=null;var I=b=b.next;do C=a(C,I.action),I=I.next;while(I!==b);or(C,s.memoizedState)||(zo=!0),s.memoizedState=C,s.baseQueue===null&&(s.baseState=C),u.lastRenderedState=C}return[C,p]}function Ux(a,s,u){var p=st,b=Po(),C=Rt;if(C){if(u===void 0)throw Error(n(407));u=u()}else u=s();var I=!or((Kt||b).memoizedState,u);if(I&&(b.memoizedState=u,zo=!0),b=b.queue,Ab(Vx.bind(null,p,b,a),[a]),b.getSnapshot!==s||I||Bo!==null&&Bo.memoizedState.tag&1){if(p.flags|=2048,Yl(9,{destroy:void 0},qx.bind(null,p,b,u,s),null),Jt===null)throw Error(n(349));C||(Ua&127)!==0||$x(p,s,u)}return u}function $x(a,s,u){a.flags|=16384,a={getSnapshot:s,value:u},s=st.updateQueue,s===null?(s=mf(),st.updateQueue=s,s.stores=[a]):(u=s.stores,u===null?s.stores=[a]:u.push(a))}function qx(a,s,u,p){s.value=u,s.getSnapshot=p,Hx(s)&&Gx(a)}function Vx(a,s,u){return u(function(){Hx(s)&&Gx(a)})}function Hx(a){var s=a.getSnapshot;a=a.value;try{var u=s();return!or(a,u)}catch{return!0}}function Gx(a){var s=ks(a,2);s!==null&&Wn(s,a,2)}function Pb(a){var s=In();if(typeof a=="function"){var u=a;if(a=u(),zs){yt(!0);try{u()}finally{yt(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:a},s}function Kx(a,s,u,p){return a.baseState=u,xb(a,Kt,typeof p=="function"?p:$a)}function p5(a,s,u,p,b){if(vf(a))throw Error(n(485));if(a=s.action,a!==null){var C={payload:b,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){C.listeners.push(I)}};V.T!==null?u(!0):C.isTransition=!1,p(C),u=s.pending,u===null?(C.next=s.pending=C,Wx(s,C)):(C.next=u.next,s.pending=u.next=C)}}function Wx(a,s){var u=s.action,p=s.payload,b=a.state;if(s.isTransition){var C=V.T,I={};V.T=I;try{var B=u(b,p),X=V.S;X!==null&&X(I,B),Yx(a,s,B)}catch(de){Rb(a,s,de)}finally{C!==null&&I.types!==null&&(C.types=I.types),V.T=C}}else try{C=u(b,p),Yx(a,s,C)}catch(de){Rb(a,s,de)}}function Yx(a,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Zx(a,s,p)},function(p){return Rb(a,s,p)}):Zx(a,s,u)}function Zx(a,s,u){s.status="fulfilled",s.value=u,Qx(s),a.state=u,s=a.pending,s!==null&&(u=s.next,u===s?a.pending=null:(u=u.next,s.next=u,Wx(a,u)))}function Rb(a,s,u){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,Qx(s),s=s.next;while(s!==p)}a.action=null}function Qx(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function Jx(a,s){return s}function Xx(a,s){if(Rt){var u=Jt.formState;if(u!==null){e:{var p=st;if(Rt){if(io){t:{for(var b=io,C=Ar;b.nodeType!==8;){if(!C){b=null;break t}if(b=Dr(b.nextSibling),b===null){b=null;break t}}C=b.data,b=C==="F!"||C==="F"?b:null}if(b){io=Dr(b.nextSibling),p=b.data==="F!";break e}}Ei(p)}p=!1}p&&(s=u[0])}}return u=In(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jx,lastRenderedState:s},u.queue=p,u=bT.bind(null,st,p),p.dispatch=u,p=Pb(!1),C=Mb.bind(null,st,!1,p.queue),p=In(),b={state:s,dispatch:null,action:a,pending:null},p.queue=b,u=p5.bind(null,st,b,C,u),b.dispatch=u,p.memoizedState=a,[s,u,!1]}function eT(a){var s=Po();return tT(s,Kt,a)}function tT(a,s,u){if(s=xb(a,s,Jx)[0],a=hf($a)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=Ou(s)}catch(I){throw I===Vl?nf:I}else p=s;s=Po();var b=s.queue,C=b.dispatch;return u!==s.memoizedState&&(st.flags|=2048,Yl(9,{destroy:void 0},g5.bind(null,b,u),null)),[p,C,a]}function g5(a,s){a.action=s}function oT(a){var s=Po(),u=Kt;if(u!==null)return tT(s,u,a);Po(),s=s.memoizedState,u=Po();var p=u.queue.dispatch;return u.memoizedState=a,[s,p,!1]}function Yl(a,s,u,p){return a={tag:a,create:u,deps:p,inst:s,next:null},s=st.updateQueue,s===null&&(s=mf(),st.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=a.next=a:(p=u.next,u.next=a,a.next=p,s.lastEffect=a),a}function nT(){return Po().memoizedState}function pf(a,s,u,p){var b=In();st.flags|=a,b.memoizedState=Yl(1|s,{destroy:void 0},u,p===void 0?null:p)}function gf(a,s,u,p){var b=Po();p=p===void 0?null:p;var C=b.memoizedState.inst;Kt!==null&&p!==null&&yb(p,Kt.memoizedState.deps)?b.memoizedState=Yl(s,C,u,p):(st.flags|=a,b.memoizedState=Yl(1|s,C,u,p))}function rT(a,s){pf(8390656,8,a,s)}function Ab(a,s){gf(2048,8,a,s)}function v5(a){st.flags|=4;var s=st.updateQueue;if(s===null)s=mf(),st.updateQueue=s,s.events=[a];else{var u=s.events;u===null?s.events=[a]:u.push(a)}}function aT(a){var s=Po().memoizedState;return v5({ref:s,nextImpl:a}),function(){if((Bt&2)!==0)throw Error(n(440));return s.impl.apply(void 0,arguments)}}function iT(a,s){return gf(4,2,a,s)}function sT(a,s){return gf(4,4,a,s)}function lT(a,s){if(typeof s=="function"){a=a();var u=s(a);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function cT(a,s,u){u=u!=null?u.concat([a]):null,gf(4,4,lT.bind(null,s,a),u)}function kb(){}function uT(a,s){var u=Po();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&yb(s,p[1])?p[0]:(u.memoizedState=[a,s],a)}function dT(a,s){var u=Po();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&yb(s,p[1]))return p[0];if(p=a(),zs){yt(!0);try{a()}finally{yt(!1)}}return u.memoizedState=[p,s],p}function Db(a,s,u){return u===void 0||(Ua&1073741824)!==0&&(Et&261930)===0?a.memoizedState=s:(a.memoizedState=u,a=mP(),st.lanes|=a,Ii|=a,u)}function mT(a,s,u,p){return or(u,s)?u:Gl.current!==null?(a=Db(a,u,p),or(a,s)||(zo=!0),a):(Ua&42)===0||(Ua&1073741824)!==0&&(Et&261930)===0?(zo=!0,a.memoizedState=u):(a=mP(),st.lanes|=a,Ii|=a,s)}function fT(a,s,u,p,b){var C=Z.p;Z.p=C!==0&&8>C?C:8;var I=V.T,B={};V.T=B,Mb(a,!1,s,u);try{var X=b(),de=V.S;if(de!==null&&de(B,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var ye=m5(X,p);Iu(a,s,ye,lr(a))}else Iu(a,s,p,lr(a))}catch(Ce){Iu(a,s,{then:function(){},status:"rejected",reason:Ce},lr())}finally{Z.p=C,I!==null&&B.types!==null&&(I.types=B.types),V.T=I}}function b5(){}function Ob(a,s,u,p){if(a.tag!==5)throw Error(n(476));var b=hT(a).queue;fT(a,b,s,te,u===null?b5:function(){return pT(a),u(p)})}function hT(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:te},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:u},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function pT(a){var s=hT(a);s.next===null&&(s=a.alternate.memoizedState),Iu(a,s.next.queue,{},lr())}function Ib(){return cn(Zu)}function gT(){return Po().memoizedState}function vT(){return Po().memoizedState}function y5(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var u=lr();a=Pi(u);var p=Ri(s,a,u);p!==null&&(Wn(p,s,u),Ru(p,s,u)),s={cache:lb()},a.payload=s;return}s=s.return}}function S5(a,s,u){var p=lr();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},vf(a)?yT(s,u):(u=Qv(a,s,u,p),u!==null&&(Wn(u,a,p),ST(u,s,p)))}function bT(a,s,u){var p=lr();Iu(a,s,u,p)}function Iu(a,s,u,p){var b={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(vf(a))yT(s,b);else{var C=a.alternate;if(a.lanes===0&&(C===null||C.lanes===0)&&(C=s.lastRenderedReducer,C!==null))try{var I=s.lastRenderedState,B=C(I,u);if(b.hasEagerState=!0,b.eagerState=B,or(B,I))return Zm(a,s,b,0),Jt===null&&Ym(),!1}catch{}if(u=Qv(a,s,b,p),u!==null)return Wn(u,a,p),ST(u,s,p),!0}return!1}function Mb(a,s,u,p){if(p={lane:2,revertLane:my(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},vf(a)){if(s)throw Error(n(479))}else s=Qv(a,u,p,2),s!==null&&Wn(s,a,2)}function vf(a){var s=a.alternate;return a===st||s!==null&&s===st}function yT(a,s){Kl=uf=!0;var u=a.pending;u===null?s.next=s:(s.next=u.next,u.next=s),a.pending=s}function ST(a,s,u){if((u&4194048)!==0){var p=s.lanes;p&=a.pendingLanes,u|=p,s.lanes=u,an(a,u)}}var Mu={readContext:cn,use:ff,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo};Mu.useEffectEvent=wo;var _T={readContext:cn,use:ff,useCallback:function(a,s){return In().memoizedState=[a,s===void 0?null:s],a},useContext:cn,useEffect:rT,useImperativeHandle:function(a,s,u){u=u!=null?u.concat([a]):null,pf(4194308,4,lT.bind(null,s,a),u)},useLayoutEffect:function(a,s){return pf(4194308,4,a,s)},useInsertionEffect:function(a,s){pf(4,2,a,s)},useMemo:function(a,s){var u=In();s=s===void 0?null:s;var p=a();if(zs){yt(!0);try{a()}finally{yt(!1)}}return u.memoizedState=[p,s],p},useReducer:function(a,s,u){var p=In();if(u!==void 0){var b=u(s);if(zs){yt(!0);try{u(s)}finally{yt(!1)}}}else b=s;return p.memoizedState=p.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},p.queue=a,a=a.dispatch=S5.bind(null,st,a),[p.memoizedState,a]},useRef:function(a){var s=In();return a={current:a},s.memoizedState=a},useState:function(a){a=Pb(a);var s=a.queue,u=bT.bind(null,st,s);return s.dispatch=u,[a.memoizedState,u]},useDebugValue:kb,useDeferredValue:function(a,s){var u=In();return Db(u,a,s)},useTransition:function(){var a=Pb(!1);return a=fT.bind(null,st,a.queue,!0,!1),In().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,u){var p=st,b=In();if(Rt){if(u===void 0)throw Error(n(407));u=u()}else{if(u=s(),Jt===null)throw Error(n(349));(Et&127)!==0||$x(p,s,u)}b.memoizedState=u;var C={value:u,getSnapshot:s};return b.queue=C,rT(Vx.bind(null,p,C,a),[a]),p.flags|=2048,Yl(9,{destroy:void 0},qx.bind(null,p,C,u,s),null),u},useId:function(){var a=In(),s=Jt.identifierPrefix;if(Rt){var u=da,p=ua;u=(p&~(1<<32-No(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=df++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=f5++,s="_"+s+"r_"+u.toString(32)+"_";return a.memoizedState=s},useHostTransitionStatus:Ib,useFormState:Xx,useActionState:Xx,useOptimistic:function(a){var s=In();s.memoizedState=s.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Mb.bind(null,st,!0,u),u.dispatch=s,[a,s]},useMemoCache:Eb,useCacheRefresh:function(){return In().memoizedState=y5.bind(null,st)},useEffectEvent:function(a){var s=In(),u={impl:a};return s.memoizedState=u,function(){if((Bt&2)!==0)throw Error(n(440));return u.impl.apply(void 0,arguments)}}},Lb={readContext:cn,use:ff,useCallback:uT,useContext:cn,useEffect:Ab,useImperativeHandle:cT,useInsertionEffect:iT,useLayoutEffect:sT,useMemo:dT,useReducer:hf,useRef:nT,useState:function(){return hf($a)},useDebugValue:kb,useDeferredValue:function(a,s){var u=Po();return mT(u,Kt.memoizedState,a,s)},useTransition:function(){var a=hf($a)[0],s=Po().memoizedState;return[typeof a=="boolean"?a:Ou(a),s]},useSyncExternalStore:Ux,useId:gT,useHostTransitionStatus:Ib,useFormState:eT,useActionState:eT,useOptimistic:function(a,s){var u=Po();return Kx(u,Kt,a,s)},useMemoCache:Eb,useCacheRefresh:vT};Lb.useEffectEvent=aT;var CT={readContext:cn,use:ff,useCallback:uT,useContext:cn,useEffect:Ab,useImperativeHandle:cT,useInsertionEffect:iT,useLayoutEffect:sT,useMemo:dT,useReducer:Tb,useRef:nT,useState:function(){return Tb($a)},useDebugValue:kb,useDeferredValue:function(a,s){var u=Po();return Kt===null?Db(u,a,s):mT(u,Kt.memoizedState,a,s)},useTransition:function(){var a=Tb($a)[0],s=Po().memoizedState;return[typeof a=="boolean"?a:Ou(a),s]},useSyncExternalStore:Ux,useId:gT,useHostTransitionStatus:Ib,useFormState:oT,useActionState:oT,useOptimistic:function(a,s){var u=Po();return Kt!==null?Kx(u,Kt,a,s):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Eb,useCacheRefresh:vT};CT.useEffectEvent=aT;function Nb(a,s,u,p){s=a.memoizedState,u=u(p,s),u=u==null?s:f({},s,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Fb={enqueueSetState:function(a,s,u){a=a._reactInternals;var p=lr(),b=Pi(p);b.payload=s,u!=null&&(b.callback=u),s=Ri(a,b,p),s!==null&&(Wn(s,a,p),Ru(s,a,p))},enqueueReplaceState:function(a,s,u){a=a._reactInternals;var p=lr(),b=Pi(p);b.tag=1,b.payload=s,u!=null&&(b.callback=u),s=Ri(a,b,p),s!==null&&(Wn(s,a,p),Ru(s,a,p))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var u=lr(),p=Pi(u);p.tag=2,s!=null&&(p.callback=s),s=Ri(a,p,u),s!==null&&(Wn(s,a,u),Ru(s,a,u))}};function wT(a,s,u,p,b,C,I){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,C,I):s.prototype&&s.prototype.isPureReactComponent?!Su(u,p)||!Su(b,C):!0}function ET(a,s,u,p){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==a&&Fb.enqueueReplaceState(s,s.state,null)}function js(a,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(a=a.defaultProps){u===s&&(u=f({},u));for(var b in a)u[b]===void 0&&(u[b]=a[b])}return u}function xT(a){Wm(a)}function TT(a){console.error(a)}function PT(a){Wm(a)}function bf(a,s){try{var u=a.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function RT(a,s,u){try{var p=a.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Bb(a,s,u){return u=Pi(u),u.tag=3,u.payload={element:null},u.callback=function(){bf(a,s)},u}function AT(a){return a=Pi(a),a.tag=3,a}function kT(a,s,u,p){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var C=p.value;a.payload=function(){return b(C)},a.callback=function(){RT(s,u,p)}}var I=u.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(a.callback=function(){RT(s,u,p),typeof b!="function"&&(Mi===null?Mi=new Set([this]):Mi.add(this));var B=p.stack;this.componentDidCatch(p.value,{componentStack:B!==null?B:""})})}function _5(a,s,u,p,b){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&Ul(s,u,b,!0),u=rr.current,u!==null){switch(u.tag){case 31:case 13:return kr===null?kf():u.alternate===null&&Eo===0&&(Eo=3),u.flags&=-257,u.flags|=65536,u.lanes=b,p===rf?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),cy(a,p,b)),!1;case 22:return u.flags|=65536,p===rf?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),cy(a,p,b)),!1}throw Error(n(435,u.tag))}return cy(a,p,b),kf(),!1}if(Rt)return s=rr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,p!==nb&&(a=Error(n(422),{cause:p}),wu(Tr(a,u)))):(p!==nb&&(s=Error(n(423),{cause:p}),wu(Tr(s,u))),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,p=Tr(p,u),b=Bb(a.stateNode,p,b),hb(a,b),Eo!==4&&(Eo=2)),!1;var C=Error(n(520),{cause:p});if(C=Tr(C,u),$u===null?$u=[C]:$u.push(C),Eo!==4&&(Eo=2),s===null)return!0;p=Tr(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,a=b&-b,u.lanes|=a,a=Bb(u.stateNode,p,a),hb(u,a),!1;case 1:if(s=u.type,C=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Mi===null||!Mi.has(C))))return u.flags|=65536,b&=-b,u.lanes|=b,b=AT(b),kT(b,a,u,p),hb(u,b),!1}u=u.return}while(u!==null);return!1}var zb=Error(n(461)),zo=!1;function un(a,s,u,p){s.child=a===null?Mx(s,null,u,p):Bs(s,a.child,u,p)}function DT(a,s,u,p,b){u=u.render;var C=s.ref;if("ref"in p){var I={};for(var B in p)B!=="ref"&&(I[B]=p[B])}else I=p;return Ms(s),p=Sb(a,s,u,I,C,b),B=_b(),a!==null&&!zo?(Cb(a,s,b),qa(a,s,b)):(Rt&&B&&tb(s),s.flags|=1,un(a,s,p,b),s.child)}function OT(a,s,u,p,b){if(a===null){var C=u.type;return typeof C=="function"&&!Jv(C)&&C.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=C,IT(a,s,C,p,b)):(a=Jm(u.type,null,p,s,s.mode,b),a.ref=s.ref,a.return=s,s.child=a)}if(C=a.child,!Kb(a,b)){var I=C.memoizedProps;if(u=u.compare,u=u!==null?u:Su,u(I,p)&&a.ref===s.ref)return qa(a,s,b)}return s.flags|=1,a=Fa(C,p),a.ref=s.ref,a.return=s,s.child=a}function IT(a,s,u,p,b){if(a!==null){var C=a.memoizedProps;if(Su(C,p)&&a.ref===s.ref)if(zo=!1,s.pendingProps=p=C,Kb(a,b))(a.flags&131072)!==0&&(zo=!0);else return s.lanes=a.lanes,qa(a,s,b)}return jb(a,s,u,p,b)}function MT(a,s,u,p){var b=p.children,C=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(C=C!==null?C.baseLanes|u:u,a!==null){for(p=s.child=a.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~C}else p=0,s.child=null;return LT(a,s,C,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&of(s,C!==null?C.cachePool:null),C!==null?Fx(s,C):gb(),Bx(s);else return p=s.lanes=536870912,LT(a,s,C!==null?C.baseLanes|u:u,u,p)}else C!==null?(of(s,C.cachePool),Fx(s,C),ki(),s.memoizedState=null):(a!==null&&of(s,null),gb(),ki());return un(a,s,b,u),s.child}function Lu(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function LT(a,s,u,p,b){var C=ub();return C=C===null?null:{parent:Fo._currentValue,pool:C},s.memoizedState={baseLanes:u,cachePool:C},a!==null&&of(s,null),gb(),Bx(s),a!==null&&Ul(a,s,p,!0),s.childLanes=b,null}function yf(a,s){return s=_f({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}function NT(a,s,u){return Bs(s,a.child,null,u),a=yf(s,s.pendingProps),a.flags|=2,ar(s),s.memoizedState=null,a}function C5(a,s,u){var p=s.pendingProps,b=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(Rt){if(p.mode==="hidden")return a=yf(s,p),s.lanes=536870912,Lu(null,a);if(bb(s),(a=io)?(a=WP(a,Ar),a=a!==null&&a.data==="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:ua,overflow:da}:null,retryLane:536870912,hydrationErrors:null},u=yx(a),u.return=s,s.child=u,ln=s,io=null)):a=null,a===null)throw Ei(s);return s.lanes=536870912,null}return yf(s,p)}var C=a.memoizedState;if(C!==null){var I=C.dehydrated;if(bb(s),b)if(s.flags&256)s.flags&=-257,s=NT(a,s,u);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(n(558));else if(zo||Ul(a,s,u,!1),b=(u&a.childLanes)!==0,zo||b){if(p=Jt,p!==null&&(I=Un(p,u),I!==0&&I!==C.retryLane))throw C.retryLane=I,ks(a,I),Wn(p,a,I),zb;kf(),s=NT(a,s,u)}else a=C.treeContext,io=Dr(I.nextSibling),ln=s,Rt=!0,wi=null,Ar=!1,a!==null&&Cx(s,a),s=yf(s,p),s.flags|=4096;return s}return a=Fa(a.child,{mode:p.mode,children:p.children}),a.ref=s.ref,s.child=a,a.return=s,a}function Sf(a,s){var u=s.ref;if(u===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(n(284));(a===null||a.ref!==u)&&(s.flags|=4194816)}}function jb(a,s,u,p,b){return Ms(s),u=Sb(a,s,u,p,void 0,b),p=_b(),a!==null&&!zo?(Cb(a,s,b),qa(a,s,b)):(Rt&&p&&tb(s),s.flags|=1,un(a,s,u,b),s.child)}function FT(a,s,u,p,b,C){return Ms(s),s.updateQueue=null,u=jx(s,p,u,b),zx(a),p=_b(),a!==null&&!zo?(Cb(a,s,C),qa(a,s,C)):(Rt&&p&&tb(s),s.flags|=1,un(a,s,u,C),s.child)}function BT(a,s,u,p,b){if(Ms(s),s.stateNode===null){var C=Fl,I=u.contextType;typeof I=="object"&&I!==null&&(C=cn(I)),C=new u(p,C),s.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Fb,s.stateNode=C,C._reactInternals=s,C=s.stateNode,C.props=p,C.state=s.memoizedState,C.refs={},mb(s),I=u.contextType,C.context=typeof I=="object"&&I!==null?cn(I):Fl,C.state=s.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(Nb(s,u,I,p),C.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(I=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),I!==C.state&&Fb.enqueueReplaceState(C,C.state,null),ku(s,p,C,b),Au(),C.state=s.memoizedState),typeof C.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(a===null){C=s.stateNode;var B=s.memoizedProps,X=js(u,B);C.props=X;var de=C.context,ye=u.contextType;I=Fl,typeof ye=="object"&&ye!==null&&(I=cn(ye));var Ce=u.getDerivedStateFromProps;ye=typeof Ce=="function"||typeof C.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ye||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(B||de!==I)&&ET(s,C,p,I),Ti=!1;var fe=s.memoizedState;C.state=fe,ku(s,p,C,b),Au(),de=s.memoizedState,B||fe!==de||Ti?(typeof Ce=="function"&&(Nb(s,u,Ce,p),de=s.memoizedState),(X=Ti||wT(s,u,X,p,fe,de,I))?(ye||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(s.flags|=4194308)):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=de),C.props=p,C.state=de,C.context=I,p=X):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{C=s.stateNode,fb(a,s),I=s.memoizedProps,ye=js(u,I),C.props=ye,Ce=s.pendingProps,fe=C.context,de=u.contextType,X=Fl,typeof de=="object"&&de!==null&&(X=cn(de)),B=u.getDerivedStateFromProps,(de=typeof B=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==Ce||fe!==X)&&ET(s,C,p,X),Ti=!1,fe=s.memoizedState,C.state=fe,ku(s,p,C,b),Au();var ge=s.memoizedState;I!==Ce||fe!==ge||Ti||a!==null&&a.dependencies!==null&&ef(a.dependencies)?(typeof B=="function"&&(Nb(s,u,B,p),ge=s.memoizedState),(ye=Ti||wT(s,u,ye,p,fe,ge,X)||a!==null&&a.dependencies!==null&&ef(a.dependencies))?(de||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(p,ge,X),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(p,ge,X)),typeof C.componentDidUpdate=="function"&&(s.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=ge),C.props=p,C.state=ge,C.context=X,p=ye):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&fe===a.memoizedState||(s.flags|=1024),p=!1)}return C=p,Sf(a,s),p=(s.flags&128)!==0,C||p?(C=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:C.render(),s.flags|=1,a!==null&&p?(s.child=Bs(s,a.child,null,b),s.child=Bs(s,null,u,b)):un(a,s,u,b),s.memoizedState=C.state,a=s.child):a=qa(a,s,b),a}function zT(a,s,u,p){return Os(),s.flags|=256,un(a,s,u,p),s.child}var Ub={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $b(a){return{baseLanes:a,cachePool:Rx()}}function qb(a,s,u){return a=a!==null?a.childLanes&~u:0,s&&(a|=sr),a}function jT(a,s,u){var p=s.pendingProps,b=!1,C=(s.flags&128)!==0,I;if((I=C)||(I=a!==null&&a.memoizedState===null?!1:(To.current&2)!==0),I&&(b=!0,s.flags&=-129),I=(s.flags&32)!==0,s.flags&=-33,a===null){if(Rt){if(b?Ai(s):ki(),(a=io)?(a=WP(a,Ar),a=a!==null&&a.data!=="&"?a:null,a!==null&&(s.memoizedState={dehydrated:a,treeContext:Ci!==null?{id:ua,overflow:da}:null,retryLane:536870912,hydrationErrors:null},u=yx(a),u.return=s,s.child=u,ln=s,io=null)):a=null,a===null)throw Ei(s);return xy(a)?s.lanes=32:s.lanes=536870912,null}var B=p.children;return p=p.fallback,b?(ki(),b=s.mode,B=_f({mode:"hidden",children:B},b),p=Ds(p,b,u,null),B.return=s,p.return=s,B.sibling=p,s.child=B,p=s.child,p.memoizedState=$b(u),p.childLanes=qb(a,I,u),s.memoizedState=Ub,Lu(null,p)):(Ai(s),Vb(s,B))}var X=a.memoizedState;if(X!==null&&(B=X.dehydrated,B!==null)){if(C)s.flags&256?(Ai(s),s.flags&=-257,s=Hb(a,s,u)):s.memoizedState!==null?(ki(),s.child=a.child,s.flags|=128,s=null):(ki(),B=p.fallback,b=s.mode,p=_f({mode:"visible",children:p.children},b),B=Ds(B,b,u,null),B.flags|=2,p.return=s,B.return=s,p.sibling=B,s.child=p,Bs(s,a.child,null,u),p=s.child,p.memoizedState=$b(u),p.childLanes=qb(a,I,u),s.memoizedState=Ub,s=Lu(null,p));else if(Ai(s),xy(B)){if(I=B.nextSibling&&B.nextSibling.dataset,I)var de=I.dgst;I=de,p=Error(n(419)),p.stack="",p.digest=I,wu({value:p,source:null,stack:null}),s=Hb(a,s,u)}else if(zo||Ul(a,s,u,!1),I=(u&a.childLanes)!==0,zo||I){if(I=Jt,I!==null&&(p=Un(I,u),p!==0&&p!==X.retryLane))throw X.retryLane=p,ks(a,p),Wn(I,a,p),zb;Ey(B)||kf(),s=Hb(a,s,u)}else Ey(B)?(s.flags|=192,s.child=a.child,s=null):(a=X.treeContext,io=Dr(B.nextSibling),ln=s,Rt=!0,wi=null,Ar=!1,a!==null&&Cx(s,a),s=Vb(s,p.children),s.flags|=4096);return s}return b?(ki(),B=p.fallback,b=s.mode,X=a.child,de=X.sibling,p=Fa(X,{mode:"hidden",children:p.children}),p.subtreeFlags=X.subtreeFlags&65011712,de!==null?B=Fa(de,B):(B=Ds(B,b,u,null),B.flags|=2),B.return=s,p.return=s,p.sibling=B,s.child=p,Lu(null,p),p=s.child,B=a.child.memoizedState,B===null?B=$b(u):(b=B.cachePool,b!==null?(X=Fo._currentValue,b=b.parent!==X?{parent:X,pool:X}:b):b=Rx(),B={baseLanes:B.baseLanes|u,cachePool:b}),p.memoizedState=B,p.childLanes=qb(a,I,u),s.memoizedState=Ub,Lu(a.child,p)):(Ai(s),u=a.child,a=u.sibling,u=Fa(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,a!==null&&(I=s.deletions,I===null?(s.deletions=[a],s.flags|=16):I.push(a)),s.child=u,s.memoizedState=null,u)}function Vb(a,s){return s=_f({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function _f(a,s){return a=nr(22,a,null,s),a.lanes=0,a}function Hb(a,s,u){return Bs(s,a.child,null,u),a=Vb(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function UT(a,s,u){a.lanes|=s;var p=a.alternate;p!==null&&(p.lanes|=s),ib(a.return,s,u)}function Gb(a,s,u,p,b,C){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:b,treeForkCount:C}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=u,I.tailMode=b,I.treeForkCount=C)}function $T(a,s,u){var p=s.pendingProps,b=p.revealOrder,C=p.tail;p=p.children;var I=To.current,B=(I&2)!==0;if(B?(I=I&1|2,s.flags|=128):I&=1,q(To,I),un(a,s,p,u),p=Rt?Cu:0,!B&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&UT(a,u,s);else if(a.tag===19)UT(a,u,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(b){case"forwards":for(u=s.child,b=null;u!==null;)a=u.alternate,a!==null&&cf(a)===null&&(b=u),u=u.sibling;u=b,u===null?(b=s.child,s.child=null):(b=u.sibling,u.sibling=null),Gb(s,!1,b,u,C,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=s.child,s.child=null;b!==null;){if(a=b.alternate,a!==null&&cf(a)===null){s.child=b;break}a=b.sibling,b.sibling=u,u=b,b=a}Gb(s,!0,u,null,C,p);break;case"together":Gb(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function qa(a,s,u){if(a!==null&&(s.dependencies=a.dependencies),Ii|=s.lanes,(u&s.childLanes)===0)if(a!==null){if(Ul(a,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(n(153));if(s.child!==null){for(a=s.child,u=Fa(a,a.pendingProps),s.child=u,u.return=s;a.sibling!==null;)a=a.sibling,u=u.sibling=Fa(a,a.pendingProps),u.return=s;u.sibling=null}return s.child}function Kb(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&ef(a)))}function w5(a,s,u){switch(s.tag){case 3:he(s,s.stateNode.containerInfo),xi(s,Fo,a.memoizedState.cache),Os();break;case 27:case 5:Be(s);break;case 4:he(s,s.stateNode.containerInfo);break;case 10:xi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,bb(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Ai(s),s.flags|=128,null):(u&s.child.childLanes)!==0?jT(a,s,u):(Ai(s),a=qa(a,s,u),a!==null?a.sibling:null);Ai(s);break;case 19:var b=(a.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(Ul(a,s,u,!1),p=(u&s.childLanes)!==0),b){if(p)return $T(a,s,u);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),q(To,To.current),p)break;return null;case 22:return s.lanes=0,MT(a,s,u,s.pendingProps);case 24:xi(s,Fo,a.memoizedState.cache)}return qa(a,s,u)}function qT(a,s,u){if(a!==null)if(a.memoizedProps!==s.pendingProps)zo=!0;else{if(!Kb(a,u)&&(s.flags&128)===0)return zo=!1,w5(a,s,u);zo=(a.flags&131072)!==0}else zo=!1,Rt&&(s.flags&1048576)!==0&&_x(s,Cu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(a=Ns(s.elementType),s.type=a,typeof a=="function")Jv(a)?(p=js(a,p),s.tag=1,s=BT(null,s,a,p,u)):(s.tag=0,s=jb(null,s,a,p,u));else{if(a!=null){var b=a.$$typeof;if(b===x){s.tag=11,s=DT(null,s,a,p,u);break e}else if(b===k){s.tag=14,s=OT(null,s,a,p,u);break e}}throw s=K(a)||a,Error(n(306,s,""))}}return s;case 0:return jb(a,s,s.type,s.pendingProps,u);case 1:return p=s.type,b=js(p,s.pendingProps),BT(a,s,p,b,u);case 3:e:{if(he(s,s.stateNode.containerInfo),a===null)throw Error(n(387));p=s.pendingProps;var C=s.memoizedState;b=C.element,fb(a,s),ku(s,p,null,u);var I=s.memoizedState;if(p=I.cache,xi(s,Fo,p),p!==C.cache&&sb(s,[Fo],u,!0),Au(),p=I.element,C.isDehydrated)if(C={element:p,isDehydrated:!1,cache:I.cache},s.updateQueue.baseState=C,s.memoizedState=C,s.flags&256){s=zT(a,s,p,u);break e}else if(p!==b){b=Tr(Error(n(424)),s),wu(b),s=zT(a,s,p,u);break e}else for(a=s.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,io=Dr(a.firstChild),ln=s,Rt=!0,wi=null,Ar=!0,u=Mx(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Os(),p===b){s=qa(a,s,u);break e}un(a,s,p,u)}s=s.child}return s;case 26:return Sf(a,s),a===null?(u=eR(s.type,null,s.pendingProps,null))?s.memoizedState=u:Rt||(u=s.type,a=s.pendingProps,p=Ff(J.current).createElement(u),p[sn]=s,p[$n]=a,dn(p,u,a),en(p),s.stateNode=p):s.memoizedState=eR(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Be(s),a===null&&Rt&&(p=s.stateNode=QP(s.type,s.pendingProps,J.current),ln=s,Ar=!0,b=io,Bi(s.type)?(Ty=b,io=Dr(p.firstChild)):io=b),un(a,s,s.pendingProps.children,u),Sf(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&Rt&&((b=p=io)&&(p=X5(p,s.type,s.pendingProps,Ar),p!==null?(s.stateNode=p,ln=s,io=Dr(p.firstChild),Ar=!1,b=!0):b=!1),b||Ei(s)),Be(s),b=s.type,C=s.pendingProps,I=a!==null?a.memoizedProps:null,p=C.children,_y(b,C)?p=null:I!==null&&_y(b,I)&&(s.flags|=32),s.memoizedState!==null&&(b=Sb(a,s,h5,null,null,u),Zu._currentValue=b),Sf(a,s),un(a,s,p,u),s.child;case 6:return a===null&&Rt&&((a=u=io)&&(u=e6(u,s.pendingProps,Ar),u!==null?(s.stateNode=u,ln=s,io=null,a=!0):a=!1),a||Ei(s)),null;case 13:return jT(a,s,u);case 4:return he(s,s.stateNode.containerInfo),p=s.pendingProps,a===null?s.child=Bs(s,null,p,u):un(a,s,p,u),s.child;case 11:return DT(a,s,s.type,s.pendingProps,u);case 7:return un(a,s,s.pendingProps,u),s.child;case 8:return un(a,s,s.pendingProps.children,u),s.child;case 12:return un(a,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,xi(s,s.type,p.value),un(a,s,p.children,u),s.child;case 9:return b=s.type._context,p=s.pendingProps.children,Ms(s),b=cn(b),p=p(b),s.flags|=1,un(a,s,p,u),s.child;case 14:return OT(a,s,s.type,s.pendingProps,u);case 15:return IT(a,s,s.type,s.pendingProps,u);case 19:return $T(a,s,u);case 31:return C5(a,s,u);case 22:return MT(a,s,u,s.pendingProps);case 24:return Ms(s),p=cn(Fo),a===null?(b=ub(),b===null&&(b=Jt,C=lb(),b.pooledCache=C,C.refCount++,C!==null&&(b.pooledCacheLanes|=u),b=C),s.memoizedState={parent:p,cache:b},mb(s),xi(s,Fo,b)):((a.lanes&u)!==0&&(fb(a,s),ku(s,null,null,u),Au()),b=a.memoizedState,C=s.memoizedState,b.parent!==p?(b={parent:p,cache:p},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),xi(s,Fo,p)):(p=C.cache,xi(s,Fo,p),p!==b.cache&&sb(s,[Fo],u,!0))),un(a,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(n(156,s.tag))}function Va(a){a.flags|=4}function Wb(a,s,u,p,b){if((s=(a.mode&32)!==0)&&(s=!1),s){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(gP())a.flags|=8192;else throw Fs=rf,db}else a.flags&=-16777217}function VT(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!aR(s))if(gP())a.flags|=8192;else throw Fs=rf,db}function Cf(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Gt():536870912,a.lanes|=s,Xl|=s)}function Nu(a,s){if(!Rt)switch(a.tailMode){case"hidden":s=a.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function so(a){var s=a.alternate!==null&&a.alternate.child===a.child,u=0,p=0;if(s)for(var b=a.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=p,a.childLanes=u,s}function E5(a,s,u){var p=s.pendingProps;switch(ob(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return so(s),null;case 1:return so(s),null;case 3:return u=s.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),ja(Fo),we(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(jl(s)?Va(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,rb())),so(s),null;case 26:var b=s.type,C=s.memoizedState;return a===null?(Va(s),C!==null?(so(s),VT(s,C)):(so(s),Wb(s,b,null,p,u))):C?C!==a.memoizedState?(Va(s),so(s),VT(s,C)):(so(s),s.flags&=-16777217):(a=a.memoizedProps,a!==p&&Va(s),so(s),Wb(s,b,a,p,u)),null;case 27:if(W(s),u=J.current,b=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(!p){if(s.stateNode===null)throw Error(n(166));return so(s),null}a=L.current,jl(s)?wx(s):(a=QP(b,p,u),s.stateNode=a,Va(s))}return so(s),null;case 5:if(W(s),b=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(!p){if(s.stateNode===null)throw Error(n(166));return so(s),null}if(C=L.current,jl(s))wx(s);else{var I=Ff(J.current);switch(C){case 1:C=I.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:C=I.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":C=I.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":C=I.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":C=I.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?C.multiple=!0:p.size&&(C.size=p.size);break;default:C=typeof p.is=="string"?I.createElement(b,{is:p.is}):I.createElement(b)}}C[sn]=s,C[$n]=p;e:for(I=s.child;I!==null;){if(I.tag===5||I.tag===6)C.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===s)break e;for(;I.sibling===null;){if(I.return===null||I.return===s)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}s.stateNode=C;e:switch(dn(C,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Va(s)}}return so(s),Wb(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,u),null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==p&&Va(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(n(166));if(a=J.current,jl(s)){if(a=s.stateNode,u=s.memoizedProps,p=null,b=ln,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}a[sn]=s,a=!!(a.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||jP(a.nodeValue,u)),a||Ei(s,!0)}else a=Ff(a).createTextNode(p),a[sn]=s,s.stateNode=a}return so(s),null;case 31:if(u=s.memoizedState,a===null||a.memoizedState!==null){if(p=jl(s),u!==null){if(a===null){if(!p)throw Error(n(318));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(557));a[sn]=s}else Os(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;so(s),a=!1}else u=rb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return s.flags&256?(ar(s),s):(ar(s),null);if((s.flags&128)!==0)throw Error(n(558))}return so(s),null;case 13:if(p=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=jl(s),p!==null&&p.dehydrated!==null){if(a===null){if(!b)throw Error(n(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(n(317));b[sn]=s}else Os(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;so(s),b=!1}else b=rb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(ar(s),s):(ar(s),null)}return ar(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,a=a!==null&&a.memoizedState!==null,u&&(p=s.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),C=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(C=p.memoizedState.cachePool.pool),C!==b&&(p.flags|=2048)),u!==a&&u&&(s.child.flags|=8192),Cf(s,s.updateQueue),so(s),null);case 4:return we(),a===null&&gy(s.stateNode.containerInfo),so(s),null;case 10:return ja(s.type),so(s),null;case 19:if(H(To),p=s.memoizedState,p===null)return so(s),null;if(b=(s.flags&128)!==0,C=p.rendering,C===null)if(b)Nu(p,!1);else{if(Eo!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(C=cf(a),C!==null){for(s.flags|=128,Nu(p,!1),a=C.updateQueue,s.updateQueue=a,Cf(s,a),s.subtreeFlags=0,a=u,u=s.child;u!==null;)bx(u,a),u=u.sibling;return q(To,To.current&1|2),Rt&&Ba(s,p.treeForkCount),s.child}a=a.sibling}p.tail!==null&&G()>Pf&&(s.flags|=128,b=!0,Nu(p,!1),s.lanes=4194304)}else{if(!b)if(a=cf(C),a!==null){if(s.flags|=128,b=!0,a=a.updateQueue,s.updateQueue=a,Cf(s,a),Nu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!C.alternate&&!Rt)return so(s),null}else 2*G()-p.renderingStartTime>Pf&&u!==536870912&&(s.flags|=128,b=!0,Nu(p,!1),s.lanes=4194304);p.isBackwards?(C.sibling=s.child,s.child=C):(a=p.last,a!==null?a.sibling=C:s.child=C,p.last=C)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=G(),a.sibling=null,u=To.current,q(To,b?u&1|2:u&1),Rt&&Ba(s,p.treeForkCount),a):(so(s),null);case 22:case 23:return ar(s),vb(),p=s.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(so(s),s.subtreeFlags&6&&(s.flags|=8192)):so(s),u=s.updateQueue,u!==null&&Cf(s,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),a!==null&&H(Ls),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ja(Fo),so(s),null;case 25:return null;case 30:return null}throw Error(n(156,s.tag))}function x5(a,s){switch(ob(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return ja(Fo),we(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return W(s),null;case 31:if(s.memoizedState!==null){if(ar(s),s.alternate===null)throw Error(n(340));Os()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(ar(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Os()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return H(To),null;case 4:return we(),null;case 10:return ja(s.type),null;case 22:case 23:return ar(s),vb(),a!==null&&H(Ls),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return ja(Fo),null;case 25:return null;default:return null}}function HT(a,s){switch(ob(s),s.tag){case 3:ja(Fo),we();break;case 26:case 27:case 5:W(s);break;case 4:we();break;case 31:s.memoizedState!==null&&ar(s);break;case 13:ar(s);break;case 19:H(To);break;case 10:ja(s.type);break;case 22:case 23:ar(s),vb(),a!==null&&H(Ls);break;case 24:ja(Fo)}}function Fu(a,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var b=p.next;u=b;do{if((u.tag&a)===a){p=void 0;var C=u.create,I=u.inst;p=C(),I.destroy=p}u=u.next}while(u!==b)}}catch(B){$t(s,s.return,B)}}function Di(a,s,u){try{var p=s.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var C=b.next;p=C;do{if((p.tag&a)===a){var I=p.inst,B=I.destroy;if(B!==void 0){I.destroy=void 0,b=s;var X=u,de=B;try{de()}catch(ye){$t(b,X,ye)}}}p=p.next}while(p!==C)}}catch(ye){$t(s,s.return,ye)}}function GT(a){var s=a.updateQueue;if(s!==null){var u=a.stateNode;try{Nx(s,u)}catch(p){$t(a,a.return,p)}}}function KT(a,s,u){u.props=js(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(p){$t(a,s,p)}}function Bu(a,s){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}typeof u=="function"?a.refCleanup=u(p):u.current=p}}catch(b){$t(a,s,b)}}function ma(a,s){var u=a.ref,p=a.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(b){$t(a,s,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){$t(a,s,b)}else u.current=null}function WT(a){var s=a.type,u=a.memoizedProps,p=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(b){$t(a,a.return,b)}}function Yb(a,s,u){try{var p=a.stateNode;K5(p,a.type,u,s),p[$n]=s}catch(b){$t(a,a.return,b)}}function YT(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Bi(a.type)||a.tag===4}function Zb(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||YT(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Bi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Qb(a,s,u){var p=a.tag;if(p===5||p===6)a=a.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(a),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=La));else if(p!==4&&(p===27&&Bi(a.type)&&(u=a.stateNode,s=null),a=a.child,a!==null))for(Qb(a,s,u),a=a.sibling;a!==null;)Qb(a,s,u),a=a.sibling}function wf(a,s,u){var p=a.tag;if(p===5||p===6)a=a.stateNode,s?u.insertBefore(a,s):u.appendChild(a);else if(p!==4&&(p===27&&Bi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(wf(a,s,u),a=a.sibling;a!==null;)wf(a,s,u),a=a.sibling}function ZT(a){var s=a.stateNode,u=a.memoizedProps;try{for(var p=a.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);dn(s,p,u),s[sn]=a,s[$n]=u}catch(C){$t(a,a.return,C)}}var Ha=!1,jo=!1,Jb=!1,QT=typeof WeakSet=="function"?WeakSet:Set,tn=null;function T5(a,s){if(a=a.containerInfo,yy=Vf,a=cx(a),Hv(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var b=p.anchorOffset,C=p.focusNode;p=p.focusOffset;try{u.nodeType,C.nodeType}catch{u=null;break e}var I=0,B=-1,X=-1,de=0,ye=0,Ce=a,fe=null;t:for(;;){for(var ge;Ce!==u||b!==0&&Ce.nodeType!==3||(B=I+b),Ce!==C||p!==0&&Ce.nodeType!==3||(X=I+p),Ce.nodeType===3&&(I+=Ce.nodeValue.length),(ge=Ce.firstChild)!==null;)fe=Ce,Ce=ge;for(;;){if(Ce===a)break t;if(fe===u&&++de===b&&(B=I),fe===C&&++ye===p&&(X=I),(ge=Ce.nextSibling)!==null)break;Ce=fe,fe=Ce.parentNode}Ce=ge}u=B===-1||X===-1?null:{start:B,end:X}}else u=null}u=u||{start:0,end:0}}else u=null;for(Sy={focusedElem:a,selectionRange:u},Vf=!1,tn=s;tn!==null;)if(s=tn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,tn=a;else for(;tn!==null;){switch(s=tn,C=s.alternate,a=s.flags,s.tag){case 0:if((a&4)!==0&&(a=s.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)b=a[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&C!==null){a=void 0,u=s,b=C.memoizedProps,C=C.memoizedState,p=u.stateNode;try{var He=js(u.type,b);a=p.getSnapshotBeforeUpdate(He,C),p.__reactInternalSnapshotBeforeUpdate=a}catch(ot){$t(u,u.return,ot)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,u=a.nodeType,u===9)wy(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":wy(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(n(163))}if(a=s.sibling,a!==null){a.return=s.return,tn=a;break}tn=s.return}}function JT(a,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:Ka(a,u),p&4&&Fu(5,u);break;case 1:if(Ka(a,u),p&4)if(a=u.stateNode,s===null)try{a.componentDidMount()}catch(I){$t(u,u.return,I)}else{var b=js(u.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(b,s,a.__reactInternalSnapshotBeforeUpdate)}catch(I){$t(u,u.return,I)}}p&64&&GT(u),p&512&&Bu(u,u.return);break;case 3:if(Ka(a,u),p&64&&(a=u.updateQueue,a!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{Nx(a,s)}catch(I){$t(u,u.return,I)}}break;case 27:s===null&&p&4&&ZT(u);case 26:case 5:Ka(a,u),s===null&&p&4&&WT(u),p&512&&Bu(u,u.return);break;case 12:Ka(a,u);break;case 31:Ka(a,u),p&4&&tP(a,u);break;case 13:Ka(a,u),p&4&&oP(a,u),p&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=L5.bind(null,u),t6(a,u))));break;case 22:if(p=u.memoizedState!==null||Ha,!p){s=s!==null&&s.memoizedState!==null||jo,b=Ha;var C=jo;Ha=p,(jo=s)&&!C?Wa(a,u,(u.subtreeFlags&8772)!==0):Ka(a,u),Ha=b,jo=C}break;case 30:break;default:Ka(a,u)}}function XT(a){var s=a.alternate;s!==null&&(a.alternate=null,XT(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Rv(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var mo=null,Vn=!1;function Ga(a,s,u){for(u=u.child;u!==null;)eP(a,s,u),u=u.sibling}function eP(a,s,u){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(bt,u)}catch{}switch(u.tag){case 26:jo||ma(u,s),Ga(a,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:jo||ma(u,s);var p=mo,b=Vn;Bi(u.type)&&(mo=u.stateNode,Vn=!1),Ga(a,s,u),Ku(u.stateNode),mo=p,Vn=b;break;case 5:jo||ma(u,s);case 6:if(p=mo,b=Vn,mo=null,Ga(a,s,u),mo=p,Vn=b,mo!==null)if(Vn)try{(mo.nodeType===9?mo.body:mo.nodeName==="HTML"?mo.ownerDocument.body:mo).removeChild(u.stateNode)}catch(C){$t(u,s,C)}else try{mo.removeChild(u.stateNode)}catch(C){$t(u,s,C)}break;case 18:mo!==null&&(Vn?(a=mo,GP(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),sc(a)):GP(mo,u.stateNode));break;case 4:p=mo,b=Vn,mo=u.stateNode.containerInfo,Vn=!0,Ga(a,s,u),mo=p,Vn=b;break;case 0:case 11:case 14:case 15:Di(2,u,s),jo||Di(4,u,s),Ga(a,s,u);break;case 1:jo||(ma(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&KT(u,s,p)),Ga(a,s,u);break;case 21:Ga(a,s,u);break;case 22:jo=(p=jo)||u.memoizedState!==null,Ga(a,s,u),jo=p;break;default:Ga(a,s,u)}}function tP(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{sc(a)}catch(u){$t(s,s.return,u)}}}function oP(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{sc(a)}catch(u){$t(s,s.return,u)}}function P5(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new QT),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new QT),s;default:throw Error(n(435,a.tag))}}function Ef(a,s){var u=P5(a);s.forEach(function(p){if(!u.has(p)){u.add(p);var b=N5.bind(null,a,p);p.then(b,b)}})}function Hn(a,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],C=a,I=s,B=I;e:for(;B!==null;){switch(B.tag){case 27:if(Bi(B.type)){mo=B.stateNode,Vn=!1;break e}break;case 5:mo=B.stateNode,Vn=!1;break e;case 3:case 4:mo=B.stateNode.containerInfo,Vn=!0;break e}B=B.return}if(mo===null)throw Error(n(160));eP(C,I,b),mo=null,Vn=!1,C=b.alternate,C!==null&&(C.return=null),b.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)nP(s,a),s=s.sibling}var Yr=null;function nP(a,s){var u=a.alternate,p=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Hn(s,a),Gn(a),p&4&&(Di(3,a,a.return),Fu(3,a),Di(5,a,a.return));break;case 1:Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),p&64&&Ha&&(a=a.updateQueue,a!==null&&(p=a.callbacks,p!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var b=Yr;if(Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),p&4){var C=u!==null?u.memoizedState:null;if(p=a.memoizedState,u===null)if(p===null)if(a.stateNode===null){e:{p=a.type,u=a.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":C=b.getElementsByTagName("title")[0],(!C||C[du]||C[sn]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=b.createElement(p),b.head.insertBefore(C,b.querySelector("head > title"))),dn(C,p,u),C[sn]=a,en(C),p=C;break e;case"link":var I=nR("link","href",b).get(p+(u.href||""));if(I){for(var B=0;B<I.length;B++)if(C=I[B],C.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&C.getAttribute("rel")===(u.rel==null?null:u.rel)&&C.getAttribute("title")===(u.title==null?null:u.title)&&C.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){I.splice(B,1);break t}}C=b.createElement(p),dn(C,p,u),b.head.appendChild(C);break;case"meta":if(I=nR("meta","content",b).get(p+(u.content||""))){for(B=0;B<I.length;B++)if(C=I[B],C.getAttribute("content")===(u.content==null?null:""+u.content)&&C.getAttribute("name")===(u.name==null?null:u.name)&&C.getAttribute("property")===(u.property==null?null:u.property)&&C.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&C.getAttribute("charset")===(u.charSet==null?null:u.charSet)){I.splice(B,1);break t}}C=b.createElement(p),dn(C,p,u),b.head.appendChild(C);break;default:throw Error(n(468,p))}C[sn]=a,en(C),p=C}a.stateNode=p}else rR(b,a.type,a.stateNode);else a.stateNode=oR(b,p,a.memoizedProps);else C!==p?(C===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):C.count--,p===null?rR(b,a.type,a.stateNode):oR(b,p,a.memoizedProps)):p===null&&a.stateNode!==null&&Yb(a,a.memoizedProps,u.memoizedProps)}break;case 27:Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),u!==null&&p&4&&Yb(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Hn(s,a),Gn(a),p&512&&(jo||u===null||ma(u,u.return)),a.flags&32){b=a.stateNode;try{kl(b,"")}catch(He){$t(a,a.return,He)}}p&4&&a.stateNode!=null&&(b=a.memoizedProps,Yb(a,b,u!==null?u.memoizedProps:b)),p&1024&&(Jb=!0);break;case 6:if(Hn(s,a),Gn(a),p&4){if(a.stateNode===null)throw Error(n(162));p=a.memoizedProps,u=a.stateNode;try{u.nodeValue=p}catch(He){$t(a,a.return,He)}}break;case 3:if(jf=null,b=Yr,Yr=Bf(s.containerInfo),Hn(s,a),Yr=b,Gn(a),p&4&&u!==null&&u.memoizedState.isDehydrated)try{sc(s.containerInfo)}catch(He){$t(a,a.return,He)}Jb&&(Jb=!1,rP(a));break;case 4:p=Yr,Yr=Bf(a.stateNode.containerInfo),Hn(s,a),Gn(a),Yr=p;break;case 12:Hn(s,a),Gn(a);break;case 31:Hn(s,a),Gn(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 13:Hn(s,a),Gn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Tf=G()),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 22:b=a.memoizedState!==null;var X=u!==null&&u.memoizedState!==null,de=Ha,ye=jo;if(Ha=de||b,jo=ye||X,Hn(s,a),jo=ye,Ha=de,Gn(a),p&8192)e:for(s=a.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(u===null||X||Ha||jo||Us(a)),u=null,s=a;;){if(s.tag===5||s.tag===26){if(u===null){X=u=s;try{if(C=X.stateNode,b)I=C.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{B=X.stateNode;var Ce=X.memoizedProps.style,fe=Ce!=null&&Ce.hasOwnProperty("display")?Ce.display:null;B.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(He){$t(X,X.return,He)}}}else if(s.tag===6){if(u===null){X=s;try{X.stateNode.nodeValue=b?"":X.memoizedProps}catch(He){$t(X,X.return,He)}}}else if(s.tag===18){if(u===null){X=s;try{var ge=X.stateNode;b?KP(ge,!0):KP(X.stateNode,!1)}catch(He){$t(X,X.return,He)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=a.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,Ef(a,u))));break;case 19:Hn(s,a),Gn(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Ef(a,p)));break;case 30:break;case 21:break;default:Hn(s,a),Gn(a)}}function Gn(a){var s=a.flags;if(s&2){try{for(var u,p=a.return;p!==null;){if(YT(p)){u=p;break}p=p.return}if(u==null)throw Error(n(160));switch(u.tag){case 27:var b=u.stateNode,C=Zb(a);wf(a,C,b);break;case 5:var I=u.stateNode;u.flags&32&&(kl(I,""),u.flags&=-33);var B=Zb(a);wf(a,B,I);break;case 3:case 4:var X=u.stateNode.containerInfo,de=Zb(a);Qb(a,de,X);break;default:throw Error(n(161))}}catch(ye){$t(a,a.return,ye)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function rP(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;rP(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function Ka(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)JT(a,s.alternate,s),s=s.sibling}function Us(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Di(4,s,s.return),Us(s);break;case 1:ma(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&KT(s,s.return,u),Us(s);break;case 27:Ku(s.stateNode);case 26:case 5:ma(s,s.return),Us(s);break;case 22:s.memoizedState===null&&Us(s);break;case 30:Us(s);break;default:Us(s)}a=a.sibling}}function Wa(a,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,b=a,C=s,I=C.flags;switch(C.tag){case 0:case 11:case 15:Wa(b,C,u),Fu(4,C);break;case 1:if(Wa(b,C,u),p=C,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(de){$t(p,p.return,de)}if(p=C,b=p.updateQueue,b!==null){var B=p.stateNode;try{var X=b.shared.hiddenCallbacks;if(X!==null)for(b.shared.hiddenCallbacks=null,b=0;b<X.length;b++)Lx(X[b],B)}catch(de){$t(p,p.return,de)}}u&&I&64&&GT(C),Bu(C,C.return);break;case 27:ZT(C);case 26:case 5:Wa(b,C,u),u&&p===null&&I&4&&WT(C),Bu(C,C.return);break;case 12:Wa(b,C,u);break;case 31:Wa(b,C,u),u&&I&4&&tP(b,C);break;case 13:Wa(b,C,u),u&&I&4&&oP(b,C);break;case 22:C.memoizedState===null&&Wa(b,C,u),Bu(C,C.return);break;case 30:break;default:Wa(b,C,u)}s=s.sibling}}function Xb(a,s){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&Eu(u))}function ey(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Eu(a))}function Zr(a,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)aP(a,s,u,p),s=s.sibling}function aP(a,s,u,p){var b=s.flags;switch(s.tag){case 0:case 11:case 15:Zr(a,s,u,p),b&2048&&Fu(9,s);break;case 1:Zr(a,s,u,p);break;case 3:Zr(a,s,u,p),b&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Eu(a)));break;case 12:if(b&2048){Zr(a,s,u,p),a=s.stateNode;try{var C=s.memoizedProps,I=C.id,B=C.onPostCommit;typeof B=="function"&&B(I,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(X){$t(s,s.return,X)}}else Zr(a,s,u,p);break;case 31:Zr(a,s,u,p);break;case 13:Zr(a,s,u,p);break;case 23:break;case 22:C=s.stateNode,I=s.alternate,s.memoizedState!==null?C._visibility&2?Zr(a,s,u,p):zu(a,s):C._visibility&2?Zr(a,s,u,p):(C._visibility|=2,Zl(a,s,u,p,(s.subtreeFlags&10256)!==0||!1)),b&2048&&Xb(I,s);break;case 24:Zr(a,s,u,p),b&2048&&ey(s.alternate,s);break;default:Zr(a,s,u,p)}}function Zl(a,s,u,p,b){for(b=b&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var C=a,I=s,B=u,X=p,de=I.flags;switch(I.tag){case 0:case 11:case 15:Zl(C,I,B,X,b),Fu(8,I);break;case 23:break;case 22:var ye=I.stateNode;I.memoizedState!==null?ye._visibility&2?Zl(C,I,B,X,b):zu(C,I):(ye._visibility|=2,Zl(C,I,B,X,b)),b&&de&2048&&Xb(I.alternate,I);break;case 24:Zl(C,I,B,X,b),b&&de&2048&&ey(I.alternate,I);break;default:Zl(C,I,B,X,b)}s=s.sibling}}function zu(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=a,p=s,b=p.flags;switch(p.tag){case 22:zu(u,p),b&2048&&Xb(p.alternate,p);break;case 24:zu(u,p),b&2048&&ey(p.alternate,p);break;default:zu(u,p)}s=s.sibling}}var ju=8192;function Ql(a,s,u){if(a.subtreeFlags&ju)for(a=a.child;a!==null;)iP(a,s,u),a=a.sibling}function iP(a,s,u){switch(a.tag){case 26:Ql(a,s,u),a.flags&ju&&a.memoizedState!==null&&f6(u,Yr,a.memoizedState,a.memoizedProps);break;case 5:Ql(a,s,u);break;case 3:case 4:var p=Yr;Yr=Bf(a.stateNode.containerInfo),Ql(a,s,u),Yr=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=ju,ju=16777216,Ql(a,s,u),ju=p):Ql(a,s,u));break;default:Ql(a,s,u)}}function sP(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function Uu(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,cP(p,a)}sP(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)lP(a),a=a.sibling}function lP(a){switch(a.tag){case 0:case 11:case 15:Uu(a),a.flags&2048&&Di(9,a,a.return);break;case 3:Uu(a);break;case 12:Uu(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,xf(a)):Uu(a);break;default:Uu(a)}}function xf(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,cP(p,a)}sP(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Di(8,s,s.return),xf(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,xf(s));break;default:xf(s)}a=a.sibling}}function cP(a,s){for(;tn!==null;){var u=tn;switch(u.tag){case 0:case 11:case 15:Di(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Eu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,tn=p;else e:for(u=a;tn!==null;){p=tn;var b=p.sibling,C=p.return;if(XT(p),p===u){tn=null;break e}if(b!==null){b.return=C,tn=b;break e}tn=C}}}var R5={getCacheForType:function(a){var s=cn(Fo),u=s.data.get(a);return u===void 0&&(u=a(),s.data.set(a,u)),u},cacheSignal:function(){return cn(Fo).controller.signal}},A5=typeof WeakMap=="function"?WeakMap:Map,Bt=0,Jt=null,St=null,Et=0,Ut=0,ir=null,Oi=!1,Jl=!1,ty=!1,Ya=0,Eo=0,Ii=0,$s=0,oy=0,sr=0,Xl=0,$u=null,Kn=null,ny=!1,Tf=0,uP=0,Pf=1/0,Rf=null,Mi=null,Ho=0,Li=null,ec=null,Za=0,ry=0,ay=null,dP=null,qu=0,iy=null;function lr(){return(Bt&2)!==0&&Et!==0?Et&-Et:V.T!==null?my():Tv()}function mP(){if(sr===0)if((Et&536870912)===0||Rt){var a=Pt;Pt<<=1,(Pt&3932160)===0&&(Pt=262144),sr=a}else sr=536870912;return a=rr.current,a!==null&&(a.flags|=32),sr}function Wn(a,s,u){(a===Jt&&(Ut===2||Ut===9)||a.cancelPendingCommit!==null)&&(tc(a,0),Ni(a,Et,sr,!1)),Mt(a,u),((Bt&2)===0||a!==Jt)&&(a===Jt&&((Bt&2)===0&&($s|=u),Eo===4&&Ni(a,Et,sr,!1)),fa(a))}function fP(a,s,u){if((Bt&6)!==0)throw Error(n(327));var p=!u&&(s&127)===0&&(s&a.expiredLanes)===0||ut(a,s),b=p?O5(a,s):ly(a,s,!0),C=p;do{if(b===0){Jl&&!p&&Ni(a,s,0,!1);break}else{if(u=a.current.alternate,C&&!k5(u)){b=ly(a,s,!1),C=!1;continue}if(b===2){if(C=s,a.errorRecoveryDisabledLanes&C)var I=0;else I=a.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){s=I;e:{var B=a;b=$u;var X=B.current.memoizedState.isDehydrated;if(X&&(tc(B,I).flags|=256),I=ly(B,I,!1),I!==2){if(ty&&!X){B.errorRecoveryDisabledLanes|=C,$s|=C,b=4;break e}C=Kn,Kn=b,C!==null&&(Kn===null?Kn=C:Kn.push.apply(Kn,C))}b=I}if(C=!1,b!==2)continue}}if(b===1){tc(a,0),Ni(a,s,0,!0);break}e:{switch(p=a,C=b,C){case 0:case 1:throw Error(n(345));case 4:if((s&4194048)!==s)break;case 6:Ni(p,s,sr,!Oi);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(n(329))}if((s&62914560)===s&&(b=Tf+300-G(),10<b)){if(Ni(p,s,sr,!Oi),Ge(p,0,!0)!==0)break e;Za=s,p.timeoutHandle=VP(hP.bind(null,p,u,Kn,Rf,ny,s,sr,$s,Xl,Oi,C,"Throttled",-0,0),b);break e}hP(p,u,Kn,Rf,ny,s,sr,$s,Xl,Oi,C,null,-0,0)}}break}while(!0);fa(a)}function hP(a,s,u,p,b,C,I,B,X,de,ye,Ce,fe,ge){if(a.timeoutHandle=-1,Ce=s.subtreeFlags,Ce&8192||(Ce&16785408)===16785408){Ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:La},iP(s,C,Ce);var He=(C&62914560)===C?Tf-G():(C&4194048)===C?uP-G():0;if(He=h6(Ce,He),He!==null){Za=C,a.cancelPendingCommit=He(CP.bind(null,a,s,C,u,p,b,I,B,X,ye,Ce,null,fe,ge)),Ni(a,C,I,!de);return}}CP(a,s,C,u,p,b,I,B,X)}function k5(a){for(var s=a;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var b=u[p],C=b.getSnapshot;b=b.value;try{if(!or(C(),b))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ni(a,s,u,p){s&=~oy,s&=~$s,a.suspendedLanes|=s,a.pingedLanes&=~s,p&&(a.warmLanes|=s),p=a.expirationTimes;for(var b=s;0<b;){var C=31-No(b),I=1<<C;p[C]=-1,b&=~I}u!==0&&Cr(a,u,s)}function Af(){return(Bt&6)===0?(Vu(0),!1):!0}function sy(){if(St!==null){if(Ut===0)var a=St.return;else a=St,za=Is=null,wb(a),Hl=null,Tu=0,a=St;for(;a!==null;)HT(a.alternate,a),a=a.return;St=null}}function tc(a,s){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,Z5(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Za=0,sy(),Jt=a,St=u=Fa(a.current,null),Et=s,Ut=0,ir=null,Oi=!1,Jl=ut(a,s),ty=!1,Xl=sr=oy=$s=Ii=Eo=0,Kn=$u=null,ny=!1,(s&8)!==0&&(s|=s&32);var p=a.entangledLanes;if(p!==0)for(a=a.entanglements,p&=s;0<p;){var b=31-No(p),C=1<<b;s|=a[b],p&=~C}return Ya=s,Ym(),u}function pP(a,s){st=null,V.H=Mu,s===Vl||s===nf?(s=Dx(),Ut=3):s===db?(s=Dx(),Ut=4):Ut=s===zb?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ir=s,St===null&&(Eo=1,bf(a,Tr(s,a.current)))}function gP(){var a=rr.current;return a===null?!0:(Et&4194048)===Et?kr===null:(Et&62914560)===Et||(Et&536870912)!==0?a===kr:!1}function vP(){var a=V.H;return V.H=Mu,a===null?Mu:a}function bP(){var a=V.A;return V.A=R5,a}function kf(){Eo=4,Oi||(Et&4194048)!==Et&&rr.current!==null||(Jl=!0),(Ii&134217727)===0&&($s&134217727)===0||Jt===null||Ni(Jt,Et,sr,!1)}function ly(a,s,u){var p=Bt;Bt|=2;var b=vP(),C=bP();(Jt!==a||Et!==s)&&(Rf=null,tc(a,s)),s=!1;var I=Eo;e:do try{if(Ut!==0&&St!==null){var B=St,X=ir;switch(Ut){case 8:sy(),I=6;break e;case 3:case 2:case 9:case 6:rr.current===null&&(s=!0);var de=Ut;if(Ut=0,ir=null,oc(a,B,X,de),u&&Jl){I=0;break e}break;default:de=Ut,Ut=0,ir=null,oc(a,B,X,de)}}D5(),I=Eo;break}catch(ye){pP(a,ye)}while(!0);return s&&a.shellSuspendCounter++,za=Is=null,Bt=p,V.H=b,V.A=C,St===null&&(Jt=null,Et=0,Ym()),I}function D5(){for(;St!==null;)yP(St)}function O5(a,s){var u=Bt;Bt|=2;var p=vP(),b=bP();Jt!==a||Et!==s?(Rf=null,Pf=G()+500,tc(a,s)):Jl=ut(a,s);e:do try{if(Ut!==0&&St!==null){s=St;var C=ir;t:switch(Ut){case 1:Ut=0,ir=null,oc(a,s,C,1);break;case 2:case 9:if(Ax(C)){Ut=0,ir=null,SP(s);break}s=function(){Ut!==2&&Ut!==9||Jt!==a||(Ut=7),fa(a)},C.then(s,s);break e;case 3:Ut=7;break e;case 4:Ut=5;break e;case 7:Ax(C)?(Ut=0,ir=null,SP(s)):(Ut=0,ir=null,oc(a,s,C,7));break;case 5:var I=null;switch(St.tag){case 26:I=St.memoizedState;case 5:case 27:var B=St;if(I?aR(I):B.stateNode.complete){Ut=0,ir=null;var X=B.sibling;if(X!==null)St=X;else{var de=B.return;de!==null?(St=de,Df(de)):St=null}break t}}Ut=0,ir=null,oc(a,s,C,5);break;case 6:Ut=0,ir=null,oc(a,s,C,6);break;case 8:sy(),Eo=6;break e;default:throw Error(n(462))}}I5();break}catch(ye){pP(a,ye)}while(!0);return za=Is=null,V.H=p,V.A=b,Bt=u,St!==null?0:(Jt=null,Et=0,Ym(),Eo)}function I5(){for(;St!==null&&!ke();)yP(St)}function yP(a){var s=qT(a.alternate,a,Ya);a.memoizedProps=a.pendingProps,s===null?Df(a):St=s}function SP(a){var s=a,u=s.alternate;switch(s.tag){case 15:case 0:s=FT(u,s,s.pendingProps,s.type,void 0,Et);break;case 11:s=FT(u,s,s.pendingProps,s.type.render,s.ref,Et);break;case 5:wb(s);default:HT(u,s),s=St=bx(s,Ya),s=qT(u,s,Ya)}a.memoizedProps=a.pendingProps,s===null?Df(a):St=s}function oc(a,s,u,p){za=Is=null,wb(s),Hl=null,Tu=0;var b=s.return;try{if(_5(a,b,s,u,Et)){Eo=1,bf(a,Tr(u,a.current)),St=null;return}}catch(C){if(b!==null)throw St=b,C;Eo=1,bf(a,Tr(u,a.current)),St=null;return}s.flags&32768?(Rt||p===1?a=!0:Jl||(Et&536870912)!==0?a=!1:(Oi=a=!0,(p===2||p===9||p===3||p===6)&&(p=rr.current,p!==null&&p.tag===13&&(p.flags|=16384))),_P(s,a)):Df(s)}function Df(a){var s=a;do{if((s.flags&32768)!==0){_P(s,Oi);return}a=s.return;var u=E5(s.alternate,s,Ya);if(u!==null){St=u;return}if(s=s.sibling,s!==null){St=s;return}St=s=a}while(s!==null);Eo===0&&(Eo=5)}function _P(a,s){do{var u=x5(a.alternate,a);if(u!==null){u.flags&=32767,St=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(a=a.sibling,a!==null)){St=a;return}St=a=u}while(a!==null);Eo=6,St=null}function CP(a,s,u,p,b,C,I,B,X){a.cancelPendingCommit=null;do Of();while(Ho!==0);if((Bt&6)!==0)throw Error(n(327));if(s!==null){if(s===a.current)throw Error(n(177));if(C=s.lanes|s.childLanes,C|=Zv,ao(a,u,C,I,B,X),a===Jt&&(St=Jt=null,Et=0),ec=s,Li=a,Za=u,ry=C,ay=b,dP=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,F5(Pe,function(){return PP(),null})):(a.callbackNode=null,a.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=V.T,V.T=null,b=Z.p,Z.p=2,I=Bt,Bt|=4;try{T5(a,s,u)}finally{Bt=I,Z.p=b,V.T=p}}Ho=1,wP(),EP(),xP()}}function wP(){if(Ho===1){Ho=0;var a=Li,s=ec,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var p=Z.p;Z.p=2;var b=Bt;Bt|=4;try{nP(s,a);var C=Sy,I=cx(a.containerInfo),B=C.focusedElem,X=C.selectionRange;if(I!==B&&B&&B.ownerDocument&&lx(B.ownerDocument.documentElement,B)){if(X!==null&&Hv(B)){var de=X.start,ye=X.end;if(ye===void 0&&(ye=de),"selectionStart"in B)B.selectionStart=de,B.selectionEnd=Math.min(ye,B.value.length);else{var Ce=B.ownerDocument||document,fe=Ce&&Ce.defaultView||window;if(fe.getSelection){var ge=fe.getSelection(),He=B.textContent.length,ot=Math.min(X.start,He),Yt=X.end===void 0?ot:Math.min(X.end,He);!ge.extend&&ot>Yt&&(I=Yt,Yt=ot,ot=I);var ce=sx(B,ot),re=sx(B,Yt);if(ce&&re&&(ge.rangeCount!==1||ge.anchorNode!==ce.node||ge.anchorOffset!==ce.offset||ge.focusNode!==re.node||ge.focusOffset!==re.offset)){var ue=Ce.createRange();ue.setStart(ce.node,ce.offset),ge.removeAllRanges(),ot>Yt?(ge.addRange(ue),ge.extend(re.node,re.offset)):(ue.setEnd(re.node,re.offset),ge.addRange(ue))}}}}for(Ce=[],ge=B;ge=ge.parentNode;)ge.nodeType===1&&Ce.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Ce.length;B++){var Se=Ce[B];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}Vf=!!yy,Sy=yy=null}finally{Bt=b,Z.p=p,V.T=u}}a.current=s,Ho=2}}function EP(){if(Ho===2){Ho=0;var a=Li,s=ec,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var p=Z.p;Z.p=2;var b=Bt;Bt|=4;try{JT(a,s.alternate,s)}finally{Bt=b,Z.p=p,V.T=u}}Ho=3}}function xP(){if(Ho===4||Ho===3){Ho=0,Ue();var a=Li,s=ec,u=Za,p=dP;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Ho=5:(Ho=0,ec=Li=null,TP(a,a.pendingLanes));var b=a.pendingLanes;if(b===0&&(Mi=null),Kr(u),s=s.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(bt,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=V.T,b=Z.p,Z.p=2,V.T=null;try{for(var C=a.onRecoverableError,I=0;I<p.length;I++){var B=p[I];C(B.value,{componentStack:B.stack})}}finally{V.T=s,Z.p=b}}(Za&3)!==0&&Of(),fa(a),b=a.pendingLanes,(u&261930)!==0&&(b&42)!==0?a===iy?qu++:(qu=0,iy=a):qu=0,Vu(0)}}function TP(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Eu(s)))}function Of(){return wP(),EP(),xP(),PP()}function PP(){if(Ho!==5)return!1;var a=Li,s=ry;ry=0;var u=Kr(Za),p=V.T,b=Z.p;try{Z.p=32>u?32:u,V.T=null,u=ay,ay=null;var C=Li,I=Za;if(Ho=0,ec=Li=null,Za=0,(Bt&6)!==0)throw Error(n(331));var B=Bt;if(Bt|=4,lP(C.current),aP(C,C.current,I,u),Bt=B,Vu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(bt,C)}catch{}return!0}finally{Z.p=b,V.T=p,TP(a,s)}}function RP(a,s,u){s=Tr(u,s),s=Bb(a.stateNode,s,2),a=Ri(a,s,2),a!==null&&(Mt(a,2),fa(a))}function $t(a,s,u){if(a.tag===3)RP(a,a,u);else for(;s!==null;){if(s.tag===3){RP(s,a,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Mi===null||!Mi.has(p))){a=Tr(u,a),u=AT(2),p=Ri(s,u,2),p!==null&&(kT(u,p,s,a),Mt(p,2),fa(p));break}}s=s.return}}function cy(a,s,u){var p=a.pingCache;if(p===null){p=a.pingCache=new A5;var b=new Set;p.set(s,b)}else b=p.get(s),b===void 0&&(b=new Set,p.set(s,b));b.has(u)||(ty=!0,b.add(u),a=M5.bind(null,a,s,u),s.then(a,a))}function M5(a,s,u){var p=a.pingCache;p!==null&&p.delete(s),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,Jt===a&&(Et&u)===u&&(Eo===4||Eo===3&&(Et&62914560)===Et&&300>G()-Tf?(Bt&2)===0&&tc(a,0):oy|=u,Xl===Et&&(Xl=0)),fa(a)}function AP(a,s){s===0&&(s=Gt()),a=ks(a,s),a!==null&&(Mt(a,s),fa(a))}function L5(a){var s=a.memoizedState,u=0;s!==null&&(u=s.retryLane),AP(a,u)}function N5(a,s){var u=0;switch(a.tag){case 31:case 13:var p=a.stateNode,b=a.memoizedState;b!==null&&(u=b.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(n(314))}p!==null&&p.delete(s),AP(a,u)}function F5(a,s){return Qe(a,s)}var If=null,nc=null,uy=!1,Mf=!1,dy=!1,Fi=0;function fa(a){a!==nc&&a.next===null&&(nc===null?If=nc=a:nc=nc.next=a),Mf=!0,uy||(uy=!0,z5())}function Vu(a,s){if(!dy&&Mf){dy=!0;do for(var u=!1,p=If;p!==null;){if(a!==0){var b=p.pendingLanes;if(b===0)var C=0;else{var I=p.suspendedLanes,B=p.pingedLanes;C=(1<<31-No(42|a)+1)-1,C&=b&~(I&~B),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(u=!0,IP(p,C))}else C=Et,C=Ge(p,p===Jt?C:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(C&3)===0||ut(p,C)||(u=!0,IP(p,C));p=p.next}while(u);dy=!1}}function B5(){kP()}function kP(){Mf=uy=!1;var a=0;Fi!==0&&Y5()&&(a=Fi);for(var s=G(),u=null,p=If;p!==null;){var b=p.next,C=DP(p,s);C===0?(p.next=null,u===null?If=b:u.next=b,b===null&&(nc=u)):(u=p,(a!==0||(C&3)!==0)&&(Mf=!0)),p=b}Ho!==0&&Ho!==5||Vu(a),Fi!==0&&(Fi=0)}function DP(a,s){for(var u=a.suspendedLanes,p=a.pingedLanes,b=a.expirationTimes,C=a.pendingLanes&-62914561;0<C;){var I=31-No(C),B=1<<I,X=b[I];X===-1?((B&u)===0||(B&p)!==0)&&(b[I]=Qt(B,s)):X<=s&&(a.expiredLanes|=B),C&=~B}if(s=Jt,u=Et,u=Ge(a,a===s?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,u===0||a===s&&(Ut===2||Ut===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&De(p),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||ut(a,u)){if(s=u&-u,s===a.callbackPriority)return s;switch(p!==null&&De(p),Kr(u)){case 2:case 8:u=Ee;break;case 32:u=Pe;break;case 268435456:u=Ie;break;default:u=Pe}return p=OP.bind(null,a),u=Qe(u,p),a.callbackPriority=s,a.callbackNode=u,s}return p!==null&&p!==null&&De(p),a.callbackPriority=2,a.callbackNode=null,2}function OP(a,s){if(Ho!==0&&Ho!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(Of()&&a.callbackNode!==u)return null;var p=Et;return p=Ge(a,a===Jt?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(fP(a,p,s),DP(a,G()),a.callbackNode!=null&&a.callbackNode===u?OP.bind(null,a):null)}function IP(a,s){if(Of())return null;fP(a,s,!0)}function z5(){Q5(function(){(Bt&6)!==0?Qe(se,B5):kP()})}function my(){if(Fi===0){var a=$l;a===0&&(a=ft,ft<<=1,(ft&261888)===0&&(ft=256)),Fi=a}return Fi}function MP(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Um(""+a)}function LP(a,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,a.id&&u.setAttribute("form",a.id),s.parentNode.insertBefore(u,s),a=new FormData(a),u.parentNode.removeChild(u),a}function j5(a,s,u,p,b){if(s==="submit"&&u&&u.stateNode===b){var C=MP((b[$n]||null).action),I=p.submitter;I&&(s=(s=I[$n]||null)?MP(s.formAction):I.getAttribute("formAction"),s!==null&&(C=s,I=null));var B=new Hm("action","action",null,p,b);a.push({event:B,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Fi!==0){var X=I?LP(b,I):new FormData(b);Ob(u,{pending:!0,data:X,method:b.method,action:C},null,X)}}else typeof C=="function"&&(B.preventDefault(),X=I?LP(b,I):new FormData(b),Ob(u,{pending:!0,data:X,method:b.method,action:C},C,X))},currentTarget:b}]})}}for(var fy=0;fy<Yv.length;fy++){var hy=Yv[fy],U5=hy.toLowerCase(),$5=hy[0].toUpperCase()+hy.slice(1);Wr(U5,"on"+$5)}Wr(mx,"onAnimationEnd"),Wr(fx,"onAnimationIteration"),Wr(hx,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(r5,"onTransitionRun"),Wr(a5,"onTransitionStart"),Wr(i5,"onTransitionCancel"),Wr(px,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),q5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hu));function NP(a,s){s=(s&4)!==0;for(var u=0;u<a.length;u++){var p=a[u],b=p.event;p=p.listeners;e:{var C=void 0;if(s)for(var I=p.length-1;0<=I;I--){var B=p[I],X=B.instance,de=B.currentTarget;if(B=B.listener,X!==C&&b.isPropagationStopped())break e;C=B,b.currentTarget=de;try{C(b)}catch(ye){Wm(ye)}b.currentTarget=null,C=X}else for(I=0;I<p.length;I++){if(B=p[I],X=B.instance,de=B.currentTarget,B=B.listener,X!==C&&b.isPropagationStopped())break e;C=B,b.currentTarget=de;try{C(b)}catch(ye){Wm(ye)}b.currentTarget=null,C=X}}}}function _t(a,s){var u=s[Pv];u===void 0&&(u=s[Pv]=new Set);var p=a+"__bubble";u.has(p)||(FP(s,a,2,!1),u.add(p))}function py(a,s,u){var p=0;s&&(p|=4),FP(u,a,p,s)}var Lf="_reactListening"+Math.random().toString(36).slice(2);function gy(a){if(!a[Lf]){a[Lf]=!0,kE.forEach(function(u){u!=="selectionchange"&&(q5.has(u)||py(u,!1,a),py(u,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[Lf]||(s[Lf]=!0,py("selectionchange",!1,s))}}function FP(a,s,u,p){switch(mR(s)){case 2:var b=v6;break;case 8:b=b6;break;default:b=Dy}u=b.bind(null,s,u,a),b=void 0,!Nv||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),p?b!==void 0?a.addEventListener(s,u,{capture:!0,passive:b}):a.addEventListener(s,u,!0):b!==void 0?a.addEventListener(s,u,{passive:b}):a.addEventListener(s,u,!1)}function vy(a,s,u,p,b){var C=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var B=p.stateNode.containerInfo;if(B===b)break;if(I===4)for(I=p.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===b)return;I=I.return}for(;B!==null;){if(I=xl(B),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){p=C=I;continue e}B=B.parentNode}}p=p.return}$E(function(){var de=C,ye=Mv(u),Ce=[];e:{var fe=gx.get(a);if(fe!==void 0){var ge=Hm,He=a;switch(a){case"keypress":if(qm(u)===0)break e;case"keydown":case"keyup":ge=NB;break;case"focusin":He="focus",ge=jv;break;case"focusout":He="blur",ge=jv;break;case"beforeblur":case"afterblur":ge=jv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=HE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=EB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=zB;break;case mx:case fx:case hx:ge=PB;break;case px:ge=UB;break;case"scroll":case"scrollend":ge=CB;break;case"wheel":ge=qB;break;case"copy":case"cut":case"paste":ge=AB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=KE;break;case"toggle":case"beforetoggle":ge=HB}var ot=(s&4)!==0,Yt=!ot&&(a==="scroll"||a==="scrollend"),ce=ot?fe!==null?fe+"Capture":null:fe;ot=[];for(var re=de,ue;re!==null;){var Se=re;if(ue=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||ue===null||ce===null||(Se=fu(re,ce),Se!=null&&ot.push(Gu(re,Se,ue))),Yt)break;re=re.return}0<ot.length&&(fe=new ge(fe,He,null,u,ye),Ce.push({event:fe,listeners:ot}))}}if((s&7)===0){e:{if(fe=a==="mouseover"||a==="pointerover",ge=a==="mouseout"||a==="pointerout",fe&&u!==Iv&&(He=u.relatedTarget||u.fromElement)&&(xl(He)||He[El]))break e;if((ge||fe)&&(fe=ye.window===ye?ye:(fe=ye.ownerDocument)?fe.defaultView||fe.parentWindow:window,ge?(He=u.relatedTarget||u.toElement,ge=de,He=He?xl(He):null,He!==null&&(Yt=i(He),ot=He.tag,He!==Yt||ot!==5&&ot!==27&&ot!==6)&&(He=null)):(ge=null,He=de),ge!==He)){if(ot=HE,Se="onMouseLeave",ce="onMouseEnter",re="mouse",(a==="pointerout"||a==="pointerover")&&(ot=KE,Se="onPointerLeave",ce="onPointerEnter",re="pointer"),Yt=ge==null?fe:mu(ge),ue=He==null?fe:mu(He),fe=new ot(Se,re+"leave",ge,u,ye),fe.target=Yt,fe.relatedTarget=ue,Se=null,xl(ye)===de&&(ot=new ot(ce,re+"enter",He,u,ye),ot.target=ue,ot.relatedTarget=Yt,Se=ot),Yt=Se,ge&&He)t:{for(ot=V5,ce=ge,re=He,ue=0,Se=ce;Se;Se=ot(Se))ue++;Se=0;for(var Je=re;Je;Je=ot(Je))Se++;for(;0<ue-Se;)ce=ot(ce),ue--;for(;0<Se-ue;)re=ot(re),Se--;for(;ue--;){if(ce===re||re!==null&&ce===re.alternate){ot=ce;break t}ce=ot(ce),re=ot(re)}ot=null}else ot=null;ge!==null&&BP(Ce,fe,ge,ot,!1),He!==null&&Yt!==null&&BP(Ce,Yt,He,ot,!0)}}e:{if(fe=de?mu(de):window,ge=fe.nodeName&&fe.nodeName.toLowerCase(),ge==="select"||ge==="input"&&fe.type==="file")var Lt=tx;else if(XE(fe))if(ox)Lt=t5;else{Lt=XB;var Ke=JB}else ge=fe.nodeName,!ge||ge.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?de&&Ov(de.elementType)&&(Lt=tx):Lt=e5;if(Lt&&(Lt=Lt(a,de))){ex(Ce,Lt,u,ye);break e}Ke&&Ke(a,fe,de),a==="focusout"&&de&&fe.type==="number"&&de.memoizedProps.value!=null&&Dv(fe,"number",fe.value)}switch(Ke=de?mu(de):window,a){case"focusin":(XE(Ke)||Ke.contentEditable==="true")&&(Ml=Ke,Gv=de,_u=null);break;case"focusout":_u=Gv=Ml=null;break;case"mousedown":Kv=!0;break;case"contextmenu":case"mouseup":case"dragend":Kv=!1,ux(Ce,u,ye);break;case"selectionchange":if(n5)break;case"keydown":case"keyup":ux(Ce,u,ye)}var lt;if($v)e:{switch(a){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else Il?QE(a,u)&&(xt="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(xt="onCompositionStart");xt&&(WE&&u.locale!=="ko"&&(Il||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&Il&&(lt=qE()):(_i=ye,Fv="value"in _i?_i.value:_i.textContent,Il=!0)),Ke=Nf(de,xt),0<Ke.length&&(xt=new GE(xt,a,null,u,ye),Ce.push({event:xt,listeners:Ke}),lt?xt.data=lt:(lt=JE(u),lt!==null&&(xt.data=lt)))),(lt=KB?WB(a,u):YB(a,u))&&(xt=Nf(de,"onBeforeInput"),0<xt.length&&(Ke=new GE("onBeforeInput","beforeinput",null,u,ye),Ce.push({event:Ke,listeners:xt}),Ke.data=lt)),j5(Ce,a,de,u,ye)}NP(Ce,s)})}function Gu(a,s,u){return{instance:a,listener:s,currentTarget:u}}function Nf(a,s){for(var u=s+"Capture",p=[];a!==null;){var b=a,C=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||C===null||(b=fu(a,u),b!=null&&p.unshift(Gu(a,b,C)),b=fu(a,s),b!=null&&p.push(Gu(a,b,C))),a.tag===3)return p;a=a.return}return[]}function V5(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function BP(a,s,u,p,b){for(var C=s._reactName,I=[];u!==null&&u!==p;){var B=u,X=B.alternate,de=B.stateNode;if(B=B.tag,X!==null&&X===p)break;B!==5&&B!==26&&B!==27||de===null||(X=de,b?(de=fu(u,C),de!=null&&I.unshift(Gu(u,de,X))):b||(de=fu(u,C),de!=null&&I.push(Gu(u,de,X)))),u=u.return}I.length!==0&&a.push({event:s,listeners:I})}var H5=/\r\n?/g,G5=/\u0000|\uFFFD/g;function zP(a){return(typeof a=="string"?a:""+a).replace(H5,`
10
+ `).replace(G5,"")}function jP(a,s){return s=zP(s),zP(a)===s}function Wt(a,s,u,p,b,C){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||kl(a,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&kl(a,""+p);break;case"className":zm(a,"class",p);break;case"tabIndex":zm(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":zm(a,u,p);break;case"style":jE(a,p,C);break;case"data":if(s!=="object"){zm(a,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){a.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(u);break}p=Um(""+p),a.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(u==="formAction"?(s!=="input"&&Wt(a,s,"name",b.name,b,null),Wt(a,s,"formEncType",b.formEncType,b,null),Wt(a,s,"formMethod",b.formMethod,b,null),Wt(a,s,"formTarget",b.formTarget,b,null)):(Wt(a,s,"encType",b.encType,b,null),Wt(a,s,"method",b.method,b,null),Wt(a,s,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(u);break}p=Um(""+p),a.setAttribute(u,p);break;case"onClick":p!=null&&(a.onclick=La);break;case"onScroll":p!=null&&_t("scroll",a);break;case"onScrollEnd":p!=null&&_t("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(n(60));a.innerHTML=u}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}u=Um(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,""+p):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":p===!0?a.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(u,p):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(u,p):a.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(u):a.setAttribute(u,p);break;case"popover":_t("beforetoggle",a),_t("toggle",a),Bm(a,"popover",p);break;case"xlinkActuate":Ma(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Ma(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Ma(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Ma(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Ma(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Ma(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Ma(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Bm(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=SB.get(u)||u,Bm(a,u,p))}}function by(a,s,u,p,b,C){switch(u){case"style":jE(a,p,C);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(n(60));a.innerHTML=u}}break;case"children":typeof p=="string"?kl(a,p):(typeof p=="number"||typeof p=="bigint")&&kl(a,""+p);break;case"onScroll":p!=null&&_t("scroll",a);break;case"onScrollEnd":p!=null&&_t("scrollend",a);break;case"onClick":p!=null&&(a.onclick=La);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!DE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),s=u.slice(2,b?u.length-7:void 0),C=a[$n]||null,C=C!=null?C[u]:null,typeof C=="function"&&a.removeEventListener(s,C,b),typeof p=="function")){typeof C!="function"&&C!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(s,p,b);break e}u in a?a[u]=p:p===!0?a.setAttribute(u,""):Bm(a,u,p)}}}function dn(a,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",a),_t("load",a);var p=!1,b=!1,C;for(C in u)if(u.hasOwnProperty(C)){var I=u[C];if(I!=null)switch(C){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Wt(a,s,C,I,u,null)}}b&&Wt(a,s,"srcSet",u.srcSet,u,null),p&&Wt(a,s,"src",u.src,u,null);return;case"input":_t("invalid",a);var B=C=I=b=null,X=null,de=null;for(p in u)if(u.hasOwnProperty(p)){var ye=u[p];if(ye!=null)switch(p){case"name":b=ye;break;case"type":I=ye;break;case"checked":X=ye;break;case"defaultChecked":de=ye;break;case"value":C=ye;break;case"defaultValue":B=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(n(137,s));break;default:Wt(a,s,p,ye,u,null)}}NE(a,C,B,X,de,I,b,!1);return;case"select":_t("invalid",a),p=I=C=null;for(b in u)if(u.hasOwnProperty(b)&&(B=u[b],B!=null))switch(b){case"value":C=B;break;case"defaultValue":I=B;break;case"multiple":p=B;default:Wt(a,s,b,B,u,null)}s=C,u=I,a.multiple=!!p,s!=null?Al(a,!!p,s,!1):u!=null&&Al(a,!!p,u,!0);return;case"textarea":_t("invalid",a),C=b=p=null;for(I in u)if(u.hasOwnProperty(I)&&(B=u[I],B!=null))switch(I){case"value":p=B;break;case"defaultValue":b=B;break;case"children":C=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(n(91));break;default:Wt(a,s,I,B,u,null)}BE(a,p,b,C);return;case"option":for(X in u)u.hasOwnProperty(X)&&(p=u[X],p!=null)&&(X==="selected"?a.selected=p&&typeof p!="function"&&typeof p!="symbol":Wt(a,s,X,p,u,null));return;case"dialog":_t("beforetoggle",a),_t("toggle",a),_t("cancel",a),_t("close",a);break;case"iframe":case"object":_t("load",a);break;case"video":case"audio":for(p=0;p<Hu.length;p++)_t(Hu[p],a);break;case"image":_t("error",a),_t("load",a);break;case"details":_t("toggle",a);break;case"embed":case"source":case"link":_t("error",a),_t("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(p=u[de],p!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Wt(a,s,de,p,u,null)}return;default:if(Ov(s)){for(ye in u)u.hasOwnProperty(ye)&&(p=u[ye],p!==void 0&&by(a,s,ye,p,u,void 0));return}}for(B in u)u.hasOwnProperty(B)&&(p=u[B],p!=null&&Wt(a,s,B,p,u,null))}function K5(a,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,C=null,I=null,B=null,X=null,de=null,ye=null;for(ge in u){var Ce=u[ge];if(u.hasOwnProperty(ge)&&Ce!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":X=Ce;default:p.hasOwnProperty(ge)||Wt(a,s,ge,null,p,Ce)}}for(var fe in p){var ge=p[fe];if(Ce=u[fe],p.hasOwnProperty(fe)&&(ge!=null||Ce!=null))switch(fe){case"type":C=ge;break;case"name":b=ge;break;case"checked":de=ge;break;case"defaultChecked":ye=ge;break;case"value":I=ge;break;case"defaultValue":B=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(n(137,s));break;default:ge!==Ce&&Wt(a,s,fe,ge,p,Ce)}}kv(a,I,B,X,de,ye,C,b);return;case"select":ge=I=B=fe=null;for(C in u)if(X=u[C],u.hasOwnProperty(C)&&X!=null)switch(C){case"value":break;case"multiple":ge=X;default:p.hasOwnProperty(C)||Wt(a,s,C,null,p,X)}for(b in p)if(C=p[b],X=u[b],p.hasOwnProperty(b)&&(C!=null||X!=null))switch(b){case"value":fe=C;break;case"defaultValue":B=C;break;case"multiple":I=C;default:C!==X&&Wt(a,s,b,C,p,X)}s=B,u=I,p=ge,fe!=null?Al(a,!!u,fe,!1):!!p!=!!u&&(s!=null?Al(a,!!u,s,!0):Al(a,!!u,u?[]:"",!1));return;case"textarea":ge=fe=null;for(B in u)if(b=u[B],u.hasOwnProperty(B)&&b!=null&&!p.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:Wt(a,s,B,null,p,b)}for(I in p)if(b=p[I],C=u[I],p.hasOwnProperty(I)&&(b!=null||C!=null))switch(I){case"value":fe=b;break;case"defaultValue":ge=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(n(91));break;default:b!==C&&Wt(a,s,I,b,p,C)}FE(a,fe,ge);return;case"option":for(var He in u)fe=u[He],u.hasOwnProperty(He)&&fe!=null&&!p.hasOwnProperty(He)&&(He==="selected"?a.selected=!1:Wt(a,s,He,null,p,fe));for(X in p)fe=p[X],ge=u[X],p.hasOwnProperty(X)&&fe!==ge&&(fe!=null||ge!=null)&&(X==="selected"?a.selected=fe&&typeof fe!="function"&&typeof fe!="symbol":Wt(a,s,X,fe,p,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in u)fe=u[ot],u.hasOwnProperty(ot)&&fe!=null&&!p.hasOwnProperty(ot)&&Wt(a,s,ot,null,p,fe);for(de in p)if(fe=p[de],ge=u[de],p.hasOwnProperty(de)&&fe!==ge&&(fe!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(n(137,s));break;default:Wt(a,s,de,fe,p,ge)}return;default:if(Ov(s)){for(var Yt in u)fe=u[Yt],u.hasOwnProperty(Yt)&&fe!==void 0&&!p.hasOwnProperty(Yt)&&by(a,s,Yt,void 0,p,fe);for(ye in p)fe=p[ye],ge=u[ye],!p.hasOwnProperty(ye)||fe===ge||fe===void 0&&ge===void 0||by(a,s,ye,fe,p,ge);return}}for(var ce in u)fe=u[ce],u.hasOwnProperty(ce)&&fe!=null&&!p.hasOwnProperty(ce)&&Wt(a,s,ce,null,p,fe);for(Ce in p)fe=p[Ce],ge=u[Ce],!p.hasOwnProperty(Ce)||fe===ge||fe==null&&ge==null||Wt(a,s,Ce,fe,p,ge)}function UP(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W5(){if(typeof performance.getEntriesByType=="function"){for(var a=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var b=u[p],C=b.transferSize,I=b.initiatorType,B=b.duration;if(C&&B&&UP(I)){for(I=0,B=b.responseEnd,p+=1;p<u.length;p++){var X=u[p],de=X.startTime;if(de>B)break;var ye=X.transferSize,Ce=X.initiatorType;ye&&UP(Ce)&&(X=X.responseEnd,I+=ye*(X<B?1:(B-de)/(X-de)))}if(--p,s+=8*(C+I)/(b.duration/1e3),a++,10<a)break}}if(0<a)return s/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var yy=null,Sy=null;function Ff(a){return a.nodeType===9?a:a.ownerDocument}function $P(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qP(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function _y(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Cy=null;function Y5(){var a=window.event;return a&&a.type==="popstate"?a===Cy?!1:(Cy=a,!0):(Cy=null,!1)}var VP=typeof setTimeout=="function"?setTimeout:void 0,Z5=typeof clearTimeout=="function"?clearTimeout:void 0,HP=typeof Promise=="function"?Promise:void 0,Q5=typeof queueMicrotask=="function"?queueMicrotask:typeof HP<"u"?function(a){return HP.resolve(null).then(a).catch(J5)}:VP;function J5(a){setTimeout(function(){throw a})}function Bi(a){return a==="head"}function GP(a,s){var u=s,p=0;do{var b=u.nextSibling;if(a.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(p===0){a.removeChild(b),sc(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Ku(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Ku(u);for(var C=u.firstChild;C;){var I=C.nextSibling,B=C.nodeName;C[du]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&C.rel.toLowerCase()==="stylesheet"||u.removeChild(C),C=I}}else u==="body"&&Ku(a.ownerDocument.body);u=b}while(u);sc(s)}function KP(a,s){var u=a;a=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=p}while(u)}function wy(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":wy(u),Rv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function X5(a,s,u,p){for(;a.nodeType===1;){var b=u;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[du])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(C=a.getAttribute("rel"),C==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(C!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(C=a.getAttribute("src"),(C!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&C&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var C=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===C)return a}else return a;if(a=Dr(a.nextSibling),a===null)break}return null}function e6(a,s,u){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Dr(a.nextSibling),a===null))return null;return a}function WP(a,s){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=Dr(a.nextSibling),a===null))return null;return a}function Ey(a){return a.data==="$?"||a.data==="$~"}function xy(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function t6(a,s){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=s;else if(a.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Dr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return a}var Ty=null;function YP(a){a=a.nextSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(s===0)return Dr(a.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}a=a.nextSibling}return null}function ZP(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return a;s--}else u!=="/$"&&u!=="/&"||s++}a=a.previousSibling}return null}function QP(a,s,u){switch(s=Ff(u),a){case"html":if(a=s.documentElement,!a)throw Error(n(452));return a;case"head":if(a=s.head,!a)throw Error(n(453));return a;case"body":if(a=s.body,!a)throw Error(n(454));return a;default:throw Error(n(451))}}function Ku(a){for(var s=a.attributes;s.length;)a.removeAttributeNode(s[0]);Rv(a)}var Or=new Map,JP=new Set;function Bf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Qa=Z.d;Z.d={f:o6,r:n6,D:r6,C:a6,L:i6,m:s6,X:c6,S:l6,M:u6};function o6(){var a=Qa.f(),s=Af();return a||s}function n6(a){var s=Tl(a);s!==null&&s.tag===5&&s.type==="form"?pT(s):Qa.r(a)}var rc=typeof document>"u"?null:document;function XP(a,s,u){var p=rc;if(p&&typeof s=="string"&&s){var b=Er(s);b='link[rel="'+a+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),JP.has(b)||(JP.add(b),a={rel:a,crossOrigin:u,href:s},p.querySelector(b)===null&&(s=p.createElement("link"),dn(s,"link",a),en(s),p.head.appendChild(s)))}}function r6(a){Qa.D(a),XP("dns-prefetch",a,null)}function a6(a,s){Qa.C(a,s),XP("preconnect",a,s)}function i6(a,s,u){Qa.L(a,s,u);var p=rc;if(p&&a&&s){var b='link[rel="preload"][as="'+Er(s)+'"]';s==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+Er(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+Er(u.imageSizes)+'"]')):b+='[href="'+Er(a)+'"]';var C=b;switch(s){case"style":C=ac(a);break;case"script":C=ic(a)}Or.has(C)||(a=f({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:a,as:s},u),Or.set(C,a),p.querySelector(b)!==null||s==="style"&&p.querySelector(Wu(C))||s==="script"&&p.querySelector(Yu(C))||(s=p.createElement("link"),dn(s,"link",a),en(s),p.head.appendChild(s)))}}function s6(a,s){Qa.m(a,s);var u=rc;if(u&&a){var p=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+Er(p)+'"][href="'+Er(a)+'"]',C=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=ic(a)}if(!Or.has(C)&&(a=f({rel:"modulepreload",href:a},s),Or.set(C,a),u.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Yu(C)))return}p=u.createElement("link"),dn(p,"link",a),en(p),u.head.appendChild(p)}}}function l6(a,s,u){Qa.S(a,s,u);var p=rc;if(p&&a){var b=Pl(p).hoistableStyles,C=ac(a);s=s||"default";var I=b.get(C);if(!I){var B={loading:0,preload:null};if(I=p.querySelector(Wu(C)))B.loading=5;else{a=f({rel:"stylesheet",href:a,"data-precedence":s},u),(u=Or.get(C))&&Py(a,u);var X=I=p.createElement("link");en(X),dn(X,"link",a),X._p=new Promise(function(de,ye){X.onload=de,X.onerror=ye}),X.addEventListener("load",function(){B.loading|=1}),X.addEventListener("error",function(){B.loading|=2}),B.loading|=4,zf(I,s,p)}I={type:"stylesheet",instance:I,count:1,state:B},b.set(C,I)}}}function c6(a,s){Qa.X(a,s);var u=rc;if(u&&a){var p=Pl(u).hoistableScripts,b=ic(a),C=p.get(b);C||(C=u.querySelector(Yu(b)),C||(a=f({src:a,async:!0},s),(s=Or.get(b))&&Ry(a,s),C=u.createElement("script"),en(C),dn(C,"link",a),u.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},p.set(b,C))}}function u6(a,s){Qa.M(a,s);var u=rc;if(u&&a){var p=Pl(u).hoistableScripts,b=ic(a),C=p.get(b);C||(C=u.querySelector(Yu(b)),C||(a=f({src:a,async:!0,type:"module"},s),(s=Or.get(b))&&Ry(a,s),C=u.createElement("script"),en(C),dn(C,"link",a),u.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},p.set(b,C))}}function eR(a,s,u,p){var b=(b=J.current)?Bf(b):null;if(!b)throw Error(n(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=ac(u.href),u=Pl(b).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=ac(u.href);var C=Pl(b).hoistableStyles,I=C.get(a);if(I||(b=b.ownerDocument||b,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(a,I),(C=b.querySelector(Wu(a)))&&!C._p&&(I.instance=C,I.state.loading=5),Or.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Or.set(a,u),C||d6(b,a,u,I.state))),s&&p===null)throw Error(n(528,""));return I}if(s&&p!==null)throw Error(n(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ic(u),u=Pl(b).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,a))}}function ac(a){return'href="'+Er(a)+'"'}function Wu(a){return'link[rel="stylesheet"]['+a+"]"}function tR(a){return f({},a,{"data-precedence":a.precedence,precedence:null})}function d6(a,s,u,p){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=a.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),dn(s,"link",u),en(s),a.head.appendChild(s))}function ic(a){return'[src="'+Er(a)+'"]'}function Yu(a){return"script[async]"+a}function oR(a,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=a.querySelector('style[data-href~="'+Er(u.href)+'"]');if(p)return s.instance=p,en(p),p;var b=f({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),en(p),dn(p,"style",b),zf(p,u.precedence,a),s.instance=p;case"stylesheet":b=ac(u.href);var C=a.querySelector(Wu(b));if(C)return s.state.loading|=4,s.instance=C,en(C),C;p=tR(u),(b=Or.get(b))&&Py(p,b),C=(a.ownerDocument||a).createElement("link"),en(C);var I=C;return I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),dn(C,"link",p),s.state.loading|=4,zf(C,u.precedence,a),s.instance=C;case"script":return C=ic(u.src),(b=a.querySelector(Yu(C)))?(s.instance=b,en(b),b):(p=u,(b=Or.get(C))&&(p=f({},u),Ry(p,b)),a=a.ownerDocument||a,b=a.createElement("script"),en(b),dn(b,"link",p),a.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(n(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,zf(p,u.precedence,a));return s.instance}function zf(a,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,C=b,I=0;I<p.length;I++){var B=p[I];if(B.dataset.precedence===s)C=B;else if(C!==b)break}C?C.parentNode.insertBefore(a,C.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(a,s.firstChild))}function Py(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function Ry(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var jf=null;function nR(a,s,u){if(jf===null){var p=new Map,b=jf=new Map;b.set(u,p)}else b=jf,p=b.get(u),p||(p=new Map,b.set(u,p));if(p.has(a))return p;for(p.set(a,null),u=u.getElementsByTagName(a),b=0;b<u.length;b++){var C=u[b];if(!(C[du]||C[sn]||a==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var I=C.getAttribute(s)||"";I=a+I;var B=p.get(I);B?B.push(C):p.set(I,[C])}}return p}function rR(a,s,u){a=a.ownerDocument||a,a.head.insertBefore(u,s==="title"?a.querySelector("head > title"):null)}function m6(a,s,u){if(u===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(a=s.disabled,typeof s.precedence=="string"&&a==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function aR(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function f6(a,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=ac(p.href),C=s.querySelector(Wu(b));if(C){s=C._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(a.count++,a=Uf.bind(a),s.then(a,a)),u.state.loading|=4,u.instance=C,en(C);return}C=s.ownerDocument||s,p=tR(p),(b=Or.get(b))&&Py(p,b),C=C.createElement("link"),en(C);var I=C;I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),dn(C,"link",p),u.instance=C}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=Uf.bind(a),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ay=0;function h6(a,s){return a.stylesheets&&a.count===0&&qf(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var p=setTimeout(function(){if(a.stylesheets&&qf(a,a.stylesheets),a.unsuspend){var C=a.unsuspend;a.unsuspend=null,C()}},6e4+s);0<a.imgBytes&&Ay===0&&(Ay=62500*W5());var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&qf(a,a.stylesheets),a.unsuspend)){var C=a.unsuspend;a.unsuspend=null,C()}},(a.imgBytes>Ay?50:800)+s);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var $f=null;function qf(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,$f=new Map,s.forEach(p6,a),$f=null,Uf.call(a))}function p6(a,s){if(!(s.state.loading&4)){var u=$f.get(a);if(u)var p=u.get(null);else{u=new Map,$f.set(a,u);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<b.length;C++){var I=b[C];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),p=I)}p&&u.set(null,p)}b=s.instance,I=b.getAttribute("data-precedence"),C=u.get(I)||p,C===p&&u.set(null,b),u.set(I,b),this.count++,p=Uf.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),C?C.parentNode.insertBefore(b,C.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),s.state.loading|=4}}var Zu={$$typeof:P,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function g6(a,s,u,p,b,C,I,B,X){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.hiddenUpdates=wn(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=C,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function iR(a,s,u,p,b,C,I,B,X,de,ye,Ce){return a=new g6(a,s,u,I,X,de,ye,Ce,B),s=1,C===!0&&(s|=24),C=nr(3,null,null,s),a.current=C,C.stateNode=a,s=lb(),s.refCount++,a.pooledCache=s,s.refCount++,C.memoizedState={element:p,isDehydrated:u,cache:s},mb(C),a}function sR(a){return a?(a=Fl,a):Fl}function lR(a,s,u,p,b,C){b=sR(b),p.context===null?p.context=b:p.pendingContext=b,p=Pi(s),p.payload={element:u},C=C===void 0?null:C,C!==null&&(p.callback=C),u=Ri(a,p,s),u!==null&&(Wn(u,a,s),Ru(u,a,s))}function cR(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<s?u:s}}function ky(a,s){cR(a,s),(a=a.alternate)&&cR(a,s)}function uR(a){if(a.tag===13||a.tag===31){var s=ks(a,67108864);s!==null&&Wn(s,a,67108864),ky(a,67108864)}}function dR(a){if(a.tag===13||a.tag===31){var s=lr();s=wl(s);var u=ks(a,s);u!==null&&Wn(u,a,s),ky(a,s)}}var Vf=!0;function v6(a,s,u,p){var b=V.T;V.T=null;var C=Z.p;try{Z.p=2,Dy(a,s,u,p)}finally{Z.p=C,V.T=b}}function b6(a,s,u,p){var b=V.T;V.T=null;var C=Z.p;try{Z.p=8,Dy(a,s,u,p)}finally{Z.p=C,V.T=b}}function Dy(a,s,u,p){if(Vf){var b=Oy(p);if(b===null)vy(a,s,p,Hf,u),fR(a,p);else if(S6(b,a,s,u,p))p.stopPropagation();else if(fR(a,p),s&4&&-1<y6.indexOf(a)){for(;b!==null;){var C=Tl(b);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var I=It(C.pendingLanes);if(I!==0){var B=C;for(B.pendingLanes|=2,B.entangledLanes|=2;I;){var X=1<<31-No(I);B.entanglements[1]|=X,I&=~X}fa(C),(Bt&6)===0&&(Pf=G()+500,Vu(0))}}break;case 31:case 13:B=ks(C,2),B!==null&&Wn(B,C,2),Af(),ky(C,2)}if(C=Oy(p),C===null&&vy(a,s,p,Hf,u),C===b)break;b=C}b!==null&&p.stopPropagation()}else vy(a,s,p,null,u)}}function Oy(a){return a=Mv(a),Iy(a)}var Hf=null;function Iy(a){if(Hf=null,a=xl(a),a!==null){var s=i(a);if(s===null)a=null;else{var u=s.tag;if(u===13){if(a=l(s),a!==null)return a;a=null}else if(u===31){if(a=c(s),a!==null)return a;a=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return Hf=a,null}function mR(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case se:return 2;case Ee:return 8;case Pe:case Re:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var My=!1,zi=null,ji=null,Ui=null,Qu=new Map,Ju=new Map,$i=[],y6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fR(a,s){switch(a){case"focusin":case"focusout":zi=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":Qu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ju.delete(s.pointerId)}}function Xu(a,s,u,p,b,C){return a===null||a.nativeEvent!==C?(a={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:C,targetContainers:[b]},s!==null&&(s=Tl(s),s!==null&&uR(s)),a):(a.eventSystemFlags|=p,s=a.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),a)}function S6(a,s,u,p,b){switch(s){case"focusin":return zi=Xu(zi,a,s,u,p,b),!0;case"dragenter":return ji=Xu(ji,a,s,u,p,b),!0;case"mouseover":return Ui=Xu(Ui,a,s,u,p,b),!0;case"pointerover":var C=b.pointerId;return Qu.set(C,Xu(Qu.get(C)||null,a,s,u,p,b)),!0;case"gotpointercapture":return C=b.pointerId,Ju.set(C,Xu(Ju.get(C)||null,a,s,u,p,b)),!0}return!1}function hR(a){var s=xl(a.target);if(s!==null){var u=i(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){a.blockedOn=s,RE(a.priority,function(){dR(u)});return}}else if(s===31){if(s=c(u),s!==null){a.blockedOn=s,RE(a.priority,function(){dR(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Gf(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var u=Oy(a.nativeEvent);if(u===null){u=a.nativeEvent;var p=new u.constructor(u.type,u);Iv=p,u.target.dispatchEvent(p),Iv=null}else return s=Tl(u),s!==null&&uR(s),a.blockedOn=u,!1;s.shift()}return!0}function pR(a,s,u){Gf(a)&&u.delete(s)}function _6(){My=!1,zi!==null&&Gf(zi)&&(zi=null),ji!==null&&Gf(ji)&&(ji=null),Ui!==null&&Gf(Ui)&&(Ui=null),Qu.forEach(pR),Ju.forEach(pR)}function Kf(a,s){a.blockedOn===s&&(a.blockedOn=null,My||(My=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_6)))}var Wf=null;function gR(a){Wf!==a&&(Wf=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wf===a&&(Wf=null);for(var s=0;s<a.length;s+=3){var u=a[s],p=a[s+1],b=a[s+2];if(typeof p!="function"){if(Iy(p||u)===null)continue;break}var C=Tl(u);C!==null&&(a.splice(s,3),s-=3,Ob(C,{pending:!0,data:b,method:u.method,action:p},p,b))}}))}function sc(a){function s(X){return Kf(X,a)}zi!==null&&Kf(zi,a),ji!==null&&Kf(ji,a),Ui!==null&&Kf(Ui,a),Qu.forEach(s),Ju.forEach(s);for(var u=0;u<$i.length;u++){var p=$i[u];p.blockedOn===a&&(p.blockedOn=null)}for(;0<$i.length&&(u=$i[0],u.blockedOn===null);)hR(u),u.blockedOn===null&&$i.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var b=u[p],C=u[p+1],I=b[$n]||null;if(typeof C=="function")I||gR(u);else if(I){var B=null;if(C&&C.hasAttribute("formAction")){if(b=C,I=C[$n]||null)B=I.formAction;else if(Iy(b)!==null)continue}else B=I.action;typeof B=="function"?u[p+1]=B:(u.splice(p,3),p-=3),gR(u)}}}function vR(){function a(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(I){return b=I})},focusReset:"manual",scroll:"manual"})}function s(){b!==null&&(b(),b=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),b!==null&&(b(),b=null)}}}function Ly(a){this._internalRoot=a}Yf.prototype.render=Ly.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(n(409));var u=s.current,p=lr();lR(u,p,a,s,null,null)},Yf.prototype.unmount=Ly.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;lR(a.current,2,null,a,null,null),Af(),s[El]=null}};function Yf(a){this._internalRoot=a}Yf.prototype.unstable_scheduleHydration=function(a){if(a){var s=Tv();a={blockedOn:null,target:a,priority:s};for(var u=0;u<$i.length&&s!==0&&s<$i[u].priority;u++);$i.splice(u,0,a),u===0&&hR(a)}};var bR=t.version;if(bR!=="19.2.6")throw Error(n(527,bR,"19.2.6"));Z.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=m(s),a=a!==null?h(a):null,a=a===null?null:a.stateNode,a};var C6={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{bt=Zf.inject(C6),Tt=Zf}catch{}}return td.createRoot=function(a,s){if(!r(a))throw Error(n(299));var u=!1,p="",b=xT,C=TT,I=PT;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(C=s.onCaughtError),s.onRecoverableError!==void 0&&(I=s.onRecoverableError)),s=iR(a,1,!1,null,null,u,p,null,b,C,I,vR),a[El]=s.current,gy(a),new Ly(s)},td.hydrateRoot=function(a,s,u){if(!r(a))throw Error(n(299));var p=!1,b="",C=xT,I=TT,B=PT,X=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(C=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(B=u.onRecoverableError),u.formState!==void 0&&(X=u.formState)),s=iR(a,1,!0,s,u??null,p,b,X,C,I,B,vR),s.context=sR(null),u=s.current,p=lr(),p=wl(p),b=Pi(p),b.callback=null,Ri(u,b,p),u=p,s.current.lanes=u,Mt(s,u),fa(s),a[El]=s.current,gy(a),new Yf(s)},td.version="19.2.6",td}var DR;function N6(){if(DR)return jy.exports;DR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),jy.exports=L6(),jy.exports}var F6=N6(),D=bs();const ee=pl(D),OC=E6({__proto__:null,default:ee},[D]);var au=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},B6=class extends au{#e;#t;#o;constructor(){super(),this.#o=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},IC=new B6,z6={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},j6=class{#e=z6;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ol=new j6;function U6(e){setTimeout(e,0)}var $6=typeof window>"u"||"Deno"in globalThis;function Wo(){}function q6(e,t){return typeof e=="function"?e(t):e}function LS(e){return typeof e=="number"&&e>=0&&e!==1/0}function XO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ls(e,t){return typeof e=="function"?e(t):e}function mr(e,t){return typeof e=="function"?e(t):e}function OR(e,t){const{type:o="all",exact:n,fetchStatus:r,predicate:i,queryKey:l,stale:c}=e;if(l){if(n){if(t.queryHash!==MC(l,t.options))return!1}else if(!Gd(t.queryKey,l))return!1}if(o!=="all"){const d=t.isActive();if(o==="active"&&!d||o==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||r&&r!==t.state.fetchStatus||i&&!i(t))}function IR(e,t){const{exact:o,status:n,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(o){if(dl(t.options.mutationKey)!==dl(i))return!1}else if(!Gd(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||r&&!r(t))}function MC(e,t){return(t?.queryKeyHashFn||dl)(e)}function dl(e){return JSON.stringify(e,(t,o)=>NS(o)?Object.keys(o).sort().reduce((n,r)=>(n[r]=o[r],n),{}):o)}function Gd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(o=>Gd(e[o],t[o])):!1}var V6=Object.prototype.hasOwnProperty;function eI(e,t,o=0){if(e===t)return e;if(o>500)return t;const n=MR(e)&&MR(t);if(!n&&!(NS(e)&&NS(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),c=l.length,d=n?new Array(c):{};let m=0;for(let h=0;h<c;h++){const f=n?h:l[h],g=e[f],v=t[f];if(g===v){d[f]=g,(n?h<i:V6.call(e,f))&&m++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[f]=v;continue}const y=eI(g,v,o+1);d[f]=y,y===g&&m++}return i===c&&m===i?e:d}function Np(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(e[o]!==t[o])return!1;return!0}function MR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function NS(e){if(!LR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const o=t.prototype;return!(!LR(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function LR(e){return Object.prototype.toString.call(e)==="[object Object]"}function H6(e){return new Promise(t=>{ol.setTimeout(t,e)})}function FS(e,t,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,t):o.structuralSharing!==!1?eI(e,t):t}function Hue(e){return e}function G6(e,t,o=0){const n=[...e,t];return o&&n.length>o?n.slice(1):n}function K6(e,t,o=0){const n=[t,...e];return o&&n.length>o?n.slice(0,-1):n}var LC=Symbol();function tI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===LC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function NC(e,t){return typeof e=="function"?e(...t):!!e}function W6(e,t,o){let n=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),n||(n=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),e}var Kd=(()=>{let e=()=>$6;return{isServer(){return e()},setIsServer(t){e=t}}})();function BS(){let e,t;const o=new Promise((r,i)=>{e=r,t=i});o.status="pending",o.catch(()=>{});function n(r){Object.assign(o,r),delete o.resolve,delete o.reject}return o.resolve=r=>{n({status:"fulfilled",value:r}),e(r)},o.reject=r=>{n({status:"rejected",reason:r}),t(r)},o}function Y6(e){let t;if(e.then(o=>(t=o,o),Wo)?.catch(Wo),t!==void 0)return{data:t}}function oI(e){return e}function Z6(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Q6(e,t,o){const n=()=>{const r=e.promise?.then(t).catch(i=>o(i)?Promise.reject(new Error("redacted")):Promise.reject(i));return r?.catch(Wo),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:n()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function J6(e){return e.state.isPaused}function X6(e){return e.state.status==="success"}function ez(e){return!0}function tz(e,t={}){const o=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??J6,n=e.getMutationCache().getAll().flatMap(d=>o(d)?[Z6(d)]:[]),r=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??X6,i=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??ez,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??oI,c=e.getQueryCache().getAll().flatMap(d=>r(d)?[Q6(d,l,i)]:[]);return{mutations:n,queries:c}}function oz(e,t,o){if(typeof t!="object"||t===null)return;const n=e.getMutationCache(),r=e.getQueryCache(),i=e.getDefaultOptions().hydrate?.deserializeData??oI,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...m})=>{n.build(e,{...e.getDefaultOptions().hydrate?.mutations,...o?.defaultOptions?.mutations,...m},d)}),c.forEach(({queryKey:d,state:m,queryHash:h,meta:f,promise:g,dehydratedAt:v,queryType:y})=>{const S=g?Y6(g):void 0,E=m.data===void 0?S?.data:m.data,_=E===void 0?E:i(E);let w=r.get(h);const P=w?.state.status==="pending",x=w?.state.fetchStatus==="fetching";if(w){const T=S&&v!==void 0&&v>w.state.dataUpdatedAt;if(m.dataUpdatedAt>w.state.dataUpdatedAt||T){const{fetchStatus:A,...k}=m;w.setState({...k,data:_,...m.status==="pending"&&_!==void 0&&{status:"success",...!x&&{fetchStatus:"idle"}}})}}else w=r.build(e,{...e.getDefaultOptions().hydrate?.queries,...o?.defaultOptions?.queries,queryKey:d,queryHash:h,meta:f,_type:y},{...m,data:_,fetchStatus:"idle",status:m.status==="pending"&&_!==void 0?"success":m.status});g&&!S&&!P&&!x&&(v===void 0||v>w.state.dataUpdatedAt)&&w.fetch(void 0,{initialPromise:Promise.resolve(g).then(i)}).catch(Wo)})}var nz=U6;function rz(){let e=[],t=0,o=c=>{c()},n=c=>{c()},r=nz;const i=c=>{t?e.push(c):r(()=>{o(c)})},l=()=>{const c=e;e=[],c.length&&r(()=>{n(()=>{c.forEach(d=>{o(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{i(()=>{c(...d)})},schedule:i,setNotifyFunction:c=>{o=c},setBatchNotifyFunction:c=>{n=c},setScheduler:c=>{r=c}}}var Zo=rz(),az=class extends au{#e=!0;#t;#o;constructor(){super(),this.#o=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#o=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},Fp=new az;function iz(e){return Math.min(1e3*2**e,3e4)}function nI(e){return(e??"online")==="online"?Fp.isOnline():!0}var zS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function rI(e){let t=!1,o=0,n;const r=BS(),i=()=>r.status!=="pending",l=S=>{if(!i()){const E=new zS(S);g(E),e.onCancel?.(E)}},c=()=>{t=!0},d=()=>{t=!1},m=()=>IC.isFocused()&&(e.networkMode==="always"||Fp.isOnline())&&e.canRun(),h=()=>nI(e.networkMode)&&e.canRun(),f=S=>{i()||(n?.(),r.resolve(S))},g=S=>{i()||(n?.(),r.reject(S))},v=()=>new Promise(S=>{n=E=>{(i()||m())&&S(E)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),y=()=>{if(i())return;let S;const E=o===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(f).catch(_=>{if(i())return;const w=e.retry??(Kd.isServer()?0:3),P=e.retryDelay??iz,x=typeof P=="function"?P(o,_):P,T=w===!0||typeof w=="number"&&o<w||typeof w=="function"&&w(o,_);if(t||!T){g(_);return}o++,e.onFail?.(o,_),H6(x).then(()=>m()?void 0:v()).then(()=>{t?g(_):y()})})};return{promise:r,status:()=>r.status,cancel:l,continue:()=>(n?.(),r),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?y():v().then(y),r)}}var aI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LS(this.gcTime)&&(this.#e=ol.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ol.clearTimeout(this.#e),this.#e=void 0)}};function sz(e){return{onFetch:(t,o)=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const m=async()=>{let h=!1;const f=y=>{W6(y,()=>t.signal,()=>h=!0)},g=tI(t.options,t.fetchOptions),v=async(y,S,E)=>{if(h)return Promise.reject(t.signal.reason);if(S==null&&y.pages.length)return Promise.resolve(y);const w=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return f(A),A})(),P=await g(w),{maxPages:x}=t.options,T=E?K6:G6;return{pages:T(y.pages,P,x),pageParams:T(y.pageParams,S,x)}};if(r&&i.length){const y=r==="backward",S=y?iI:jS,E={pages:i,pageParams:l},_=S(n,E);c=await v(E,_,y)}else{const y=e??i.length;do{const S=d===0?l[0]??n.initialPageParam:jS(n,c);if(d>0&&S==null)break;c=await v(c,S),d++}while(d<y)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o):t.fetchFn=m}}}function jS(e,{pages:t,pageParams:o}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,o[n],o):void 0}function iI(e,{pages:t,pageParams:o}){return t.length>0?e.getPreviousPageParam?.(t[0],t,o[0],o):void 0}function Gue(e,t){return t?jS(e,t)!=null:!1}function Kue(e,t){return!t||!e.getPreviousPageParam?!1:iI(e,t)!=null}var lz=class extends aI{#e;#t;#o;#n;#a;#r;#s;#i;constructor(e){super(),this.#i=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=FR(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=FR(this.options);t.data!==void 0&&(this.setState(NR(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const o=FS(this.state.data,e,this.options);return this.#l({data:o,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),o}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Wo).catch(Wo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>mr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===LC||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ls(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!XO(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#u()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const o=new AbortController,n=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#i=!0,o.signal)})},r=()=>{const d=tI(this.options,t),h=(()=>{const f={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#i=!1,this.options.persister?this.options.persister(d,h,this):d(h)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:r};return n(d),d})();(this.#e==="infinite"?sz(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#o=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=rI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof zS&&d.revert&&this.setState({...this.#o,fetchStatus:"idle"}),o.abort()},onFail:(d,m)=>{this.#l({type:"failed",failureCount:d,error:m})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof zS){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...sI(o.data,this.options),fetchMeta:e.meta??null};case"success":const n={...o,...NR(e.data,e.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#o=e.manual?n:void 0,n;case"error":const r=e.error;return{...o,error:r,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=t(this.state),Zo.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function sI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function NR(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function FR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,o=t!==void 0,n=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var lI=class extends au{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#s=BS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#o=void 0;#n=void 0;#a;#r;#s;#i;#u;#l;#h;#d;#m;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),BR(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return US(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return US(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#_(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,o=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Np(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&zR(this.#t,o,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#t!==o||mr(this.options.enabled,this.#t)!==mr(t.enabled,this.#t)||ls(this.options.staleTime,this.#t)!==ls(t.staleTime,this.#t))&&this.#g();const r=this.#v();n&&(this.#t!==o||mr(this.options.enabled,this.#t)!==mr(t.enabled,this.#t)||r!==this.#c)&&this.#b(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),o=this.createResult(t,e);return uz(this,o)&&(this.#n=o,this.#r=this.options,this.#a=this.#t.state),o}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(o,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),o=this.#e.getQueryCache().build(this.#e,t);return o.fetch().then(()=>this.createResult(o,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Wo)),t}#g(){this.#S();const e=ls(this.options.staleTime,this.#t);if(Kd.isServer()||this.#n.isStale||!LS(e))return;const o=XO(this.#n.dataUpdatedAt,e)+1;this.#d=ol.setTimeout(()=>{this.#n.isStale||this.updateResult()},o)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#_(),this.#c=e,!(Kd.isServer()||mr(this.options.enabled,this.#t)===!1||!LS(this.#c)||this.#c===0)&&(this.#m=ol.setInterval(()=>{(this.options.refetchIntervalInBackground||IC.isFocused())&&this.#f()},this.#c))}#y(){this.#g(),this.#b(this.#v())}#S(){this.#d!==void 0&&(ol.clearTimeout(this.#d),this.#d=void 0)}#_(){this.#m!==void 0&&(ol.clearInterval(this.#m),this.#m=void 0)}createResult(e,t){const o=this.#t,n=this.options,r=this.#n,i=this.#a,l=this.#r,d=e!==o?e.state:this.#o,{state:m}=e;let h={...m},f=!1,g;if(t._optimisticResults){const O=this.hasListeners(),N=!O&&BR(e,t),$=O&&zR(e,o,t,n);(N||$)&&(h={...h,...sI(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:S}=h;g=h.data;let E=!1;if(t.placeholderData!==void 0&&g===void 0&&S==="pending"){let O;r?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(O=r.data,E=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,O!==void 0&&(S="success",g=FS(r?.data,O,t),f=!0)}if(t.select&&g!==void 0&&!E)if(r&&g===i?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=FS(r?.data,g,t),this.#l=g,this.#i=null}catch(O){this.#i=O}this.#i&&(v=this.#i,g=this.#l,y=Date.now(),S="error");const _=h.fetchStatus==="fetching",w=S==="pending",P=S==="error",x=w&&_,T=g!==void 0,k={status:S,fetchStatus:h.fetchStatus,isPending:w,isSuccess:S==="success",isError:P,isInitialLoading:x,isLoading:x,data:g,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:_,isRefetching:_&&!w,isLoadingError:P&&!T,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:P&&T,isStale:FC(e,t),refetch:this.refetch,promise:this.#s,isEnabled:mr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=k.data!==void 0,N=k.status==="error"&&!O,$=j=>{N?j.reject(k.error):O&&j.resolve(k.data)},F=()=>{const j=this.#s=k.promise=BS();$(j)},U=this.#s;switch(U.status){case"pending":e.queryHash===o.queryHash&&$(U);break;case"fulfilled":(N||k.data!==U.value)&&F();break;case"rejected":(!N||k.error!==U.reason)&&F();break}}return k}updateResult(){const e=this.#n,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Np(t,e))return;this.#n=t;const o=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,r=typeof n=="function"?n():n;if(r==="all"||!r&&!this.#p.size)return!0;const i=new Set(r??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#n).some(l=>{const c=l;return this.#n[c]!==e[c]&&i.has(c)})};this.#w({listeners:o()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#o=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#w(e){Zo.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cz(e,t){return mr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&mr(t.retryOnMount,e)===!1)}function BR(e,t){return cz(e,t)||e.state.data!==void 0&&US(e,t,t.refetchOnMount)}function US(e,t,o){if(mr(t.enabled,e)!==!1&&ls(t.staleTime,e)!=="static"){const n=typeof o=="function"?o(e):o;return n==="always"||n!==!1&&FC(e,t)}return!1}function zR(e,t,o,n){return(e!==t||mr(n.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&FC(e,o)}function FC(e,t){return mr(t.enabled,e)!==!1&&e.isStaleByTime(ls(t.staleTime,e))}function uz(e,t){return!Np(e.getCurrentResult(),t)}var dz=class extends aI{#e;#t;#o;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#o=e.mutationCache,this.#t=[],this.state=e.state||cI(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#o.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=rI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,o):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#a({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:r}),this.#o.config.onMutate&&await this.#o.config.onMutate(e,this,o);const l=await this.options.onMutate?.(e,o);l!==this.state.context&&this.#a({type:"pending",context:l,variables:e,isPaused:r})}const i=await this.#n.start();return await this.#o.config.onSuccess?.(i,e,this.state.context,this,o),await this.options.onSuccess?.(i,e,this.state.context,o),await this.#o.config.onSettled?.(i,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(i,null,e,this.state.context,o),this.#a({type:"success",data:i}),i}catch(i){try{await this.#o.config.onError?.(i,e,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onError?.(i,e,this.state.context,o)}catch(l){Promise.reject(l)}try{await this.#o.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,o)}catch(l){Promise.reject(l)}throw this.#a({type:"error",error:i}),i}finally{this.#o.runNext(this)}}#a(e){const t=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Zo.batch(()=>{this.#t.forEach(o=>{o.onMutationUpdate(e)}),this.#o.notify({mutation:this,type:"updated",action:e})})}};function cI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mz=class extends au{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#o=0}#e;#t;#o;build(e,t,o){const n=new dz({client:e,mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:o});return this.add(n),n}add(e){this.#e.add(e);const t=Qf(e);if(typeof t=="string"){const o=this.#t.get(t);o?o.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Qf(e);if(typeof t=="string"){const o=this.#t.get(t);if(o)if(o.length>1){const n=o.indexOf(e);n!==-1&&o.splice(n,1)}else o[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Qf(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(r=>r.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Qf(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zo.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(o=>IR(t,o))}findAll(e={}){return this.getAll().filter(t=>IR(e,t))}notify(e){Zo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Zo.batch(()=>Promise.all(e.map(t=>t.continue().catch(Wo))))}};function Qf(e){return e.options.scope?.id}var fz=class extends au{#e;#t=void 0;#o;#n;constructor(t,o){super(),this.#e=t,this.setOptions(o),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const o=this.options;this.options=this.#e.defaultMutationOptions(t),Np(this.options,o)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),o?.mutationKey&&this.options.mutationKey&&dl(o.mutationKey)!==dl(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#r(t)}getCurrentResult(){return this.#t}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#a(),this.#r()}mutate(t,o){return this.#n=o,this.#o?.removeObserver(this),this.#o=this.#e.getMutationCache().build(this.#e,this.options),this.#o.addObserver(this),this.#o.execute(t)}#a(){const t=this.#o?.state??cI();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){Zo.batch(()=>{if(this.#n&&this.hasListeners()){const o=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,o,n,r)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(t.data,null,o,n,r)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,o,n,r)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(void 0,t.error,o,n,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(o=>{o(this.#t)})})}},hz=class extends au{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,o){const n=t.queryKey,r=t.queryHash??MC(n,t);let i=this.get(r);return i||(i=new lz({client:e,queryKey:n,queryHash:r,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zo.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(o=>OR(t,o))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(o=>OR(e,o)):t}notify(e){Zo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Zo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pz=class{#e;#t;#o;#n;#a;#r;#s;#i;constructor(e={}){this.#e=e.queryCache||new hz,this.#t=e.mutationCache||new mz,this.#o=e.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=IC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Fp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),o=this.#e.build(this,t),n=o.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(ls(t.staleTime,o))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:o})=>{const n=o.data;return[t,n]})}setQueryData(e,t,o){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,l=q6(t,i);if(l!==void 0)return this.#e.build(this,n).setData(l,{...o,manual:!0})}setQueriesData(e,t,o){return Zo.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,o)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Zo.batch(()=>{t.findAll(e).forEach(o=>{t.remove(o)})})}resetQueries(e,t){const o=this.#e;return Zo.batch(()=>(o.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const o={revert:!0,...t},n=Zo.batch(()=>this.#e.findAll(e).map(r=>r.cancel(o)));return Promise.all(n).then(Wo).catch(Wo)}invalidateQueries(e,t={}){return Zo.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const o={...t,cancelRefetch:t.cancelRefetch??!0},n=Zo.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,o);return o.throwOnError||(i=i.catch(Wo)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Wo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const o=this.#e.build(this,t);return o.isStaleByTime(ls(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wo).catch(Wo)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wo).catch(Wo)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Fp.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#n.set(dl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],o={};return t.forEach(n=>{Gd(e,n.queryKey)&&Object.assign(o,n.defaultOptions)}),o}setMutationDefaults(e,t){this.#a.set(dl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],o={};return t.forEach(n=>{Gd(e,n.mutationKey)&&Object.assign(o,n.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=MC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===LC&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},uI=D.createContext(void 0),Ng=e=>{const t=D.useContext(uI);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gz=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(uI.Provider,{value:e,children:t})),dI=D.createContext(!1),vz=()=>D.useContext(dI);dI.Provider;function mI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fI=D.createContext(mI()),bz=()=>D.useContext(fI),Yue=({children:e})=>{const[t]=D.useState(()=>mI());return R.jsx(fI.Provider,{value:t,children:typeof e=="function"?e(t):e})},yz=(e,t,o)=>{const n=o?.state.error&&typeof e.throwOnError=="function"?NC(e.throwOnError,[o.state.error,o]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},Sz=e=>{D.useEffect(()=>{e.clearReset()},[e])},_z=({result:e,errorResetBoundary:t,throwOnError:o,query:n,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&e.data===void 0||NC(o,[e.error,n])),Cz=(e,t)=>t.state.data===void 0,wz=e=>{if(e.suspense){const o=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>o(n(...r)):o(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ez=(e,t)=>e.isLoading&&e.isFetching&&!t,xz=(e,t)=>e?.suspense&&t.isPending,jR=(e,t,o)=>t.fetchOptimistic(e).catch(()=>{o.clearReset()});function hI(e,t,o){const n=vz(),r=bz(),i=Ng(o),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=i.getQueryCache().get(l.queryHash);l._optimisticResults=n?"isRestoring":"optimistic",wz(l),yz(l,r,c),Sz(r);const d=!i.getQueryCache().get(l.queryHash),[m]=D.useState(()=>new t(i,l)),h=m.getOptimisticResult(l),f=!n&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(g=>{const v=f?m.subscribe(Zo.batchCalls(g)):Wo;return m.updateResult(),v},[m,f]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),D.useEffect(()=>{m.setOptions(l)},[l,m]),xz(l,h))throw jR(l,m,r);if(_z({result:h,errorResetBoundary:r,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!Kd.isServer()&&Ez(h,n)&&(d?jR(l,m,r):c?.promise)?.catch(Wo).finally(()=>{m.updateResult()}),l.notifyOnChangeProps?h:m.trackResult(h)}function pI(e,t){return hI(e,lI,t)}function gl(e,t){return hI({...e,enabled:!0,suspense:!0,throwOnError:Cz,placeholderData:void 0},lI,t)}function yp(e,t){const o=Ng(t),[n]=D.useState(()=>new fz(o,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const r=D.useSyncExternalStore(D.useCallback(l=>n.subscribe(Zo.batchCalls(l)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=D.useCallback((l,c)=>{n.mutate(l,c).catch(Wo)},[n]);if(r.error&&NC(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}const Tz=Object.freeze({status:"aborted"});function be(e,t,o){function n(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const m=l.prototype,h=Object.keys(m);for(let f=0;f<h.length;f++){const g=h[f];g in c||(c[g]=m[g].bind(c))}}const r=o?.Parent??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function l(c){var d;const m=o?.Parent?new i:this;n(m,c),(d=m._zod).deferred??(d.deferred=[]);for(const h of m._zod.deferred)h();return m}return Object.defineProperty(l,"init",{value:n}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Nc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class gI extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const vI={};function hs(e){return vI}function bI(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function $S(e,t){return typeof t=="bigint"?t.toString():t}function Fg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function pm(e){return e==null}function BC(e){const t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function Pz(e,t){const o=(e.toString().split(".")[1]||"").length,n=t.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const d=n.match(/\d?e-(\d?)/);d?.[1]&&(r=Number.parseInt(d[1]))}const i=o>r?o:r,l=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return l%c/10**i}const UR=Symbol("evaluating");function At(e,t,o){let n;Object.defineProperty(e,t,{get(){if(n!==UR)return n===void 0&&(n=UR,n=o()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function vl(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function ys(...e){const t={};for(const o of e){const n=Object.getOwnPropertyDescriptors(o);Object.assign(t,n)}return Object.defineProperties({},t)}function $R(e){return JSON.stringify(e)}function Rz(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const yI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Wd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Az=Fg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Gc(e){if(Wd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const o=t.prototype;return!(Wd(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function SI(e){return Gc(e)?{...e}:Array.isArray(e)?[...e]:e}const kz=new Set(["string","number","symbol"]);function Kc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ss(e,t,o){const n=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(n._zod.parent=e),n}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Dz(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Oz={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Iz(e,t){const o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=ys(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=o.shape[c])}return vl(this,"shape",l),l},checks:[]});return Ss(e,i)}function Mz(e,t){const o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=ys(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return vl(this,"shape",l),l},checks:[]});return Ss(e,i)}function Lz(e,t){if(!Gc(t))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0){const i=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(i,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=ys(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return vl(this,"shape",i),i}});return Ss(e,r)}function Nz(e,t){if(!Gc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const o=ys(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return vl(this,"shape",n),n}});return Ss(e,o)}function Fz(e,t){const o=ys(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return vl(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Ss(e,o)}function Bz(e,t,o){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ys(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(o)for(const m in o){if(!(m in c))throw new Error(`Unrecognized key: "${m}"`);o[m]&&(d[m]=e?new e({type:"optional",innerType:c[m]}):c[m])}else for(const m in c)d[m]=e?new e({type:"optional",innerType:c[m]}):c[m];return vl(this,"shape",d),d},checks:[]});return Ss(t,l)}function zz(e,t,o){const n=ys(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(o)for(const l in o){if(!(l in i))throw new Error(`Unrecognized key: "${l}"`);o[l]&&(i[l]=new e({type:"nonoptional",innerType:r[l]}))}else for(const l in r)i[l]=new e({type:"nonoptional",innerType:r[l]});return vl(this,"shape",i),i}});return Ss(t,n)}function Ac(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function nl(e,t){return t.map(o=>{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}function Jf(e){return typeof e=="string"?e:e?.message}function ps(e,t,o){const n={...e,path:e.path??[]};if(!e.message){const r=Jf(e.inst?._zod.def?.error?.(e))??Jf(t?.error?.(e))??Jf(o.customError?.(e))??Jf(o.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function _I(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zC(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Yd(...e){const[t,o,n]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:n}:{...t}}const CI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$S,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jC=be("$ZodError",CI),Bg=be("$ZodError",CI,{Parent:Error});function jz(e,t=o=>o.message){const o={},n=[];for(const r of e.issues)r.path.length>0?(o[r.path[0]]=o[r.path[0]]||[],o[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:o}}function Uz(e,t=o=>o.message){const o={_errors:[]},n=r=>{for(const i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>n({issues:l}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)o._errors.push(t(i));else{let l=o,c=0;for(;c<i.path.length;){const d=i.path[c];c===i.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(i))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return n(e),o}const zg=e=>(t,o,n,r)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:o,issues:[]},i);if(l instanceof Promise)throw new Nc;if(l.issues.length){const c=new(r?.Err??e)(l.issues.map(d=>ps(d,i,hs())));throw yI(c,r?.callee),c}return l.value},$z=zg(Bg),jg=e=>async(t,o,n,r)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let l=t._zod.run({value:o,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(r?.Err??e)(l.issues.map(d=>ps(d,i,hs())));throw yI(c,r?.callee),c}return l.value},qz=jg(Bg),Ug=e=>(t,o,n)=>{const r=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:o,issues:[]},r);if(i instanceof Promise)throw new Nc;return i.issues.length?{success:!1,error:new(e??jC)(i.issues.map(l=>ps(l,r,hs())))}:{success:!0,data:i.value}},Vz=Ug(Bg),$g=e=>async(t,o,n)=>{const r=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:o,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(l=>ps(l,r,hs())))}:{success:!0,data:i.value}},Hz=$g(Bg),Gz=e=>(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zg(e)(t,o,r)},Kz=e=>(t,o,n)=>zg(e)(t,o,n),Wz=e=>async(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return jg(e)(t,o,r)},Yz=e=>async(t,o,n)=>jg(e)(t,o,n),Zz=e=>(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ug(e)(t,o,r)},Qz=e=>(t,o,n)=>Ug(e)(t,o,n),Jz=e=>async(t,o,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return $g(e)(t,o,r)},Xz=e=>async(t,o,n)=>$g(e)(t,o,n),ej=/^[cC][^\s-]{8,}$/,tj=/^[0-9a-z]+$/,oj=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nj=/^[0-9a-vA-V]{20}$/,rj=/^[A-Za-z0-9]{27}$/,aj=/^[a-zA-Z0-9_-]{21}$/,ij=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sj=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qR=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,lj=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function uj(){return new RegExp(cj,"u")}const dj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fj=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hj=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pj=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wI=/^[A-Za-z0-9_-]*$/,gj=/^\+[1-9]\d{6,14}$/,EI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vj=new RegExp(`^${EI}$`);function xI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bj(e){return new RegExp(`^${xI(e)}$`)}function yj(e){const t=xI({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${o.join("|")})`;return new RegExp(`^${EI}T(?:${n})$`)}const Sj=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},_j=/^-?\d+$/,TI=/^-?\d+(?:\.\d+)?$/,Cj=/^(?:true|false)$/i,wj=/^null$/i,Ej=/^undefined$/i,xj=/^[^A-Z]*$/,Tj=/^[^a-z]*$/,yn=be("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),PI={number:"number",bigint:"bigint",object:"date"},RI=be("$ZodCheckLessThan",(e,t)=>{yn.init(e,t);const o=PI[typeof t.value];e._zod.onattach.push(n=>{const r=n._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),AI=be("$ZodCheckGreaterThan",(e,t)=>{yn.init(e,t);const o=PI[typeof t.value];e._zod.onattach.push(n=>{const r=n._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pj=be("$ZodCheckMultipleOf",(e,t)=>{yn.init(e,t),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):Pz(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),Rj=be("$ZodCheckNumberFormat",(e,t)=>{yn.init(e,t),t.format=t.format||"float64";const o=t.format?.includes("int"),n=o?"int":"number",[r,i]=Oz[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=r,c.maximum=i,o&&(c.pattern=_j)}),e._zod.check=l=>{const c=l.value;if(o){if(!Number.isInteger(c)){l.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}c<r&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>i&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Aj=be("$ZodCheckMaxSize",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;r.size<=t.maximum||n.issues.push({origin:_I(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kj=be("$ZodCheckMinSize",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;r.size>=t.minimum||n.issues.push({origin:_I(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dj=be("$ZodCheckMaxLength",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const l=zC(r);n.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Oj=be("$ZodCheckMinLength",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const l=zC(r);n.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ij=be("$ZodCheckLengthEquals",(e,t)=>{var o;yn.init(e,t),(o=e._zod.def).when??(o.when=n=>{const r=n.value;return!pm(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{const r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{const r=n.value,i=r.length;if(i===t.length)return;const l=zC(r),c=i>t.length;n.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qg=be("$ZodCheckStringFormat",(e,t)=>{var o,n;yn.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Mj=be("$ZodCheckRegex",(e,t)=>{qg.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Lj=be("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xj),qg.init(e,t)}),Nj=be("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tj),qg.init(e,t)}),Fj=be("$ZodCheckIncludes",(e,t)=>{yn.init(e,t);const o=Kc(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=n,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Bj=be("$ZodCheckStartsWith",(e,t)=>{yn.init(e,t);const o=new RegExp(`^${Kc(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{const r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),zj=be("$ZodCheckEndsWith",(e,t)=>{yn.init(e,t);const o=new RegExp(`.*${Kc(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(n=>{const r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),jj=be("$ZodCheckMimeType",(e,t)=>{yn.init(e,t);const o=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Uj=be("$ZodCheckOverwrite",(e,t)=>{yn.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});class $j{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
11
11
  `).filter(l=>l),r=Math.min(...n.map(l=>l.length-l.trimStart().length)),i=n.map(l=>l.slice(r)).map(l=>" ".repeat(this.indent*2)+l);for(const l of i)this.content.push(l)}compile(){const t=Function,o=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...o,r.join(`
12
12
  `))}}const qj={major:4,minor:3,patch:6},jt=be("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=qj;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const r of n)for(const i of r._zod.onattach)i(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(l,c,d)=>{let m=Ac(l),h;for(const f of c){if(f._zod.def.when){if(!f._zod.def.when(l))continue}else if(m)continue;const g=l.issues.length,v=f._zod.check(l);if(v instanceof Promise&&d?.async===!1)throw new Nc;if(h||v instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await v,l.issues.length!==g&&(m||(m=Ac(l,g)))});else{if(l.issues.length===g)continue;m||(m=Ac(l,g))}}return h?h.then(()=>l):l},i=(l,c,d)=>{if(Ac(l))return l.aborted=!0,l;const m=r(c,n,d);if(m instanceof Promise){if(d.async===!1)throw new Nc;return m.then(h=>e._zod.parse(h,d))}return e._zod.parse(m,d)};e._zod.run=(l,c)=>{if(c.skipChecks)return e._zod.parse(l,c);if(c.direction==="backward"){const m=e._zod.parse({value:l.value,issues:[]},{...c,skipChecks:!0});return m instanceof Promise?m.then(h=>i(h,l,c)):i(m,l,c)}const d=e._zod.parse(l,c);if(d instanceof Promise){if(c.async===!1)throw new Nc;return d.then(m=>r(m,n,c))}return r(d,n,c)}}At(e,"~standard",()=>({validate:r=>{try{const i=Vz(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Hz(e,r).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),UC=be("$ZodString",(e,t)=>{jt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Sj(e._zod.bag),e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),po=be("$ZodStringFormat",(e,t)=>{qg.init(e,t),UC.init(e,t)}),Vj=be("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=sj),po.init(e,t)}),Hj=be("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qR(n))}else t.pattern??(t.pattern=qR());po.init(e,t)}),Gj=be("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=lj),po.init(e,t)}),Kj=be("$ZodURL",(e,t)=>{po.init(e,t),e._zod.check=o=>{try{const n=o.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=r.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),Wj=be("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=uj()),po.init(e,t)}),Yj=be("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=aj),po.init(e,t)}),Zj=be("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ej),po.init(e,t)}),Qj=be("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=tj),po.init(e,t)}),Jj=be("$ZodULID",(e,t)=>{t.pattern??(t.pattern=oj),po.init(e,t)}),Xj=be("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nj),po.init(e,t)}),eU=be("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rj),po.init(e,t)}),tU=be("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=yj(t)),po.init(e,t)}),oU=be("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vj),po.init(e,t)}),nU=be("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=bj(t)),po.init(e,t)}),rU=be("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ij),po.init(e,t)}),aU=be("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=dj),po.init(e,t),e._zod.bag.format="ipv4"}),iU=be("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=mj),po.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),sU=be("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fj),po.init(e,t)}),lU=be("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=hj),po.init(e,t),e._zod.check=o=>{const n=o.value.split("/");try{if(n.length!==2)throw new Error;const[r,i]=n;if(!i)throw new Error;const l=Number(i);if(`${l}`!==i)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${r}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function kI(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const cU=be("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pj),po.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{kI(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function uU(e){if(!wI.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return kI(o)}const dU=be("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wI),po.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{uU(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),mU=be("$ZodE164",(e,t)=>{t.pattern??(t.pattern=gj),po.init(e,t)});function fU(e,t=null){try{const o=e.split(".");if(o.length!==3)return!1;const[n]=o;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const hU=be("$ZodJWT",(e,t)=>{po.init(e,t),e._zod.check=o=>{fU(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),DI=be("$ZodNumber",(e,t)=>{jt.init(e,t),e._zod.pattern=e._zod.bag.pattern??TI,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}const r=o.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return o;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),o}}),pU=be("$ZodNumberFormat",(e,t)=>{Rj.init(e,t),DI.init(e,t)}),gU=be("$ZodBoolean",(e,t)=>{jt.init(e,t),e._zod.pattern=Cj,e._zod.parse=(o,n)=>{if(t.coerce)try{o.value=!!o.value}catch{}const r=o.value;return typeof r=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),o}}),vU=be("$ZodUndefined",(e,t)=>{jt.init(e,t),e._zod.pattern=Ej,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,n)=>{const r=o.value;return typeof r>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),o}}),bU=be("$ZodNull",(e,t)=>{jt.init(e,t),e._zod.pattern=wj,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{const r=o.value;return r===null||o.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),o}}),yU=be("$ZodAny",(e,t)=>{jt.init(e,t),e._zod.parse=o=>o}),SU=be("$ZodUnknown",(e,t)=>{jt.init(e,t),e._zod.parse=o=>o}),_U=be("$ZodNever",(e,t)=>{jt.init(e,t),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)});function VR(e,t,o){e.issues.length&&t.issues.push(...nl(o,e.issues)),t.value[o]=e.value}const CU=be("$ZodArray",(e,t)=>{jt.init(e,t),e._zod.parse=(o,n)=>{const r=o.value;if(!Array.isArray(r))return o.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),o;o.value=Array(r.length);const i=[];for(let l=0;l<r.length;l++){const c=r[l],d=t.element._zod.run({value:c,issues:[]},n);d instanceof Promise?i.push(d.then(m=>VR(m,o,l))):VR(d,o,l)}return i.length?Promise.all(i).then(()=>o):o}});function Bp(e,t,o,n,r){if(e.issues.length){if(r&&!(o in n))return;t.issues.push(...nl(o,e.issues))}e.value===void 0?o in n&&(t.value[o]=void 0):t.value[o]=e.value}function OI(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const o=Dz(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function II(e,t,o,n,r,i){const l=[],c=r.keySet,d=r.catchall._zod,m=d.def.type,h=d.optout==="optional";for(const f in t){if(c.has(f))continue;if(m==="never"){l.push(f);continue}const g=d.run({value:t[f],issues:[]},n);g instanceof Promise?e.push(g.then(v=>Bp(v,o,f,t,h))):Bp(g,o,f,t,h)}return l.length&&o.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:i}),e.length?Promise.all(e).then(()=>o):o}const wU=be("$ZodObject",(e,t)=>{if(jt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...c};return Object.defineProperty(t,"shape",{value:d}),d}})}const n=Fg(()=>OI(t));At(e._zod,"propValues",()=>{const c=t.shape,d={};for(const m in c){const h=c[m]._zod;if(h.values){d[m]??(d[m]=new Set);for(const f of h.values)d[m].add(f)}}return d});const r=Wd,i=t.catchall;let l;e._zod.parse=(c,d)=>{l??(l=n.value);const m=c.value;if(!r(m))return c.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),c;c.value={};const h=[],f=l.shape;for(const g of l.keys){const v=f[g],y=v._zod.optout==="optional",S=v._zod.run({value:m[g],issues:[]},d);S instanceof Promise?h.push(S.then(E=>Bp(E,c,g,m,y))):Bp(S,c,g,m,y)}return i?II(h,m,c,d,n.value,e):h.length?Promise.all(h).then(()=>c):c}}),EU=be("$ZodObjectJIT",(e,t)=>{wU.init(e,t);const o=e._zod.parse,n=Fg(()=>OI(t)),r=g=>{const v=new $j(["shape","payload","ctx"]),y=n.value,S=P=>{const x=$R(P);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};v.write("const input = payload.value;");const E=Object.create(null);let _=0;for(const P of y.keys)E[P]=`key_${_++}`;v.write("const newResult = {};");for(const P of y.keys){const x=E[P],T=$R(P),k=g[P]?._zod?.optout==="optional";v.write(`const ${x} = ${S(P)};`),k?v.write(`
13
13
  if (${x}.issues.length) {
@@ -159,8 +159,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
159
159
  pointer-events: none;
160
160
  display: none;
161
161
  }
162
- `})]})]})}function Oa({redirectTo:e}){const{redirectTo:t}=D.useContext(vt),[o,n]=D.useState(!1),{navigate:r,hooks:{useSession:i},onSessionChange:l}=D.useContext(vt),{refetch:c}=i();return{onSuccess:D.useCallback(async()=>{n(!0),await c?.(),l&&await l(),n(!1);const m=e||yl("redirectTo")||t;r(m)},[c,l,r,e,t]),isPending:o}}function I3({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:o}=D.useContext(vt),n=t?.(),r=D.useRef(!1),{onSuccess:i}=Oa({redirectTo:e});return D.useEffect(()=>{if(!r.current){if(!o){r.current=!0,i();return}n||(r.current=!0,i())}},[n,o,i]),R.jsx(kn,{className:"animate-spin"})}function sE({className:e,containerClassName:t,...o}){return R.jsx(b3,{"data-slot":"input-otp",containerClassName:Te("flex items-center gap-2 has-disabled:opacity-50",t),className:Te("disabled:cursor-not-allowed",e),...o})}function bc({className:e,...t}){return R.jsx("div",{"data-slot":"input-otp-group",className:Te("flex items-center",e),...t})}function on({index:e,className:t,...o}){const n=D.useContext(v3),{char:r,hasFakeCaret:i,isActive:l}=n?.slots[e]??{};return R.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:Te("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...o,children:[r,i&&R.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:R.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function dS({...e}){return R.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:R.jsx(CZ,{})})}function lE({otpSeparators:e=0}){return e===0?R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1}),R.jsx(on,{index:2}),R.jsx(on,{index:3}),R.jsx(on,{index:4}),R.jsx(on,{index:5})]}):e===1?R.jsxs(R.Fragment,{children:[R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1}),R.jsx(on,{index:2})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:3}),R.jsx(on,{index:4}),R.jsx(on,{index:5})]})]}):R.jsxs(R.Fragment,{children:[R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:2}),R.jsx(on,{index:3})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:4}),R.jsx(on,{index:5})]})]})}function UD(e){const[t,o]=D.useState();return t?R.jsx(tae,{...e,email:t}):R.jsx(eae,{...e,setEmail:o})}function eae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r,setEmail:i}){const l=gi(),{captchaRef:c,getCaptchaHeaders:d}=Mm({localization:n}),{authClient:m,localization:h,toast:f,localizeErrors:g}=D.useContext(vt);n={...h,...n};const v=Ae({email:Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`})}),y=Ra({resolver:Aa(v),defaultValues:{email:""}});o=o||y.formState.isSubmitting,D.useEffect(()=>{r?.(y.formState.isSubmitting)},[y.formState.isSubmitting,r]);async function S({email:E}){const _={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await m.emailOtp.sendVerificationOtp({email:E,type:"sign-in",fetchOptions:_}),f({variant:"success",message:n.EMAIL_OTP_VERIFICATION_SENT}),i(E)}catch(w){f({variant:"error",message:Mo({error:w,localization:n,localizeErrors:g})})}}return R.jsx(Da,{...y,children:R.jsxs("form",{method:"POST",onSubmit:y.handleSubmit(S),noValidate:l,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:y.control,name:"email",render:({field:E})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...E})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:c,localization:n,action:"/email-otp/send-verification-otp"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.EMAIL_OTP_SEND_ACTION})]})})}function tae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l,email:c}){const{authClient:d,localization:m,toast:h,localizeErrors:f}=D.useContext(vt);n={...m,...n};const{onSuccess:g,isPending:v}=Oa({redirectTo:i}),y=Ae({code:Y().min(1,{message:`${n.EMAIL_OTP} ${n.IS_REQUIRED}`}).min(6,{message:`${n.EMAIL_OTP} ${n.IS_INVALID}`})}),S=Ra({resolver:Aa(y),defaultValues:{code:""}});o=o||S.formState.isSubmitting||v,D.useEffect(()=>{l?.(S.formState.isSubmitting||v)},[S.formState.isSubmitting,v,l]);async function E({code:_}){try{await d.signIn.emailOtp({email:c,otp:_,fetchOptions:{throw:!0}}),await g()}catch(w){h({variant:"error",message:Mo({error:w,localization:n,localizeErrors:f})}),S.reset()}}return R.jsx(Da,{...S,children:R.jsxs("form",{method:"POST",onSubmit:S.handleSubmit(E),className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:S.control,name:"code",render:({field:_})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL_OTP}),R.jsx(Vo,{children:R.jsx(sE,{..._,maxLength:6,onChange:w=>{_.onChange(w),w.length===6&&S.handleSubmit(E)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx("div",{className:"grid gap-4",children:R.jsxs(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.EMAIL_OTP_VERIFY_ACTION]})})]})})}function oae({onCancel:e,localization:t,className:o,classNames:n,otpSeparators:r,callbackURL:i,isSubmitting:l,redirectTo:c,setIsSubmitting:d}){const[m,h]=D.useState(!0),[f,g]=D.useState(30),{authClient:v,localization:y,toast:S,localizeErrors:E,navigate:_,basePath:w,viewPaths:P}=D.useContext(vt);t={...y,...t};const x=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:T,isPending:A}=Oa({redirectTo:c}),k=Ae({code:Y().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),O=Ra({resolver:Aa(k),defaultValues:{code:""}}),N=l||O.formState.isSubmitting||A;D.useEffect(()=>{d?.(O.formState.isSubmitting||A)},[O.formState.isSubmitting,A,d]),D.useEffect(()=>{if(f>0){const U=setTimeout(()=>g(f-1),1e3);return()=>clearTimeout(U)}else h(!1)},[f]);async function $({code:U}){try{const j=await v.emailOtp.verifyEmail({email:x,otp:U,fetchOptions:{throw:!0}});"token"in j&&j.token?await T():(_(`${w}/${P.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(j){S({variant:"error",message:Mo({error:j,localization:t,localizeErrors:E})}),O.reset()}}async function F(){if(!m){h(!0),g(30);try{await v.emailOtp.sendVerificationOtp({email:x,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(U){S({variant:"error",message:Mo({error:U,localization:t,localizeErrors:E})}),h(!1),g(0)}}}return x?R.jsx(Da,{...O,children:R.jsxs("form",{method:"POST",onSubmit:O.handleSubmit($),className:Te("grid w-full gap-6",o,n?.base),children:[R.jsx(ko,{control:O.control,name:"code",render:({field:U})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:n?.label,children:t.EMAIL_OTP}),R.jsx(Vo,{children:R.jsx(sE,{...U,maxLength:6,onChange:j=>{U.onChange(j),j.length===6&&O.handleSubmit($)()},containerClassName:n?.otpInputContainer,className:n?.otpInput,disabled:N,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:n?.error})]})}),R.jsxs("div",{className:"grid gap-4",children:[R.jsxs(oo,{type:"submit",disabled:N,className:Te(n?.button,n?.primaryButton),children:[N&&R.jsx(kn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),R.jsx(oo,{type:"button",variant:"outline",onClick:F,disabled:m||N,className:Te("w-full",n?.button),children:m?`${t.RESEND_VERIFICATION_EMAIL} (${f}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&R.jsx(oo,{type:"button",variant:"ghost",onClick:e,disabled:N,className:"w-full",children:t.CANCEL})]})]})}):R.jsx("div",{className:Te("grid w-full gap-6",o),children:R.jsxs("div",{className:"text-center",children:[R.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),R.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function nae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r}){const i=gi(),{captchaRef:l,getCaptchaHeaders:c,resetCaptcha:d}=Mm({localization:n}),{authClient:m,basePath:h,baseURL:f,localization:g,navigate:v,toast:y,viewPaths:S,localizeErrors:E}=D.useContext(vt);n={...g,...n};const _=Ae({email:Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`}).min(1,{message:`${n.EMAIL} ${n.IS_REQUIRED}`})}),w=Ra({resolver:Aa(_),defaultValues:{email:""}});o=o||w.formState.isSubmitting,D.useEffect(()=>{r?.(w.formState.isSubmitting)},[w.formState.isSubmitting,r]);async function P({email:x}){try{const T={throw:!0,headers:await c("/forget-password")};await m.requestPasswordReset({email:x,redirectTo:`${f}${h}/${S.RESET_PASSWORD}`,fetchOptions:T}),y({variant:"success",message:n.FORGOT_PASSWORD_EMAIL}),v(`${h}/${S.SIGN_IN}${window.location.search}`)}catch(T){y({variant:"error",message:Mo({error:T,localization:n,localizeErrors:E})}),d()}}return R.jsx(Da,{...w,children:R.jsxs("form",{method:"POST",onSubmit:w.handleSubmit(P),noValidate:i,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:w.control,name:"email",render:({field:x})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...x})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:l,localization:n,action:"/forget-password"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.FORGOT_PASSWORD_ACTION})]})})}function $D({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l}){const c=gi(),{captchaRef:d,getCaptchaHeaders:m,resetCaptcha:h}=Mm({localization:r}),{authClient:f,basePath:g,baseURL:v,persistClient:y,localization:S,redirectTo:E,viewPaths:_,toast:w,localizeErrors:P}=D.useContext(vt);r={...S,...r};const x=D.useCallback(()=>i||yl("redirectTo")||E,[i,E]),T=D.useCallback(()=>`${v}${o||(y?`${g}/${_.CALLBACK}?redirectTo=${encodeURIComponent(x())}`:x())}`,[o,y,g,_,v,x]),A=Ae({email:Y().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),k=Ra({resolver:Aa(A),defaultValues:{email:""}});n=n||k.formState.isSubmitting,D.useEffect(()=>{l?.(k.formState.isSubmitting)},[k.formState.isSubmitting,l]);async function O({email:N}){try{const $={throw:!0,headers:await m("/sign-in/magic-link")};await f.signIn.magicLink({email:N,callbackURL:T(),fetchOptions:$}),w({variant:"success",message:r.MAGIC_LINK_EMAIL}),k.reset()}catch($){w({variant:"error",message:Mo({error:$,localization:r,localizeErrors:P})}),h()}}return R.jsx(Da,{...k,children:R.jsxs("form",{method:"POST",onSubmit:k.handleSubmit(O),noValidate:c,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:k.control,name:"email",render:({field:N})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...N})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:d,localization:r,action:"/sign-in/magic-link"}),R.jsx(oo,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.MAGIC_LINK_ACTION})]})})}function rae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i}){const{authClient:l,localization:c,toast:d,localizeErrors:m}=D.useContext(vt);n={...c,...n};const{onSuccess:h,isPending:f}=Oa({redirectTo:r}),g=Ae({code:Y().min(1,{message:n.BACKUP_CODE_REQUIRED})}),v=Ra({resolver:Aa(g),defaultValues:{code:""}});o=o||v.formState.isSubmitting||f,D.useEffect(()=>{i?.(v.formState.isSubmitting||f)},[v.formState.isSubmitting,f,i]);async function y({code:S}){try{await l.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await h()}catch(E){d({variant:"error",message:Mo({error:E,localization:n,localizeErrors:m})}),v.reset()}}return R.jsx(Da,{...v,children:R.jsxs("form",{method:"POST",onSubmit:v.handleSubmit(y),className:Te("grid gap-6",e,t?.base),children:[R.jsx(ko,{control:v.control,name:"code",render:({field:S})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.BACKUP_CODE}),R.jsx(Vo,{children:R.jsx(na,{placeholder:n.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:o,...S})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.RECOVER_ACCOUNT_ACTION})]})})}function aae({className:e,classNames:t,localization:o,passwordValidation:n}){const r=D.useRef(!1),{authClient:i,basePath:l,credentials:c,localization:d,viewPaths:m,navigate:h,toast:f,localizeErrors:g}=D.useContext(vt),v=c?.confirmPassword,y=c?.passwordValidation;o={...d,...o},n={...y,...n};const S=Ae({newPassword:tm(n,{PASSWORD_REQUIRED:o.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}),confirmPassword:v?tm(n,{PASSWORD_REQUIRED:o.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}):Y().optional()}).refine(P=>!v||P.newPassword===P.confirmPassword,{message:o.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),E=Ra({resolver:Aa(S),defaultValues:{newPassword:"",confirmPassword:""}}),_=E.formState.isSubmitting;D.useEffect(()=>{if(r.current)return;r.current=!0;const x=new URLSearchParams(window.location.search).get("token");(!x||x==="INVALID_TOKEN")&&(h(`${l}/${m.SIGN_IN}${window.location.search}`),f({variant:"error",message:o.INVALID_TOKEN}))},[l,h,f,m,o]);async function w({newPassword:P}){try{const T=new URLSearchParams(window.location.search).get("token");await i.resetPassword({newPassword:P,token:T,fetchOptions:{throw:!0}}),f({variant:"success",message:o.RESET_PASSWORD_SUCCESS}),h(`${l}/${m.SIGN_IN}${window.location.search}`)}catch(x){f({variant:"error",message:Mo({error:x,localization:o,localizeErrors:g})}),E.reset()}}return R.jsx(Da,{...E,children:R.jsxs("form",{method:"POST",onSubmit:E.handleSubmit(w),className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:E.control,name:"newPassword",render:({field:P})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:o.NEW_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:o.NEW_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Yo,{className:t?.error})]})}),v&&R.jsx(ko,{control:E.control,name:"confirmPassword",render:({field:P})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:o.CONFIRM_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:o.CONFIRM_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(oo,{type:"submit",disabled:_,className:Te("w-full",t?.button,t?.primaryButton),children:_?R.jsx(kn,{className:"animate-spin"}):o.RESET_PASSWORD_ACTION})]})})}function iae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i,passwordValidation:l,callbackURL:c}){const d=gi(),{captchaRef:m,getCaptchaHeaders:h,resetCaptcha:f}=Mm({localization:n}),{authClient:g,basePath:v,credentials:y,localization:S,viewPaths:E,navigate:_,toast:w,Link:P,localizeErrors:x,emailVerification:T}=D.useContext(vt),A=y?.rememberMe,k=y?.username,O=y?.passwordValidation;n={...S,...n},l={...O,...l};const{onSuccess:N,isPending:$}=Oa({redirectTo:r}),F=Ae({email:k?Y().min(1,{message:`${n.USERNAME} ${n.IS_REQUIRED}`}):Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`}),password:tm(l,n),rememberMe:Vt().optional()}),U=Ra({resolver:Aa(F),defaultValues:{email:"",password:"",rememberMe:!A}});o=o||U.formState.isSubmitting||$,D.useEffect(()=>{i?.(U.formState.isSubmitting||$)},[U.formState.isSubmitting,$,i]);async function j({email:K,password:ae,rememberMe:V}){var Z;try{let te={};if(k&&!CY(K)){const le={throw:!0,headers:await h("/sign-in/username")};te=await g.signIn.username({username:K,password:ae,rememberMe:V,fetchOptions:le,callbackURL:c})}else{const le={throw:!0,headers:await h("/sign-in/email")};te=await g.signIn.email({email:K,password:ae,rememberMe:V,fetchOptions:le,callbackURL:c})}te.twoFactorRedirect?_(`${v}/${E.TWO_FACTOR}${window.location.search}`):await N()}catch(te){U.resetField("password"),f(),w({variant:"error",message:Mo({error:te,localization:n,localizeErrors:x})}),T?.otp&&((Z=te?.error)==null?void 0:Z.code)==="EMAIL_NOT_VERIFIED"&&_(`${v}/${E.EMAIL_VERIFICATION}?email=${encodeURIComponent(K)}`)}}return R.jsx(Da,{...U,children:R.jsxs("form",{method:"POST",onSubmit:U.handleSubmit(j),noValidate:d,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:U.control,name:"email",render:({field:K})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:k?n.USERNAME:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:k?"username":"email",className:t?.input,type:k?"text":"email",placeholder:k?n.SIGN_IN_USERNAME_PLACEHOLDER:n.EMAIL_PLACEHOLDER,disabled:o,...K})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:U.control,name:"password",render:({field:K})=>R.jsxs(Do,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Oo,{className:t?.label,children:n.PASSWORD}),y?.forgotPassword&&R.jsx(P,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${v}/${E.FORGOT_PASSWORD}${d?window.location.search:""}`,children:n.FORGOT_PASSWORD_LINK})]}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"current-password",className:t?.input,placeholder:n.PASSWORD_PLACEHOLDER,disabled:o,...K})}),R.jsx(Yo,{className:t?.error})]})}),A&&R.jsx(ko,{control:U.control,name:"rememberMe",render:({field:K})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:K.value,onCheckedChange:K.onChange,disabled:o})}),R.jsx(Oo,{children:n.REMEMBER_ME})]})}),R.jsx(Lm,{ref:m,localization:n,action:"/sign-in/email"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.SIGN_IN_ACTION})]})})}function sae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){var d,m,h,f,g,v;const y=gi(),{captchaRef:S,getCaptchaHeaders:E,resetCaptcha:_}=Mm({localization:r}),{additionalFields:w,authClient:P,basePath:x,baseURL:T,credentials:A,localization:k,nameRequired:O,persistClient:N,redirectTo:$,signUp:F,viewPaths:U,navigate:j,toast:K,avatar:ae,localizeErrors:V,emailVerification:Z}=D.useContext(vt),te=A?.confirmPassword,le=A?.username,Q=A?.usernameRequired??!0,M=A?.passwordValidation,H=F?.fields;r={...k,...r},c={...M,...c};const q=D.useRef(null),[L,z]=D.useState(null),[J,me]=D.useState(!1),he=D.useCallback(()=>i||yl("redirectTo")||$,[i,$]),we=D.useCallback(()=>`${T}${o||(N?`${x}/${U.CALLBACK}?redirectTo=${encodeURIComponent(he())}`:he())}`,[o,N,x,U,T,he]),{onSuccess:Be,isPending:W}=Oa({redirectTo:i}),ne={email:Y().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:tm(c,r),name:H?.includes("name")&&O?Y().min(1,{message:`${r.NAME} ${r.IS_REQUIRED}`}):Y().optional(),image:Y().optional(),username:le&&Q?Y().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):Y().optional(),confirmPassword:te?tm(c,{PASSWORD_REQUIRED:r.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:r.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:r.PASSWORD_TOO_LONG,INVALID_PASSWORD:r.INVALID_PASSWORD}):Y().optional()},ve={};if(H)for(const De of H){if(De==="name"||De==="image")continue;const ke=w?.[De];if(!ke)continue;let Ue;ke.type==="number"?Ue=ke.required?KC(G=>G?Number(G):void 0,kt({message:((d=ke.errorMessage)==null?void 0:d.invalid)??`${ke.label} ${r.IS_INVALID}`})):EM({message:((m=ke.errorMessage)==null?void 0:m.invalid)??`${ke.label} ${r.IS_INVALID}`}).optional():ke.type==="boolean"?Ue=ke.required?s1({message:((h=ke.errorMessage)==null?void 0:h.invalid)??`${ke.label} ${r.IS_INVALID}`}).refine(G=>G===!0,{message:((f=ke.errorMessage)==null?void 0:f.required)??`${ke.label} ${r.IS_REQUIRED}`}):s1({message:((g=ke.errorMessage)==null?void 0:g.invalid)??`${ke.label} ${r.IS_INVALID}`}).optional():Ue=ke.required?Y().min(1,((v=ke.errorMessage)==null?void 0:v.required)??`${ke.label} ${r.IS_REQUIRED}`):Y().optional(),ve[De]=Ue}const ie=Ae(ne).extend(ve).refine(De=>te?De.password===De.confirmPassword:!0,{message:r.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),_e={email:"",password:"",...te&&{confirmPassword:""},...H?.includes("name")?{name:""}:{},...le?{username:""}:{},...H?.includes("image")&&ae?{image:""}:{}};if(H)for(const De of H){if(De==="name"||De==="image")continue;const ke=w?.[De];ke&&(_e[De]=ke.type==="boolean"?!1:"")}const xe=Ra({resolver:Aa(ie),defaultValues:_e});n=n||xe.formState.isSubmitting||W,D.useEffect(()=>{l?.(xe.formState.isSubmitting||W)},[xe.formState.isSubmitting,W,l]);const tt=async De=>{if(ae){me(!0);try{const ke=await hre(De,crypto.randomUUID(),ae.size,ae.extension);let Ue;ae.upload?Ue=await ae.upload(ke):Ue=await gre(ke),Ue?(z(Ue),xe.setValue("image",Ue)):(z(null),xe.setValue("image",""))}catch(ke){console.error(ke),K({variant:"error",message:Mo({error:ke,localization:r,localizeErrors:V})})}me(!1)}},nt=()=>{z(null),xe.setValue("image","")},$e=()=>{var De;return(De=q.current)==null?void 0:De.click()};async function Qe({email:De,password:ke,name:Ue,username:G,confirmPassword:oe,image:se,...Ee}){var Pe,Re;try{for(const[bt,Tt]of Object.entries(Ee)){const yt=w?.[bt];if(yt?.validate&&typeof Tt=="string"&&!await yt.validate(Tt)){xe.setError(bt,{message:((Pe=yt.errorMessage)==null?void 0:Pe.validate)??((Re=yt.errorMessage)==null?void 0:Re.invalid)??`${yt.label} ${r.IS_INVALID}`});return}}const Ie={throw:!0,headers:await E("/sign-up/email")},Xe={};G!==void 0&&(!Q&&(G===null||G===""||typeof G=="string"&&G.trim()==="")||(Xe.username=G)),se!==void 0&&(Xe.image=se);const et=await P.signUp.email({email:De,password:ke,name:Ue||"",...Xe,...Ee,callbackURL:we(),fetchOptions:Ie});"token"in et&&et.token?await Be():Z?.otp?j(`${x}/${U.EMAIL_VERIFICATION}?email=${encodeURIComponent(De)}`):(j(`${x}/${U.SIGN_IN}${window.location.search}`),K({variant:"success",message:r.SIGN_UP_EMAIL}))}catch(Ie){K({variant:"error",message:Mo({error:Ie,localization:r,localizeErrors:V})}),xe.resetField("password"),xe.resetField("confirmPassword"),_()}}return R.jsx(Da,{...xe,children:R.jsxs("form",{method:"POST",onSubmit:xe.handleSubmit(Qe),noValidate:y,className:Te("grid w-full gap-6",e,t?.base),children:[H?.includes("image")&&ae&&R.jsxs(R.Fragment,{children:[R.jsx("input",{ref:q,accept:"image/*",disabled:J,hidden:!0,type:"file",onChange:De=>{var ke;const Ue=(ke=De.target.files)==null?void 0:ke.item(0);Ue&&tt(Ue),De.target.value=""}}),R.jsx(ko,{control:xe.control,name:"image",render:()=>R.jsxs(Do,{children:[R.jsx(Oo,{children:r.AVATAR}),R.jsxs("div",{className:"flex items-center gap-4",children:[R.jsxs(vre,{children:[R.jsx(bre,{asChild:!0,children:R.jsx(oo,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:R.jsx(Cre,{isPending:J,className:"size-16",user:L?{name:xe.watch("name"),email:xe.watch("email"),image:L}:null,localization:r})})}),R.jsxs(yre,{align:"start",onCloseAutoFocus:De=>De.preventDefault(),children:[R.jsxs(jD,{onClick:$e,disabled:J,children:[R.jsx(bZ,{}),r.UPLOAD_AVATAR]}),L&&R.jsxs(jD,{onClick:nt,disabled:J,variant:"destructive",children:[R.jsx(EZ,{}),r.DELETE_AVATAR]})]})]}),R.jsxs(oo,{type:"button",variant:"outline",onClick:$e,disabled:J,children:[J&&R.jsx(kn,{className:"animate-spin"}),r.UPLOAD]})]}),R.jsx(Yo,{})]})})]}),H?.includes("name")&&R.jsx(ko,{control:xe.control,name:"name",render:({field:De})=>R.jsxs(Do,{children:[R.jsxs(Oo,{className:t?.label,children:[r.NAME,!O&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"name",className:t?.input,placeholder:r.NAME_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),le&&R.jsx(ko,{control:xe.control,name:"username",render:({field:De})=>R.jsxs(Do,{children:[R.jsxs(Oo,{className:t?.label,children:[r.USERNAME,!Q&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"username",className:t?.input,placeholder:r.USERNAME_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:xe.control,name:"email",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"email",className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:xe.control,name:"password",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),te&&R.jsx(ko,{control:xe.control,name:"confirmPassword",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.CONFIRM_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:r.CONFIRM_PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),H?.filter(De=>De!=="name"&&De!=="image").map(De=>{const ke=w?.[De];return ke?ke.type==="boolean"?R.jsx(ko,{control:xe.control,name:De,render:({field:Ue})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:Ue.value,onCheckedChange:Ue.onChange,disabled:n})}),R.jsx(Oo,{className:t?.label,children:ke.label}),R.jsx(Yo,{className:t?.error})]})},De):R.jsx(ko,{control:xe.control,name:De,render:({field:Ue})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:ke.label}),R.jsx(Vo,{children:ke.type==="number"?R.jsx(na,{className:t?.input,type:"number",placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value}):ke.multiline?R.jsx(Ere,{className:t?.input,placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value}):R.jsx(na,{className:t?.input,type:"text",placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value})}),R.jsx(Yo,{className:t?.error})]})},De):(console.error(`Additional field ${De} not found`),null)}),R.jsx(Lm,{ref:S,localization:r,action:"/sign-up/email"}),R.jsx(oo,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.SIGN_UP_ACTION})]})})}function lae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l}){var c;const d=gi(),m=d?yl("totpURI"):null,h=D.useRef(!1),{authClient:f,basePath:g,hooks:{useSession:v},localization:y,twoFactor:S,viewPaths:E,toast:_,Link:w,localizeErrors:P}=D.useContext(vt);n={...y,...n};const{onSuccess:x,isPending:T}=Oa({redirectTo:i}),{data:A}=v(),k=(c=A?.user)==null?void 0:c.twoFactorEnabled,[O,N]=D.useState(S?.length===1?S[0]:null),[$,F]=D.useState(!1),[U,j]=D.useState(0),K=Ae({code:Y().min(1,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_REQUIRED}`}).min(6,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_INVALID}`}),trustDevice:Vt().optional()}),ae=Ra({resolver:Aa(K),defaultValues:{code:""}});o=o||ae.formState.isSubmitting||T,D.useEffect(()=>{l?.(ae.formState.isSubmitting||T)},[ae.formState.isSubmitting,T,l]),D.useEffect(()=>{O==="otp"&&U<=0&&!h.current&&(h.current=!0,V())},[O]),D.useEffect(()=>{if(U<=0)return;const te=setTimeout(()=>{j(le=>le-1)},1e3);return()=>clearTimeout(te)},[U]);const V=async()=>{if(!($||U>0)){try{F(!0),await f.twoFactor.sendOtp({fetchOptions:{throw:!0}}),j(60)}catch(te){_({variant:"error",message:Mo({error:te,localization:n,localizeErrors:P})}),te.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}h.current=!1,F(!1)}};async function Z({code:te,trustDevice:le}){try{await(O==="totp"?f.twoFactor.verifyTotp:f.twoFactor.verifyOtp)({code:te,trustDevice:le,fetchOptions:{throw:!0}}),await x(),A&&!k&&_({variant:"success",message:n?.TWO_FACTOR_ENABLED})}catch(Q){_({variant:"error",message:Mo({error:Q,localization:n,localizeErrors:P})}),ae.reset()}}return R.jsx(Da,{...ae,children:R.jsxs("form",{method:"POST",onSubmit:ae.handleSubmit(Z),className:Te("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&m&&O==="totp"&&R.jsxs("div",{className:"space-y-3",children:[R.jsx(T3,{className:t?.label,children:n.TWO_FACTOR_TOTP_LABEL}),R.jsx(sre,{className:Te("border shadow-xs",t?.qrCode),value:m})]}),O!==null&&R.jsxs(R.Fragment,{children:[R.jsx(ko,{control:ae.control,name:"code",render:({field:te})=>R.jsxs(Do,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Oo,{className:t?.label,children:n.ONE_TIME_PASSWORD}),R.jsx(w,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${E.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:n.FORGOT_AUTHENTICATOR})]}),R.jsx(Vo,{children:R.jsx(sE,{...te,maxLength:6,onChange:le=>{te.onChange(le),le.length===6&&ae.handleSubmit(Z)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:ae.control,name:"trustDevice",render:({field:te})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:te.value,onCheckedChange:te.onChange,disabled:o,className:t?.checkbox})}),R.jsx(Oo,{className:t?.label,children:n.TRUST_DEVICE})]})})]}),R.jsxs("div",{className:"grid gap-4",children:[O!==null&&R.jsxs(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.TWO_FACTOR_ACTION]}),O==="otp"&&S?.includes("otp")&&R.jsxs(oo,{type:"button",variant:"outline",onClick:V,disabled:U>0||$||o,className:Te(t?.button,t?.outlineButton),children:[$?R.jsx(kn,{className:"animate-spin"}):R.jsx(Sk,{className:t?.icon}),n.RESEND_CODE,U>0&&` (${U})`]}),O!=="otp"&&S?.includes("otp")&&R.jsxs(oo,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>N("otp"),disabled:o,children:[R.jsx(Sk,{className:t?.icon}),n.SEND_VERIFICATION_CODE]}),O!=="totp"&&S?.includes("totp")&&R.jsxs(oo,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>N("totp"),disabled:o,children:[R.jsx(wZ,{className:t?.icon}),n.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function M3({redirectTo:e}){const t=D.useRef(!1),{authClient:o,basePath:n,viewPaths:r}=D.useContext(vt),{onSuccess:i}=Oa({redirectTo:e||`${n}/${r.SIGN_IN}`});return D.useEffect(()=>{t.current||(t.current=!0,o.signOut().finally(i))},[o,i]),R.jsx(kn,{className:"animate-spin"})}function cae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,pathname:i,redirectTo:l,view:c,otpSeparators:d=0,setIsSubmitting:m}){const{basePath:h,credentials:f,localization:g,magicLink:v,emailOTP:y,signUp:S,twoFactor:E,viewPaths:_,replace:w}=D.useContext(vt),P=!!S;if(r={...g,...r},D.useEffect(()=>{i&&!S_(_,i)&&(console.error(`Invalid auth view: ${i}`),w(`${h}/${_.SIGN_IN}${window.location.search}`))},[i,_,h,w]),c=c||S_(_,i)||"SIGN_IN",D.useEffect(()=>{let x=!1;c==="MAGIC_LINK"&&(!v||!f&&!y)&&(x=!0),c==="EMAIL_OTP"&&(!y||!f&&!v)&&(x=!0),c==="SIGN_UP"&&!P&&(x=!0),!f&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&(x=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&!E&&(x=!0),x&&w(`${h}/${_.SIGN_IN}${window.location.search}`)},[h,c,_,f,w,y,P,v,E]),c==="SIGN_OUT")return R.jsx(M3,{redirectTo:l});if(c==="CALLBACK")return R.jsx(I3,{redirectTo:l});if(c==="SIGN_IN")return f?R.jsx(iae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m,callbackURL:o}):v?R.jsx($D,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):y?R.jsx(UD,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):null;if(c==="TWO_FACTOR")return R.jsx(lae,{className:e,classNames:t,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="RECOVER_ACCOUNT")return R.jsx(rae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="MAGIC_LINK")return R.jsx($D,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_OTP")return R.jsx(UD,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_VERIFICATION")return R.jsx(oae,{className:e,classNames:t,callbackURL:o,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="FORGOT_PASSWORD")return R.jsx(nae,{className:e,classNames:t,localization:r,isSubmitting:n,setIsSubmitting:m});if(c==="RESET_PASSWORD")return R.jsx(aae,{className:e,classNames:t,localization:r});if(c==="SIGN_UP")return P&&R.jsx(sae,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m})}function uae({className:e,classNames:t,localization:o}){const{localization:n,redirectTo:r,replace:i,toast:l}=D.useContext(vt),c=D.useMemo(()=>({...n,...o}),[n,o]),{data:d}=mre(),[m,h]=D.useState(null);return D.useEffect(()=>{const f=yl("invitationId");if(!f){l({variant:"error",message:c.INVITATION_NOT_FOUND}),i(r);return}h(f)},[c.INVITATION_NOT_FOUND,l,i,r]),!d||!m?R.jsx(L3,{className:e,classNames:t}):R.jsx(dae,{className:e,classNames:t,localization:c,invitationId:m})}function dae({className:e,classNames:t,localization:o,invitationId:n}){var r;const{authClient:i,hooks:{useInvitation:l},localization:c,organization:d,redirectTo:m,replace:h,toast:f,localizeErrors:g}=D.useContext(vt),v=D.useMemo(()=>({...c,...o}),[c,o]),[y,S]=D.useState(!1),[E,_]=D.useState(!1),w=y||E,{data:P,isPending:x}=l({query:{id:n}}),T=D.useCallback(()=>yl("redirectTo")||m,[m]);D.useEffect(()=>{if(!(x||!n)){if(!P){f({variant:"error",message:v.INVITATION_NOT_FOUND}),h(m);return}(P.status!=="pending"||new Date(P.expiresAt)<new Date)&&(f({variant:"error",message:new Date(P.expiresAt)<new Date?v.INVITATION_EXPIRED:v.INVITATION_NOT_FOUND}),h(m))}},[P,x,n,v,f,h,m]);const A=async()=>{_(!0);try{await i.organization.acceptInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_ACCEPTED||"Invitation accepted"}),h(T())}catch(F){f({variant:"error",message:Mo({error:F,localization:v,localizeErrors:g})}),_(!1)}},k=async()=>{S(!0);try{await i.organization.rejectInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_REJECTED}),h(m)}catch(F){f({variant:"error",message:Mo({error:F,localization:v,localizeErrors:g})}),S(!1)}},$=((r=[...[{role:"owner",label:v.OWNER},{role:"admin",label:v.ADMIN},{role:"member",label:v.MEMBER}],...d?.customRoles||[]].find(F=>F.role===P?.role))==null?void 0:r.label)||P?.role;return P?R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsxs(nE,{className:Te("justify-items-center text-center",t?.header),children:[R.jsx(E3,{className:Te("text-lg md:text-xl",t?.title),children:v.ACCEPT_INVITATION}),R.jsx(x3,{className:Te("text-xs md:text-sm",t?.description),children:v.ACCEPT_INVITATION_DESCRIPTION})]}),R.jsxs(rE,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(sm,{className:Te("flex-row items-center p-4"),children:[R.jsx(O3,{organization:{id:P.organizationId,name:P.organizationName,slug:P.organizationSlug,logo:P.organizationLogo,createdAt:new Date},localization:v}),R.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:$})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsxs(oo,{variant:"outline",className:Te(t?.button,t?.outlineButton),onClick:k,disabled:w,children:[y?R.jsx(kn,{className:"animate-spin"}):R.jsx(TZ,{}),v.REJECT]}),R.jsxs(oo,{className:Te(t?.button,t?.primaryButton),onClick:A,disabled:w,children:[E?R.jsx(kn,{className:"animate-spin"}):R.jsx(hL,{}),v.ACCEPT]})]})]})]}):R.jsx(L3,{className:e,classNames:t})}var L3=({className:e,classNames:t,localization:o})=>R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsxs(nE,{className:Te("justify-items-center",t?.header),children:[R.jsx(ii,{className:Te("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),R.jsx(ii,{className:Te("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),R.jsxs(rE,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(sm,{className:Te("flex-row items-center p-4"),children:[R.jsx(O3,{isPending:!0,localization:o}),R.jsx(ii,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsx(ii,{className:"h-9 w-full"}),R.jsx(ii,{className:"h-9 w-full"})]})]})]});function qD({className:e,orientation:t="horizontal",decorative:o=!0,...n}){return R.jsx(dre,{"data-slot":"separator",decorative:o,orientation:t,className:Te("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function mae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h}=D.useContext(vt);return R.jsxs(oo,{className:Te("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[n==="EMAIL_OTP"?R.jsx(pL,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(gL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="EMAIL_OTP"?o.PASSWORD:o.EMAIL_OTP]})}function fae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h,credentials:f}=D.useContext(vt);return R.jsxs(oo,{className:Te("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="MAGIC_LINK"||!f?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[n==="MAGIC_LINK"?R.jsx(pL,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(gL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="MAGIC_LINK"?o.PASSWORD:o.MAGIC_LINK]})}function hae({localization:e,redirectTo:t}){const{authClient:o,localization:n,toast:r,localizeErrors:i}=D.useContext(vt),l=D.useRef(!1);e=D.useMemo(()=>({...n,...e}),[n,e]);const{onSuccess:c}=Oa({redirectTo:t});return D.useEffect(()=>{if(!l.current){l.current=!0;try{o.oneTap({fetchOptions:{throw:!0,onSuccess:c}})}catch(d){r({variant:"error",message:Mo({error:d,localization:e,localizeErrors:i})})}}},[o,e,i,c,r]),null}function pae({classNames:e,isSubmitting:t,localization:o,redirectTo:n,setIsSubmitting:r}){var i,l;const{authClient:c,localization:d,toast:m,localizeErrors:h}=D.useContext(vt);o={...d,...o};const{onSuccess:f}=Oa({redirectTo:n}),g=async()=>{r?.(!0);try{const v=await c.signIn.passkey({fetchOptions:{throw:!0}});v?.error?(m({variant:"error",message:Mo({error:v.error,localization:o,localizeErrors:h})}),r?.(!1)):f()}catch(v){m({variant:"error",message:Mo({error:v,localization:o,localizeErrors:h})}),r?.(!1)}};return R.jsxs(oo,{className:Te("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[R.jsx(_Z,{}),o.SIGN_IN_WITH," ",o.PASSKEY]})}function VD({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,other:i,provider:l,redirectTo:c,socialLayout:d,setIsSubmitting:m}){var h,f,g,v;const{authClient:y,basePath:S,baseURL:E,persistClient:_,redirectTo:w,viewPaths:P,social:x,genericOAuth:T,toast:A,localizeErrors:k}=D.useContext(vt),O=D.useCallback(()=>c||yl("redirectTo")||w,[c,w]),N=D.useCallback(()=>`${E}${o||(_?`${S}/${P.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[o,_,S,P,E,O]),$=async()=>{m(!0);try{if(i){const F={providerId:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};T?.signIn?(await T.signIn(F),setTimeout(()=>{m(!1)},1e4)):await y.signIn.oauth2(F)}else{const F={provider:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};x?.signIn?(await x.signIn(F),setTimeout(()=>{m(!1)},1e4)):await y.signIn.social(F)}}catch(F){A({variant:"error",message:Mo({error:F,localization:r,localizeErrors:k})}),m(!1)}};return R.jsxs(oo,{className:Te(d==="vertical"?"w-full":"grow",e,(h=t?.form)==null?void 0:h.button,(f=t?.form)==null?void 0:f.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:n,variant:"outline",onClick:$,children:[l.icon&&R.jsx(l.icon,{className:(v=t?.form)==null?void 0:v.icon}),d==="grid"&&l.name,d==="vertical"&&`${r.SIGN_IN_WITH} ${l.name}`]})}function Jde({className:e,classNames:t,callbackURL:o,cardHeader:n,cardFooter:r,localization:i,path:l,pathname:c,redirectTo:d,socialLayout:m="auto",view:h,otpSeparators:f=0}){var g,v,y,S,E,_;const w=gi(),{basePath:P,credentials:x,localization:T,magicLink:A,emailOTP:k,oneTap:O,passkey:N,signUp:$,social:F,genericOAuth:U,viewPaths:j,Link:K}=D.useContext(vt);i={...T,...i};let ae=m;ae==="auto"&&(ae=x&&F?.providers&&F.providers.length>2?"horizontal":"vertical");const V=l??c?.split("/").pop(),Z=h||S_(j,V)||"SIGN_IN",[te,le]=D.useState(!1);if(D.useEffect(()=>{const M=()=>le(!1);return window.addEventListener("pagehide",M),()=>{le(!1),window.removeEventListener("pagehide",M)}},[]),Z==="CALLBACK")return R.jsx(I3,{redirectTo:d});if(Z==="SIGN_OUT")return R.jsx(M3,{redirectTo:d});if(Z==="ACCEPT_INVITATION")return R.jsx(uae,{className:e,classNames:t});const Q=!x&&!A&&!k?i.DISABLED_CREDENTIALS_DESCRIPTION:i[`${Z}_DESCRIPTION`];return R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsx(nE,{className:t?.header,children:n||R.jsxs(R.Fragment,{children:[R.jsx(E3,{className:Te("text-lg md:text-xl",t?.title),children:i[Z]}),Q&&R.jsx(x3,{className:Te("text-xs md:text-sm",t?.description),children:Q})]})}),R.jsxs(rE,{className:Te("grid gap-6",t?.content),children:[O&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(Z)&&R.jsx(hae,{localization:i,redirectTo:d}),(x||A||k)&&R.jsxs("div",{className:"grid gap-4",children:[R.jsx(cae,{classNames:t?.form,callbackURL:o,isSubmitting:te,localization:i,otpSeparators:f,view:Z,redirectTo:d,setIsSubmitting:le}),A&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||k&&Z==="EMAIL_OTP")&&R.jsx(fae,{classNames:t,localization:i,view:Z,isSubmitting:te}),k&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||A&&["SIGN_IN","MAGIC_LINK"].includes(Z))&&R.jsx(mae,{classNames:t,localization:i,view:Z,isSubmitting:te})]}),Z!=="RESET_PASSWORD"&&Z!=="EMAIL_VERIFICATION"&&(((g=F?.providers)==null?void 0:g.length)||((v=U?.providers)==null?void 0:v.length)||Z==="SIGN_IN"&&N)&&R.jsxs(R.Fragment,{children:[(x||A||k)&&R.jsxs("div",{className:Te("flex items-center gap-2",t?.continueWith),children:[R.jsx(qD,{className:Te("!w-auto grow",t?.separator)}),R.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:i.OR_CONTINUE_WITH}),R.jsx(qD,{className:Te("!w-auto grow",t?.separator)})]}),R.jsxs("div",{className:"grid gap-4",children:[(((y=F?.providers)==null?void 0:y.length)||((S=U?.providers)==null?void 0:S.length))&&R.jsxs("div",{className:Te("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(E=F?.providers)==null?void 0:E.map(M=>{const H=Wre.find(q=>q.provider===M);return H?R.jsx(VD,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:H,redirectTo:d,setIsSubmitting:le,socialLayout:ae},M):null}),(_=U?.providers)==null?void 0:_.map(M=>R.jsx(VD,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:M,redirectTo:d,setIsSubmitting:le,socialLayout:ae,other:!0},M.provider))]}),N&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(Z)&&R.jsx(pae,{classNames:t,isSubmitting:te,localization:i,redirectTo:d,setIsSubmitting:le})]})]})]}),r&&R.jsx(zD,{className:t?.footer,children:r}),x&&$&&R.jsxs(zD,{className:Te("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.DONT_HAVE_AN_ACCOUNT:Z==="SIGN_UP"?i.ALREADY_HAVE_AN_ACCOUNT:R.jsx(gZ,{className:"size-3"}),Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"||Z==="SIGN_UP"?R.jsx(K,{className:Te("text-foreground underline",t?.footerLink),href:`${P}/${j[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${w?window.location.search:""}`,children:R.jsx(oo,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),children:Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.SIGN_UP:i.SIGN_IN})}):R.jsx(oo,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:i.GO_BACK})]})]})}function Xde({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{isPending:o}=t();return o?e:null}function eme({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{data:o}=t();return o?e:null}function tme({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{data:o,isPending:n}=t();return!o&&!n?e:null}function gae(e){const t=eo.c(8),{children:o}=e,n=Cm();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={basePath:"/",pathMode:"slug"},t[0]=r):r=t[0];let i,l;t[1]!==n?(i=d=>n({to:d}),l=d=>n({to:d,replace:!0}),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c;return t[4]!==o||t[5]!==i||t[6]!==l?(c=R.jsx(mZ,{authClient:ov,redirectTo:"/",organization:r,navigate:i,replace:l,Link:vae,children:o}),t[4]=o,t[5]=i,t[6]=l,t[7]=c):c=t[7],c}function vae(e){const{href:t,className:o,children:n,...r}=e;return R.jsx(wm,{to:t,className:o,...r,children:n})}var pe=typeof window<"u"?window:void 0,Jo=typeof globalThis<"u"?globalThis:pe;typeof self>"u"&&(Jo.self=Jo),typeof File>"u"&&(Jo.File=function(){});var vr=Jo?.navigator,Ne=Jo?.document,hn=Jo?.location,V_=Jo?.fetch,H_=Jo!=null&&Jo.XMLHttpRequest&&"withCredentials"in new Jo.XMLHttpRequest?Jo.XMLHttpRequest:void 0,HD=Jo?.AbortController,bae=Jo?.CompressionStream,Qn=vr?.userAgent,Ze=pe??{},GD="1.372.3",Bn={DEBUG:!1,LIB_VERSION:GD,LIB_NAME:"web",JS_SDK_VERSION:GD};function KD(e,t,o,n,r,i,l){try{var c=e[i](l),d=c.value}catch(m){return void o(m)}c.done?t(d):Promise.resolve(d).then(n,r)}function Nr(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function l(d){KD(i,n,r,l,c,"next",d)}function c(d){KD(i,n,r,l,c,"throw",d)}l(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Oe.apply(null,arguments)}function N3(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function G_(){return G_=Nr((function*(e,t,o){t===void 0&&(t=!0);try{var n=new CompressionStream("gzip"),r=n.writable.getWriter(),i=r.write(new TextEncoder().encode(e)).then((()=>r.close())).catch((function(){var d=Nr((function*(m){try{yield r.abort(m)}catch{}throw m}));return function(m){return d.apply(this,arguments)}})()),l=new Response(n.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),G_.apply(this,arguments)}var yae=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],WD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return yae.concat(t).some((n=>{var r=n.toLowerCase();return o.indexOf(r)!==-1}))},Sae=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Ct(e,t){return e.indexOf(t)!==-1}var vv=function(e){return e.trim()},K_=function(e){return e.replace(/^\$/,"")},F3=Object.prototype,B3=F3.hasOwnProperty,bv=F3.toString,Dt=Array.isArray||function(e){return bv.call(e)==="[object Array]"},ai=e=>typeof e=="function",Ao=e=>e===Object(e)&&!Dt(e),Ic=e=>{if(Ao(e)){for(var t in e)if(B3.call(e,t))return!1;return!0}return!1},ze=e=>e===void 0,bo=e=>bv.call(e)=="[object String]",Dp=e=>bo(e)&&e.trim().length===0,yi=e=>e===null,wt=e=>ze(e)||yi(e),Ur=e=>bv.call(e)=="[object Number]"&&e==e,xc=e=>Ur(e)&&e>0,xa=e=>bv.call(e)==="[object Boolean]",_ae=e=>e instanceof FormData,Cae=e=>Ct(Sae,e);function z3(e){return e===null||typeof e!="object"}function fg(e,t){return{}.toString.call(e)==="[object "+t+"]"}function cE(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var wae=[!0,"true",1,"1","yes"],mS=e=>Ct(wae,e),Eae=[!1,"false",0,"0","no"];function Ta(e,t,o,n,r){return t>o&&(n.warn("min cannot be greater than max."),t=o),Ur(e)?e>o?(n.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+r),Ta(r||o,t,o,n))}class xae{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Ta(t.bucketSize,0,100,t.Gt),this.Wt=Ta(t.refillRate,0,this.Ut,t.Gt),this.Xt=Ta(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var n=Math.floor((o-t.lastAccess)/this.Xt);n>0&&(t.tokens=Math.min(t.tokens+n*this.Wt,this.Ut),t.lastAccess=t.lastAccess+n*this.Xt)}consumeRateLimit(t){var o,n=Date.now(),r=String(t),i=this.$t[r];return i?this.Jt(i,n):this.$t[r]=i={tokens:this.Ut,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}}var up,YD,fS,yr="Mobile",hg="iOS",ci="Android",Xc="Tablet",j3=ci+" "+Xc,U3="iPad",$3="Apple",q3=$3+" Watch",Ud="Safari",eu="BlackBerry",V3="Samsung",H3=V3+"Browser",G3=V3+" Internet",ul="Chrome",Tae=ul+" OS",K3=ul+" "+hg,uE="Internet Explorer",W3=uE+" "+yr,dE="Opera",Pae=dE+" Mini",mE="Edge",Y3="Microsoft "+mE,Vc="Firefox",Z3=Vc+" "+hg,cm="Nintendo",um="PlayStation",Hc="Xbox",Q3=ci+" "+yr,J3=yr+" "+Ud,kd="Windows",W_=kd+" Phone",ZD="Nokia",Y_="Ouya",X3="Generic",Rae=X3+" "+yr.toLowerCase(),eB=X3+" "+Xc.toLowerCase(),Z_="Konqueror",Fn="(\\d+(\\.\\d+)?)",hS=new RegExp("Version/"+Fn),Aae=new RegExp(Hc,"i"),kae=new RegExp(um+" \\w+","i"),Dae=new RegExp(cm+" \\w+","i"),fE=new RegExp(eu+"|PlayBook|BB10","i"),Oae={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tB=function(e,t){return t=t||"",Ct(e," OPR/")&&Ct(e,"Mini")?Pae:Ct(e," OPR/")?dE:fE.test(e)?eu:Ct(e,"IE"+yr)||Ct(e,"WPDesktop")?W3:Ct(e,H3)?G3:Ct(e,mE)||Ct(e,"Edg/")?Y3:Ct(e,"FBIOS")?"Facebook "+yr:Ct(e,"UCWEB")||Ct(e,"UCBrowser")?"UC Browser":Ct(e,"CriOS")?K3:Ct(e,"CrMo")||Ct(e,ul)?ul:Ct(e,ci)&&Ct(e,Ud)?Q3:Ct(e,"FxiOS")?Z3:Ct(e.toLowerCase(),Z_.toLowerCase())?Z_:((o,n)=>n&&Ct(n,$3)||(function(r){return Ct(r,Ud)&&!Ct(r,ul)&&!Ct(r,ci)})(o))(e,t)?Ct(e,yr)?J3:Ud:Ct(e,Vc)?Vc:Ct(e,"MSIE")||Ct(e,"Trident/")?uE:Ct(e,"Gecko")?Vc:""},Iae={[W3]:[new RegExp("rv:"+Fn)],[Y3]:[new RegExp(mE+"?\\/"+Fn)],[ul]:[new RegExp("("+ul+"|CrMo)\\/"+Fn)],[K3]:[new RegExp("CriOS\\/"+Fn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Fn)],[Ud]:[hS],[J3]:[hS],[dE]:[new RegExp("(Opera|OPR)\\/"+Fn)],[Vc]:[new RegExp(Vc+"\\/"+Fn)],[Z3]:[new RegExp("FxiOS\\/"+Fn)],[Z_]:[new RegExp("Konqueror[:/]?"+Fn,"i")],[eu]:[new RegExp(eu+" "+Fn),hS],[Q3]:[new RegExp("android\\s"+Fn,"i")],[G3]:[new RegExp(H3+"\\/"+Fn)],[uE]:[new RegExp("(rv:|MSIE )"+Fn)],Mozilla:[new RegExp("rv:"+Fn)]},Mae=function(e,t){var o=tB(e,t),n=Iae[o];if(ze(n))return null;for(var r=0;n.length>r;r++){var i=e.match(n[r]);if(i)return parseFloat(i[i.length-2])}return null},QD=[[new RegExp(Hc+"; "+Hc+" (.*?)[);]","i"),e=>[Hc,e&&e[1]||""]],[new RegExp(cm,"i"),[cm,""]],[new RegExp(um,"i"),[um,""]],[fE,[eu,""]],[new RegExp(kd,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[W_,""];if(new RegExp(yr).test(t)&&!/IEMobile\b/.test(t))return[kd+" "+yr,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var n=Oae[o[1]]||"";return/arm/i.test(t)&&(n="RT"),[kd,n]}return[kd,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[hg,[e[3],e[4],e[5]||"0"].join(".")]:[hg,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ze(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ci+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ci+")","i"),e=>e&&e[2]?[ci,[e[2],e[3],e[4]||"0"].join(".")]:[ci,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Tae,""]],[/Linux|debian/i,["Linux",""]]],JD=function(e){return Dae.test(e)?cm:kae.test(e)?um:Aae.test(e)?Hc:new RegExp(Y_,"i").test(e)?Y_:new RegExp("("+W_+"|WPDesktop)","i").test(e)?W_:/iPad/.test(e)?U3:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?q3:fE.test(e)?eu:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(ZD,"i").test(e)?ZD:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(yr).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ci:j3:new RegExp("(pda|"+yr+")","i").test(e)?Rae:new RegExp(Xc,"i").test(e)&&!new RegExp(Xc+" pc","i").test(e)?eB:""},Lae=e=>e instanceof Error,oB={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Nae=oB.info;function nB(e){if(xa(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Dt(e))return{arrayValue:{values:e.map((t=>nB(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function XD(e){var t=[];for(var o in e){var n=e[o];yi(n)||ze(n)||t.push({key:o,value:nB(n)})}return t}function Fae(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return fS&&o.length===YD||(YD=o.length,fS=o.reduce(((n,r)=>{up||(up={});var i=up[r];if(i)n[i[0]]=i[1];else for(var l=e(r),c=l.length-1;c>=0;c--){var d=l[c],m=d?.filename,h=t[r];if(m&&h){n[m]=h,up[r]=[m,h];break}}return n}),{})),fS}}class Bae{constructor(t,o,n){n===void 0&&(n=[]),this.coercers=t,this.stackParser=o,this.modifiers=n}buildFromUnknown(t,o){o===void 0&&(o={});var n=o&&o.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(l,n),$exception_level:"error"}}modifyFrames(t){var o=this;return Nr((function*(){for(var n of t)n.stacktrace&&n.stacktrace.frames&&Dt(n.stacktrace.frames)&&(n.stacktrace.frames=yield o.applyModifiers(n.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var n,r;return t.cause!=null&&(n=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(r=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Oe({},t,{cause:n,stack:r})}applyChunkIds(t,o){return t.map((n=>(n.filename&&o&&(n.chunk_id=o[n.filename]),n)))}applyCoercers(t,o){for(var n of this.coercers)if(n.match(t))return n.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Nr((function*(){var n=t;for(var r of o.modifiers)n=yield r(n);return n}))()}convertToExceptionList(t,o){var n,r,i,l={type:t.type,value:t.value,mechanism:{type:(n=o.type)!==null&&n!==void 0?n:"generic",handled:(r=o.handled)===null||r===void 0||r,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Oe({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:Fae(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,n){n===void 0&&(n=0);var r=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Oe({},o,{syntheticException:n==0?o.syntheticException:void 0,mechanism:t,apply:i=>r(i,n),next:i=>r(i,n+1)})}}var tu="?";function Q_(e,t,o,n,r){var i={platform:e,filename:t,function:o==="<anonymous>"?tu:o,in_app:!0};return ze(n)||(i.lineno=n),ze(r)||(i.colno=r),i}var rB=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:tu,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},zae=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,jae=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Uae=/\((\S*)(?::(\d+))(?::(\d+))\)/,$ae=(e,t)=>{var o=zae.exec(e);if(o){var[,n,r,i]=o;return Q_(t,n,tu,+r,+i)}var l=jae.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=Uae.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,m]=rB(l[1]||tu,l[2]);return Q_(t,m,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},qae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Vae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hae=(e,t)=>{var o=qae.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var n=Vae.exec(o[3]);n&&(o[1]=o[1]||"eval",o[3]=n[1],o[4]=n[2],o[5]="")}var r=o[3],i=o[1]||tu;return[i,r]=rB(i,r),Q_(t,r,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},eO=/\(error: (.*)\)/;class Gae{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var n=bo(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return fg(t,"DOMException")}isDOMError(t){return fg(t,"DOMError")}}class Kae{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var n=t.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(t){return t.stacktrace||t.stack||void 0}}class Wae{constructor(){}match(t){return fg(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var n;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var Yae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Zae{match(t){return typeof t=="string"}coerce(t,o){var n,[r,i]=this.getInfos(t);return{type:r??"Error",value:i??t,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var o="Error",n=t,r=t.match(Yae);return r&&(o=r[1],n=r[2]),[o,n]}}var Qae=["fatal","error","warning","log","info","debug"];function aB(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var n=o.length;n>0;n--){var r=o.slice(0,n).join(", ");if(t>=r.length)return n===o.length?r:r.length>t?r.slice(0,t)+"...":r}return""}class Jae{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var n,r=this.getErrorPropertyFromObject(t);return r?o.apply(r):{type:this.getType(t),value:this.getValue(t),stack:(n=o.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return cE(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+aB(t)}isSeverityLevel(t){return bo(t)&&!Dp(t)&&Qae.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var n=t[o];if(Lae(n))return n}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}}class Xae{match(t){return cE(t)}coerce(t,o){var n,r=t.constructor.name;return{type:r,value:r+" captured as exception with keys: "+aB(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class eie{match(t){return z3(t)}coerce(t,o){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class tie{match(t){return fg(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!cE(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var n,r=this.getUnhandledRejectionReason(t);return z3(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}:o.apply(r)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var pg="$message",gg="$timestamp",oie=new Set([pg,gg]),pS={enabled:!0,max_bytes:32768};function vg(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:pS.enabled,max_bytes:rie(e.max_bytes,pS.max_bytes)}:Oe({},pS)}class nie{constructor(t){this.Kt=[],this.Qt=0,this.Bt=vg(t)}setConfig(t){this.Bt=vg(t),this.er()}add(t){var o=(function(r){var i=(function(h){var f=new WeakSet;try{return JSON.stringify(h,((g,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(f.has(v))return"[Circular]";f.add(v)}return v}}))}catch{return}})(r);if(i)try{var l=JSON.parse(i);if(!Ao(l))return;var c=l,d=c[pg],m=c[gg];return!bo(d)||d.trim().length===0||!bo(m)&&!Ur(m)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var n=(function(r){if(typeof TextEncoder<"u")return new TextEncoder().encode(r).length;for(var i=encodeURIComponent(r),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);n>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:n}),this.Qt+=n,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}}function rie(e,t){if(!Ur(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var iB=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,n={C(r){if(pe&&(Bn.DEBUG||Ze.POSTHOG_DEBUG||o)&&!ze(pe.console)&&pe.console){for(var i=("__rrweb_original__"in pe.console[r])?pe.console[r].__rrweb_original__:pe.console[r],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];i(e,...c)}},info(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("log",...i)},warn(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("warn",...i)},error(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("error",...i)},critical(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(r){n.error("You must initialize PostHog before calling "+r)},createLogger:(r,i)=>iB(e+" "+r,i)};return n},Fe=iB("[PostHog.js]"),ho=Fe.createLogger,aie=ho("[ExternalScriptsLoader]"),gS=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return aie.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var n=Ne?.querySelectorAll("script");if(n){for(var r,i=function(){if(n[l].src===t){var d=n[l];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(m=>{d.__posthog_loading_callback_fired=!0,o(void 0,m)})),d.onerror=m=>o(m),{v:void 0})}},l=0;n.length>l;l++)if(r=i())return r.v}var c=()=>{if(!Ne)return o("document not found");var d=Ne.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=f=>{d.__posthog_loading_callback_fired=!0,o(void 0,f)},d.onerror=f=>o(f),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Ne.head.appendChild(d);else{var m,h=Ne.querySelectorAll("body > script");h.length>0?(m=h[0].parentNode)==null||m.insertBefore(d,h[0]):Ne.body.appendChild(d)}};Ne!=null&&Ne.body?c():Ne?.addEventListener("DOMContentLoaded",c)};Ze.__PosthogExtensions__=Ze.__PosthogExtensions__||{},Ze.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var n;if(e.config.__preview_external_dependency_versioned_paths)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var r="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}n=e.requestRouter.endpointFor("assets",r)}gS(e,n,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");gS(e,l,o)}},Ze.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var n=e.requestRouter.endpointFor("api",t);gS(e,n,o)};var sB="$people_distinct_id",bg="$device_id",Dd="__alias",Od="__timers",J_="$autocapture_disabled_server_side",X_="$heatmaps_enabled_server_side",eC="$exception_capture_enabled_server_side",tC="$error_tracking_suppression_rules",oC="$error_tracking_capture_extension_exceptions",nC="$web_vitals_enabled_server_side",hE="$dead_clicks_enabled_server_side",rC="$product_tours_enabled_server_side",aC="$web_vitals_allowed_metrics",Id="$session_recording_remote_config",lB="$replay_override_sampling",cB="$replay_override_linked_flag",uB="$replay_override_url_trigger",dB="$replay_override_event_trigger",yg="$sesid",pE="$session_is_sampled",Mc="$enabled_feature_flags",Op="$active_feature_flags",Md="$early_access_features",iC="$feature_flag_details",sC="$feature_flag_payloads",lC="$feature_flag_request_id",ri="$override_feature_flags",Tc="$override_feature_flag_payloads",Ld="$stored_person_properties",el="$stored_group_properties",cC="$surveys",uC="$surveys_activated",Ip="ph_product_tours",$d="$flag_call_reported",dC="$flag_call_reported_session_id",mC="$feature_flag_errors",Sg="$feature_flag_evaluated_at",ta="$user_state",fC="$client_session_props",hC="$capture_rate_limit",pC="$initial_campaign_params",gC="$initial_referrer_info",_g="$initial_person_info",Cg="$epp",mB="__POSTHOG_TOOLBAR__",dp="$posthog_cookieless",fB="$sdk_debug_extensions_init_method",hB="$sdk_debug_extensions_init_time_ms",pB="$sdk_debug_recording_script_not_loaded",gE="PostHog loadExternalDependency extension not found.",tl="on_reject",si="always",yc="anonymous",Sc="identified",vC="identified_only",wg="visibilitychange",Eg="beforeunload",Pc="$pageview",vS="$pageleave",bS="$identify",tO="$groupidentify";function mp(e,t){Dt(e)&&e.forEach(t)}function lo(e,t){if(!wt(e))if(Dt(e))e.forEach(t);else if(_ae(e))e.forEach(((n,r)=>t(n,r)));else for(var o in e)B3.call(e,o)&&t(e[o],o)}var xo=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];for(var r of o)for(var i in r)r[i]!==void 0&&(e[i]=r[i]);return e};function Mp(e){for(var t=Object.keys(e),o=t.length,n=new Array(o);o--;)n[o]=[t[o],e[t[o]]];return n}var oO=function(e){try{return e()}catch{return}},iie=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),n=0;t>n;n++)o[n]=arguments[n];return e.apply(this,o)}catch(r){Fe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Fe.critical(r)}}},vE=function(e){var t={};return lo(e,(function(o,n){(bo(o)&&o.length>0||Ur(o))&&(t[n]=o)})),t},sie=["herokuapp.com","vercel.app","netlify.app"];function lie(e){var t=e?.hostname;if(!bo(t))return!1;var o=t.split(".").slice(-2).join(".");for(var n of sie)if(o===n)return!1;return!0}function qo(e,t,o,n){var{capture:r=!1,passive:i=!0}=n??{};e?.addEventListener(t,o,{capture:r,passive:i})}function gB(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ur(e)&&isFinite(e)&&Math.floor(e)===e});class xg{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,n,r){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(n)||!Number.isInteger(r)||0>t||0>o||0>n||0>r||t>0xffffffffffff||o>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new xg(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new xg(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var n=this.bytes[o]-t.bytes[o];if(n!==0)return Math.sign(n)}return 0}}class cie{constructor(){this.I=0,this.S=0,this.k=new uie}generate(){var t=this.generateOrAbort();if(ze(t)){this.I=0;var o=this.generateOrAbort();if(ze(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return xg.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var nO,vB=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};pe&&!ze(pe.crypto)&&crypto.getRandomValues&&(vB=e=>crypto.getRandomValues(e));class uie{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(vB(this.T),this.N=0),this.T[this.N++]}}var ns=()=>die().toString(),die=()=>(nO||(nO=new cie)).generate(),vd="",mie=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,wa={R:()=>!!Ne,B(e){Fe.error("cookieStore error: "+e)},O(e){if(Ne){try{for(var t=e+"=",o=Ne.cookie.split(";").filter((i=>i.length)),n=0;o.length>n;n++){for(var r=o[n];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return decodeURIComponent(r.substring(t.length,r.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(wa.O(e))||{}}catch{}return t},M(e,t,o,n,r){if(Ne)try{var i="",l="",c=(function(h,f){if(f){var g=(function(y,S){if(S===void 0&&(S=Ne),vd)return vd;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var E=y.split("."),_=Math.min(E.length,8),w="dmn_chk_"+ns();!vd&&_--;){var P=E.slice(_).join("."),x=w+"=1;domain=."+P+";path=/";S.cookie=x+";max-age=3",S.cookie.includes(w)&&(S.cookie=x+";max-age=0",vd=P)}return vd})(h);if(!g){var v=(y=>{var S=y.match(mie);return S?S[0]:""})(h);v!==g&&Fe.info("Warning: cookie subdomain discovery mismatch",v,g),g=v}return g?"; domain=."+g:""}return""})(Ne.location.hostname,n);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),i="; expires="+d.toUTCString()}r&&(l="; secure");var m=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return m.length>3686.4&&Fe.warn("cookieStore warning: large cookie, len="+m.length),Ne.cookie=m,m}catch{return}},F(e,t){if(Ne!=null&&Ne.cookie)try{wa.M(e,"",-1,t)}catch{return}}},yS=null,vo={R(){if(!yi(yS))return yS;var e=!0;if(ze(pe))e=!1;else try{var t="__mplssupport__";vo.M(t,"xyz"),vo.O(t)!=='"xyz"'&&(e=!1),vo.F(t)}catch{e=!1}return e||Fe.error("localStorage unsupported; falling back to cookie store"),yS=e,e},B(e){Fe.error("localStorage error: "+e)},O(e){try{return pe?.localStorage.getItem(e)}catch(t){vo.B(t)}return null},Z(e){try{return JSON.parse(vo.O(e))||{}}catch{}return null},M(e,t){try{pe?.localStorage.setItem(e,JSON.stringify(t))}catch(o){vo.B(o)}},F(e){try{pe?.localStorage.removeItem(e)}catch(t){vo.B(t)}}},fie=[bg,"distinct_id",yg,pE,Cg,_g,ta],fp={},hie={R:()=>!0,B(e){Fe.error("memoryStorage error: "+e)},O:e=>fp[e]||null,Z:e=>fp[e]||null,M(e,t){fp[e]=t},F(e){delete fp[e]}},Qs=null,pn={R(){if(!yi(Qs))return Qs;if(Qs=!0,ze(pe))Qs=!1;else try{var e="__support__";pn.M(e,"xyz"),pn.O(e)!=='"xyz"'&&(Qs=!1),pn.F(e)}catch{Qs=!1}return Qs},B(e){Fe.error("sessionStorage error: ",e)},O(e){try{return pe?.sessionStorage.getItem(e)}catch(t){pn.B(t)}return null},Z(e){try{return JSON.parse(pn.O(e))||null}catch{}return null},M(e,t){try{pe?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){pn.B(o)}},F(e){try{pe?.sessionStorage.removeItem(e)}catch(t){pn.B(t)}}};class pie{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===si||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===tl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:n}=this._instance.config;return n||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return mS(t)?1:Ct(Eae,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?vo:wa;if(!this.ar||this.ar!==o){this.ar=o;var n=t==="localStorage"?wa:vo;n.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(mS(n.O(this.sr))),n.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[vr?.doNotTrack,vr?.msDoNotTrack,Ze.doNotTrack].some((t=>mS(t)))}}var hp=ho("[Dead Clicks]"),gie=()=>!0,vie=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(hE)),n=e.instance.config.capture_dead_clicks;return xa(n)?n:!!Ao(n)||o};class rO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,n){this.instance=t,this.isEnabled=o,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[hE]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(r=>{r?hp.error("failed to load script",r):t()}))}hr(){var t;if(Ne){if(!this.lr&&(t=Ze.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Ao(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=Ze.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Ne),hp.info("starting...")}}else hp.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,hp.info("stopping..."))}}var SS=ho("[SegmentIntegration]"),bB="posthog-js";function yB(e,t){var{organization:o,projectId:n,prefix:r,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,m,h,f,g;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],E=S.map((w=>Oe({},w,{stacktrace:w.stacktrace?Oe({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map((P=>Oe({},P,{platform:"web:javascript"})))}):void 0}))),_={$exception_message:((m=S[0])==null?void 0:m.value)||c.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:c.level,$exception_list:E,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((f=S[0])==null?void 0:f.value)||c.message,$sentry_exception_type:(g=S[0])==null?void 0:g.type,$sentry_tags:c.tags};return o&&n&&(_.$sentry_url=(r||"https://sentry.io/organizations/")+o+"/issues/?project="+n+"&query="+c.event_id),l&&((y=e.exceptions)==null||y.sendExceptionEvent(_)),c}}class bie{constructor(t,o,n,r,i,l){this.name=bB,this.setupOnce=function(c){c(yB(t,{organization:o,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class aO{constructor(t){this.cr=(o,n,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Fe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:r}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var n,r=this.gr(t,o);return this.dr={pathname:(n=pe?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),r}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var n=this.dr;if(!n)return{$pageview_id:o};var r={$pageview_id:o,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:d,maxContentHeight:m,lastContentY:h,maxContentY:f}=i;if(!(ze(l)||ze(c)||ze(d)||ze(m)||ze(h)||ze(f))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),m=Math.ceil(m),h=Math.ceil(h),f=Math.ceil(f);var g=l>1?Ta(c/l,0,1,Fe):1,v=l>1?Ta(d/l,0,1,Fe):1,y=m>1?Ta(h/m,0,1,Fe):1,S=m>1?Ta(f/m,0,1,Fe):1;r=xo(r,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:f,$prev_pageview_max_content_percentage:S})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),r}}var yie={[sB]:{exposure:"hidden"},[Dd]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Od]:{exposure:"hidden"},[J_]:{exposure:"event"},[X_]:{exposure:"hidden"},[eC]:{exposure:"event"},[tC]:{exposure:"hidden"},[oC]:{exposure:"event"},[nC]:{exposure:"event"},[hE]:{exposure:"event"},[rC]:{exposure:"hidden"},[aC]:{exposure:"event"},[Id]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[yg]:{exposure:"hidden"},[pE]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[Mc]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Ao(e))return{};for(var t={},o=Object.keys(e),n=0;o.length>n;n++)t["$feature/"+o[n]]=e[o[n]];return t}},[Op]:{exposure:"event"},[Md]:{exposure:"hidden"},[iC]:{exposure:"hidden"},[sC]:{exposure:"event"},[lC]:{exposure:"event"},[ri]:{exposure:"event"},[Tc]:{exposure:"hidden"},[Ld]:{exposure:"hidden"},[el]:{exposure:"hidden"},[cC]:{exposure:"hidden"},[uC]:{exposure:"event"},[Ip]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[$d]:{exposure:"hidden"},[dC]:{exposure:"hidden"},[mC]:{exposure:"hidden"},[Sg]:{exposure:"hidden"},[ta]:{exposure:"hidden"},[fC]:{exposure:"hidden"},[hC]:{exposure:"hidden"},[pC]:{exposure:"hidden"},[gC]:{exposure:"hidden"},[_g]:{exposure:"hidden"},[Cg]:{exposure:"hidden"},[lB]:{exposure:"event"},[cB]:{exposure:"event"},[uB]:{exposure:"event"},[dB]:{exposure:"event"},[fB]:{exposure:"event"},[hB]:{exposure:"event"},[pB]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},Sie=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Tg=e=>{var t=Ne?.createElement("a");return ze(t)?null:(t.href=e,t)},Pg=function(e,t){for(var o,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;n.length>r;r++){var i=n[r].split("=");if(i[0]===t){o=i;break}}if(!Dt(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Fe.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},dm=function(e,t,o){if(!e||!t||!t.length)return e;for(var n=e.split("#"),r=n[1],i=(n[0]||"").split("?"),l=i[1],c=i[0],d=(l||"").split("&"),m=[],h=0;d.length>h;h++){var f=d[h].split("=");Dt(f)&&(t.includes(f[0])?m.push(f[0]+"="+o):m.push(d[h]))}var g=c;return l!=null&&(g+="?"+m.join("&")),r!=null&&(g+="#"+r),g},Rg=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},pp="https?://(.*)",ou=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],_ie=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...ou],mm="<masked>",Cie=["li_fat_id"];function SB(e,t,o){if(!Ne)return{};var n,r=t?[...ou,...o||[]]:[],i=_B(dm(Ne.URL,r,mm),e),l=(n={},lo(Cie,(function(c){var d=wa.O(c);n[c]=d||null})),n);return xo(l,i)}function _B(e,t){var o=_ie.concat(t||[]),n={};return lo(o,(function(r){var i=Pg(e,r);n[r]=i||null})),n}function CB(e){var t=(function(i){return i?i.search(pp+"google.([^/?]*)")===0?"google":i.search(pp+"bing.com")===0?"bing":i.search(pp+"yahoo.com")===0?"yahoo":i.search(pp+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",n={};if(!yi(t)){n.$search_engine=t;var r=Ne?Pg(Ne.referrer,o):"";r.length&&(n.ph_keyword=r)}return n}function iO(){return navigator.language||navigator.userLanguage}var Ag="$direct";function wB(){return Ne?.referrer||Ag}function EB(e,t){var o=e?[...ou,...t||[]]:[],n=hn?.href.substring(0,1e3);return{r:wB().substring(0,1e3),u:n?dm(n,o,mm):void 0}}function xB(e){var t,{r:o,u:n}=e,r={$referrer:o,$referring_domain:o==null?void 0:o==Ag?Ag:(t=Tg(o))==null?void 0:t.host};if(n){r.$current_url=n;var i=Tg(n);r.$host=i?.host,r.$pathname=i?.pathname;var l=_B(n);xo(r,l)}if(o){var c=CB(o);xo(r,c)}return r}function TB(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function wie(){try{return new Date().getTimezoneOffset()}catch{return}}var Eie=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class _S{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Fe.info("Persistence loaded",t.persistence,Oe({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){Eie.indexOf(t.persistence.toLowerCase())===-1&&(Fe.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(r){r===void 0&&(r=[]);var i=[...fie,...r];return Oe({},vo,{Z(l){try{var c={};try{c=wa.Z(l)||{}}catch{}var d=xo(c,JSON.parse(vo.O(l)||"{}"));return vo.M(l,d),d}catch{}return null},M(l,c,d,m,h,f){try{vo.M(l,c,void 0,void 0,f);var g={};i.forEach((v=>{c[v]&&(g[v]=c[v])})),Object.keys(g).length&&wa.M(l,g,d,m,h,f)}catch(v){vo.B(v)}},F(l,c){try{pe?.localStorage.removeItem(l),wa.F(l,c)}catch(d){vo.B(d)}}})})(t.cookie_persisted_properties||[]),n=t.persistence.toLowerCase();return n==="localstorage"&&vo.R()?vo:n==="localstorage+cookie"&&o.R()?o:n==="sessionstorage"&&pn.R()?pn:n==="memory"?hie:n==="cookie"?wa:o.R()?o:wa}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var n=this.props[Sg];return!n||typeof n!="number"||Date.now()-n>o}properties(){var t={};return lo(this.props,((o,n)=>{var r=(i=>{var l=yie[i];if(l)return l;for(var[c,d]of Sie)if(i.indexOf(c)===0)return d})(n);if(r?.exposure==="derived"){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(o,n===Mc?()=>this.wr():()=>!1))return;r.transformToEventProperties&&xo(t,r.transformToEventProperties(o))}else r&&r.exposure!=="event"||(t[n]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=xo({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,n){if(Ao(t)){ze(o)&&(o="None"),this.Ir=ze(n)?this.kr:n;var r=!1;if(lo(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),r=!0)})),r)return this.save(),!0}return!1}register(t,o){if(Ao(t)){this.Ir=ze(o)?this.kr:o;var n=!1;if(lo(t,((r,i)=>{t.hasOwnProperty(i)&&this.props[i]!==r&&(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=SB(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Ic(vE(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Ne?.referrer)?CB(t):{})}update_referrer_info(){var t;this.register_once({$referrer:wB(),$referring_domain:Ne!=null&&Ne.referrer&&((t=Tg(Ne.referrer))==null?void 0:t.host)||Ag},void 0)}set_initial_person_info(){this.props[pC]||this.props[gC]||this.register_once({[_g]:EB(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};lo([gC,pC],(l=>{var c=this.props[l];c&&lo(c,(function(d,m){t["$initial_"+K_(m)]=d}))}));var o,n,r=this.props[_g];if(r){var i=(o=xB(r),n={},lo(o,(function(l,c){n["$initial_"+K_(c)]=l})),n);xo(t,i)}return t}safe_merge(t){return lo(this.props,(function(o,n){n in t||(t[n]=o)})),t}update_config(t,o,n){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var d=[...l].sort(),m=[...c].sort();return d.every(((h,f)=>h===m[f]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var r=this.br(t),i=this.props;this.clear(),this.nr=r,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var n=this.props[Od]||{};n[t]=o,this.Tr(Od,n),this.save()}remove_event_timer(t){var o=this.props[Od]||{},n=o[t];return ze(n)||(delete o[t],this.Tr(Od,o),this.save()),n}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var bd={Activation:"events",Cancellation:"cancelEvents"},CS={Popover:"popover",API:"api",Widget:"widget"},Nd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},wS={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},bC={Popover:"popover",Inline:"inline"},xie={SHOWN:"product tour shown"},sO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},lO=ho("[RateLimiter]");class Tie{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var n=o.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((r=>{lO.info((r||"events")+" is quota limited."),this.serverLimits[r]=new Date().getTime()+6e4}))}catch(r){return void lO.warn('could not rate limit - continuing. Error: "'+r?.message+'"',{text:n})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,n,r;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),d=(o=(n=this.instance.persistence)==null?void 0:n.get_property(hC))!==null&&o!==void 0?o:{tokens:i,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>i&&(d.tokens=i);var m=1>d.tokens;return m||t||(d.tokens=Math.max(0,d.tokens-1)),!m||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=m,(r=this.instance.persistence)==null||r.set_property(hC,d),{isRateLimited:m,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var yd=ho("[RemoteConfig]");class PB{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Ze._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.loadExternalDependency?(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return yd.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void yd.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return yd.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){yd.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Ne?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||yd.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var ya={GZipJS:"gzip-js",Base64:"base64"},jr=Uint8Array,tr=Uint16Array,nu=Uint32Array,bE=new jr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yE=new jr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cO=new jr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RB=function(e,t){for(var o=new tr(31),n=0;31>n;++n)o[n]=t+=1<<e[n-1];var r=new nu(o[30]);for(n=1;30>n;++n)for(var i=o[n];o[n+1]>i;++i)r[i]=i-o[n]<<5|n;return[o,r]},AB=RB(bE,2),yC=AB[1];AB[0][28]=258,yC[258]=28;for(var uO=RB(yE,0)[1],kB=new tr(32768),co=0;32768>co;++co){var _c=(43690&co)>>>1|(21845&co)<<1;kB[co]=((65280&(_c=(61680&(_c=(52428&_c)>>>2|(13107&_c)<<2))>>>4|(3855&_c)<<4))>>>8|(255&_c)<<8)>>>1}var qd=function(e,t,o){for(var n=e.length,r=0,i=new tr(t);n>r;++r)++i[e[r]-1];var l,c=new tr(t);for(r=0;t>r;++r)c[r]=c[r-1]+i[r-1]<<1;for(l=new tr(n),r=0;n>r;++r)l[r]=kB[c[e[r]-1]++]>>>15-e[r];return l},hl=new jr(288);for(co=0;144>co;++co)hl[co]=8;for(co=144;256>co;++co)hl[co]=9;for(co=256;280>co;++co)hl[co]=7;for(co=280;288>co;++co)hl[co]=8;var kg=new jr(32);for(co=0;32>co;++co)kg[co]=5;var Pie=qd(hl,9),Rie=qd(kg,5),DB=function(e){return(e/8>>0)+(7&e&&1)},OB=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var n=new(e instanceof tr?tr:e instanceof nu?nu:jr)(o-t);return n.set(e.subarray(t,o)),n},oi=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8},Sd=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8,e[n+2]|=o>>>16},ES=function(e,t){for(var o=[],n=0;e.length>n;++n)e[n]&&o.push({s:n,f:e[n]});var r=o.length,i=o.slice();if(!r)return[new jr(0),0];if(r==1){var l=new jr(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(T,A){return T.f-A.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],m=0,h=1,f=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};h!=r-1;)c=o[o[f].f>o[m].f?m++:f++],d=o[m!=h&&o[f].f>o[m].f?m++:f++],o[h++]={s:-1,f:c.f+d.f,l:c,r:d};var g=i[0].s;for(n=1;r>n;++n)i[n].s>g&&(g=i[n].s);var v=new tr(g+1),y=SC(o[h-1],v,0);if(y>t){n=0;var S=0,E=y-t,_=1<<E;for(i.sort((function(T,A){return v[A.s]-v[T.s]||T.f-A.f}));r>n;++n){var w=i[n].s;if(t>=v[w])break;S+=_-(1<<y-v[w]),v[w]=t}for(S>>>=E;S>0;){var P=i[n].s;t>v[P]?S-=1<<t-v[P]++-1:++n}for(;n>=0&&S;--n){var x=i[n].s;v[x]==t&&(--v[x],++S)}y=t}return[new jr(v),y]},SC=function(e,t,o){return e.s==-1?Math.max(SC(e.l,t,o+1),SC(e.r,t,o+1)):t[e.s]=o},dO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new tr(++t),n=0,r=e[0],i=1,l=function(d){o[n++]=d},c=1;t>=c;++c)if(e[c]==r&&c!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(r),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(r);i=1,r=e[c]}return[o.subarray(0,n),t]},_d=function(e,t){for(var o=0,n=0;t.length>n;++n)o+=e[n]*t[n];return o},_C=function(e,t,o){var n=o.length,r=DB(t+2);e[r]=255&n,e[r+1]=n>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var i=0;n>i;++i)e[r+i+4]=o[i];return 8*(r+4+n)},mO=function(e,t,o,n,r,i,l,c,d,m,h){oi(t,h++,o),++r[256];for(var f=ES(r,15),g=f[0],v=f[1],y=ES(i,15),S=y[0],E=y[1],_=dO(g),w=_[0],P=_[1],x=dO(S),T=x[0],A=x[1],k=new tr(19),O=0;w.length>O;++O)k[31&w[O]]++;for(O=0;T.length>O;++O)k[31&T[O]]++;for(var N=ES(k,7),$=N[0],F=N[1],U=19;U>4&&!$[cO[U-1]];--U);var j,K,ae,V,Z=m+5<<3,te=_d(r,hl)+_d(i,kg)+l,le=_d(r,g)+_d(i,S)+l+14+3*U+_d(k,$)+(2*k[16]+3*k[17]+7*k[18]);if(te>=Z&&le>=Z)return _C(t,h,e.subarray(d,d+m));if(oi(t,h,1+(te>le)),h+=2,te>le){j=qd(g,v),K=g,ae=qd(S,E),V=S;var Q=qd($,F);for(oi(t,h,P-257),oi(t,h+5,A-1),oi(t,h+10,U-4),h+=14,O=0;U>O;++O)oi(t,h+3*O,$[cO[O]]);h+=3*U;for(var M=[w,T],H=0;2>H;++H){var q=M[H];for(O=0;q.length>O;++O)oi(t,h,Q[L=31&q[O]]),h+=$[L],L>15&&(oi(t,h,q[O]>>>5&127),h+=q[O]>>>12)}}else j=Pie,K=hl,ae=Rie,V=kg;for(O=0;c>O;++O)if(n[O]>255){var L;Sd(t,h,j[257+(L=n[O]>>>18&31)]),h+=K[L+257],L>7&&(oi(t,h,n[O]>>>23&31),h+=bE[L]);var z=31&n[O];Sd(t,h,ae[z]),h+=V[z],z>3&&(Sd(t,h,n[O]>>>5&8191),h+=yE[z])}else Sd(t,h,j[n[O]]),h+=K[n[O]];return Sd(t,h,j[256]),h+K[256]},Aie=new nu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),kie=(function(){for(var e=new nu(256),t=0;256>t;++t){for(var o=t,n=9;--n;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),xS=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function Die(e,t){t===void 0&&(t={});var o=(function(){var f=4294967295;return{p(g){for(var v=f,y=0;g.length>y;++y)v=kie[255&v^g[y]]^v>>>8;f=v},d(){return 4294967295^f}}})(),n=e.length;o.p(e);var r,i,l,c,d,m=(c=10+((r=t).filename&&r.filename.length+1||0),d=8,(function(f,g,v,y,S,E){var _=f.length,w=new jr(y+_+5*(1+Math.floor(_/7e3))+S),P=w.subarray(y,w.length-S),x=0;if(!g||8>_)for(var T=0;_>=T;T+=65535){var A=T+65535;_>A?x=_C(P,x,f.subarray(T,A)):(P[T]=!0,x=_C(P,x,f.subarray(T,_)))}else{for(var k=Aie[g-1],O=k>>>13,N=8191&k,$=(1<<v)-1,F=new tr(32768),U=new tr($+1),j=Math.ceil(v/3),K=2*j,ae=function(Ue){return(f[Ue]^f[Ue+1]<<j^f[Ue+2]<<K)&$},V=new nu(25e3),Z=new tr(288),te=new tr(32),le=0,Q=0,M=(T=0,0),H=0,q=0;_>T;++T){var L=ae(T),z=32767&T,J=U[L];if(F[z]=J,U[L]=z,T>=H){var me=_-T;if((le>7e3||M>24576)&&me>423){x=mO(f,P,0,V,Z,te,Q,M,q,T-q,x),M=le=Q=0,q=T;for(var he=0;286>he;++he)Z[he]=0;for(he=0;30>he;++he)te[he]=0}var we=2,Be=0,W=N,ne=z-J&32767;if(me>2&&L==ae(T-ne))for(var ve=Math.min(O,me)-1,ie=Math.min(32767,T),_e=Math.min(258,me);ie>=ne&&--W&&z!=J;){if(f[T+we]==f[T+we-ne]){for(var xe=0;_e>xe&&f[T+xe]==f[T+xe-ne];++xe);if(xe>we){if(we=xe,Be=ne,xe>ve)break;var tt=Math.min(ne,xe-2),nt=0;for(he=0;tt>he;++he){var $e=T-ne+he+32768&32767,Qe=$e-F[$e]+32768&32767;Qe>nt&&(nt=Qe,J=$e)}}}ne+=(z=J)-(J=F[z])+32768&32767}if(Be){V[M++]=268435456|yC[we]<<18|uO[Be];var De=31&yC[we],ke=31&uO[Be];Q+=bE[De]+yE[ke],++Z[257+De],++te[ke],H=T+we,++le}else V[M++]=f[T],++Z[f[T]]}}x=mO(f,P,!0,V,Z,te,Q,M,q,T-q,x)}return OB(w,0,y+DB(x)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,d)),h=m.length;return(function(f,g){var v=g.filename;if(f[0]=31,f[1]=139,f[2]=8,f[8]=2>g.level?4:g.level==9?2:0,f[9]=3,g.mtime!=0&&xS(f,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),v){f[3]=8;for(var y=0;v.length>=y;++y)f[y+10]=v.charCodeAt(y)}})(m,t),xS(m,h-8,o.d()),xS(m,h-4,n),m}var Oie=!!H_||!!V_,IB="text/plain",fO=!1,yv=function(e,t,o){var n;o===void 0&&(o=!0);var[r,i]=e.split("?"),l=Oe({},t),c=(n=i?.split("&").map((m=>{var h,[f,g]=m.split("="),v=o&&(h=l[f])!==null&&h!==void 0?h:g;return delete l[f],f+"="+v})))!==null&&n!==void 0?n:[],d=(function(m,h){var f,g;h===void 0&&(h="&");var v=[];return lo(m,(function(y,S){ze(y)||ze(S)||S==="undefined"||(f=encodeURIComponent((E=>E instanceof File)(y)?y.name:y.toString()),g=encodeURIComponent(S),v[v.length]=g+"="+f)})),v.join(h)})(l);return d&&c.push(d),r+"?"+c.join("&")},Lc=(e,t)=>JSON.stringify(e,((o,n)=>typeof n=="bigint"?n.toString():n),t),TS=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===ya.GZipJS){var n=Die((function(c,d){var m=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new jr(c.length+(c.length>>>1)),f=0,g=function(E){h[f++]=E},v=0;m>v;++v){if(f+5>h.length){var y=new jr(f+8+(m-v<<1));y.set(h),h=y}var S=c.charCodeAt(v);128>S?g(S):2048>S?(g(192|S>>>6),g(128|63&S)):S>55295&&57344>S?(g(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),g(128|S>>>12&63),g(128|S>>>6&63),g(128|63&S)):(g(224|S>>>12),g(128|S>>>6&63),g(128|63&S))}return OB(h,0,f)})(Lc(t)),{mtime:0});return{contentType:IB,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(o===ya.Base64){var r=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,m)=>String.fromCharCode(parseInt(m,16)))))})(Lc(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Lc(c)))(r);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=Lc(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},Iie=(function(){var e=Nr((function*(t){var o=Lc(t.data),n=yield(function(i,l,c){return G_.apply(this,arguments)})(o,Bn.DEBUG,{rethrow:!0});if(!n)return t;var r=yield n.arrayBuffer();return Oe({},t,{tr:{contentType:IB,body:r,estimatedSize:r.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),hO=(e,t)=>yv(e,{_:new Date().getTime().toString(),ver:Bn.JS_SDK_VERSION,compression:t}),Lp=[];V_&&Lp.push({transport:"fetch",method(e){var t,o,{contentType:n,body:r,estimatedSize:i}=(t=TS(e))!==null&&t!==void 0?t:{},l=new Headers;lo(e.headers,(function(h,f){l.append(f,h)})),n&&l.append("Content-Type",n);var c=e.url,d=null;if(HD){var m=new HD;d={signal:m.signal,timeout:setTimeout((()=>m.abort()),e.timeout)}}V_(c,Oe({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:r,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((h=>h.text().then((f=>{var g={statusCode:h.status,text:f};if(h.status===200)try{g.json=JSON.parse(f)}catch(v){Fe.error(v)}e.callback==null||e.callback(g)})))).catch((h=>{Fe.error(h),e.callback==null||e.callback({statusCode:0,error:h})})).finally((()=>d?clearTimeout(d.timeout):null))}}),H_&&Lp.push({transport:"XHR",method(e){var t,o=new H_;o.open(e.method||"GET",e.url,!0);var{contentType:n,body:r}=(t=TS(e))!==null&&t!==void 0?t:{};lo(e.headers,(function(i,l){o.setRequestHeader(l,i)})),n&&o.setRequestHeader("Content-Type",n),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(r)}}),vr!=null&&vr.sendBeacon&&Lp.push({transport:"sendBeacon",method(e){var t=yv(e.url,{beacon:"1"});try{var o,{contentType:n,body:r}=(o=TS(e))!==null&&o!==void 0?o:{};if(!r)return;var i=r instanceof Blob?r:new Blob([r],{type:n});vr.sendBeacon(t,i)}catch{}}});var CC=3e3;class Mie{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=Ta(o?.flush_interval_ms||CC,250,5e3,Fe.createLogger("flush interval"),CC),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((n=>n.url.indexOf("/e")===0)),...o.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Br(Oe({},n,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),n=function(){var i=o[r],l=new Date().getTime();i.data&&Dt(i.data)&&lo(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var r in o)n()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return lo(this.Lr,(o=>{var n,r=o,i=(r?r.batchKey:null)||r.url;ze(t[i])&&(t[i]=Oe({},r,{data:[]})),(n=t[i].data)==null||n.push(r.data)})),this.Lr=[],t}}var Lie=["retriesPerformedSoFar"];class Nie{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!ze(pe)&&"onLine"in pe.navigator&&(this.zr=pe.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},qo(pe,"online",this.Ur),qo(pe,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,n=N3(t,Lie);xc(o)&&(n.url=yv(n.url,{retry_count:o})),this._instance._send_request(Oe({},n,{callback:r=>{r.statusCode===200||r.statusCode>=400&&500>r.statusCode||(o??0)>=10?n.callback==null||n.callback(r):this.Wr(Oe({retriesPerformedSoFar:o},n))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var n=(function(l){var c=3e3*Math.pow(2,l),d=c/2,m=Math.min(18e5,c),h=Math.random()-.5;return Math.ceil(m+h*(m-d))})(o),r=Date.now()+n;this.Lr.push({retryAt:r,requestOptions:t});var i="Enqueued failed request for retry in "+n;navigator.onLine||(i+=" (Browser is offline)"),Fe.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],n=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,ze(pe)||(this.Ur&&(pe.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(pe.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Oe({},t,{transport:"sendBeacon"}))}catch(o){Fe.error(o)}this.Lr=[]}}class Fie{constructor(t){this.Kr=()=>{var o,n,r,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,m=c+(l?.clientHeight||0),h=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(n=this.Qr.maxScrollHeight)!==null&&n!==void 0?n:0),this.Qr.lastContentY=m,this.Qr.maxContentY=Math.max(m,(r=this.Qr.maxContentY)!==null&&r!==void 0?r:0),this.Qr.maxContentHeight=Math.max(h,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){qo(pe,"scroll",this.Kr,{capture:!0}),qo(pe,"scrollend",this.Kr,{capture:!0}),qo(pe,"resize",this.Kr)}scrollElement(){if(!this.ei)return pe?.document.documentElement;var t=Dt(this.ei)?this.ei:[this.ei];for(var o of t){var n=pe?.document.querySelector(o);if(n)return n}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return pe&&(pe.scrollY||pe.pageYOffset||pe.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return pe&&(pe.scrollX||pe.pageXOffset||pe.document.documentElement.scrollLeft)||0}}var Bie=e=>EB(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class pO{constructor(t,o,n,r){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[fC]:c})}},this._instance=t,this.si=o,this.ni=n,this.ii=r||Bie,this.si.onSessionId(this.ti)}ri(){return this.ni.props[fC]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?xB(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return lo(vE(this.getSetOnceProps()),((o,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+K_(n)]=o})),t}}class SE{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((n=>n!==o))}}emit(t,o){for(var n of this.oi[t]||[])n(o);for(var r of this.oi["*"]||[])r(t,o)}}var PS=ho("[SessionId]");class gO{on(t,o){return this.ai.on(t,o)}constructor(t,o,n){var r;if(this.li=[],this.ui=void 0,this.ai=new SE,this.hi=(m,h)=>!(!xc(m)||!xc(h))&&Math.abs(m-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===si)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ns,this.fi=n||ns;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Ta(this.Bt.session_idle_timeout_seconds||1800,60,36e3,PS.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=pn.Z(this.gi),c=pn.Z(this.mi);l&&!c?this.ci=l:pn.F(this.gi),pn.M(this.mi,!0)}if((r=this.Bt.bootstrap)!=null&&r.sessionID)try{var d=(m=>{var h=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(m){PS.error("Invalid sessionID in bootstrap",m)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ze(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&pn.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&pn.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?pn.Z(this.gi):null}bi(t,o,n){t===this.di&&o===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[yg]:[o,t,n]}))}Si(){var t=this.ni.props[yg];return Dt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&pe&&(pe.removeEventListener(Eg,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&pn.F(this.mi)},qo(pe,Eg,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===si)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=o||new Date().getTime(),[r,i,l]=this.Si(),c=this.Ci(),d=xc(l)&&Math.abs(n-l)>864e5,m=!1,h=!i,f=!h&&!t&&this.hi(n,r);h||f||d?(i=this.vi(),c=this.fi(),PS.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}}),l=n,m=!0):c||(c=this.fi(),m=!0);var g=xc(r)&&t&&!d?r:n,v=xc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,g,v),t||this.pi(),m&&this.li.forEach((y=>y(i,c,m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:r}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var MB=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&WD(o,t))return!0;try{var n=e?.userAgentData;if(n!=null&&n.brands&&n.brands.some((r=>WD(r?.brand,t))))return!0}catch{}return!!e.webdriver},Dg=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function vO(e,t,o){return Lc({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var LB={exact:(e,t)=>t.some((o=>e.some((n=>o===n)))),is_not:(e,t)=>t.every((o=>e.every((n=>o!==n)))),regex:(e,t)=>t.some((o=>e.some((n=>Dg(o,n))))),not_regex:(e,t)=>t.every((o=>e.every((n=>!Dg(o,n))))),icontains:(e,t)=>t.map(gp).some((o=>e.map(gp).some((n=>o.includes(n))))),not_icontains:(e,t)=>t.map(gp).every((o=>e.map(gp).every((n=>!o.includes(n))))),gt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n>parseFloat(r)))})),lt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n<parseFloat(r)))}))},gp=e=>e.toLowerCase();function NB(e,t){return!e||Object.entries(e).every((o=>{var[n,r]=o,i=t?.[n];if(ze(i)||yi(i))return!1;var l=[String(i)],c=LB[r.operator];return!!c&&c(r.values,l)}))}var wC="custom",bO="i.posthog.com",zie=/^\/static\//;class jie{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+bO,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":wC),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&zie.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var n=this.Ti(o);if(n)return""+n+o}if(this.region===wC)return this.apiHost+o;var r=bO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Zt=ho("[Surveys]"),EC="seenSurvey_",Uie=[CS.Popover,CS.Widget,CS.API],$ie={ignoreConditions:!1,ignoreDelay:!1,displayType:bC.Popover},qie=ho("[PostHog ExternalIntegrations]"),Vie={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Hie{constructor(t){this._instance=t}ur(t,o){var n;(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,(r=>{if(r)return qie.error("failed to load script",r);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,d,m;!r||(c=Ze.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Vie[l],(()=>{var h;(h=Ze.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(t._instance)})),!r&&(d=Ze.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[l]&&((m=Ze.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[l])==null||m.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(n)}}}var Cc,Vd={},RS=0,xC=()=>{},yO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Cd="Surveys module not available",SO="sanitize_properties is deprecated. Use before_send instead",FB="Invalid value for property_denylist config: ",Rc="posthog",BB=!Oie&&Qn?.indexOf("MSIE")===-1&&Qn?.indexOf("Mozilla")===-1,_O=e=>{var t;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:lie(Ne?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:xC,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:hn&&bo(hn?.search)&&hn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(pe==null||(t=pe.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Fe.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:vC,before_send:void 0,request_queue_config:{flush_interval_ms:CC},error_tracking:{},_onCapture:xC,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Gie=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],CO=e=>{var t={};for(var[o,n]of Gie)ze(e[o])||(t[n]=e[o]);var r=xo({},t,e);return Dt(e.property_blacklist)&&(ze(e.property_denylist)?r.property_denylist=e.property_blacklist:Dt(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Fe.error(FB+e.property_denylist)),r};class Kie{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Fe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Fr{Ei(t,o){if(t){var n=this.Ri.indexOf(t);n!==-1&&this.Ri.splice(n,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===si||this.config.cookieless_mode===tl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Kie,this.Mi=!1,this.version=Bn.LIB_VERSION,this.Fi=new SE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_O(),this.SentryIntegration=bie,this.sentryIntegration=n=>(function(r,i){var l=yB(r,i);return{name:bB,processEvent:c=>l(c)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Fie(this),this.pageViewManager=new aO(this),this.rateLimiter=new Tie(this),this.requestRouter=new jie(this),this.consent=new pie(this),this.externalIntegrations=new Hie(this);var o=(t=Fr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(n,r,i)=>{var l=bo(n)?{[n]:r}:n;this.setPersonProperties(l),i?.({})},set_once:(n,r,i)=>{var l=bo(n)?{[n]:r}:n;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(n=>Fe.info('send "'+n?.event+'"',n)))}init(t,o,n){if(n&&n!==Rc){var r,i=(r=Vd[n])!==null&&r!==void 0?r:new Fr;return i._init(t,o,n),Vd[n]=i,Vd[Rc][n]=i,i}return this._init(t,o,n)}_init(t,o,n){var r,i;if(o===void 0&&(o={}),ze(t)||Dp(t))return Fe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(xo({},_O(o.defaults),CO(o),{name:n,token:t})),this.config.on_xhr_error&&Fe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:ya.GZipJS;var l=this.qi();this.persistence=new _S(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new _S(Oe({},this.config,{persistence:"sessionStorage"}),l);var c=Oe({},this.persistence.props),d=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Mie((E=>this.Vi(E)),this.config.request_queue_config),this.Hi=new Nie(this),this.__request_queue=[];var m=this.Ni();if(m||(this.sessionManager=new gO(this),this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Fe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(m)}),0)):(Fe.info("Initializing extensions synchronously"),this.zi(m)),Bn.DEBUG=Bn.DEBUG||this.config.debug,Bn.DEBUG&&Fe.info("Starting in debug mode",{this:this,config:o,thisC:Oe({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(r=o.bootstrap)!=null&&r.distinctID||(o.bootstrap=Oe({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=o.bootstrap.distinctID,f=this.get_distinct_id(),g=this.persistence.get_property(ta);if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===yc)this.identify(h);else if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===Sc)Fe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ns()),y=o.bootstrap.isIdentifiedID?v:h;this.persistence.set_property(ta,o.bootstrap.isIdentifiedID?Sc:yc),this.register({distinct_id:h,$device_id:y})}}if(m)this.register_once({distinct_id:dp,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ns());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(ta,yc)}return qo(pe,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(E,_){var w=E.config.segment;if(!w)return _();(function(P,x){var T=P.config.segment;if(!T)return x();var A=O=>{var N=()=>O.anonymousId()||ns();P.config.get_device_id=N,O.id()&&(P.register({distinct_id:O.id(),$device_id:N()}),P.persistence.set_property(ta,Sc)),x()},k=T.user();"then"in k&&ai(k.then)?k.then(A):A(k)})(E,(()=>{w.register((P=>{Promise&&Promise.resolve||SS.warn("This browser does not have Promise support, and can not use the segment integration");var x=(T,A)=>{if(!A)return T;T.event.userId||T.event.anonymousId===P.get_distinct_id()||(SS.info("No userId set, resetting PostHog"),P.reset()),T.event.userId&&T.event.userId!==P.get_distinct_id()&&(SS.info("UserId set, identifying with PostHog"),P.identify(T.event.userId));var k=P.calculateEventProperties(A,T.event.properties);return T.event.properties=Object.assign({},k,T.event.properties),T};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:T=>x(T,T.event.event),page:T=>x(T,Pc),identify:T=>x(T,bS),screen:T=>x(T,"$screen")}})(E)).then((()=>{_()}))}))})(this,(()=>this.Ui())):this.Ui(),ai(this.config._onCapture)&&this.config._onCapture!==xC&&(Fe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(E=>this.config._onCapture(E.event,E)))),this.config.ip&&Fe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,n,r,i,l,c,d,m=performance.now(),h=Oe({},Fr.__defaultExtensionClasses,this.config.__extensionClasses),f=[];h.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new h.featureFlags(this)),h.exceptions&&this.Ri.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new h.exceptions(this)),h.historyAutocapture&&this.Ri.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ri.push(new h.tracingHeaders(this)),h.siteApps&&this.Ri.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||f.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Ri.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ri.push(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new h.surveys(this)),h.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new h.logs(this)),h.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Ri.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ri.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ri.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,vie)),h.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new h.toolbar(this)),h.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new h.experiments(this)),this.Ri.forEach((g=>{g.initialize&&f.push((()=>{g.initialize==null||g.initialize()}))})),f.push((()=>{if(this.Yi){var g=this.Yi;this.Yi=void 0,this.Nr(g)}})),this.Gi(f,m)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var n=t.shift();if(n)try{n()}catch(i){Fe.error("Error initializing extension:",i)}}var r=Math.round(performance.now()-o);this.register_for_session({[fB]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[hB]:r}),this.config.__preview_deferred_init_extensions&&Fe.info("PostHog extensions initialized ("+r+"ms)")}Nr(t){var o;if(!Ne||!Ne.body)return Fe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(t.supportedCompression,ya.GZipJS)?ya.GZipJS:Ct(t.supportedCompression,ya.Base64)?ya.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:vC}),this.Ri.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(n){Fe.critical("`loaded` function failed",n)}if(this.Xi(),this.config.internal_or_test_user_hostname&&hn!=null&&hn.hostname){var t=hn.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new PB(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&mp(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,n,r;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(vS),(o=this.logs)==null||o.flushLogs("sendBeacon"),(n=this.Zi)==null||n.unload(),(r=this.Hi)==null||r.unload()):this.Qi()&&this.capture(vS,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(BB?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=yv(t.url,{ip:this.config.ip?1:0}),t.headers=Oe({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var n,r,i,l=Oe({},o);l.timeout=l.timeout||6e4,l.url=hO(l.url,l.compression);var c=(n=l.transport)!==null&&n!==void 0?n:"fetch",d=Lp.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),m=(r=(i=(function(h,f){for(var g=0;h.length>g;g++)if(h[g].transport===c)return h[g]})(d))==null?void 0:i.method)!==null&&r!==void 0?r:d[0].method;if(!m)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===ya.GZipJS&&bae&&!fO?Iie(l).then((h=>{m(h)})).catch((h=>{if((f=>!(!f||typeof f!="object")&&("name"in f?String(f.name):"")==="NotReadableError")(h))return fO=!0,void m(Oe({},l,{compression:void 0,url:hO(o.url,void 0)}));m(l)})):m(l)})(Oe({},t,{callback:o=>{var n,r;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){RS++;try{var o,n=[],r=[],i=[];mp(t,(c=>{c&&(Dt(o=c[0])?i.push(c):ai(c)?c.call(this):Dt(c)&&o==="alias"?n.push(c):Dt(c)&&o.indexOf("capture")!==-1&&ai(this[o])?i.push(c):r.push(c))}));var l=function(c,d){mp(c,(function(m){if(Dt(m[0])){var h=d;lo(m,(function(f){h=h[f[0]].apply(h,f.slice(1))}))}else d[m[0]].apply(d,m.slice(1))}))};l(n,this),l(r,this),l(i,this)}finally{RS--}}push(t){if(RS>0&&Dt(t)&&bo(t[0])){var o=Fr.prototype[t[0]];ai(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,n){var r,i,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!ze(t)&&bo(t)){var m=!this.config.opt_out_useragent_filter&&this._is_bot();if(!m||this.config.__preview_capture_bot_pageviews){var h=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){o!=null&&o.$current_url&&!bo(o?.$current_url)&&(Fe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||n!=null&&n.en||Fe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var f=new Date,g=n?.timestamp||f,v=ns(),y={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},g,v)};t===Pc&&this.config.__preview_capture_bot_pageviews&&m&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),h&&(y.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),n?.$set&&(y.$set=n?.$set);var S,E,_,w=this.tn(n?.$set_once,t!==tO,t===bS);if(w&&(y.$set_once=w),n!=null&&n._noTruncate||(i=this.config.properties_string_max_length,l=y,c=N=>bo(N)?N.slice(0,i):N,d=new Set,y=(function N($,F){return $!==Object($)?c?c($):$:d.has($)?void 0:(d.add($),Dt($)?(U=[],mp($,(j=>{U.push(N(j))}))):(U={},lo($,((j,K)=>{d.has(j)||(U[K]=N(j))}))),U);var U})(l)),y.timestamp=g,ze(n?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=f),t===Nd.DISMISSED||t===Nd.SENT){var P=o?.[wS.SURVEY_ID],x=o?.[wS.SURVEY_ITERATION];(N=>{try{var $=(F=>((U,j)=>{var K=""+EC+j.id;return j.current_iteration&&j.current_iteration>0&&(K=""+EC+j.id+"_"+j.current_iteration),K})(0,F))(N);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(F){Zt.error("Failed to persist survey seen state",F)}})({id:P,current_iteration:x}),y.$set=Oe({},y.$set,{[(S={id:P,current_iteration:x},E=t===Nd.SENT?"responded":"dismissed",_="$survey_"+E+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(_="$survey_"+E+"/"+S.id+"/"+S.current_iteration),_)]:!0})}else t===Nd.SHOWN&&(y.$set=Oe({},y.$set,{[wS.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===xie.SHOWN){var T=o?.[sO.TOUR_TYPE];T&&(y.$set=Oe({},y.$set,{[sO.TOUR_LAST_SEEN_DATE+"/"+T]:new Date().toISOString()}))}var A=Oe({},y.properties.$set,y.$set);if(Ic(A)||this.setPersonPropertiesForFlags(A),!wt(this.config.before_send)){var k=this.rn(y);if(!k)return;y=k}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(r=n?._url)!==null&&r!==void 0?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}Fe.critical("This capture call is ignored due to client rate limiting.")}}else Fe.error("No event name provided to posthog.capture")}else Fe.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Oe({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!bo(c.distinct_id)&&!Ur(c.distinct_id)||Dp(c.distinct_id))&&Fe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var m,h=(function(_,w){var P,x,T,A;if(!Qn)return{};var k,O,N,$,F,U,j,K,ae=_?[...ou,...w||[]]:[],[V,Z]=(function(te){for(var le=0;QD.length>le;le++){var[Q,M]=QD[le],H=Q.exec(te),q=H&&(ai(M)?M(H,te):M);if(q)return q}return["",""]})(Qn);return xo(vE({$os:V,$os_version:Z,$browser:tB(Qn,navigator.vendor),$device:JD(Qn),$device_type:(O=Qn,N={userAgentDataPlatform:(P=navigator)==null||(P=P.userAgentData)==null?void 0:P.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:pe==null||(T=pe.screen)==null?void 0:T.width,screenHeight:pe==null||(A=pe.screen)==null?void 0:A.height,devicePixelRatio:pe?.devicePixelRatio},K=JD(O),K===U3||K===j3||K==="Kobo"||K==="Kindle Fire"||K===eB?Xc:K===cm||K===Hc||K===um||K===Y_?"Console":K===q3?"Wearable":K?yr:N?.userAgentDataPlatform==="Android"&&(($=N?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((F=N?.screenWidth)!==null&&F!==void 0?F:0,(U=N?.screenHeight)!==null&&U!==void 0?U:0)/((j=N?.devicePixelRatio)!==null&&j!==void 0?j:1)?yr:Xc:"Desktop"),$timezone:TB(),$timezone_offset:wie()}),{$current_url:dm(hn?.href,ae,mm),$host:hn?.host,$pathname:hn?.pathname,$raw_user_agent:Qn.length>1e3?Qn.substring(0,997)+"...":Qn,$browser_version:Mae(Qn,navigator.vendor),$browser_language:iO(),$browser_language_prefix:(k=iO(),typeof k=="string"?k.split("-")[0]:void 0),$screen_height:pe?.screen.height,$screen_width:pe?.screen.width,$viewport_height:pe?.innerHeight,$viewport_width:pe?.innerWidth,$lib:Bn.LIB_NAME,$lib_version:Bn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:f,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());c.$session_id=f,c.$window_id=g}this.sessionPropsManager&&xo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&xo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(_){c.$sdk_debug_error_capturing_properties=String(_)}if(this.requestRouter.region===wC&&(c.$lib_custom_api_host=this.config.api_host),m=t!==Pc||i?t!==vS||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),c=xo(c,m),t===Pc&&Ne&&(c.title=Ne.title),!ze(l)){var y=n.getTime()-l;c.$duration=parseFloat((y/1e3).toFixed(3))}Qn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=xo({},h,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Dt(this.config.property_denylist)?lo(this.config.property_denylist,(function(_){delete c[_]})):Fe.error(FB+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Fe.error(SO),c=S(c,t));var E=this.nn();return c.$process_person_profile=E,E&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,n){var r;if(o===void 0&&(o=!0),n===void 0&&(n=!1),!this.persistence||!this.nn()||this.Mi&&!n)return t;var i=this.persistence.get_initial_props(),l=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),c=xo({},i,l||{},t||{}),d=this.config.sanitize_properties;return d&&(Fe.error(SO),c=d(c,"$set_once")),o&&(this.Mi=!0),Ic(c)?void 0:c}register(t,o){var n;(n=this.persistence)==null||n.register(t,o)}register_once(t,o,n){var r;(r=this.persistence)==null||r.register_once(t,o,n)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,n){var r;(r=this.featureFlags)==null||r.updateFlags(t,o,n)}updateEarlyAccessFeatureEnrollment(t,o,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(t,o,n)}getEarlyAccessFeatures(t,o,n){var r;return o===void 0&&(o=!1),(r=this.featureFlags)==null?void 0:r.getEarlyAccessFeatures(t,o,n)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Cd}),()=>{})}onSessionId(t){var o,n;return(o=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:Cd})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:Cd})}renderSurvey(t,o){var n;(n=this.surveys)==null||n.renderSurvey(t,o)}displaySurvey(t,o){var n;o===void 0&&(o=$ie),(n=this.surveys)==null||n.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,n;return(o=(n=this.surveys)==null?void 0:n.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:Cd}}canRenderSurveyAsync(t,o){var n,r;return o===void 0&&(o=!1),(n=(r=this.surveys)==null?void 0:r.canRenderSurveyAsync(t,o))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:Cd})}ln(t){return!t||Dp(t)?(Fe.critical("Unique user id has not been set in posthog.identify"),!1):t===dp?(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,n){if(!this.__loaded||!this.persistence)return Fe.uninitializedWarning("posthog.identify");if(Ur(t)&&(t=t.toString(),Fe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:t}),this.get_property(bg)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),t!==r&&t!==this.get_property(Dd)&&(this.unregister(Dd),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(ta)||yc)===yc;t!==r&&l?(this.persistence.set_property(ta,Sc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:n||{}},!1),this.capture(bS,{distinct_id:t,$anon_distinct_id:r},{$set:o||{},$set_once:n||{}}),this.Di=vO(t,o,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(o||n)&&this.setPersonProperties(o,n),t!==r&&(this.reloadFeatureFlags(),this.unregister($d))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var n=vO(this.get_distinct_id(),t,o);this.Di!==n?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=n):Fe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,n){if(t&&o){var r=this.getGroups(),i=r[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Oe({},r,{[t]:o})}),i||n){var l={$group_type:t,$group_key:o};n&&(l.$group_set=n),this.capture(tO,l)}n&&this.setGroupPropertiesForFlags({[t]:n}),i&&!n&&this.reloadFeatureFlags()}else Fe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,n,r,i,l,c,d,m;if(Fe.info("reset"),!this.__loaded)return Fe.uninitializedWarning("posthog.reset");var h=this.get_property(bg);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(n=this.sessionPersistence)==null||n.clear(),(r=this.surveys)==null||r.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(ta,yc),(m=this.sessionManager)==null||m.resetSessionId(),this.Di=null,this.config.cookieless_mode===si)this.register_once({distinct_id:dp,$device_id:null},"");else{var f=this.config.get_device_id(ns());this.register_once({distinct_id:f,$device_id:t?f:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var n;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(n=this.conversations)==null||n.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&n){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-l,0)}return r}alias(t,o){return t===this.get_property(sB)?(Fe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ze(o)&&(o=this.get_distinct_id()),t!==o?(this.an(Dd,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Fe.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Oe({},this.config);if(Ao(t)){var n,r,i,l,c,d,m,h,f,g;xo(this.config,CO(t));var v=this.qi();(n=this.persistence)==null||n.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new _S(Oe({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);xa(y)&&(this.config.debug=y),xa(this.config.debug)&&(this.config.debug?(Bn.DEBUG=!0,vo.R()&&vo.M("ph_debug",!0),Fe.info("set_config",{config:t,oldConfig:o,newConfig:Oe({},this.config)})):(Bn.DEBUG=!1,vo.R()&&vo.F("ph_debug"))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(m=this.exceptionObserver)==null||m.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(f=this.surveys)==null||f.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Bn.LIB_NAME=t,Bn.LIB_VERSION=o}startSessionRecording(t){var o,n,r,i,l,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),d.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),d.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),d.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Oe({},r,o))}}addExceptionStep(t,o){var n;(n=this.exceptions)==null||n.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Fr.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,n;return(o=(n=this.toolbar)==null?void 0:n.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Rc;return o!==Rc&&(o=Rc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(ta))===Sc||((o=this.sessionPersistence)==null?void 0:o.get_property(ta))===Sc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===vC&&!this._isIdentified()&&Ic(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Dd])&&((o=this.persistence)==null||(o=o.props)==null||!o[Cg]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Fe.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(Cg,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==tl)}cn(){var t,o,n,r,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((n=this.persistence)==null||n.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((r=this.sessionPersistence)==null||r.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==si){if(this.Ni()){var n,r,i,l,c;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=new gO(this),this.pageViewManager=new aO(this),this.persistence&&(this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence));var d,m=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Fr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;m&&(this.sessionRecording=this.Ei(this.sessionRecording,new m(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var h,f;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==tl&&((h=this.surveys)==null||h.loadIfEnabled()),(ze(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((f=t?.captureEventName)!==null&&f!==void 0?f:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Fe.warn(yO)}opt_out_capturing(){var t,o,n;this.config.cookieless_mode!==si?(this.config.cookieless_mode===tl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===tl&&(this.register({distinct_id:dp,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Ji())):Fe.warn(yO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===si||(this.config.cookieless_mode===tl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return vr?MB(vr,this.config.custom_blocked_useragents):void 0}Ji(){Ne&&(Ne.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Pc,{title:Ne.title},{send_instantly:!0}),this.Pi&&(Ne.removeEventListener(wg,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),qo(Ne,wg,this.Pi)))}debug(t){t===!1?(pe?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(pe?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,n,r,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Fe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",r=Fe,i=(o="advanced_disable_flags")in(t=c)&&!wt(t[o]),l=n in t&&!wt(t[n]),i?t[o]:!!l&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[n]))}rn(t){if(wt(this.config.before_send))return t;var o=Dt(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var r of o){if(n=r(n),wt(n)){var i="Event '"+t.event+"' was rejected in beforeSend function";return Cae(t.event)?Fe.warn(i+". This can cause unexpected behavior."):Fe.info(i),null}n.properties&&!Ic(n.properties)||Fe.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(n)})}Bi(t){var o=xa(t)&&!t,n=vo.R()&&vo.O("ph_debug")==="true";return!o&&(!!n||t)}}function wO(e){return e instanceof Element&&(e.id===mB||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Sv(e){return!!e&&e.nodeType===1}function fs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function zB(e){return!!e&&e.nodeType===3}function jB(e){return!!e&&e.nodeType===11}function _E(e){return e?vv(e).split(/\s+/):[]}function EO(e){var t=pe?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Og(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return _E(t)}function UB(e){return wt(e)?null:vv(e).split(/(\s+)/).filter((t=>Hd(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function fm(e){var t="";return PC(e)&&!qB(e)&&e.childNodes&&e.childNodes.length&&lo(e.childNodes,(function(o){var n;zB(o)&&o.textContent&&(t+=(n=UB(o.textContent))!==null&&n!==void 0?n:"")})),vv(t)}function xO(e){return ze(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Fr.__defaultExtensionClasses={},Fr.dn={trace:Cc=()=>{},debug:Cc,info:Cc,warn:Cc,error:Cc,fatal:Cc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=iie(e.prototype[t[o]])})(Fr,["identify"]);var CE=["a","button","form","input","select","textarea","label"];function TO(e,t){if(ze(t))return!0;var o,n=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var r of e)if(o=n(r))return o.v;return!1}function $B(e){var t=e.parentNode;return!(!t||!Sv(t))&&t}var Wie=["next","previous","prev",">","<"],PO=[".ph-no-rageclick",".ph-no-capture"],TC=e=>!e||fs(e,"html")||!Sv(e),RO=(e,t)=>{if(!pe||TC(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,n=[e],r=e;r.parentNode&&!fs(r,"body");)if(jB(r.parentNode))n.push(r.parentNode.host),r=r.parentNode.host;else{var i=$B(r);if(!i)break;if(t||CE.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=pe.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}n.push(i),r=i}return{parentIsUsefulElement:o,targetElementList:n}};function PC(e){for(var t=e;t.parentNode&&!fs(t,"body");t=t.parentNode){var o=Og(t);if(Ct(o,"ph-sensitive")||Ct(o,"ph-no-capture"))return!1}if(Ct(Og(e),"ph-include"))return!0;var n=e.type||"";if(bo(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!bo(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function qB(e){return!!(fs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fs(e,"select")||fs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var VB="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Yie=new RegExp("^(?:"+VB+")$"),Zie=new RegExp(VB),HB="\\d{3}-?\\d{2}-?\\d{4}",Qie=new RegExp("^("+HB+")$"),Jie=new RegExp("("+HB+")");function Hd(e,t){return t===void 0&&(t=!0),!(wt(e)||bo(e)&&(e=vv(e),(t?Yie:Zie).test((e||"").replace(/[- ]/g,""))||(t?Qie:Jie).test(e)))}function AO(e){var t=fm(e);return Hd(t=(t+" "+GB(e)).trim())?t:""}function GB(e){var t="";return e&&e.childNodes&&e.childNodes.length&&lo(e.childNodes,(function(o){var n;if(o&&((n=o.tagName)==null?void 0:n.toLowerCase())==="span")try{var r=fm(o);t=(t+" "+r).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+GB(o)).trim())}catch(i){Fe.error("[AutoCapture]",i)}})),t}function kO(e){return e.replace(/"|\\"/g,'\\"')}function Xie(e){var t=e.attr__class;return t?Dt(t)?t:_E(t):void 0}class DO{constructor(t){this.disabled=t===!1;var o=Ao(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(t-r.x)+Math.abs(o-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:t,y:o,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:n}];return!1}}var AS="$copy_autocapture",OO=ho("[AutoCapture]");function kS(e,t){return t.length>e?t.slice(0,e)+"...":t}function ese(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Sv(t));return t}function tse(e,t){for(var o,n,{e:r,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,m=[e],h=e;h.parentNode&&!fs(h,"body");)jB(h.parentNode)?(m.push(h.parentNode.host),h=h.parentNode.host):(m.push(h.parentNode),h=h.parentNode);var f,g,v=[],y={},S=!1,E=!1;if(lo(m,(T=>{var A=PC(T);T.tagName.toLowerCase()==="a"&&(S=T.getAttribute("href"),S=A&&S&&Hd(S)&&S),Ct(Og(T),"ph-no-capture")&&(E=!0),v.push((function(O,N,$,F){var U=O.tagName.toLowerCase(),j={tag_name:U};CE.indexOf(U)>-1&&!$&&(j.$el_text=U.toLowerCase()==="a"||U.toLowerCase()==="button"?kS(1024,AO(O)):kS(1024,fm(O)));var K=Og(O);K.length>0&&(j.classes=K.filter((function(te){return te!==""}))),lo(O.attributes,(function(te){var le;if((!qB(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(F==null||!F.includes(te.name))&&!N&&Hd(te.value)&&(!bo(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=_E(Q).join(" ")),j["attr__"+te.name]=kS(1024,Q)}}));for(var ae=1,V=1,Z=O;Z=ese(Z);)ae++,Z.tagName===O.tagName&&V++;return j.nth_child=ae,j.nth_of_type=V,j})(T,i,l,c));var k=(function(O){if(!PC(O))return{};var N={};return lo(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var F=$.name.replace("data-ph-capture-attribute-",""),U=$.value;F&&U&&Hd(U)&&(N[F]=U)}})),N})(T);xo(y,k)})),E)return{props:{},explicitNoCapture:E};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?AO(e):fm(e)),S){var _,w;v[0].attr__href=S;var P=(_=Tg(S))==null?void 0:_.host,x=pe==null||(w=pe.location)==null?void 0:w.host;P&&x&&P!==x&&(f=S)}return{props:xo({$event_type:r.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(g=v,(function(T){return T.map((A=>{var k,O,N="";if(A.tag_name&&(N+=A.tag_name),A.attr_class)for(var $ of(A.attr_class.sort(),A.attr_class))N+="."+$.replace(/"/g,"");var F=Oe({},A.text?{text:A.text}:{},{"nth-child":(k=A.nth_child)!==null&&k!==void 0?k:0,"nth-of-type":(O=A.nth_of_type)!==null&&O!==void 0?O:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),U={};return Mp(F).sort(((j,K)=>{var[ae]=j,[V]=K;return ae.localeCompare(V)})).forEach((j=>{var[K,ae]=j;return U[kO(K.toString())]=kO(ae.toString())})),(N+=":")+Mp(U).map((j=>{var[K,ae]=j;return K+'="'+ae+'"'})).join("")})).join(";")})((function(T){return T.map((A=>{var k,O,N={text:(k=A.$el_text)==null?void 0:k.slice(0,400),tag_name:A.tag_name,href:(O=A.attr__href)==null?void 0:O.slice(0,2048),attr_class:Xie(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return Mp(A).filter(($=>{var[F]=$;return F.indexOf("attr__")===0})).forEach(($=>{var[F,U]=$;return N.attributes[F]=U})),N}))})(g)))},(o=v[0])!=null&&o.$el_text?{$el_text:(n=v[0])==null?void 0:n.$el_text}:{},f&&r.type==="click"?{$external_click_url:f}:{},y)}}var wd=ho("[ExceptionAutocapture]");function IO(e,t,o){try{if(!(t in e))return()=>{};var n=e[t],r=o(n);return ai(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=r,()=>{e[t]=n}}catch{return()=>{}}}var ose=ho("[TracingHeaders]"),Zi=ho("[Web Vitals]"),MO=9e5,LO="disabled",NO="lazy_loading",Ed="awaiting_config",vp="missing_config";ho("[SessionRecording]"),ho("[SessionRecording]");var RC="[SessionRecording]",Qi=ho(RC),nse=ho("[Heatmaps]");function FO(e){return Ao(e)&&"clientX"in e&&"clientY"in e&&Ur(e.clientX)&&Ur(e.clientY)}var BO=ho("[Product Tours]"),rse=["$set_once","$set"],Ji=ho("[SiteApps]"),zO="Error while initializing PostHog app with config id ";function wc(e,t,o){if(wt(e))return!1;switch(o){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class ase{constructor(t){this.vn=new SE,this.fn=(o,n)=>this.pn(o,n)&&this.gn(o,n)&&this.mn(o,n)&&this.yn(o,n),this.pn=(o,n)=>n==null||!n.event||o?.event===n?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;ze((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((n,r)=>{this.on(n,r)}))}register(t){var o,n;if(!ze((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((m=>{var h;(h=this.bn)==null||h.add(m?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var r,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((d=>{d!=null&&d.selector&&i.add(d?.selector)}))})),(r=this._instance)==null||r.autocapture.setElementSelectors(i)}}on(t,o){var n;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((n=this._n)==null?void 0:n.size)>0&&this._n.forEach((r=>{this.wn(o,r)&&this.vn.emit("actionCaptured",r.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var n of o.steps)if(this.fn(t,n))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var n,r=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!r||typeof r!="string"||!wc(r,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var n;if(o==null||!o.href)return!0;var r=this.kn(t);if(r.length>0)return r.some((c=>wc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!l&&wc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var n;if(o==null||!o.text)return!0;var r=this.kn(t);if(r.length>0)return r.some((m=>wc(m.text,o.text,o.text_matching||"exact")||wc(m.$el_text,o.text,o.text_matching||"exact")));var i,l,c,d=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!d&&(i=(function(m){for(var h,f=[],g=/(?::|")text="(.*?)"/g;!wt(h=g.exec(m));)f.includes(h[1])||f.push(h[1]);return f})(d),l=o.text,c=o.text_matching||"exact",i.some((m=>wc(m,l,c))))}xn(t,o){var n,r;if(o==null||!o.selector)return!0;var i=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||NB(o.properties.reduce(((n,r)=>{var i=Dt(r.value)?r.value.map(String):r.value!=null?[String(r.value)]:[];return n[r.key]={values:i,operator:r.operator||"exact"},n}),{}),t?.properties)}}class ise{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&NB(t.propertyFilters,o?.properties)}Nn(t,o){var n=new Map;return t.forEach((r=>{var i;(i=r.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=n.get(l.name)||[];c.push(r.id),n.set(l.name,c)}}))})),n}Mn(t,o,n){var r=(n===bd.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>r?.includes(c.id)))})),i.filter((l=>{var c,d=(c=l.conditions)==null||(c=c[n])==null||(c=c.values)==null?void 0:c.find((m=>m.name===t));return this.Rn(d,o)}))}register(t){var o;ze((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((n=>{var r,i;return((r=n.conditions)==null?void 0:r.actions)&&((i=n.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new ase(this._instance),this.Ln.init(),this.Ln.In((n=>{this.onAction(n)}))),o.forEach((n=>{var r,i,l,c,d;n.conditions&&(r=n.conditions)!=null&&r.actions&&(i=n.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(n.conditions.actions.values),(d=n.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((m=>{if(m&&m.name){var h=this.En.get(m.name);h&&h.push(n.id),this.En.set(m.name,h||[n.id])}})))})))}On(t){var o,n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),r=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));n.length===0&&r.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,bd.Activation),this.An=this.Nn(t,bd.Cancellation))}onEvent(t,o){var n,r=this.le(),i=this.Dn(),l=this.Bn(),c=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(l===t&&o&&c.length>0){var d,m;r.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var h=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(m=o.properties)==null?void 0:m.$product_tour_id);if(h){var f=c.indexOf(h);0>f||(c.splice(f,1),this.jn(c))}}else{if(this.An.has(t)){var g=this.Mn(t,o,bd.Cancellation);g.length>0&&(r.info("cancel event matched, cancelling items",{event:t,itemsToCancel:g.map((y=>y.id))}),g.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(t)){r.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,bd.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(t){var o,n=this.Dn(),r=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[n])||[];this.En.has(t)&&this.jn(r.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),n=[...new Set(t)].filter((r=>!this.qn(r)));o.info("updating activated items",{activatedItems:n}),this.Zn(n)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class sse extends ise{constructor(t){super(t)}Dn(){return uC}Bn(){return Nd.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return Zt}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[uC]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var DS="SDK is not enabled or survey functionality is not yet loaded",jO="Disabled. Not loading surveys.",lse=pe!=null&&pe.location?Rg(pe.location.hash,"__posthog")||Rg(location.hash,"state"):null,UO="_postHogToolbarParams",$O=ho("[Toolbar]"),Ln=ho("[FeatureFlags]"),Js=ho("[FeatureFlags]",{debugEnabled:!0}),OS=`" failed. Feature flags didn't load in time.`,qO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},VO=e=>{var t={};for(var[o,n]of Mp(e||{}))n&&(t[o]=n);return t},ni=ho("[Error tracking]"),HO="Refusing to render web experiment since the viewer is a likely bot",cse={icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!pe&&Dg(t.href,e),not_regex:(e,t)=>!!pe&&!Dg(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Tn{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),o.getWebExperiments((r=>{Tn.Hn("retrieved web experiments from the server"),o.zn=new Map,r.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Tn.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);bo(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var d in i.variants){var m=i.variants[d];Tn.Yn(m)&&o.Un(i.name,d,m.transforms)}}))}),n)},this._instance=t,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Tn.Hn(HO);else if(!this.Bt.disable_web_experiments){if(wt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Tn.Hn("applying feature flags",t),t.forEach((o=>{var n;if(this.zn&&(n=this.zn)!=null&&n.has(o)){var r,i=this._instance.getFeatureFlag(o),l=(r=this.zn)==null?void 0:r.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Tn.getWindowLocation();if(t!=null&&t.search){var o=Pg(t?.search,"__experiment_id"),n=Pg(t?.search,"__experiment_variant");o&&n&&(Tn.Hn("previewing web experiments "+o+" && "+n),this.getWebExperiments((r=>{this.Gn(parseInt(o),n,r)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,n){if(this.Bt.disable_web_experiments&&!n)return t([]);var r=this._instance.get_property("$web_experiments");if(r&&!o)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,n){var r=n.filter((i=>i.id===t));r&&r.length>0&&(Tn.Hn("Previewing web experiment ["+r[0].name+"] with variant ["+o+"]"),this.Un(r[0].name,o,r[0].variants[o].transforms))}static Yn(t){return!wt(t.conditions)&&Tn.Wn(t)&&Tn.Xn(t)}static Wn(t){var o;if(wt(t.conditions)||wt((o=t.conditions)==null?void 0:o.url))return!0;var n,r,i,l=Tn.getWindowLocation();return!!l&&((n=t.conditions)==null||!n.url||cse[(r=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&r!==void 0?r:"icontains"](t.conditions.url,l))}static getWindowLocation(){return pe?.location}static Xn(t){var o;if(wt(t.conditions)||wt((o=t.conditions)==null?void 0:o.utm))return!0;var n=SB();if(n.utm_source){var r,i,l,c,d,m,h,f,g=(r=t.conditions)==null||(r=r.utm)==null||!r.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==n.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==n.utm_source,y=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_medium)==n.utm_medium,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_term||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_term)==n.utm_term;return g&&y&&S&&v}return!1}static Hn(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;o>r;r++)n[r-1]=arguments[r];Fe.info("[WebExperiments] "+t,n)}Un(t,o,n){this._is_bot()?Tn.Hn(HO):o!=="control"?n.forEach((r=>{if(r.selector){var i;Tn.Hn("applying transform of variant "+o+" for experiment "+t+" ",r);var l=(i=document)==null?void 0:i.querySelectorAll(r.selector);l?.forEach((c=>{var d=c;r.html&&(d.innerHTML=r.html),r.css&&d.setAttribute("style",r.css)}))}})):Tn.Hn("Control variants leave the page unmodified.")}_is_bot(){return vr&&this._instance?MB(vr,this.Bt.custom_blocked_useragents):void 0}}var Mr=ho("[Conversations]"),Xs="Conversations not available yet.",_v={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ln.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ln.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var n=o&&typeof o=="string"&&o.trim().length>0;return n||Ln.error("Invalid evaluation context found:",o,"Expected non-empty string"),n})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,n=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(n).length){var r,i,l=(r=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&r!==void 0?r:{},c=Object.keys(n).filter((m=>!!n[m])).reduce(((m,h)=>(m[h]=n[h]||!1,m)),{}),d=Object.keys(l).filter((m=>c[m])).reduce(((m,h)=>(l[h]&&(m[h]=l[h]),m)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var n=o!=null&&o.merge?this.getFlagVariants():{},r=o!=null&&o.merge?this.getFlagPayloads():{},i=Oe({},n,e),l=Oe({},r,t),c={};for(var[d,m]of Object.entries(i)){var h=typeof m=="string";c[d]={key:d,enabled:!!h||!!m,variant:h?m:void 0,reason:void 0,metadata:ze(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(iC),t=this.os(ri),o=this.os(Tc);if(!o&&!t)return e||{};var n=xo({},e||{}),r=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of r){var l,c,d=n[i],m=t?.[i],h=ze(m)?(l=d?.enabled)!==null&&l!==void 0&&l:!!m,f=ze(m)?d.variant:typeof m=="string"?m:void 0,g=o?.[i],v=Oe({},d,{enabled:h,variant:h?f??d?.variant:void 0});h!==d?.enabled&&(v.original_enabled=d?.enabled),f!==d?.variant&&(v.original_variant=d?.variant),g&&(v.metadata=Oe({},d?.metadata,{payload:g,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),n[i]=v}return this.Jn||(Ln.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:n}),this.Jn=!0),n}getFlagVariants(){var e=this.os(Mc),t=this.os(ri);if(!t)return e||{};for(var o=xo({},e),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(sC),t=this.os(Tc);if(!t)return e||{};for(var o=xo({},e||{}),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,n=this.os(bg),r={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Ld)||{}),group_properties:this.os(el),timezone:TB()};yi(n)||ze(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.cs()&&(r.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:r,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,m,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Qn=!1,!r.disable_flags||this.ts){this.rs=!h;var f=[];l.error?l.error instanceof Error?f.push(l.error.name==="AbortError"?"timeout":"connection_error"):f.push("unknown_error"):l.statusCode!==200&&f.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&f.push("errors_while_computing_flags");var g,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&f.push("quota_limited"),(m=this.ni)==null||m.register({[mC]:f}),v?Ln.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(r.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},h,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var n=this.getFeatureFlagResult(e,t);return(o=n?.variant)!==null&&o!==void 0?o:n?.enabled}}else Ln.warn('getFeatureFlag for key "'+e+OS)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),n=e in o,r=o[e],i=this.getFlagPayloads()[e],l=String(r),c=this.os(lC)||void 0,d=this.os(Sg)||void 0,m=this.os($d)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var h,f=this._instance.get_session_id(),g=this.os(dC);f&&f!==g&&(m={},(h=this.ni)==null||h.register({[$d]:m,[dC]:f}))}if((t.send_event||!("send_event"in t))&&(!(e in m)||!m[e].includes(l))){var v,y,S,E,_,w,P,x,T,A;Dt(m[e])?m[e].push(l):m[e]=[l],(v=this.ni)==null||v.register({[$d]:m});var k=this.getFeatureFlagDetails(e),O=[...(y=this.os(mC))!==null&&y!==void 0?y:[]];ze(r)&&O.push("flag_missing");var N={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((E=this.Bt.bootstrap)==null||(E=E.featureFlagPayloads)==null?void 0:E[e])||null,$used_bootstrap_value:!this.rs};ze(k==null||(_=k.metadata)==null?void 0:_.version)||(N.$feature_flag_version=k.metadata.version);var $,F=(w=k==null||(P=k.reason)==null?void 0:P.description)!==null&&w!==void 0?w:k==null||(x=k.reason)==null?void 0:x.code;F&&(N.$feature_flag_reason=F),k!=null&&(T=k.metadata)!=null&&T.id&&(N.$feature_flag_id=k.metadata.id),ze(k?.original_variant)&&ze(k?.original_enabled)||(N.$feature_flag_original_response=ze(k.original_variant)?k.original_enabled:k.original_variant),k!=null&&(A=k.metadata)!=null&&A.original_payload&&(N.$feature_flag_original_payload=k==null||($=k.metadata)==null?void 0:$.original_payload),O.length&&(N.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",N)}if(n){var U=i;if(!ze(i))try{U=JSON.parse(i)}catch{}return{key:e,enabled:!!r,variant:typeof r=="string"?r:void 0,payload:U}}}}else Ln.warn('getFeatureFlagResult for key "'+e+OS)}getRemoteConfigPayload(e,t){var o=this.Bt.token,n={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(n.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(r){var i,l=(i=r.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return ze(o)?void 0:!!o}Ln.warn('isFeatureEnabled for key "'+e+OS)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,d,m,h,f){d===void 0&&(d={}),m===void 0&&(m={}),h===void 0&&(h={});var g=(O=>{var N=O.flags;return N?(O.featureFlags=Object.fromEntries(Object.keys(N).map(($=>{var F;return[$,(F=N[$].variant)!==null&&F!==void 0?F:N[$].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(N).filter(($=>N[$].enabled)).filter(($=>{var F;return(F=N[$].metadata)==null?void 0:F.payload})).map(($=>{var F;return[$,(F=N[$].metadata)==null?void 0:F.payload]})))):Ln.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=g.flags,y=g.featureFlags,S=g.featureFlagPayloads;if(y){var E=l.requestId,_=l.evaluatedAt;if(Dt(y)){Ln.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var w={};if(y)for(var P=0;y.length>P;P++)w[y[P]]=!0;c&&c.register({[Op]:y,[Mc]:w})}else{var x=y,T=S,A=v;if(f!=null&&f.partialResponse)x=Oe({},d,x),T=Oe({},m,T),A=Oe({},h,A);else if(l.errorsWhileComputingFlags)if(v){var k=new Set(Object.keys(v).filter((O=>{var N;return!((N=v[O])!=null&&N.failed)})));x=Oe({},d,Object.fromEntries(Object.entries(x).filter((O=>{var[N]=O;return k.has(N)})))),T=Oe({},m,Object.fromEntries(Object.entries(T||{}).filter((O=>{var[N]=O;return k.has(N)})))),A=Oe({},h,Object.fromEntries(Object.entries(A||{}).filter((O=>{var[N]=O;return k.has(N)}))))}else x=Oe({},d,x),T=Oe({},m,T),A=Oe({},h,A);c&&c.register(Oe({[Op]:Object.keys(VO(x)),[Mc]:x||{},[sC]:T||{},[iC]:A||{}},E?{[lC]:E}:{},_?{[Sg]:_}:{}))}}})(e,this.ni,n,r,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Ln.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Ln.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ri),this.ni.unregister(Tc),this.ps(),Js.info("All overrides cleared");if(Dt(e)){var t=qO(e);return this.ni.register({[ri]:t}),this.ps(),Js.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,n=e;if(this.Jn=!!((o=n.suppressWarning)!==null&&o!==void 0&&o),"flags"in n){if(n.flags===!1)this.ni.unregister(ri),Js.info("Flag overrides cleared");else if(n.flags){if(Dt(n.flags)){var r=qO(n.flags);this.ni.register({[ri]:r})}else this.ni.register({[ri]:n.flags});Js.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.ni.unregister(Tc),Js.info("Payload overrides cleared")):n.payloads&&(this.ni.register({[Tc]:n.payloads}),Js.info("Payload overrides set",{payloads:n.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ri]:e}),this.ps(),Js.info("Flag overrides set",{flags:e});Ln.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var n,r=(this.os(Md)||[]).find((d=>d.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};r&&(l.$early_access_feature_name=r.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Oe({},this.getFlagVariants(),{[e]:t});(n=this.ni)==null||n.register({[Op]:Object.keys(VO(c)),[Mc]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var n=this.os(Md),r=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+r),method:"GET",callback:i=>{var l,c;if(i.json){var d=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(Md),(c=this.ni)==null||c.register({[Md]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,n)=>(o[n]=t[n],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((n=>n(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Ld)||{},n=e?.$set||(e!=null&&e.$set_once?{}:e),r=e?.$set_once,i={};if(r)for(var l in r)({}).hasOwnProperty.call(r,l)&&(l in o||(i[l]=r[l]));this._instance.register({[Ld]:Oe({},o,i,n)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Ld)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(el)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((n=>{o[n]=Oe({},o[n],e[n]),delete e[n]})),this._instance.register({[el]:Oe({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(el)||{};this._instance.register({[el]:Oe({},t,{[e]:{}})})}else this._instance.unregister(el)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},use={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===Ed||this.bs===vp?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=LO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Qi.error("started without valid sessionManager"),new Error(RC+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===si)throw new Error(RC+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Id))==null||!e.enabled),o=!this.Bt.disable_session_recording,n=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return pe&&t&&o&&!n}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!ze(Object.assign)&&!ze(Array.from);this.ws&&o?(this.Is(e),Qi.info("starting")):(this.bs=LO,this.stopRecording())}}Is(e){var t,o,n;this.ws&&(this.bs!==Ed&&this.bs!==vp&&(this.bs=NO),Ze!=null&&(t=Ze.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=Ze.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.Ss,(r=>{if(r)return Qi.error("could not load recorder",r);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(pE)}Ts(e,t){if(wt(e))return null;var o,n=Ur(e)?e:parseFloat(e);return typeof(o=n)!="number"||!Number.isFinite(o)||0>o||o>1?(Qi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):n}As(e){if(this.ni){var t,o,n=this.ni,r=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),m=c??d;wt(m)&&this.ks();var h=l?.minimumDurationMilliseconds;n.register({[Id]:Oe({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Oe({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:m,minimumDurationMilliseconds:ze(h)?null:h,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};r(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(r)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===Ed&&(this.bs=vp,Qi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):Qi.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Id);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Id);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=Ze.__PosthogExtensions__)==null||!t.initSessionRecording)return Qi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[pB]:!0});if(this.ys||(this.ys=(o=Ze.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===vp||this.bs===Ed?void 0:(this.bs=Ed,Qi.info("persisted remote config is stale, requesting fresh config before starting"),void new PB(this._instance).load());this.bs=NO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[cB]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[lB]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?uB:dB]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},dse={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new DO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Ao(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((n=>new RegExp(n))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((n=>new RegExp(n))),o}Os(){if(this.isBrowserSupported()){if(pe&&Ne){var e=o=>{o=o||pe?.event;try{this.Ps(o)}catch(n){OO.error("Failed to capture event",n)}};if(qo(Ne,"submit",e,{capture:!0}),qo(Ne,"change",e,{capture:!0}),qo(Ne,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||pe?.event,AS)};qo(Ne,"copy",t,{capture:!0}),qo(Ne,"cut",t,{capture:!0})}}}else OO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[J_]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((n=>{var r=Ne?.querySelectorAll(n);r?.forEach((i=>{e===i&&o.push(n)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[J_];if(yi(this.Ns)&&!xa(o)&&!this.instance.Fr())return!1;var n=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!n}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,n=xO(e);zB(n)&&(n=n.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(f,g){if(!pe||TC(f))return!1;var v,y,S;if(xa(g)?(v=!!g&&PO,y=void 0):(v=(S=g?.css_selector_ignorelist)!==null&&S!==void 0?S:PO,y=g?.content_ignorelist),v===!1)return!1;var{targetElementList:E}=RO(f,!1);return!(function(_,w){if(_===!1||ze(_))return!1;var P;if(_===!0)P=Wie;else{if(!Dt(_))return!1;if(_.length>10)return Fe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;P=_.map((x=>x.toLowerCase()))}return w.some((x=>{var{safeText:T,ariaLabel:A}=x;return P.some((k=>T.includes(k)||A.includes(k)))}))})(y,E.map((_=>{var w;return{safeText:fm(_).toLowerCase(),ariaLabel:((w=_.getAttribute("aria-label"))==null?void 0:w.toLowerCase().trim())||""}})))&&!TO(E,v)})(n,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var r=t===AS;if(n&&(function(f,g,v,y,S){var E,_,w,P;if(v===void 0&&(v=void 0),!pe||TC(f)||(E=v)!=null&&E.url_allowlist&&!EO(v.url_allowlist)||(_=v)!=null&&_.url_ignorelist&&EO(v.url_ignorelist))return!1;if((w=v)!=null&&w.dom_event_allowlist){var x=v.dom_event_allowlist;if(x&&!x.some((N=>g.type===N)))return!1}var{parentIsUsefulElement:T,targetElementList:A}=RO(f,y);if(!(function(N,$){var F=$?.element_allowlist;if(ze(F))return!0;var U,j=function(ae){if(F.some((V=>ae.tagName.toLowerCase()===V)))return{v:!0}};for(var K of N)if(U=j(K))return U.v;return!1})(A,v)||!TO(A,(P=v)==null?void 0:P.css_selector_allowlist))return!1;var k=pe.getComputedStyle(f);if(k&&k.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var O=f.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(g.type)>=0;default:return T?(S||["click"]).indexOf(g.type)>=0:(S||["click"]).indexOf(g.type)>=0&&(CE.indexOf(O)>-1||f.getAttribute("contenteditable")==="true")}})(n,e,this.Bt,r,r?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=tse(n,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(n);if(c&&c.length>0&&(i.$element_selectors=c),t===AS){var d,m=UB(pe==null||(d=pe.getSelection())==null?void 0:d.toString()),h=e.type||"clipboard";if(!m)return!1;i.$selected_content=m,i.$copy_type=h}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return ai(Ne?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(pe==null||(t=pe.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Fe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Fe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(pe&&pe.history){var o=this;(e=pe.history.pushState)!=null&&e.__posthog_wrapped__||IO(pe.history,"pushState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("pushState")})),(t=pe.history.replaceState)!=null&&t.__posthog_wrapped__||IO(pe.history,"replaceState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=pe==null||(t=pe.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Pc,{navigation_type:e}),this.Ls=o}catch(n){Fe.error("Error capturing "+e+" pageview",n)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};qo(pe,"popstate",e),this.Ds=()=>{pe&&pe.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[X_]),this.rageclicks=new DO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Ao(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return wt(this.Bt.capture_heatmaps)?wt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;nse.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[X_]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Ne?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){pe&&Ne&&(this.zs=this.Yr.bind(this),qo(pe,Eg,this.zs),this.Us=e=>this.Tt(e||pe?.event),qo(Ne,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||pe?.event),qo(Ne,"mousemove",this.Ys,{capture:!0}),this.Ws=new rO(this.instance,gie,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),qo(Ne,wg,this.Xs),this.Rs=!0)}Vs(){var e;pe&&Ne&&(this.zs&&pe.removeEventListener(Eg,this.zs),this.Us&&Ne.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Ne.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Ne.removeEventListener(wg,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),i=(function(l,c,d){for(var m=l;m&&Sv(m)&&!fs(m,"body");){if(m===d)return!1;if(Ct(c,pe?.getComputedStyle(m).position))return!0;m=$B(m)}return!1})(xO(e),["fixed","sticky"],r);return{x:e.clientX+(i?0:n),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!wO(e.target)&&FO(e)){var n=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Oe({},n,{type:"rageclick"})),this.Qs(n)}}Gs(e){!wO(e.target)&&FO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(pe){var t=pe.location.href,o=this.Bt.custom_personal_data_properties,n=this.Bt.mask_personal_data_properties?[...ou,...o||[]]:[],r=dm(t,n,mm);this.T=this.T||{},this.T[r]||(this.T[r]=[]),this.T[r].push(e)}}Yr(){this.T&&!Ic(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:rO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,n)=>Oe({},o,{["$web_vitals_"+n.name+"_event"]:Oe({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var n,r=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(ze(r))Zi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();ze(i)||(wt(o?.name)||wt(o?.value)?Zi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ze(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=ze(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Oe({},o,{$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):Zi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,n,r,i,l=Ze.__PosthogExtensions__;ze(l)||ze(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:n,onFCP:r,onINP:i}=l.postHogWebVitalsCallbacks),o&&n&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):Zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[nC]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Ao(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return wt(o)?((t=this._instance.persistence)==null?void 0:t.props[aC])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Ao(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Ao(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Ao(this.oo)&&Ur(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:MO;return e>0&&6e4>=e?MO:e}get isEnabled(){var e=hn?.protocol;if(e!=="http:"&&e!=="https:")return Zi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Ao(this.oo)?this.oo.web_vitals:xa(this.oo)?this.oo:void 0;return xa(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(Zi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Ao(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Ao(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[nC]:t}),this._instance.persistence.register({[aC]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Zi.error("failed to load script",n):e()}))}io(){var e=pe?pe.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...ou,...t||[]]:[];return dm(e,o,mm)}Zi.error("Could not determine current URL")}}},mse={exceptionObserver:class{constructor(e){var t,o,n;this.so=()=>{var r;if(pe&&this.isEnabled&&(r=Ze.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var i=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){wd.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[eC]),this.do=new xae({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,Gt:wd}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Ao(e)?t=Oe({},t,e):(ze(e)?this.co:e)&&(t=Oe({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(wd.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return wd.error("failed to load script",n);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[eC]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,n,r=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(r)?wd.info("Skipping exception capture because of client rate limiting.",{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Bae([new Gae,new tie,new Wae,new Kae,new Xae,new Jae,new Zae,new eie],(function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;r>l;l++)i[l-1]=arguments[l];return function(c,d){d===void 0&&(d=0);for(var m=[],h=c.split(`
163
- `),f=d;h.length>f;f++){var g=h[f];if(1024>=g.length){var v=eO.test(g)?g.replace(eO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){m.push(S);break}}if(m.length>=50)break}}}return(function(E){if(!E.length)return[];var _=Array.from(E);return _.reverse(),_.slice(0,50).map((w=>{return Oe({},w,{filename:w.filename||(P=_,P[P.length-1]||{}).filename,function:w.function||tu});var P}))})(m)}})("web:javascript",$ae,Hae)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(tC))!==null&&t!==void 0?t:[],this.mo=vg(this.yo()),this.bo=new nie(this.mo)}onConfigChange(){this.mo=vg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[tC]:this.fo,[oC]:i})}}get _o(){var e,t=!!this._instance.get_property(oC),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!bo(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>oie.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Oe({[pg]:e,[gg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&wt(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[pg]:e,[gg]:new Date().toISOString()})}wo(e){return Ao(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return bo(r)&&r.length>0&&o.$exception_types.push(r),bo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=LB[r.operator],c=Dt(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!wt(e)&&Dt(e)}}},fse=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[rC]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(rC)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?BO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Dt(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Ip];if(Dt(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return BO.error(l),void e([],{isLoaded:!1,error:l})}var c=Dt(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Ip]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){wt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Ip)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},_v),hse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},m=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[f,g]of Object.entries(h))d[f]={id:m[f],type:f,properties:g};var{$set_once:v,$set:y}=e;return{event:Oe({},N3(e,rse),{properties:Oe({},e.properties,y?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Oe({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(zO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var m;Ze["__$$ph_site_app_"+d]=r._instance,(m=Ze.__PosthogExtensions__)==null||m.loadSiteApp==null||m.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(zO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},pse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return ose.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},gse=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(wt(t))return Zt.warn("Flags not loaded yet. Not loading surveys.");var o=Dt(t);this.jo=o?t.length>0:t,Zt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(EC)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Zt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Zt.info(jO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Zt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(gE);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Zt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new sse(this._instance),Zt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Zt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Zt.info(jO),e([]);var o,n=this._instance.get_property(cC);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Zt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var m,h=r.json.surveys||[],f=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));f.length>0&&((m=this._surveyEventReceiver)==null||m.register(f)),(i=this._instance.persistence)==null||i.register({[cC]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Zt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!wt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Zt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(wt(this._surveyManager))return{eligible:!1,reason:DS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(wt(this._surveyManager))return Zt.warn("init was not called"),{visible:!1,disabledReason:DS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return wt(this._surveyManager)?(Zt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:DS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(wt(this._surveyManager))Zt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(Uie.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Zt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Zt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Zt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Zt.warn("Survey element not found")}else Zt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Zt.warn("Survey not found")}}displaySurvey(e,t){var o;if(wt(this._surveyManager))Zt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Oe({},n,{appearance:Oe({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==bC.Popover&&t.initialResponses&&Zt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Zt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==bC.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Zt.warn("Survey not found")}}cancelPendingSurvey(e){wt(this._surveyManager)?Zt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},_v),vse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),gB(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=lse||Rg(e.hash,"__posthog")||Rg(e.hash,"state"),i=r?oO((()=>JSON.parse(atob(decodeURIComponent(r)))))||oO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(UO)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!wt(t)&&ai(t)?t(e,this.instance):$O.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(mB));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(UO,JSON.stringify(Oe({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return $O.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),qo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},bse=Oe({experiments:Tn},_v),yse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;wt(t)||(xa(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||gB(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(gE);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Xs),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Xs),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Xs),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Xs),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Xs),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Xs),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Xs),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Sse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=ho("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!wt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(gE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,m=Date.now();if(c>m-this.aa||(this.aa=m,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(f,g){var v=f.level||"info",{text:y,number:S}=oB[v]||Nae,E=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var w=Oe({},_,f.attributes||{}),P={timeUnixNano:E,observedTimeUnixNano:E,severityNumber:S,severityText:y,body:{stringValue:f.body},attributes:XD(w)};return f.trace_id&&(P.traceId=f.trace_id),f.span_id&&(P.spanId=f.span_id),ze(f.trace_flags)||(P.flags=f.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,m){return{resourceLogs:[{resource:{attributes:XD(c)},scopeLogs:[{scope:{name:d,version:m},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},_se=Oe({},_v,use,dse,mse,fse,hse,gse,pse,vse,bse,yse,Sse);Fr.__defaultExtensionClasses=Oe({},_se);var GO,Cl=(GO=Vd[Rc]=new Fr,(function(){function e(){e.done||(e.done=!0,BB=!1,lo(Vd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():qo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),GO);const Cse="studio-ui-resources",Ig="html",wse=10080*60*1e3,Ese=50,xse=16*1024*1024;function Tse(e){return e[0]==="mcp"&&e[1]===s2}function Cv(){return new Promise((e,t)=>{const o=indexedDB.open(Cse,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Ig)||o.result.createObjectStore(Ig)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function ru(e,t){return e.transaction(Ig,t).objectStore(Ig)}function AC(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function Pse(e){if(!(typeof indexedDB>"u"))try{const t=await Cv(),o=ru(t,"readonly"),n=await AC(o.getAllKeys()),r=await AC(o.getAll()),i=Date.now(),l=n.map((m,h)=>({key:m,value:r[h]})).sort((m,h)=>(h.value?.updatedAt??0)-(m.value?.updatedAt??0)),c=[];let d=0;for(const{key:m,value:h}of l){if(!h||i-h.updatedAt>wse||d>=Ese){c.push(m);continue}d++;try{const g=JSON.parse(String(m));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(m)}}if(c.length>0){const m=ru(t,"readwrite");for(const h of c)m.delete(h)}}catch{}}function Rse(e){if(typeof indexedDB>"u")return()=>{};const t=Cv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!Tse(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>xse||t.then(i=>{if(i)try{ru(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function Ase(){typeof indexedDB>"u"||Cv().then(e=>ru(e,"readwrite").clear()).catch(()=>{})}async function ome(e){if(!(typeof indexedDB>"u"))try{const t=await Cv(),o=await AC(ru(t,"readonly").getAllKeys()),n=ru(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===s2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Mg="studio:rq-cache",KB=1440*60*1e3,kse=1e3,Dse=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Ose=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let WB=!1,YB=!1;function Ise(e){const t=e[0];return typeof t=="string"&&Dse.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Ose.has(e[4])}function Mse(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Mg);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>KB;if(o.buster!=="4.133.8"||n||!o.state){window.localStorage.removeItem(Mg);return}oz(e,o.state),WB=!0}catch{Nse()}}function Lse(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=tz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&Ise(r.queryKey)});window.localStorage.setItem(Mg,JSON.stringify({buster:"4.133.8",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,kse))})}const ZB="studio:org-cache:";function QB(e){return`${ZB}${e}`}function nme(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(QB(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>KB?null:(YB=!0,n)}catch{return null}}function rme(e,t,o){if(!(typeof window>"u"))try{const n=QB(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function Nse(){if(Ase(),!(typeof window>"u"))try{window.localStorage.removeItem(Mg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(ZB)&&window.localStorage.removeItem(t)}}catch{}}function Fse(){return WB}function Bse(){return YB}let hi=!1,kC=null,KO=!1;const wE="studio:lp-distinct-id",JB="mesh:lp-distinct-id",IS="/api/_reports/link-token/",zse=1440*60*1e3;function XB(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(IS)&&r.pathname!==IS&&(r.pathname=`${IS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function MS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?XB(o):o]))}const jse=e=>e?(e.properties=MS(e.properties),e.$set&&(e.$set=MS(e.$set)),e.$set_once&&(e.$set_once=MS(e.$set_once)),e):null;function e4(){try{const e=window.localStorage.getItem(wE)??window.localStorage.getItem(JB);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=zse?t:void 0}catch{return}}function Use(){try{window.localStorage.removeItem(wE),window.localStorage.removeItem(JB)}catch{}}function $se(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(wE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??e4();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function qse(e){const t=e4();if(t&&(Use(),t!==e))try{Cl.alias(t)}catch{}}function Vse(e,t){if(hi||typeof window>"u")return;const o=$se();Cl.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:jse,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:XB(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function Hse(e,t){hi&&(Cl.identify(e,t),qse(e))}function Gse(){hi&&(Cl.reset(),kC=null)}function Kse(e,t){hi&&Cl.capture(e,t)}function ame(){return hi}function ime(){if(!hi||KO||typeof performance>"u")return;KO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Kse("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Fse(),org_cache_restored:Bse()})}function sme(e,t){hi&&e!==kC&&(Cl.group("organization",e,t),kC=e)}function t4(e,t){if(hi)try{Cl.captureException(e,t)}catch{}}let bp=null;function Wse({children:e}){const t=l2(),{data:o}=ov.useSession();if(t.posthog){Vse(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==bp?(Hse(n,{email:o?.user?.email,name:o?.user?.name}),bp=n):!n&&bp&&(Gse(),bp=null)}return R.jsx(R.Fragment,{children:e})}const EE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));EE.displayName="AlertTriangle";const o4=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));o4.displayName="Archive";const xE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));xE.displayName="Loading01";const n4=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));n4.displayName="Lock01";const r4=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));r4.displayName="RefreshCw01";function TE(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:R.jsx(xE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Yse(e){try{return JSON.parse(e)}catch{return}}function WO(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Yse(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function Zse(e,t){const o=eo.c(25),n=Ng();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>WO(e,t),c=()=>WO(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:m}=pI(d);let h;o[10]!==e?(h=async w=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(w)),w),o[10]=e,o[11]=h):h=o[11];let f;o[12]!==n||o[13]!==i?(f=w=>{n.setQueryData(i,w)},o[12]=n,o[13]=i,o[14]=f):f=o[14];let g;o[15]!==h||o[16]!==f?(g={mutationFn:h,onSuccess:f},o[15]=h,o[16]=f,o[17]=g):g=o[17];const v=yp(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=w=>{const P=n.getQueryData(i),x=typeof w=="function"?w(P):w;v.mutate(x)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,E=m;let _;return o[22]!==S||o[23]!==E?(_=[E,S],o[22]=S,o[23]=E,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`studio:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`studio:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`studio:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`studio:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`studio:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`studio:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`studio:chat:draft:${e}:${t}`,sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:e=>`studio:connections:tab:${e}`,taskLastViewed:e=>`studio:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`studio:announcement:pt-br:${e}`,cmsTourSeen:e=>`studio:cms-tour:seen:${e}`},Qse=["en","pt-BR"];function a4(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Jse={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:a4()},i4=["auto","readonly"],lme=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Xse=["light","dark","system"];function cme(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(i4.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function s4(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],Zse(t,ele)}function ele(e){const t={...Jse,...e};return i4.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Xse.includes(t.theme)||(t.theme="system"),Qse.includes(t.language)||(t.language=a4()),t}async function tle(){performance.mark("studio:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("studio:config-fetch:end"),performance.measure("studio:config-fetch","studio:config-fetch:start","studio:config-fetch:end")}}function ole(e){if(!e)return;const t=document.getElementById("studio-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
162
+ `})]})]})}function Oa({redirectTo:e}){const{redirectTo:t}=D.useContext(vt),[o,n]=D.useState(!1),{navigate:r,hooks:{useSession:i},onSessionChange:l}=D.useContext(vt),{refetch:c}=i();return{onSuccess:D.useCallback(async()=>{n(!0),await c?.(),l&&await l(),n(!1);const m=e||yl("redirectTo")||t;r(m)},[c,l,r,e,t]),isPending:o}}function I3({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:o}=D.useContext(vt),n=t?.(),r=D.useRef(!1),{onSuccess:i}=Oa({redirectTo:e});return D.useEffect(()=>{if(!r.current){if(!o){r.current=!0,i();return}n||(r.current=!0,i())}},[n,o,i]),R.jsx(kn,{className:"animate-spin"})}function sE({className:e,containerClassName:t,...o}){return R.jsx(b3,{"data-slot":"input-otp",containerClassName:Te("flex items-center gap-2 has-disabled:opacity-50",t),className:Te("disabled:cursor-not-allowed",e),...o})}function bc({className:e,...t}){return R.jsx("div",{"data-slot":"input-otp-group",className:Te("flex items-center",e),...t})}function on({index:e,className:t,...o}){const n=D.useContext(v3),{char:r,hasFakeCaret:i,isActive:l}=n?.slots[e]??{};return R.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:Te("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...o,children:[r,i&&R.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:R.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function dS({...e}){return R.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:R.jsx(CZ,{})})}function lE({otpSeparators:e=0}){return e===0?R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1}),R.jsx(on,{index:2}),R.jsx(on,{index:3}),R.jsx(on,{index:4}),R.jsx(on,{index:5})]}):e===1?R.jsxs(R.Fragment,{children:[R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1}),R.jsx(on,{index:2})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:3}),R.jsx(on,{index:4}),R.jsx(on,{index:5})]})]}):R.jsxs(R.Fragment,{children:[R.jsxs(bc,{children:[R.jsx(on,{index:0}),R.jsx(on,{index:1})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:2}),R.jsx(on,{index:3})]}),R.jsx(dS,{}),R.jsxs(bc,{children:[R.jsx(on,{index:4}),R.jsx(on,{index:5})]})]})}function UD(e){const[t,o]=D.useState();return t?R.jsx(tae,{...e,email:t}):R.jsx(eae,{...e,setEmail:o})}function eae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r,setEmail:i}){const l=gi(),{captchaRef:c,getCaptchaHeaders:d}=Mm({localization:n}),{authClient:m,localization:h,toast:f,localizeErrors:g}=D.useContext(vt);n={...h,...n};const v=Ae({email:Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`})}),y=Ra({resolver:Aa(v),defaultValues:{email:""}});o=o||y.formState.isSubmitting,D.useEffect(()=>{r?.(y.formState.isSubmitting)},[y.formState.isSubmitting,r]);async function S({email:E}){const _={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await m.emailOtp.sendVerificationOtp({email:E,type:"sign-in",fetchOptions:_}),f({variant:"success",message:n.EMAIL_OTP_VERIFICATION_SENT}),i(E)}catch(w){f({variant:"error",message:Mo({error:w,localization:n,localizeErrors:g})})}}return R.jsx(Da,{...y,children:R.jsxs("form",{method:"POST",onSubmit:y.handleSubmit(S),noValidate:l,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:y.control,name:"email",render:({field:E})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...E})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:c,localization:n,action:"/email-otp/send-verification-otp"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.EMAIL_OTP_SEND_ACTION})]})})}function tae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l,email:c}){const{authClient:d,localization:m,toast:h,localizeErrors:f}=D.useContext(vt);n={...m,...n};const{onSuccess:g,isPending:v}=Oa({redirectTo:i}),y=Ae({code:Y().min(1,{message:`${n.EMAIL_OTP} ${n.IS_REQUIRED}`}).min(6,{message:`${n.EMAIL_OTP} ${n.IS_INVALID}`})}),S=Ra({resolver:Aa(y),defaultValues:{code:""}});o=o||S.formState.isSubmitting||v,D.useEffect(()=>{l?.(S.formState.isSubmitting||v)},[S.formState.isSubmitting,v,l]);async function E({code:_}){try{await d.signIn.emailOtp({email:c,otp:_,fetchOptions:{throw:!0}}),await g()}catch(w){h({variant:"error",message:Mo({error:w,localization:n,localizeErrors:f})}),S.reset()}}return R.jsx(Da,{...S,children:R.jsxs("form",{method:"POST",onSubmit:S.handleSubmit(E),className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:S.control,name:"code",render:({field:_})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL_OTP}),R.jsx(Vo,{children:R.jsx(sE,{..._,maxLength:6,onChange:w=>{_.onChange(w),w.length===6&&S.handleSubmit(E)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx("div",{className:"grid gap-4",children:R.jsxs(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.EMAIL_OTP_VERIFY_ACTION]})})]})})}function oae({onCancel:e,localization:t,className:o,classNames:n,otpSeparators:r,callbackURL:i,isSubmitting:l,redirectTo:c,setIsSubmitting:d}){const[m,h]=D.useState(!0),[f,g]=D.useState(30),{authClient:v,localization:y,toast:S,localizeErrors:E,navigate:_,basePath:w,viewPaths:P}=D.useContext(vt);t={...y,...t};const x=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:T,isPending:A}=Oa({redirectTo:c}),k=Ae({code:Y().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),O=Ra({resolver:Aa(k),defaultValues:{code:""}}),N=l||O.formState.isSubmitting||A;D.useEffect(()=>{d?.(O.formState.isSubmitting||A)},[O.formState.isSubmitting,A,d]),D.useEffect(()=>{if(f>0){const U=setTimeout(()=>g(f-1),1e3);return()=>clearTimeout(U)}else h(!1)},[f]);async function $({code:U}){try{const j=await v.emailOtp.verifyEmail({email:x,otp:U,fetchOptions:{throw:!0}});"token"in j&&j.token?await T():(_(`${w}/${P.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(j){S({variant:"error",message:Mo({error:j,localization:t,localizeErrors:E})}),O.reset()}}async function F(){if(!m){h(!0),g(30);try{await v.emailOtp.sendVerificationOtp({email:x,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(U){S({variant:"error",message:Mo({error:U,localization:t,localizeErrors:E})}),h(!1),g(0)}}}return x?R.jsx(Da,{...O,children:R.jsxs("form",{method:"POST",onSubmit:O.handleSubmit($),className:Te("grid w-full gap-6",o,n?.base),children:[R.jsx(ko,{control:O.control,name:"code",render:({field:U})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:n?.label,children:t.EMAIL_OTP}),R.jsx(Vo,{children:R.jsx(sE,{...U,maxLength:6,onChange:j=>{U.onChange(j),j.length===6&&O.handleSubmit($)()},containerClassName:n?.otpInputContainer,className:n?.otpInput,disabled:N,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:n?.error})]})}),R.jsxs("div",{className:"grid gap-4",children:[R.jsxs(oo,{type:"submit",disabled:N,className:Te(n?.button,n?.primaryButton),children:[N&&R.jsx(kn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),R.jsx(oo,{type:"button",variant:"outline",onClick:F,disabled:m||N,className:Te("w-full",n?.button),children:m?`${t.RESEND_VERIFICATION_EMAIL} (${f}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&R.jsx(oo,{type:"button",variant:"ghost",onClick:e,disabled:N,className:"w-full",children:t.CANCEL})]})]})}):R.jsx("div",{className:Te("grid w-full gap-6",o),children:R.jsxs("div",{className:"text-center",children:[R.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),R.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function nae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r}){const i=gi(),{captchaRef:l,getCaptchaHeaders:c,resetCaptcha:d}=Mm({localization:n}),{authClient:m,basePath:h,baseURL:f,localization:g,navigate:v,toast:y,viewPaths:S,localizeErrors:E}=D.useContext(vt);n={...g,...n};const _=Ae({email:Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`}).min(1,{message:`${n.EMAIL} ${n.IS_REQUIRED}`})}),w=Ra({resolver:Aa(_),defaultValues:{email:""}});o=o||w.formState.isSubmitting,D.useEffect(()=>{r?.(w.formState.isSubmitting)},[w.formState.isSubmitting,r]);async function P({email:x}){try{const T={throw:!0,headers:await c("/forget-password")};await m.requestPasswordReset({email:x,redirectTo:`${f}${h}/${S.RESET_PASSWORD}`,fetchOptions:T}),y({variant:"success",message:n.FORGOT_PASSWORD_EMAIL}),v(`${h}/${S.SIGN_IN}${window.location.search}`)}catch(T){y({variant:"error",message:Mo({error:T,localization:n,localizeErrors:E})}),d()}}return R.jsx(Da,{...w,children:R.jsxs("form",{method:"POST",onSubmit:w.handleSubmit(P),noValidate:i,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:w.control,name:"email",render:({field:x})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...x})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:l,localization:n,action:"/forget-password"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.FORGOT_PASSWORD_ACTION})]})})}function $D({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l}){const c=gi(),{captchaRef:d,getCaptchaHeaders:m,resetCaptcha:h}=Mm({localization:r}),{authClient:f,basePath:g,baseURL:v,persistClient:y,localization:S,redirectTo:E,viewPaths:_,toast:w,localizeErrors:P}=D.useContext(vt);r={...S,...r};const x=D.useCallback(()=>i||yl("redirectTo")||E,[i,E]),T=D.useCallback(()=>`${v}${o||(y?`${g}/${_.CALLBACK}?redirectTo=${encodeURIComponent(x())}`:x())}`,[o,y,g,_,v,x]),A=Ae({email:Y().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),k=Ra({resolver:Aa(A),defaultValues:{email:""}});n=n||k.formState.isSubmitting,D.useEffect(()=>{l?.(k.formState.isSubmitting)},[k.formState.isSubmitting,l]);async function O({email:N}){try{const $={throw:!0,headers:await m("/sign-in/magic-link")};await f.signIn.magicLink({email:N,callbackURL:T(),fetchOptions:$}),w({variant:"success",message:r.MAGIC_LINK_EMAIL}),k.reset()}catch($){w({variant:"error",message:Mo({error:$,localization:r,localizeErrors:P})}),h()}}return R.jsx(Da,{...k,children:R.jsxs("form",{method:"POST",onSubmit:k.handleSubmit(O),noValidate:c,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:k.control,name:"email",render:({field:N})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...N})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(Lm,{ref:d,localization:r,action:"/sign-in/magic-link"}),R.jsx(oo,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.MAGIC_LINK_ACTION})]})})}function rae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i}){const{authClient:l,localization:c,toast:d,localizeErrors:m}=D.useContext(vt);n={...c,...n};const{onSuccess:h,isPending:f}=Oa({redirectTo:r}),g=Ae({code:Y().min(1,{message:n.BACKUP_CODE_REQUIRED})}),v=Ra({resolver:Aa(g),defaultValues:{code:""}});o=o||v.formState.isSubmitting||f,D.useEffect(()=>{i?.(v.formState.isSubmitting||f)},[v.formState.isSubmitting,f,i]);async function y({code:S}){try{await l.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await h()}catch(E){d({variant:"error",message:Mo({error:E,localization:n,localizeErrors:m})}),v.reset()}}return R.jsx(Da,{...v,children:R.jsxs("form",{method:"POST",onSubmit:v.handleSubmit(y),className:Te("grid gap-6",e,t?.base),children:[R.jsx(ko,{control:v.control,name:"code",render:({field:S})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:n.BACKUP_CODE}),R.jsx(Vo,{children:R.jsx(na,{placeholder:n.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:o,...S})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.RECOVER_ACCOUNT_ACTION})]})})}function aae({className:e,classNames:t,localization:o,passwordValidation:n}){const r=D.useRef(!1),{authClient:i,basePath:l,credentials:c,localization:d,viewPaths:m,navigate:h,toast:f,localizeErrors:g}=D.useContext(vt),v=c?.confirmPassword,y=c?.passwordValidation;o={...d,...o},n={...y,...n};const S=Ae({newPassword:tm(n,{PASSWORD_REQUIRED:o.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}),confirmPassword:v?tm(n,{PASSWORD_REQUIRED:o.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}):Y().optional()}).refine(P=>!v||P.newPassword===P.confirmPassword,{message:o.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),E=Ra({resolver:Aa(S),defaultValues:{newPassword:"",confirmPassword:""}}),_=E.formState.isSubmitting;D.useEffect(()=>{if(r.current)return;r.current=!0;const x=new URLSearchParams(window.location.search).get("token");(!x||x==="INVALID_TOKEN")&&(h(`${l}/${m.SIGN_IN}${window.location.search}`),f({variant:"error",message:o.INVALID_TOKEN}))},[l,h,f,m,o]);async function w({newPassword:P}){try{const T=new URLSearchParams(window.location.search).get("token");await i.resetPassword({newPassword:P,token:T,fetchOptions:{throw:!0}}),f({variant:"success",message:o.RESET_PASSWORD_SUCCESS}),h(`${l}/${m.SIGN_IN}${window.location.search}`)}catch(x){f({variant:"error",message:Mo({error:x,localization:o,localizeErrors:g})}),E.reset()}}return R.jsx(Da,{...E,children:R.jsxs("form",{method:"POST",onSubmit:E.handleSubmit(w),className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:E.control,name:"newPassword",render:({field:P})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:o.NEW_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:o.NEW_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Yo,{className:t?.error})]})}),v&&R.jsx(ko,{control:E.control,name:"confirmPassword",render:({field:P})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:o.CONFIRM_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:o.CONFIRM_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(oo,{type:"submit",disabled:_,className:Te("w-full",t?.button,t?.primaryButton),children:_?R.jsx(kn,{className:"animate-spin"}):o.RESET_PASSWORD_ACTION})]})})}function iae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i,passwordValidation:l,callbackURL:c}){const d=gi(),{captchaRef:m,getCaptchaHeaders:h,resetCaptcha:f}=Mm({localization:n}),{authClient:g,basePath:v,credentials:y,localization:S,viewPaths:E,navigate:_,toast:w,Link:P,localizeErrors:x,emailVerification:T}=D.useContext(vt),A=y?.rememberMe,k=y?.username,O=y?.passwordValidation;n={...S,...n},l={...O,...l};const{onSuccess:N,isPending:$}=Oa({redirectTo:r}),F=Ae({email:k?Y().min(1,{message:`${n.USERNAME} ${n.IS_REQUIRED}`}):Y().email({message:`${n.EMAIL} ${n.IS_INVALID}`}),password:tm(l,n),rememberMe:Vt().optional()}),U=Ra({resolver:Aa(F),defaultValues:{email:"",password:"",rememberMe:!A}});o=o||U.formState.isSubmitting||$,D.useEffect(()=>{i?.(U.formState.isSubmitting||$)},[U.formState.isSubmitting,$,i]);async function j({email:K,password:ae,rememberMe:V}){var Z;try{let te={};if(k&&!CY(K)){const le={throw:!0,headers:await h("/sign-in/username")};te=await g.signIn.username({username:K,password:ae,rememberMe:V,fetchOptions:le,callbackURL:c})}else{const le={throw:!0,headers:await h("/sign-in/email")};te=await g.signIn.email({email:K,password:ae,rememberMe:V,fetchOptions:le,callbackURL:c})}te.twoFactorRedirect?_(`${v}/${E.TWO_FACTOR}${window.location.search}`):await N()}catch(te){U.resetField("password"),f(),w({variant:"error",message:Mo({error:te,localization:n,localizeErrors:x})}),T?.otp&&((Z=te?.error)==null?void 0:Z.code)==="EMAIL_NOT_VERIFIED"&&_(`${v}/${E.EMAIL_VERIFICATION}?email=${encodeURIComponent(K)}`)}}return R.jsx(Da,{...U,children:R.jsxs("form",{method:"POST",onSubmit:U.handleSubmit(j),noValidate:d,className:Te("grid w-full gap-6",e,t?.base),children:[R.jsx(ko,{control:U.control,name:"email",render:({field:K})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:k?n.USERNAME:n.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:k?"username":"email",className:t?.input,type:k?"text":"email",placeholder:k?n.SIGN_IN_USERNAME_PLACEHOLDER:n.EMAIL_PLACEHOLDER,disabled:o,...K})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:U.control,name:"password",render:({field:K})=>R.jsxs(Do,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Oo,{className:t?.label,children:n.PASSWORD}),y?.forgotPassword&&R.jsx(P,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${v}/${E.FORGOT_PASSWORD}${d?window.location.search:""}`,children:n.FORGOT_PASSWORD_LINK})]}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"current-password",className:t?.input,placeholder:n.PASSWORD_PLACEHOLDER,disabled:o,...K})}),R.jsx(Yo,{className:t?.error})]})}),A&&R.jsx(ko,{control:U.control,name:"rememberMe",render:({field:K})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:K.value,onCheckedChange:K.onChange,disabled:o})}),R.jsx(Oo,{children:n.REMEMBER_ME})]})}),R.jsx(Lm,{ref:m,localization:n,action:"/sign-in/email"}),R.jsx(oo,{type:"submit",disabled:o,className:Te("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.SIGN_IN_ACTION})]})})}function sae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){var d,m,h,f,g,v;const y=gi(),{captchaRef:S,getCaptchaHeaders:E,resetCaptcha:_}=Mm({localization:r}),{additionalFields:w,authClient:P,basePath:x,baseURL:T,credentials:A,localization:k,nameRequired:O,persistClient:N,redirectTo:$,signUp:F,viewPaths:U,navigate:j,toast:K,avatar:ae,localizeErrors:V,emailVerification:Z}=D.useContext(vt),te=A?.confirmPassword,le=A?.username,Q=A?.usernameRequired??!0,M=A?.passwordValidation,H=F?.fields;r={...k,...r},c={...M,...c};const q=D.useRef(null),[L,z]=D.useState(null),[J,me]=D.useState(!1),he=D.useCallback(()=>i||yl("redirectTo")||$,[i,$]),we=D.useCallback(()=>`${T}${o||(N?`${x}/${U.CALLBACK}?redirectTo=${encodeURIComponent(he())}`:he())}`,[o,N,x,U,T,he]),{onSuccess:Be,isPending:W}=Oa({redirectTo:i}),ne={email:Y().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:tm(c,r),name:H?.includes("name")&&O?Y().min(1,{message:`${r.NAME} ${r.IS_REQUIRED}`}):Y().optional(),image:Y().optional(),username:le&&Q?Y().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):Y().optional(),confirmPassword:te?tm(c,{PASSWORD_REQUIRED:r.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:r.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:r.PASSWORD_TOO_LONG,INVALID_PASSWORD:r.INVALID_PASSWORD}):Y().optional()},ve={};if(H)for(const De of H){if(De==="name"||De==="image")continue;const ke=w?.[De];if(!ke)continue;let Ue;ke.type==="number"?Ue=ke.required?KC(G=>G?Number(G):void 0,kt({message:((d=ke.errorMessage)==null?void 0:d.invalid)??`${ke.label} ${r.IS_INVALID}`})):EM({message:((m=ke.errorMessage)==null?void 0:m.invalid)??`${ke.label} ${r.IS_INVALID}`}).optional():ke.type==="boolean"?Ue=ke.required?s1({message:((h=ke.errorMessage)==null?void 0:h.invalid)??`${ke.label} ${r.IS_INVALID}`}).refine(G=>G===!0,{message:((f=ke.errorMessage)==null?void 0:f.required)??`${ke.label} ${r.IS_REQUIRED}`}):s1({message:((g=ke.errorMessage)==null?void 0:g.invalid)??`${ke.label} ${r.IS_INVALID}`}).optional():Ue=ke.required?Y().min(1,((v=ke.errorMessage)==null?void 0:v.required)??`${ke.label} ${r.IS_REQUIRED}`):Y().optional(),ve[De]=Ue}const ie=Ae(ne).extend(ve).refine(De=>te?De.password===De.confirmPassword:!0,{message:r.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),_e={email:"",password:"",...te&&{confirmPassword:""},...H?.includes("name")?{name:""}:{},...le?{username:""}:{},...H?.includes("image")&&ae?{image:""}:{}};if(H)for(const De of H){if(De==="name"||De==="image")continue;const ke=w?.[De];ke&&(_e[De]=ke.type==="boolean"?!1:"")}const xe=Ra({resolver:Aa(ie),defaultValues:_e});n=n||xe.formState.isSubmitting||W,D.useEffect(()=>{l?.(xe.formState.isSubmitting||W)},[xe.formState.isSubmitting,W,l]);const tt=async De=>{if(ae){me(!0);try{const ke=await hre(De,crypto.randomUUID(),ae.size,ae.extension);let Ue;ae.upload?Ue=await ae.upload(ke):Ue=await gre(ke),Ue?(z(Ue),xe.setValue("image",Ue)):(z(null),xe.setValue("image",""))}catch(ke){console.error(ke),K({variant:"error",message:Mo({error:ke,localization:r,localizeErrors:V})})}me(!1)}},nt=()=>{z(null),xe.setValue("image","")},$e=()=>{var De;return(De=q.current)==null?void 0:De.click()};async function Qe({email:De,password:ke,name:Ue,username:G,confirmPassword:oe,image:se,...Ee}){var Pe,Re;try{for(const[bt,Tt]of Object.entries(Ee)){const yt=w?.[bt];if(yt?.validate&&typeof Tt=="string"&&!await yt.validate(Tt)){xe.setError(bt,{message:((Pe=yt.errorMessage)==null?void 0:Pe.validate)??((Re=yt.errorMessage)==null?void 0:Re.invalid)??`${yt.label} ${r.IS_INVALID}`});return}}const Ie={throw:!0,headers:await E("/sign-up/email")},Xe={};G!==void 0&&(!Q&&(G===null||G===""||typeof G=="string"&&G.trim()==="")||(Xe.username=G)),se!==void 0&&(Xe.image=se);const et=await P.signUp.email({email:De,password:ke,name:Ue||"",...Xe,...Ee,callbackURL:we(),fetchOptions:Ie});"token"in et&&et.token?await Be():Z?.otp?j(`${x}/${U.EMAIL_VERIFICATION}?email=${encodeURIComponent(De)}`):(j(`${x}/${U.SIGN_IN}${window.location.search}`),K({variant:"success",message:r.SIGN_UP_EMAIL}))}catch(Ie){K({variant:"error",message:Mo({error:Ie,localization:r,localizeErrors:V})}),xe.resetField("password"),xe.resetField("confirmPassword"),_()}}return R.jsx(Da,{...xe,children:R.jsxs("form",{method:"POST",onSubmit:xe.handleSubmit(Qe),noValidate:y,className:Te("grid w-full gap-6",e,t?.base),children:[H?.includes("image")&&ae&&R.jsxs(R.Fragment,{children:[R.jsx("input",{ref:q,accept:"image/*",disabled:J,hidden:!0,type:"file",onChange:De=>{var ke;const Ue=(ke=De.target.files)==null?void 0:ke.item(0);Ue&&tt(Ue),De.target.value=""}}),R.jsx(ko,{control:xe.control,name:"image",render:()=>R.jsxs(Do,{children:[R.jsx(Oo,{children:r.AVATAR}),R.jsxs("div",{className:"flex items-center gap-4",children:[R.jsxs(vre,{children:[R.jsx(bre,{asChild:!0,children:R.jsx(oo,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:R.jsx(Cre,{isPending:J,className:"size-16",user:L?{name:xe.watch("name"),email:xe.watch("email"),image:L}:null,localization:r})})}),R.jsxs(yre,{align:"start",onCloseAutoFocus:De=>De.preventDefault(),children:[R.jsxs(jD,{onClick:$e,disabled:J,children:[R.jsx(bZ,{}),r.UPLOAD_AVATAR]}),L&&R.jsxs(jD,{onClick:nt,disabled:J,variant:"destructive",children:[R.jsx(EZ,{}),r.DELETE_AVATAR]})]})]}),R.jsxs(oo,{type:"button",variant:"outline",onClick:$e,disabled:J,children:[J&&R.jsx(kn,{className:"animate-spin"}),r.UPLOAD]})]}),R.jsx(Yo,{})]})})]}),H?.includes("name")&&R.jsx(ko,{control:xe.control,name:"name",render:({field:De})=>R.jsxs(Do,{children:[R.jsxs(Oo,{className:t?.label,children:[r.NAME,!O&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"name",className:t?.input,placeholder:r.NAME_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),le&&R.jsx(ko,{control:xe.control,name:"username",render:({field:De})=>R.jsxs(Do,{children:[R.jsxs(Oo,{className:t?.label,children:[r.USERNAME,!Q&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"username",className:t?.input,placeholder:r.USERNAME_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:xe.control,name:"email",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.EMAIL}),R.jsx(Vo,{children:R.jsx(na,{autoComplete:"email",className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:xe.control,name:"password",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),te&&R.jsx(ko,{control:xe.control,name:"confirmPassword",render:({field:De})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:r.CONFIRM_PASSWORD}),R.jsx(Vo,{children:R.jsx(lm,{autoComplete:"new-password",className:t?.input,placeholder:r.CONFIRM_PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...De,value:De.value})}),R.jsx(Yo,{className:t?.error})]})}),H?.filter(De=>De!=="name"&&De!=="image").map(De=>{const ke=w?.[De];return ke?ke.type==="boolean"?R.jsx(ko,{control:xe.control,name:De,render:({field:Ue})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:Ue.value,onCheckedChange:Ue.onChange,disabled:n})}),R.jsx(Oo,{className:t?.label,children:ke.label}),R.jsx(Yo,{className:t?.error})]})},De):R.jsx(ko,{control:xe.control,name:De,render:({field:Ue})=>R.jsxs(Do,{children:[R.jsx(Oo,{className:t?.label,children:ke.label}),R.jsx(Vo,{children:ke.type==="number"?R.jsx(na,{className:t?.input,type:"number",placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value}):ke.multiline?R.jsx(Ere,{className:t?.input,placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value}):R.jsx(na,{className:t?.input,type:"text",placeholder:ke.placeholder||(typeof ke.label=="string"?ke.label:""),disabled:n,...Ue,value:Ue.value})}),R.jsx(Yo,{className:t?.error})]})},De):(console.error(`Additional field ${De} not found`),null)}),R.jsx(Lm,{ref:S,localization:r,action:"/sign-up/email"}),R.jsx(oo,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.SIGN_UP_ACTION})]})})}function lae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l}){var c;const d=gi(),m=d?yl("totpURI"):null,h=D.useRef(!1),{authClient:f,basePath:g,hooks:{useSession:v},localization:y,twoFactor:S,viewPaths:E,toast:_,Link:w,localizeErrors:P}=D.useContext(vt);n={...y,...n};const{onSuccess:x,isPending:T}=Oa({redirectTo:i}),{data:A}=v(),k=(c=A?.user)==null?void 0:c.twoFactorEnabled,[O,N]=D.useState(S?.length===1?S[0]:null),[$,F]=D.useState(!1),[U,j]=D.useState(0),K=Ae({code:Y().min(1,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_REQUIRED}`}).min(6,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_INVALID}`}),trustDevice:Vt().optional()}),ae=Ra({resolver:Aa(K),defaultValues:{code:""}});o=o||ae.formState.isSubmitting||T,D.useEffect(()=>{l?.(ae.formState.isSubmitting||T)},[ae.formState.isSubmitting,T,l]),D.useEffect(()=>{O==="otp"&&U<=0&&!h.current&&(h.current=!0,V())},[O]),D.useEffect(()=>{if(U<=0)return;const te=setTimeout(()=>{j(le=>le-1)},1e3);return()=>clearTimeout(te)},[U]);const V=async()=>{if(!($||U>0)){try{F(!0),await f.twoFactor.sendOtp({fetchOptions:{throw:!0}}),j(60)}catch(te){_({variant:"error",message:Mo({error:te,localization:n,localizeErrors:P})}),te.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}h.current=!1,F(!1)}};async function Z({code:te,trustDevice:le}){try{await(O==="totp"?f.twoFactor.verifyTotp:f.twoFactor.verifyOtp)({code:te,trustDevice:le,fetchOptions:{throw:!0}}),await x(),A&&!k&&_({variant:"success",message:n?.TWO_FACTOR_ENABLED})}catch(Q){_({variant:"error",message:Mo({error:Q,localization:n,localizeErrors:P})}),ae.reset()}}return R.jsx(Da,{...ae,children:R.jsxs("form",{method:"POST",onSubmit:ae.handleSubmit(Z),className:Te("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&m&&O==="totp"&&R.jsxs("div",{className:"space-y-3",children:[R.jsx(T3,{className:t?.label,children:n.TWO_FACTOR_TOTP_LABEL}),R.jsx(sre,{className:Te("border shadow-xs",t?.qrCode),value:m})]}),O!==null&&R.jsxs(R.Fragment,{children:[R.jsx(ko,{control:ae.control,name:"code",render:({field:te})=>R.jsxs(Do,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Oo,{className:t?.label,children:n.ONE_TIME_PASSWORD}),R.jsx(w,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${E.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:n.FORGOT_AUTHENTICATOR})]}),R.jsx(Vo,{children:R.jsx(sE,{...te,maxLength:6,onChange:le=>{te.onChange(le),le.length===6&&ae.handleSubmit(Z)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(lE,{otpSeparators:r})})}),R.jsx(Yo,{className:t?.error})]})}),R.jsx(ko,{control:ae.control,name:"trustDevice",render:({field:te})=>R.jsxs(Do,{className:"flex",children:[R.jsx(Vo,{children:R.jsx(iE,{checked:te.value,onCheckedChange:te.onChange,disabled:o,className:t?.checkbox})}),R.jsx(Oo,{className:t?.label,children:n.TRUST_DEVICE})]})})]}),R.jsxs("div",{className:"grid gap-4",children:[O!==null&&R.jsxs(oo,{type:"submit",disabled:o,className:Te(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.TWO_FACTOR_ACTION]}),O==="otp"&&S?.includes("otp")&&R.jsxs(oo,{type:"button",variant:"outline",onClick:V,disabled:U>0||$||o,className:Te(t?.button,t?.outlineButton),children:[$?R.jsx(kn,{className:"animate-spin"}):R.jsx(Sk,{className:t?.icon}),n.RESEND_CODE,U>0&&` (${U})`]}),O!=="otp"&&S?.includes("otp")&&R.jsxs(oo,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>N("otp"),disabled:o,children:[R.jsx(Sk,{className:t?.icon}),n.SEND_VERIFICATION_CODE]}),O!=="totp"&&S?.includes("totp")&&R.jsxs(oo,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>N("totp"),disabled:o,children:[R.jsx(wZ,{className:t?.icon}),n.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function M3({redirectTo:e}){const t=D.useRef(!1),{authClient:o,basePath:n,viewPaths:r}=D.useContext(vt),{onSuccess:i}=Oa({redirectTo:e||`${n}/${r.SIGN_IN}`});return D.useEffect(()=>{t.current||(t.current=!0,o.signOut().finally(i))},[o,i]),R.jsx(kn,{className:"animate-spin"})}function cae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,pathname:i,redirectTo:l,view:c,otpSeparators:d=0,setIsSubmitting:m}){const{basePath:h,credentials:f,localization:g,magicLink:v,emailOTP:y,signUp:S,twoFactor:E,viewPaths:_,replace:w}=D.useContext(vt),P=!!S;if(r={...g,...r},D.useEffect(()=>{i&&!S_(_,i)&&(console.error(`Invalid auth view: ${i}`),w(`${h}/${_.SIGN_IN}${window.location.search}`))},[i,_,h,w]),c=c||S_(_,i)||"SIGN_IN",D.useEffect(()=>{let x=!1;c==="MAGIC_LINK"&&(!v||!f&&!y)&&(x=!0),c==="EMAIL_OTP"&&(!y||!f&&!v)&&(x=!0),c==="SIGN_UP"&&!P&&(x=!0),!f&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&(x=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&!E&&(x=!0),x&&w(`${h}/${_.SIGN_IN}${window.location.search}`)},[h,c,_,f,w,y,P,v,E]),c==="SIGN_OUT")return R.jsx(M3,{redirectTo:l});if(c==="CALLBACK")return R.jsx(I3,{redirectTo:l});if(c==="SIGN_IN")return f?R.jsx(iae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m,callbackURL:o}):v?R.jsx($D,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):y?R.jsx(UD,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):null;if(c==="TWO_FACTOR")return R.jsx(lae,{className:e,classNames:t,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="RECOVER_ACCOUNT")return R.jsx(rae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="MAGIC_LINK")return R.jsx($D,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_OTP")return R.jsx(UD,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_VERIFICATION")return R.jsx(oae,{className:e,classNames:t,callbackURL:o,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="FORGOT_PASSWORD")return R.jsx(nae,{className:e,classNames:t,localization:r,isSubmitting:n,setIsSubmitting:m});if(c==="RESET_PASSWORD")return R.jsx(aae,{className:e,classNames:t,localization:r});if(c==="SIGN_UP")return P&&R.jsx(sae,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m})}function uae({className:e,classNames:t,localization:o}){const{localization:n,redirectTo:r,replace:i,toast:l}=D.useContext(vt),c=D.useMemo(()=>({...n,...o}),[n,o]),{data:d}=mre(),[m,h]=D.useState(null);return D.useEffect(()=>{const f=yl("invitationId");if(!f){l({variant:"error",message:c.INVITATION_NOT_FOUND}),i(r);return}h(f)},[c.INVITATION_NOT_FOUND,l,i,r]),!d||!m?R.jsx(L3,{className:e,classNames:t}):R.jsx(dae,{className:e,classNames:t,localization:c,invitationId:m})}function dae({className:e,classNames:t,localization:o,invitationId:n}){var r;const{authClient:i,hooks:{useInvitation:l},localization:c,organization:d,redirectTo:m,replace:h,toast:f,localizeErrors:g}=D.useContext(vt),v=D.useMemo(()=>({...c,...o}),[c,o]),[y,S]=D.useState(!1),[E,_]=D.useState(!1),w=y||E,{data:P,isPending:x}=l({query:{id:n}}),T=D.useCallback(()=>yl("redirectTo")||m,[m]);D.useEffect(()=>{if(!(x||!n)){if(!P){f({variant:"error",message:v.INVITATION_NOT_FOUND}),h(m);return}(P.status!=="pending"||new Date(P.expiresAt)<new Date)&&(f({variant:"error",message:new Date(P.expiresAt)<new Date?v.INVITATION_EXPIRED:v.INVITATION_NOT_FOUND}),h(m))}},[P,x,n,v,f,h,m]);const A=async()=>{_(!0);try{await i.organization.acceptInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_ACCEPTED||"Invitation accepted"}),h(T())}catch(F){f({variant:"error",message:Mo({error:F,localization:v,localizeErrors:g})}),_(!1)}},k=async()=>{S(!0);try{await i.organization.rejectInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_REJECTED}),h(m)}catch(F){f({variant:"error",message:Mo({error:F,localization:v,localizeErrors:g})}),S(!1)}},$=((r=[...[{role:"owner",label:v.OWNER},{role:"admin",label:v.ADMIN},{role:"member",label:v.MEMBER}],...d?.customRoles||[]].find(F=>F.role===P?.role))==null?void 0:r.label)||P?.role;return P?R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsxs(nE,{className:Te("justify-items-center text-center",t?.header),children:[R.jsx(E3,{className:Te("text-lg md:text-xl",t?.title),children:v.ACCEPT_INVITATION}),R.jsx(x3,{className:Te("text-xs md:text-sm",t?.description),children:v.ACCEPT_INVITATION_DESCRIPTION})]}),R.jsxs(rE,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(sm,{className:Te("flex-row items-center p-4"),children:[R.jsx(O3,{organization:{id:P.organizationId,name:P.organizationName,slug:P.organizationSlug,logo:P.organizationLogo,createdAt:new Date},localization:v}),R.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:$})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsxs(oo,{variant:"outline",className:Te(t?.button,t?.outlineButton),onClick:k,disabled:w,children:[y?R.jsx(kn,{className:"animate-spin"}):R.jsx(TZ,{}),v.REJECT]}),R.jsxs(oo,{className:Te(t?.button,t?.primaryButton),onClick:A,disabled:w,children:[E?R.jsx(kn,{className:"animate-spin"}):R.jsx(hL,{}),v.ACCEPT]})]})]})]}):R.jsx(L3,{className:e,classNames:t})}var L3=({className:e,classNames:t,localization:o})=>R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsxs(nE,{className:Te("justify-items-center",t?.header),children:[R.jsx(ii,{className:Te("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),R.jsx(ii,{className:Te("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),R.jsxs(rE,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(sm,{className:Te("flex-row items-center p-4"),children:[R.jsx(O3,{isPending:!0,localization:o}),R.jsx(ii,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsx(ii,{className:"h-9 w-full"}),R.jsx(ii,{className:"h-9 w-full"})]})]})]});function qD({className:e,orientation:t="horizontal",decorative:o=!0,...n}){return R.jsx(dre,{"data-slot":"separator",decorative:o,orientation:t,className:Te("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function mae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h}=D.useContext(vt);return R.jsxs(oo,{className:Te("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[n==="EMAIL_OTP"?R.jsx(pL,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(gL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="EMAIL_OTP"?o.PASSWORD:o.EMAIL_OTP]})}function fae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h,credentials:f}=D.useContext(vt);return R.jsxs(oo,{className:Te("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="MAGIC_LINK"||!f?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[n==="MAGIC_LINK"?R.jsx(pL,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(gL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="MAGIC_LINK"?o.PASSWORD:o.MAGIC_LINK]})}function hae({localization:e,redirectTo:t}){const{authClient:o,localization:n,toast:r,localizeErrors:i}=D.useContext(vt),l=D.useRef(!1);e=D.useMemo(()=>({...n,...e}),[n,e]);const{onSuccess:c}=Oa({redirectTo:t});return D.useEffect(()=>{if(!l.current){l.current=!0;try{o.oneTap({fetchOptions:{throw:!0,onSuccess:c}})}catch(d){r({variant:"error",message:Mo({error:d,localization:e,localizeErrors:i})})}}},[o,e,i,c,r]),null}function pae({classNames:e,isSubmitting:t,localization:o,redirectTo:n,setIsSubmitting:r}){var i,l;const{authClient:c,localization:d,toast:m,localizeErrors:h}=D.useContext(vt);o={...d,...o};const{onSuccess:f}=Oa({redirectTo:n}),g=async()=>{r?.(!0);try{const v=await c.signIn.passkey({fetchOptions:{throw:!0}});v?.error?(m({variant:"error",message:Mo({error:v.error,localization:o,localizeErrors:h})}),r?.(!1)):f()}catch(v){m({variant:"error",message:Mo({error:v,localization:o,localizeErrors:h})}),r?.(!1)}};return R.jsxs(oo,{className:Te("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[R.jsx(_Z,{}),o.SIGN_IN_WITH," ",o.PASSKEY]})}function VD({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,other:i,provider:l,redirectTo:c,socialLayout:d,setIsSubmitting:m}){var h,f,g,v;const{authClient:y,basePath:S,baseURL:E,persistClient:_,redirectTo:w,viewPaths:P,social:x,genericOAuth:T,toast:A,localizeErrors:k}=D.useContext(vt),O=D.useCallback(()=>c||yl("redirectTo")||w,[c,w]),N=D.useCallback(()=>`${E}${o||(_?`${S}/${P.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[o,_,S,P,E,O]),$=async()=>{m(!0);try{if(i){const F={providerId:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};T?.signIn?(await T.signIn(F),setTimeout(()=>{m(!1)},1e4)):await y.signIn.oauth2(F)}else{const F={provider:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};x?.signIn?(await x.signIn(F),setTimeout(()=>{m(!1)},1e4)):await y.signIn.social(F)}}catch(F){A({variant:"error",message:Mo({error:F,localization:r,localizeErrors:k})}),m(!1)}};return R.jsxs(oo,{className:Te(d==="vertical"?"w-full":"grow",e,(h=t?.form)==null?void 0:h.button,(f=t?.form)==null?void 0:f.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:n,variant:"outline",onClick:$,children:[l.icon&&R.jsx(l.icon,{className:(v=t?.form)==null?void 0:v.icon}),d==="grid"&&l.name,d==="vertical"&&`${r.SIGN_IN_WITH} ${l.name}`]})}function Jde({className:e,classNames:t,callbackURL:o,cardHeader:n,cardFooter:r,localization:i,path:l,pathname:c,redirectTo:d,socialLayout:m="auto",view:h,otpSeparators:f=0}){var g,v,y,S,E,_;const w=gi(),{basePath:P,credentials:x,localization:T,magicLink:A,emailOTP:k,oneTap:O,passkey:N,signUp:$,social:F,genericOAuth:U,viewPaths:j,Link:K}=D.useContext(vt);i={...T,...i};let ae=m;ae==="auto"&&(ae=x&&F?.providers&&F.providers.length>2?"horizontal":"vertical");const V=l??c?.split("/").pop(),Z=h||S_(j,V)||"SIGN_IN",[te,le]=D.useState(!1);if(D.useEffect(()=>{const M=()=>le(!1);return window.addEventListener("pagehide",M),()=>{le(!1),window.removeEventListener("pagehide",M)}},[]),Z==="CALLBACK")return R.jsx(I3,{redirectTo:d});if(Z==="SIGN_OUT")return R.jsx(M3,{redirectTo:d});if(Z==="ACCEPT_INVITATION")return R.jsx(uae,{className:e,classNames:t});const Q=!x&&!A&&!k?i.DISABLED_CREDENTIALS_DESCRIPTION:i[`${Z}_DESCRIPTION`];return R.jsxs(sm,{className:Te("w-full max-w-sm",e,t?.base),children:[R.jsx(nE,{className:t?.header,children:n||R.jsxs(R.Fragment,{children:[R.jsx(E3,{className:Te("text-lg md:text-xl",t?.title),children:i[Z]}),Q&&R.jsx(x3,{className:Te("text-xs md:text-sm",t?.description),children:Q})]})}),R.jsxs(rE,{className:Te("grid gap-6",t?.content),children:[O&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(Z)&&R.jsx(hae,{localization:i,redirectTo:d}),(x||A||k)&&R.jsxs("div",{className:"grid gap-4",children:[R.jsx(cae,{classNames:t?.form,callbackURL:o,isSubmitting:te,localization:i,otpSeparators:f,view:Z,redirectTo:d,setIsSubmitting:le}),A&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||k&&Z==="EMAIL_OTP")&&R.jsx(fae,{classNames:t,localization:i,view:Z,isSubmitting:te}),k&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||A&&["SIGN_IN","MAGIC_LINK"].includes(Z))&&R.jsx(mae,{classNames:t,localization:i,view:Z,isSubmitting:te})]}),Z!=="RESET_PASSWORD"&&Z!=="EMAIL_VERIFICATION"&&(((g=F?.providers)==null?void 0:g.length)||((v=U?.providers)==null?void 0:v.length)||Z==="SIGN_IN"&&N)&&R.jsxs(R.Fragment,{children:[(x||A||k)&&R.jsxs("div",{className:Te("flex items-center gap-2",t?.continueWith),children:[R.jsx(qD,{className:Te("!w-auto grow",t?.separator)}),R.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:i.OR_CONTINUE_WITH}),R.jsx(qD,{className:Te("!w-auto grow",t?.separator)})]}),R.jsxs("div",{className:"grid gap-4",children:[(((y=F?.providers)==null?void 0:y.length)||((S=U?.providers)==null?void 0:S.length))&&R.jsxs("div",{className:Te("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(E=F?.providers)==null?void 0:E.map(M=>{const H=Wre.find(q=>q.provider===M);return H?R.jsx(VD,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:H,redirectTo:d,setIsSubmitting:le,socialLayout:ae},M):null}),(_=U?.providers)==null?void 0:_.map(M=>R.jsx(VD,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:M,redirectTo:d,setIsSubmitting:le,socialLayout:ae,other:!0},M.provider))]}),N&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(Z)&&R.jsx(pae,{classNames:t,isSubmitting:te,localization:i,redirectTo:d,setIsSubmitting:le})]})]})]}),r&&R.jsx(zD,{className:t?.footer,children:r}),x&&$&&R.jsxs(zD,{className:Te("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.DONT_HAVE_AN_ACCOUNT:Z==="SIGN_UP"?i.ALREADY_HAVE_AN_ACCOUNT:R.jsx(gZ,{className:"size-3"}),Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"||Z==="SIGN_UP"?R.jsx(K,{className:Te("text-foreground underline",t?.footerLink),href:`${P}/${j[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${w?window.location.search:""}`,children:R.jsx(oo,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),children:Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.SIGN_UP:i.SIGN_IN})}):R.jsx(oo,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:i.GO_BACK})]})]})}function Xde({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{isPending:o}=t();return o?e:null}function eme({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{data:o}=t();return o?e:null}function tme({children:e}){const{hooks:{useSession:t}}=D.useContext(vt),{data:o,isPending:n}=t();return!o&&!n?e:null}function gae(e){const t=eo.c(8),{children:o}=e,n=Cm();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={basePath:"/",pathMode:"slug"},t[0]=r):r=t[0];let i,l;t[1]!==n?(i=d=>n({to:d}),l=d=>n({to:d,replace:!0}),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c;return t[4]!==o||t[5]!==i||t[6]!==l?(c=R.jsx(mZ,{authClient:ov,redirectTo:"/",organization:r,navigate:i,replace:l,Link:vae,children:o}),t[4]=o,t[5]=i,t[6]=l,t[7]=c):c=t[7],c}function vae(e){const{href:t,className:o,children:n,...r}=e;return R.jsx(wm,{to:t,className:o,...r,children:n})}var pe=typeof window<"u"?window:void 0,Jo=typeof globalThis<"u"?globalThis:pe;typeof self>"u"&&(Jo.self=Jo),typeof File>"u"&&(Jo.File=function(){});var vr=Jo?.navigator,Ne=Jo?.document,hn=Jo?.location,V_=Jo?.fetch,H_=Jo!=null&&Jo.XMLHttpRequest&&"withCredentials"in new Jo.XMLHttpRequest?Jo.XMLHttpRequest:void 0,HD=Jo?.AbortController,bae=Jo?.CompressionStream,Qn=vr?.userAgent,Ze=pe??{},GD="1.372.3",Bn={DEBUG:!1,LIB_VERSION:GD,LIB_NAME:"web",JS_SDK_VERSION:GD};function KD(e,t,o,n,r,i,l){try{var c=e[i](l),d=c.value}catch(m){return void o(m)}c.done?t(d):Promise.resolve(d).then(n,r)}function Nr(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function l(d){KD(i,n,r,l,c,"next",d)}function c(d){KD(i,n,r,l,c,"throw",d)}l(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Oe.apply(null,arguments)}function N3(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function G_(){return G_=Nr((function*(e,t,o){t===void 0&&(t=!0);try{var n=new CompressionStream("gzip"),r=n.writable.getWriter(),i=r.write(new TextEncoder().encode(e)).then((()=>r.close())).catch((function(){var d=Nr((function*(m){try{yield r.abort(m)}catch{}throw m}));return function(m){return d.apply(this,arguments)}})()),l=new Response(n.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),G_.apply(this,arguments)}var yae=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],WD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return yae.concat(t).some((n=>{var r=n.toLowerCase();return o.indexOf(r)!==-1}))},Sae=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Ct(e,t){return e.indexOf(t)!==-1}var vv=function(e){return e.trim()},K_=function(e){return e.replace(/^\$/,"")},F3=Object.prototype,B3=F3.hasOwnProperty,bv=F3.toString,Dt=Array.isArray||function(e){return bv.call(e)==="[object Array]"},ai=e=>typeof e=="function",Ao=e=>e===Object(e)&&!Dt(e),Ic=e=>{if(Ao(e)){for(var t in e)if(B3.call(e,t))return!1;return!0}return!1},ze=e=>e===void 0,bo=e=>bv.call(e)=="[object String]",Dp=e=>bo(e)&&e.trim().length===0,yi=e=>e===null,wt=e=>ze(e)||yi(e),Ur=e=>bv.call(e)=="[object Number]"&&e==e,xc=e=>Ur(e)&&e>0,xa=e=>bv.call(e)==="[object Boolean]",_ae=e=>e instanceof FormData,Cae=e=>Ct(Sae,e);function z3(e){return e===null||typeof e!="object"}function fg(e,t){return{}.toString.call(e)==="[object "+t+"]"}function cE(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var wae=[!0,"true",1,"1","yes"],mS=e=>Ct(wae,e),Eae=[!1,"false",0,"0","no"];function Ta(e,t,o,n,r){return t>o&&(n.warn("min cannot be greater than max."),t=o),Ur(e)?e>o?(n.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+r),Ta(r||o,t,o,n))}class xae{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Ta(t.bucketSize,0,100,t.Gt),this.Wt=Ta(t.refillRate,0,this.Ut,t.Gt),this.Xt=Ta(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var n=Math.floor((o-t.lastAccess)/this.Xt);n>0&&(t.tokens=Math.min(t.tokens+n*this.Wt,this.Ut),t.lastAccess=t.lastAccess+n*this.Xt)}consumeRateLimit(t){var o,n=Date.now(),r=String(t),i=this.$t[r];return i?this.Jt(i,n):this.$t[r]=i={tokens:this.Ut,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}}var up,YD,fS,yr="Mobile",hg="iOS",ci="Android",Xc="Tablet",j3=ci+" "+Xc,U3="iPad",$3="Apple",q3=$3+" Watch",Ud="Safari",eu="BlackBerry",V3="Samsung",H3=V3+"Browser",G3=V3+" Internet",ul="Chrome",Tae=ul+" OS",K3=ul+" "+hg,uE="Internet Explorer",W3=uE+" "+yr,dE="Opera",Pae=dE+" Mini",mE="Edge",Y3="Microsoft "+mE,Vc="Firefox",Z3=Vc+" "+hg,cm="Nintendo",um="PlayStation",Hc="Xbox",Q3=ci+" "+yr,J3=yr+" "+Ud,kd="Windows",W_=kd+" Phone",ZD="Nokia",Y_="Ouya",X3="Generic",Rae=X3+" "+yr.toLowerCase(),e4=X3+" "+Xc.toLowerCase(),Z_="Konqueror",Fn="(\\d+(\\.\\d+)?)",hS=new RegExp("Version/"+Fn),Aae=new RegExp(Hc,"i"),kae=new RegExp(um+" \\w+","i"),Dae=new RegExp(cm+" \\w+","i"),fE=new RegExp(eu+"|PlayBook|BB10","i"),Oae={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},t4=function(e,t){return t=t||"",Ct(e," OPR/")&&Ct(e,"Mini")?Pae:Ct(e," OPR/")?dE:fE.test(e)?eu:Ct(e,"IE"+yr)||Ct(e,"WPDesktop")?W3:Ct(e,H3)?G3:Ct(e,mE)||Ct(e,"Edg/")?Y3:Ct(e,"FBIOS")?"Facebook "+yr:Ct(e,"UCWEB")||Ct(e,"UCBrowser")?"UC Browser":Ct(e,"CriOS")?K3:Ct(e,"CrMo")||Ct(e,ul)?ul:Ct(e,ci)&&Ct(e,Ud)?Q3:Ct(e,"FxiOS")?Z3:Ct(e.toLowerCase(),Z_.toLowerCase())?Z_:((o,n)=>n&&Ct(n,$3)||(function(r){return Ct(r,Ud)&&!Ct(r,ul)&&!Ct(r,ci)})(o))(e,t)?Ct(e,yr)?J3:Ud:Ct(e,Vc)?Vc:Ct(e,"MSIE")||Ct(e,"Trident/")?uE:Ct(e,"Gecko")?Vc:""},Iae={[W3]:[new RegExp("rv:"+Fn)],[Y3]:[new RegExp(mE+"?\\/"+Fn)],[ul]:[new RegExp("("+ul+"|CrMo)\\/"+Fn)],[K3]:[new RegExp("CriOS\\/"+Fn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Fn)],[Ud]:[hS],[J3]:[hS],[dE]:[new RegExp("(Opera|OPR)\\/"+Fn)],[Vc]:[new RegExp(Vc+"\\/"+Fn)],[Z3]:[new RegExp("FxiOS\\/"+Fn)],[Z_]:[new RegExp("Konqueror[:/]?"+Fn,"i")],[eu]:[new RegExp(eu+" "+Fn),hS],[Q3]:[new RegExp("android\\s"+Fn,"i")],[G3]:[new RegExp(H3+"\\/"+Fn)],[uE]:[new RegExp("(rv:|MSIE )"+Fn)],Mozilla:[new RegExp("rv:"+Fn)]},Mae=function(e,t){var o=t4(e,t),n=Iae[o];if(ze(n))return null;for(var r=0;n.length>r;r++){var i=e.match(n[r]);if(i)return parseFloat(i[i.length-2])}return null},QD=[[new RegExp(Hc+"; "+Hc+" (.*?)[);]","i"),e=>[Hc,e&&e[1]||""]],[new RegExp(cm,"i"),[cm,""]],[new RegExp(um,"i"),[um,""]],[fE,[eu,""]],[new RegExp(kd,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[W_,""];if(new RegExp(yr).test(t)&&!/IEMobile\b/.test(t))return[kd+" "+yr,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var n=Oae[o[1]]||"";return/arm/i.test(t)&&(n="RT"),[kd,n]}return[kd,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[hg,[e[3],e[4],e[5]||"0"].join(".")]:[hg,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ze(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ci+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ci+")","i"),e=>e&&e[2]?[ci,[e[2],e[3],e[4]||"0"].join(".")]:[ci,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Tae,""]],[/Linux|debian/i,["Linux",""]]],JD=function(e){return Dae.test(e)?cm:kae.test(e)?um:Aae.test(e)?Hc:new RegExp(Y_,"i").test(e)?Y_:new RegExp("("+W_+"|WPDesktop)","i").test(e)?W_:/iPad/.test(e)?U3:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?q3:fE.test(e)?eu:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(ZD,"i").test(e)?ZD:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(yr).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ci:j3:new RegExp("(pda|"+yr+")","i").test(e)?Rae:new RegExp(Xc,"i").test(e)&&!new RegExp(Xc+" pc","i").test(e)?e4:""},Lae=e=>e instanceof Error,o4={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Nae=o4.info;function n4(e){if(xa(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Dt(e))return{arrayValue:{values:e.map((t=>n4(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function XD(e){var t=[];for(var o in e){var n=e[o];yi(n)||ze(n)||t.push({key:o,value:n4(n)})}return t}function Fae(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return fS&&o.length===YD||(YD=o.length,fS=o.reduce(((n,r)=>{up||(up={});var i=up[r];if(i)n[i[0]]=i[1];else for(var l=e(r),c=l.length-1;c>=0;c--){var d=l[c],m=d?.filename,h=t[r];if(m&&h){n[m]=h,up[r]=[m,h];break}}return n}),{})),fS}}class Bae{constructor(t,o,n){n===void 0&&(n=[]),this.coercers=t,this.stackParser=o,this.modifiers=n}buildFromUnknown(t,o){o===void 0&&(o={});var n=o&&o.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(l,n),$exception_level:"error"}}modifyFrames(t){var o=this;return Nr((function*(){for(var n of t)n.stacktrace&&n.stacktrace.frames&&Dt(n.stacktrace.frames)&&(n.stacktrace.frames=yield o.applyModifiers(n.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var n,r;return t.cause!=null&&(n=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(r=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Oe({},t,{cause:n,stack:r})}applyChunkIds(t,o){return t.map((n=>(n.filename&&o&&(n.chunk_id=o[n.filename]),n)))}applyCoercers(t,o){for(var n of this.coercers)if(n.match(t))return n.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Nr((function*(){var n=t;for(var r of o.modifiers)n=yield r(n);return n}))()}convertToExceptionList(t,o){var n,r,i,l={type:t.type,value:t.value,mechanism:{type:(n=o.type)!==null&&n!==void 0?n:"generic",handled:(r=o.handled)===null||r===void 0||r,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Oe({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:Fae(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,n){n===void 0&&(n=0);var r=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Oe({},o,{syntheticException:n==0?o.syntheticException:void 0,mechanism:t,apply:i=>r(i,n),next:i=>r(i,n+1)})}}var tu="?";function Q_(e,t,o,n,r){var i={platform:e,filename:t,function:o==="<anonymous>"?tu:o,in_app:!0};return ze(n)||(i.lineno=n),ze(r)||(i.colno=r),i}var r4=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:tu,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},zae=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,jae=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Uae=/\((\S*)(?::(\d+))(?::(\d+))\)/,$ae=(e,t)=>{var o=zae.exec(e);if(o){var[,n,r,i]=o;return Q_(t,n,tu,+r,+i)}var l=jae.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=Uae.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,m]=r4(l[1]||tu,l[2]);return Q_(t,m,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},qae=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Vae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hae=(e,t)=>{var o=qae.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var n=Vae.exec(o[3]);n&&(o[1]=o[1]||"eval",o[3]=n[1],o[4]=n[2],o[5]="")}var r=o[3],i=o[1]||tu;return[i,r]=r4(i,r),Q_(t,r,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},eO=/\(error: (.*)\)/;class Gae{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var n=bo(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return fg(t,"DOMException")}isDOMError(t){return fg(t,"DOMError")}}class Kae{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var n=t.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(t){return t.stacktrace||t.stack||void 0}}class Wae{constructor(){}match(t){return fg(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var n;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var Yae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Zae{match(t){return typeof t=="string"}coerce(t,o){var n,[r,i]=this.getInfos(t);return{type:r??"Error",value:i??t,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var o="Error",n=t,r=t.match(Yae);return r&&(o=r[1],n=r[2]),[o,n]}}var Qae=["fatal","error","warning","log","info","debug"];function a4(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var n=o.length;n>0;n--){var r=o.slice(0,n).join(", ");if(t>=r.length)return n===o.length?r:r.length>t?r.slice(0,t)+"...":r}return""}class Jae{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var n,r=this.getErrorPropertyFromObject(t);return r?o.apply(r):{type:this.getType(t),value:this.getValue(t),stack:(n=o.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return cE(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+a4(t)}isSeverityLevel(t){return bo(t)&&!Dp(t)&&Qae.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var n=t[o];if(Lae(n))return n}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}}class Xae{match(t){return cE(t)}coerce(t,o){var n,r=t.constructor.name;return{type:r,value:r+" captured as exception with keys: "+a4(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class eie{match(t){return z3(t)}coerce(t,o){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class tie{match(t){return fg(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!cE(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var n,r=this.getUnhandledRejectionReason(t);return z3(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}:o.apply(r)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var pg="$message",gg="$timestamp",oie=new Set([pg,gg]),pS={enabled:!0,max_bytes:32768};function vg(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:pS.enabled,max_bytes:rie(e.max_bytes,pS.max_bytes)}:Oe({},pS)}class nie{constructor(t){this.Kt=[],this.Qt=0,this.Bt=vg(t)}setConfig(t){this.Bt=vg(t),this.er()}add(t){var o=(function(r){var i=(function(h){var f=new WeakSet;try{return JSON.stringify(h,((g,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(f.has(v))return"[Circular]";f.add(v)}return v}}))}catch{return}})(r);if(i)try{var l=JSON.parse(i);if(!Ao(l))return;var c=l,d=c[pg],m=c[gg];return!bo(d)||d.trim().length===0||!bo(m)&&!Ur(m)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var n=(function(r){if(typeof TextEncoder<"u")return new TextEncoder().encode(r).length;for(var i=encodeURIComponent(r),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);n>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:n}),this.Qt+=n,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}}function rie(e,t){if(!Ur(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var i4=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,n={C(r){if(pe&&(Bn.DEBUG||Ze.POSTHOG_DEBUG||o)&&!ze(pe.console)&&pe.console){for(var i=("__rrweb_original__"in pe.console[r])?pe.console[r].__rrweb_original__:pe.console[r],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];i(e,...c)}},info(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("log",...i)},warn(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("warn",...i)},error(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("error",...i)},critical(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(r){n.error("You must initialize PostHog before calling "+r)},createLogger:(r,i)=>i4(e+" "+r,i)};return n},Fe=i4("[PostHog.js]"),ho=Fe.createLogger,aie=ho("[ExternalScriptsLoader]"),gS=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return aie.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var n=Ne?.querySelectorAll("script");if(n){for(var r,i=function(){if(n[l].src===t){var d=n[l];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(m=>{d.__posthog_loading_callback_fired=!0,o(void 0,m)})),d.onerror=m=>o(m),{v:void 0})}},l=0;n.length>l;l++)if(r=i())return r.v}var c=()=>{if(!Ne)return o("document not found");var d=Ne.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=f=>{d.__posthog_loading_callback_fired=!0,o(void 0,f)},d.onerror=f=>o(f),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Ne.head.appendChild(d);else{var m,h=Ne.querySelectorAll("body > script");h.length>0?(m=h[0].parentNode)==null||m.insertBefore(d,h[0]):Ne.body.appendChild(d)}};Ne!=null&&Ne.body?c():Ne?.addEventListener("DOMContentLoaded",c)};Ze.__PosthogExtensions__=Ze.__PosthogExtensions__||{},Ze.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var n;if(e.config.__preview_external_dependency_versioned_paths)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var r="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}n=e.requestRouter.endpointFor("assets",r)}gS(e,n,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");gS(e,l,o)}},Ze.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var n=e.requestRouter.endpointFor("api",t);gS(e,n,o)};var s4="$people_distinct_id",bg="$device_id",Dd="__alias",Od="__timers",J_="$autocapture_disabled_server_side",X_="$heatmaps_enabled_server_side",eC="$exception_capture_enabled_server_side",tC="$error_tracking_suppression_rules",oC="$error_tracking_capture_extension_exceptions",nC="$web_vitals_enabled_server_side",hE="$dead_clicks_enabled_server_side",rC="$product_tours_enabled_server_side",aC="$web_vitals_allowed_metrics",Id="$session_recording_remote_config",l4="$replay_override_sampling",c4="$replay_override_linked_flag",u4="$replay_override_url_trigger",d4="$replay_override_event_trigger",yg="$sesid",pE="$session_is_sampled",Mc="$enabled_feature_flags",Op="$active_feature_flags",Md="$early_access_features",iC="$feature_flag_details",sC="$feature_flag_payloads",lC="$feature_flag_request_id",ri="$override_feature_flags",Tc="$override_feature_flag_payloads",Ld="$stored_person_properties",el="$stored_group_properties",cC="$surveys",uC="$surveys_activated",Ip="ph_product_tours",$d="$flag_call_reported",dC="$flag_call_reported_session_id",mC="$feature_flag_errors",Sg="$feature_flag_evaluated_at",ta="$user_state",fC="$client_session_props",hC="$capture_rate_limit",pC="$initial_campaign_params",gC="$initial_referrer_info",_g="$initial_person_info",Cg="$epp",m4="__POSTHOG_TOOLBAR__",dp="$posthog_cookieless",f4="$sdk_debug_extensions_init_method",h4="$sdk_debug_extensions_init_time_ms",p4="$sdk_debug_recording_script_not_loaded",gE="PostHog loadExternalDependency extension not found.",tl="on_reject",si="always",yc="anonymous",Sc="identified",vC="identified_only",wg="visibilitychange",Eg="beforeunload",Pc="$pageview",vS="$pageleave",bS="$identify",tO="$groupidentify";function mp(e,t){Dt(e)&&e.forEach(t)}function lo(e,t){if(!wt(e))if(Dt(e))e.forEach(t);else if(_ae(e))e.forEach(((n,r)=>t(n,r)));else for(var o in e)B3.call(e,o)&&t(e[o],o)}var xo=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];for(var r of o)for(var i in r)r[i]!==void 0&&(e[i]=r[i]);return e};function Mp(e){for(var t=Object.keys(e),o=t.length,n=new Array(o);o--;)n[o]=[t[o],e[t[o]]];return n}var oO=function(e){try{return e()}catch{return}},iie=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),n=0;t>n;n++)o[n]=arguments[n];return e.apply(this,o)}catch(r){Fe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Fe.critical(r)}}},vE=function(e){var t={};return lo(e,(function(o,n){(bo(o)&&o.length>0||Ur(o))&&(t[n]=o)})),t},sie=["herokuapp.com","vercel.app","netlify.app"];function lie(e){var t=e?.hostname;if(!bo(t))return!1;var o=t.split(".").slice(-2).join(".");for(var n of sie)if(o===n)return!1;return!0}function qo(e,t,o,n){var{capture:r=!1,passive:i=!0}=n??{};e?.addEventListener(t,o,{capture:r,passive:i})}function g4(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ur(e)&&isFinite(e)&&Math.floor(e)===e});class xg{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,n,r){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(n)||!Number.isInteger(r)||0>t||0>o||0>n||0>r||t>0xffffffffffff||o>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new xg(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new xg(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var n=this.bytes[o]-t.bytes[o];if(n!==0)return Math.sign(n)}return 0}}class cie{constructor(){this.I=0,this.S=0,this.k=new uie}generate(){var t=this.generateOrAbort();if(ze(t)){this.I=0;var o=this.generateOrAbort();if(ze(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return xg.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var nO,v4=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};pe&&!ze(pe.crypto)&&crypto.getRandomValues&&(v4=e=>crypto.getRandomValues(e));class uie{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(v4(this.T),this.N=0),this.T[this.N++]}}var ns=()=>die().toString(),die=()=>(nO||(nO=new cie)).generate(),vd="",mie=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,wa={R:()=>!!Ne,B(e){Fe.error("cookieStore error: "+e)},O(e){if(Ne){try{for(var t=e+"=",o=Ne.cookie.split(";").filter((i=>i.length)),n=0;o.length>n;n++){for(var r=o[n];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return decodeURIComponent(r.substring(t.length,r.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(wa.O(e))||{}}catch{}return t},M(e,t,o,n,r){if(Ne)try{var i="",l="",c=(function(h,f){if(f){var g=(function(y,S){if(S===void 0&&(S=Ne),vd)return vd;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var E=y.split("."),_=Math.min(E.length,8),w="dmn_chk_"+ns();!vd&&_--;){var P=E.slice(_).join("."),x=w+"=1;domain=."+P+";path=/";S.cookie=x+";max-age=3",S.cookie.includes(w)&&(S.cookie=x+";max-age=0",vd=P)}return vd})(h);if(!g){var v=(y=>{var S=y.match(mie);return S?S[0]:""})(h);v!==g&&Fe.info("Warning: cookie subdomain discovery mismatch",v,g),g=v}return g?"; domain=."+g:""}return""})(Ne.location.hostname,n);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),i="; expires="+d.toUTCString()}r&&(l="; secure");var m=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return m.length>3686.4&&Fe.warn("cookieStore warning: large cookie, len="+m.length),Ne.cookie=m,m}catch{return}},F(e,t){if(Ne!=null&&Ne.cookie)try{wa.M(e,"",-1,t)}catch{return}}},yS=null,vo={R(){if(!yi(yS))return yS;var e=!0;if(ze(pe))e=!1;else try{var t="__mplssupport__";vo.M(t,"xyz"),vo.O(t)!=='"xyz"'&&(e=!1),vo.F(t)}catch{e=!1}return e||Fe.error("localStorage unsupported; falling back to cookie store"),yS=e,e},B(e){Fe.error("localStorage error: "+e)},O(e){try{return pe?.localStorage.getItem(e)}catch(t){vo.B(t)}return null},Z(e){try{return JSON.parse(vo.O(e))||{}}catch{}return null},M(e,t){try{pe?.localStorage.setItem(e,JSON.stringify(t))}catch(o){vo.B(o)}},F(e){try{pe?.localStorage.removeItem(e)}catch(t){vo.B(t)}}},fie=[bg,"distinct_id",yg,pE,Cg,_g,ta],fp={},hie={R:()=>!0,B(e){Fe.error("memoryStorage error: "+e)},O:e=>fp[e]||null,Z:e=>fp[e]||null,M(e,t){fp[e]=t},F(e){delete fp[e]}},Qs=null,pn={R(){if(!yi(Qs))return Qs;if(Qs=!0,ze(pe))Qs=!1;else try{var e="__support__";pn.M(e,"xyz"),pn.O(e)!=='"xyz"'&&(Qs=!1),pn.F(e)}catch{Qs=!1}return Qs},B(e){Fe.error("sessionStorage error: ",e)},O(e){try{return pe?.sessionStorage.getItem(e)}catch(t){pn.B(t)}return null},Z(e){try{return JSON.parse(pn.O(e))||null}catch{}return null},M(e,t){try{pe?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){pn.B(o)}},F(e){try{pe?.sessionStorage.removeItem(e)}catch(t){pn.B(t)}}};class pie{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===si||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===tl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:n}=this._instance.config;return n||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return mS(t)?1:Ct(Eae,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?vo:wa;if(!this.ar||this.ar!==o){this.ar=o;var n=t==="localStorage"?wa:vo;n.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(mS(n.O(this.sr))),n.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[vr?.doNotTrack,vr?.msDoNotTrack,Ze.doNotTrack].some((t=>mS(t)))}}var hp=ho("[Dead Clicks]"),gie=()=>!0,vie=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(hE)),n=e.instance.config.capture_dead_clicks;return xa(n)?n:!!Ao(n)||o};class rO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,n){this.instance=t,this.isEnabled=o,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[hE]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(r=>{r?hp.error("failed to load script",r):t()}))}hr(){var t;if(Ne){if(!this.lr&&(t=Ze.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Ao(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=Ze.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Ne),hp.info("starting...")}}else hp.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,hp.info("stopping..."))}}var SS=ho("[SegmentIntegration]"),b4="posthog-js";function y4(e,t){var{organization:o,projectId:n,prefix:r,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,m,h,f,g;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],E=S.map((w=>Oe({},w,{stacktrace:w.stacktrace?Oe({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map((P=>Oe({},P,{platform:"web:javascript"})))}):void 0}))),_={$exception_message:((m=S[0])==null?void 0:m.value)||c.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:c.level,$exception_list:E,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((f=S[0])==null?void 0:f.value)||c.message,$sentry_exception_type:(g=S[0])==null?void 0:g.type,$sentry_tags:c.tags};return o&&n&&(_.$sentry_url=(r||"https://sentry.io/organizations/")+o+"/issues/?project="+n+"&query="+c.event_id),l&&((y=e.exceptions)==null||y.sendExceptionEvent(_)),c}}class bie{constructor(t,o,n,r,i,l){this.name=b4,this.setupOnce=function(c){c(y4(t,{organization:o,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class aO{constructor(t){this.cr=(o,n,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Fe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:r}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var n,r=this.gr(t,o);return this.dr={pathname:(n=pe?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),r}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var n=this.dr;if(!n)return{$pageview_id:o};var r={$pageview_id:o,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:d,maxContentHeight:m,lastContentY:h,maxContentY:f}=i;if(!(ze(l)||ze(c)||ze(d)||ze(m)||ze(h)||ze(f))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),m=Math.ceil(m),h=Math.ceil(h),f=Math.ceil(f);var g=l>1?Ta(c/l,0,1,Fe):1,v=l>1?Ta(d/l,0,1,Fe):1,y=m>1?Ta(h/m,0,1,Fe):1,S=m>1?Ta(f/m,0,1,Fe):1;r=xo(r,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:f,$prev_pageview_max_content_percentage:S})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),r}}var yie={[s4]:{exposure:"hidden"},[Dd]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Od]:{exposure:"hidden"},[J_]:{exposure:"event"},[X_]:{exposure:"hidden"},[eC]:{exposure:"event"},[tC]:{exposure:"hidden"},[oC]:{exposure:"event"},[nC]:{exposure:"event"},[hE]:{exposure:"event"},[rC]:{exposure:"hidden"},[aC]:{exposure:"event"},[Id]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[yg]:{exposure:"hidden"},[pE]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[Mc]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Ao(e))return{};for(var t={},o=Object.keys(e),n=0;o.length>n;n++)t["$feature/"+o[n]]=e[o[n]];return t}},[Op]:{exposure:"event"},[Md]:{exposure:"hidden"},[iC]:{exposure:"hidden"},[sC]:{exposure:"event"},[lC]:{exposure:"event"},[ri]:{exposure:"event"},[Tc]:{exposure:"hidden"},[Ld]:{exposure:"hidden"},[el]:{exposure:"hidden"},[cC]:{exposure:"hidden"},[uC]:{exposure:"event"},[Ip]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[$d]:{exposure:"hidden"},[dC]:{exposure:"hidden"},[mC]:{exposure:"hidden"},[Sg]:{exposure:"hidden"},[ta]:{exposure:"hidden"},[fC]:{exposure:"hidden"},[hC]:{exposure:"hidden"},[pC]:{exposure:"hidden"},[gC]:{exposure:"hidden"},[_g]:{exposure:"hidden"},[Cg]:{exposure:"hidden"},[l4]:{exposure:"event"},[c4]:{exposure:"event"},[u4]:{exposure:"event"},[d4]:{exposure:"event"},[f4]:{exposure:"event"},[h4]:{exposure:"event"},[p4]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},Sie=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Tg=e=>{var t=Ne?.createElement("a");return ze(t)?null:(t.href=e,t)},Pg=function(e,t){for(var o,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;n.length>r;r++){var i=n[r].split("=");if(i[0]===t){o=i;break}}if(!Dt(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Fe.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},dm=function(e,t,o){if(!e||!t||!t.length)return e;for(var n=e.split("#"),r=n[1],i=(n[0]||"").split("?"),l=i[1],c=i[0],d=(l||"").split("&"),m=[],h=0;d.length>h;h++){var f=d[h].split("=");Dt(f)&&(t.includes(f[0])?m.push(f[0]+"="+o):m.push(d[h]))}var g=c;return l!=null&&(g+="?"+m.join("&")),r!=null&&(g+="#"+r),g},Rg=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},pp="https?://(.*)",ou=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],_ie=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...ou],mm="<masked>",Cie=["li_fat_id"];function S4(e,t,o){if(!Ne)return{};var n,r=t?[...ou,...o||[]]:[],i=_4(dm(Ne.URL,r,mm),e),l=(n={},lo(Cie,(function(c){var d=wa.O(c);n[c]=d||null})),n);return xo(l,i)}function _4(e,t){var o=_ie.concat(t||[]),n={};return lo(o,(function(r){var i=Pg(e,r);n[r]=i||null})),n}function C4(e){var t=(function(i){return i?i.search(pp+"google.([^/?]*)")===0?"google":i.search(pp+"bing.com")===0?"bing":i.search(pp+"yahoo.com")===0?"yahoo":i.search(pp+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",n={};if(!yi(t)){n.$search_engine=t;var r=Ne?Pg(Ne.referrer,o):"";r.length&&(n.ph_keyword=r)}return n}function iO(){return navigator.language||navigator.userLanguage}var Ag="$direct";function w4(){return Ne?.referrer||Ag}function E4(e,t){var o=e?[...ou,...t||[]]:[],n=hn?.href.substring(0,1e3);return{r:w4().substring(0,1e3),u:n?dm(n,o,mm):void 0}}function x4(e){var t,{r:o,u:n}=e,r={$referrer:o,$referring_domain:o==null?void 0:o==Ag?Ag:(t=Tg(o))==null?void 0:t.host};if(n){r.$current_url=n;var i=Tg(n);r.$host=i?.host,r.$pathname=i?.pathname;var l=_4(n);xo(r,l)}if(o){var c=C4(o);xo(r,c)}return r}function T4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function wie(){try{return new Date().getTimezoneOffset()}catch{return}}var Eie=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class _S{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Fe.info("Persistence loaded",t.persistence,Oe({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){Eie.indexOf(t.persistence.toLowerCase())===-1&&(Fe.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(r){r===void 0&&(r=[]);var i=[...fie,...r];return Oe({},vo,{Z(l){try{var c={};try{c=wa.Z(l)||{}}catch{}var d=xo(c,JSON.parse(vo.O(l)||"{}"));return vo.M(l,d),d}catch{}return null},M(l,c,d,m,h,f){try{vo.M(l,c,void 0,void 0,f);var g={};i.forEach((v=>{c[v]&&(g[v]=c[v])})),Object.keys(g).length&&wa.M(l,g,d,m,h,f)}catch(v){vo.B(v)}},F(l,c){try{pe?.localStorage.removeItem(l),wa.F(l,c)}catch(d){vo.B(d)}}})})(t.cookie_persisted_properties||[]),n=t.persistence.toLowerCase();return n==="localstorage"&&vo.R()?vo:n==="localstorage+cookie"&&o.R()?o:n==="sessionstorage"&&pn.R()?pn:n==="memory"?hie:n==="cookie"?wa:o.R()?o:wa}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var n=this.props[Sg];return!n||typeof n!="number"||Date.now()-n>o}properties(){var t={};return lo(this.props,((o,n)=>{var r=(i=>{var l=yie[i];if(l)return l;for(var[c,d]of Sie)if(i.indexOf(c)===0)return d})(n);if(r?.exposure==="derived"){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(o,n===Mc?()=>this.wr():()=>!1))return;r.transformToEventProperties&&xo(t,r.transformToEventProperties(o))}else r&&r.exposure!=="event"||(t[n]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=xo({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,n){if(Ao(t)){ze(o)&&(o="None"),this.Ir=ze(n)?this.kr:n;var r=!1;if(lo(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),r=!0)})),r)return this.save(),!0}return!1}register(t,o){if(Ao(t)){this.Ir=ze(o)?this.kr:o;var n=!1;if(lo(t,((r,i)=>{t.hasOwnProperty(i)&&this.props[i]!==r&&(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=S4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Ic(vE(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Ne?.referrer)?C4(t):{})}update_referrer_info(){var t;this.register_once({$referrer:w4(),$referring_domain:Ne!=null&&Ne.referrer&&((t=Tg(Ne.referrer))==null?void 0:t.host)||Ag},void 0)}set_initial_person_info(){this.props[pC]||this.props[gC]||this.register_once({[_g]:E4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};lo([gC,pC],(l=>{var c=this.props[l];c&&lo(c,(function(d,m){t["$initial_"+K_(m)]=d}))}));var o,n,r=this.props[_g];if(r){var i=(o=x4(r),n={},lo(o,(function(l,c){n["$initial_"+K_(c)]=l})),n);xo(t,i)}return t}safe_merge(t){return lo(this.props,(function(o,n){n in t||(t[n]=o)})),t}update_config(t,o,n){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var d=[...l].sort(),m=[...c].sort();return d.every(((h,f)=>h===m[f]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var r=this.br(t),i=this.props;this.clear(),this.nr=r,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var n=this.props[Od]||{};n[t]=o,this.Tr(Od,n),this.save()}remove_event_timer(t){var o=this.props[Od]||{},n=o[t];return ze(n)||(delete o[t],this.Tr(Od,o),this.save()),n}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var bd={Activation:"events",Cancellation:"cancelEvents"},CS={Popover:"popover",API:"api",Widget:"widget"},Nd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},wS={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},bC={Popover:"popover",Inline:"inline"},xie={SHOWN:"product tour shown"},sO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},lO=ho("[RateLimiter]");class Tie{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var n=o.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((r=>{lO.info((r||"events")+" is quota limited."),this.serverLimits[r]=new Date().getTime()+6e4}))}catch(r){return void lO.warn('could not rate limit - continuing. Error: "'+r?.message+'"',{text:n})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,n,r;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),d=(o=(n=this.instance.persistence)==null?void 0:n.get_property(hC))!==null&&o!==void 0?o:{tokens:i,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>i&&(d.tokens=i);var m=1>d.tokens;return m||t||(d.tokens=Math.max(0,d.tokens-1)),!m||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=m,(r=this.instance.persistence)==null||r.set_property(hC,d),{isRateLimited:m,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var yd=ho("[RemoteConfig]");class P4{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Ze._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.loadExternalDependency?(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return yd.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void yd.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return yd.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){yd.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Ne?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||yd.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var ya={GZipJS:"gzip-js",Base64:"base64"},jr=Uint8Array,tr=Uint16Array,nu=Uint32Array,bE=new jr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yE=new jr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cO=new jr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),R4=function(e,t){for(var o=new tr(31),n=0;31>n;++n)o[n]=t+=1<<e[n-1];var r=new nu(o[30]);for(n=1;30>n;++n)for(var i=o[n];o[n+1]>i;++i)r[i]=i-o[n]<<5|n;return[o,r]},A4=R4(bE,2),yC=A4[1];A4[0][28]=258,yC[258]=28;for(var uO=R4(yE,0)[1],k4=new tr(32768),co=0;32768>co;++co){var _c=(43690&co)>>>1|(21845&co)<<1;k4[co]=((65280&(_c=(61680&(_c=(52428&_c)>>>2|(13107&_c)<<2))>>>4|(3855&_c)<<4))>>>8|(255&_c)<<8)>>>1}var qd=function(e,t,o){for(var n=e.length,r=0,i=new tr(t);n>r;++r)++i[e[r]-1];var l,c=new tr(t);for(r=0;t>r;++r)c[r]=c[r-1]+i[r-1]<<1;for(l=new tr(n),r=0;n>r;++r)l[r]=k4[c[e[r]-1]++]>>>15-e[r];return l},hl=new jr(288);for(co=0;144>co;++co)hl[co]=8;for(co=144;256>co;++co)hl[co]=9;for(co=256;280>co;++co)hl[co]=7;for(co=280;288>co;++co)hl[co]=8;var kg=new jr(32);for(co=0;32>co;++co)kg[co]=5;var Pie=qd(hl,9),Rie=qd(kg,5),D4=function(e){return(e/8>>0)+(7&e&&1)},O4=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var n=new(e instanceof tr?tr:e instanceof nu?nu:jr)(o-t);return n.set(e.subarray(t,o)),n},oi=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8},Sd=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8,e[n+2]|=o>>>16},ES=function(e,t){for(var o=[],n=0;e.length>n;++n)e[n]&&o.push({s:n,f:e[n]});var r=o.length,i=o.slice();if(!r)return[new jr(0),0];if(r==1){var l=new jr(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(T,A){return T.f-A.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],m=0,h=1,f=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};h!=r-1;)c=o[o[f].f>o[m].f?m++:f++],d=o[m!=h&&o[f].f>o[m].f?m++:f++],o[h++]={s:-1,f:c.f+d.f,l:c,r:d};var g=i[0].s;for(n=1;r>n;++n)i[n].s>g&&(g=i[n].s);var v=new tr(g+1),y=SC(o[h-1],v,0);if(y>t){n=0;var S=0,E=y-t,_=1<<E;for(i.sort((function(T,A){return v[A.s]-v[T.s]||T.f-A.f}));r>n;++n){var w=i[n].s;if(t>=v[w])break;S+=_-(1<<y-v[w]),v[w]=t}for(S>>>=E;S>0;){var P=i[n].s;t>v[P]?S-=1<<t-v[P]++-1:++n}for(;n>=0&&S;--n){var x=i[n].s;v[x]==t&&(--v[x],++S)}y=t}return[new jr(v),y]},SC=function(e,t,o){return e.s==-1?Math.max(SC(e.l,t,o+1),SC(e.r,t,o+1)):t[e.s]=o},dO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new tr(++t),n=0,r=e[0],i=1,l=function(d){o[n++]=d},c=1;t>=c;++c)if(e[c]==r&&c!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(r),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(r);i=1,r=e[c]}return[o.subarray(0,n),t]},_d=function(e,t){for(var o=0,n=0;t.length>n;++n)o+=e[n]*t[n];return o},_C=function(e,t,o){var n=o.length,r=D4(t+2);e[r]=255&n,e[r+1]=n>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var i=0;n>i;++i)e[r+i+4]=o[i];return 8*(r+4+n)},mO=function(e,t,o,n,r,i,l,c,d,m,h){oi(t,h++,o),++r[256];for(var f=ES(r,15),g=f[0],v=f[1],y=ES(i,15),S=y[0],E=y[1],_=dO(g),w=_[0],P=_[1],x=dO(S),T=x[0],A=x[1],k=new tr(19),O=0;w.length>O;++O)k[31&w[O]]++;for(O=0;T.length>O;++O)k[31&T[O]]++;for(var N=ES(k,7),$=N[0],F=N[1],U=19;U>4&&!$[cO[U-1]];--U);var j,K,ae,V,Z=m+5<<3,te=_d(r,hl)+_d(i,kg)+l,le=_d(r,g)+_d(i,S)+l+14+3*U+_d(k,$)+(2*k[16]+3*k[17]+7*k[18]);if(te>=Z&&le>=Z)return _C(t,h,e.subarray(d,d+m));if(oi(t,h,1+(te>le)),h+=2,te>le){j=qd(g,v),K=g,ae=qd(S,E),V=S;var Q=qd($,F);for(oi(t,h,P-257),oi(t,h+5,A-1),oi(t,h+10,U-4),h+=14,O=0;U>O;++O)oi(t,h+3*O,$[cO[O]]);h+=3*U;for(var M=[w,T],H=0;2>H;++H){var q=M[H];for(O=0;q.length>O;++O)oi(t,h,Q[L=31&q[O]]),h+=$[L],L>15&&(oi(t,h,q[O]>>>5&127),h+=q[O]>>>12)}}else j=Pie,K=hl,ae=Rie,V=kg;for(O=0;c>O;++O)if(n[O]>255){var L;Sd(t,h,j[257+(L=n[O]>>>18&31)]),h+=K[L+257],L>7&&(oi(t,h,n[O]>>>23&31),h+=bE[L]);var z=31&n[O];Sd(t,h,ae[z]),h+=V[z],z>3&&(Sd(t,h,n[O]>>>5&8191),h+=yE[z])}else Sd(t,h,j[n[O]]),h+=K[n[O]];return Sd(t,h,j[256]),h+K[256]},Aie=new nu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),kie=(function(){for(var e=new nu(256),t=0;256>t;++t){for(var o=t,n=9;--n;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),xS=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function Die(e,t){t===void 0&&(t={});var o=(function(){var f=4294967295;return{p(g){for(var v=f,y=0;g.length>y;++y)v=kie[255&v^g[y]]^v>>>8;f=v},d(){return 4294967295^f}}})(),n=e.length;o.p(e);var r,i,l,c,d,m=(c=10+((r=t).filename&&r.filename.length+1||0),d=8,(function(f,g,v,y,S,E){var _=f.length,w=new jr(y+_+5*(1+Math.floor(_/7e3))+S),P=w.subarray(y,w.length-S),x=0;if(!g||8>_)for(var T=0;_>=T;T+=65535){var A=T+65535;_>A?x=_C(P,x,f.subarray(T,A)):(P[T]=!0,x=_C(P,x,f.subarray(T,_)))}else{for(var k=Aie[g-1],O=k>>>13,N=8191&k,$=(1<<v)-1,F=new tr(32768),U=new tr($+1),j=Math.ceil(v/3),K=2*j,ae=function(Ue){return(f[Ue]^f[Ue+1]<<j^f[Ue+2]<<K)&$},V=new nu(25e3),Z=new tr(288),te=new tr(32),le=0,Q=0,M=(T=0,0),H=0,q=0;_>T;++T){var L=ae(T),z=32767&T,J=U[L];if(F[z]=J,U[L]=z,T>=H){var me=_-T;if((le>7e3||M>24576)&&me>423){x=mO(f,P,0,V,Z,te,Q,M,q,T-q,x),M=le=Q=0,q=T;for(var he=0;286>he;++he)Z[he]=0;for(he=0;30>he;++he)te[he]=0}var we=2,Be=0,W=N,ne=z-J&32767;if(me>2&&L==ae(T-ne))for(var ve=Math.min(O,me)-1,ie=Math.min(32767,T),_e=Math.min(258,me);ie>=ne&&--W&&z!=J;){if(f[T+we]==f[T+we-ne]){for(var xe=0;_e>xe&&f[T+xe]==f[T+xe-ne];++xe);if(xe>we){if(we=xe,Be=ne,xe>ve)break;var tt=Math.min(ne,xe-2),nt=0;for(he=0;tt>he;++he){var $e=T-ne+he+32768&32767,Qe=$e-F[$e]+32768&32767;Qe>nt&&(nt=Qe,J=$e)}}}ne+=(z=J)-(J=F[z])+32768&32767}if(Be){V[M++]=268435456|yC[we]<<18|uO[Be];var De=31&yC[we],ke=31&uO[Be];Q+=bE[De]+yE[ke],++Z[257+De],++te[ke],H=T+we,++le}else V[M++]=f[T],++Z[f[T]]}}x=mO(f,P,!0,V,Z,te,Q,M,q,T-q,x)}return O4(w,0,y+D4(x)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,d)),h=m.length;return(function(f,g){var v=g.filename;if(f[0]=31,f[1]=139,f[2]=8,f[8]=2>g.level?4:g.level==9?2:0,f[9]=3,g.mtime!=0&&xS(f,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),v){f[3]=8;for(var y=0;v.length>=y;++y)f[y+10]=v.charCodeAt(y)}})(m,t),xS(m,h-8,o.d()),xS(m,h-4,n),m}var Oie=!!H_||!!V_,I4="text/plain",fO=!1,yv=function(e,t,o){var n;o===void 0&&(o=!0);var[r,i]=e.split("?"),l=Oe({},t),c=(n=i?.split("&").map((m=>{var h,[f,g]=m.split("="),v=o&&(h=l[f])!==null&&h!==void 0?h:g;return delete l[f],f+"="+v})))!==null&&n!==void 0?n:[],d=(function(m,h){var f,g;h===void 0&&(h="&");var v=[];return lo(m,(function(y,S){ze(y)||ze(S)||S==="undefined"||(f=encodeURIComponent((E=>E instanceof File)(y)?y.name:y.toString()),g=encodeURIComponent(S),v[v.length]=g+"="+f)})),v.join(h)})(l);return d&&c.push(d),r+"?"+c.join("&")},Lc=(e,t)=>JSON.stringify(e,((o,n)=>typeof n=="bigint"?n.toString():n),t),TS=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===ya.GZipJS){var n=Die((function(c,d){var m=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new jr(c.length+(c.length>>>1)),f=0,g=function(E){h[f++]=E},v=0;m>v;++v){if(f+5>h.length){var y=new jr(f+8+(m-v<<1));y.set(h),h=y}var S=c.charCodeAt(v);128>S?g(S):2048>S?(g(192|S>>>6),g(128|63&S)):S>55295&&57344>S?(g(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),g(128|S>>>12&63),g(128|S>>>6&63),g(128|63&S)):(g(224|S>>>12),g(128|S>>>6&63),g(128|63&S))}return O4(h,0,f)})(Lc(t)),{mtime:0});return{contentType:I4,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(o===ya.Base64){var r=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,m)=>String.fromCharCode(parseInt(m,16)))))})(Lc(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Lc(c)))(r);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=Lc(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},Iie=(function(){var e=Nr((function*(t){var o=Lc(t.data),n=yield(function(i,l,c){return G_.apply(this,arguments)})(o,Bn.DEBUG,{rethrow:!0});if(!n)return t;var r=yield n.arrayBuffer();return Oe({},t,{tr:{contentType:I4,body:r,estimatedSize:r.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),hO=(e,t)=>yv(e,{_:new Date().getTime().toString(),ver:Bn.JS_SDK_VERSION,compression:t}),Lp=[];V_&&Lp.push({transport:"fetch",method(e){var t,o,{contentType:n,body:r,estimatedSize:i}=(t=TS(e))!==null&&t!==void 0?t:{},l=new Headers;lo(e.headers,(function(h,f){l.append(f,h)})),n&&l.append("Content-Type",n);var c=e.url,d=null;if(HD){var m=new HD;d={signal:m.signal,timeout:setTimeout((()=>m.abort()),e.timeout)}}V_(c,Oe({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:r,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((h=>h.text().then((f=>{var g={statusCode:h.status,text:f};if(h.status===200)try{g.json=JSON.parse(f)}catch(v){Fe.error(v)}e.callback==null||e.callback(g)})))).catch((h=>{Fe.error(h),e.callback==null||e.callback({statusCode:0,error:h})})).finally((()=>d?clearTimeout(d.timeout):null))}}),H_&&Lp.push({transport:"XHR",method(e){var t,o=new H_;o.open(e.method||"GET",e.url,!0);var{contentType:n,body:r}=(t=TS(e))!==null&&t!==void 0?t:{};lo(e.headers,(function(i,l){o.setRequestHeader(l,i)})),n&&o.setRequestHeader("Content-Type",n),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(r)}}),vr!=null&&vr.sendBeacon&&Lp.push({transport:"sendBeacon",method(e){var t=yv(e.url,{beacon:"1"});try{var o,{contentType:n,body:r}=(o=TS(e))!==null&&o!==void 0?o:{};if(!r)return;var i=r instanceof Blob?r:new Blob([r],{type:n});vr.sendBeacon(t,i)}catch{}}});var CC=3e3;class Mie{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=Ta(o?.flush_interval_ms||CC,250,5e3,Fe.createLogger("flush interval"),CC),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((n=>n.url.indexOf("/e")===0)),...o.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Br(Oe({},n,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),n=function(){var i=o[r],l=new Date().getTime();i.data&&Dt(i.data)&&lo(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var r in o)n()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return lo(this.Lr,(o=>{var n,r=o,i=(r?r.batchKey:null)||r.url;ze(t[i])&&(t[i]=Oe({},r,{data:[]})),(n=t[i].data)==null||n.push(r.data)})),this.Lr=[],t}}var Lie=["retriesPerformedSoFar"];class Nie{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!ze(pe)&&"onLine"in pe.navigator&&(this.zr=pe.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},qo(pe,"online",this.Ur),qo(pe,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,n=N3(t,Lie);xc(o)&&(n.url=yv(n.url,{retry_count:o})),this._instance._send_request(Oe({},n,{callback:r=>{r.statusCode===200||r.statusCode>=400&&500>r.statusCode||(o??0)>=10?n.callback==null||n.callback(r):this.Wr(Oe({retriesPerformedSoFar:o},n))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var n=(function(l){var c=3e3*Math.pow(2,l),d=c/2,m=Math.min(18e5,c),h=Math.random()-.5;return Math.ceil(m+h*(m-d))})(o),r=Date.now()+n;this.Lr.push({retryAt:r,requestOptions:t});var i="Enqueued failed request for retry in "+n;navigator.onLine||(i+=" (Browser is offline)"),Fe.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],n=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,ze(pe)||(this.Ur&&(pe.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(pe.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Oe({},t,{transport:"sendBeacon"}))}catch(o){Fe.error(o)}this.Lr=[]}}class Fie{constructor(t){this.Kr=()=>{var o,n,r,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,m=c+(l?.clientHeight||0),h=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(n=this.Qr.maxScrollHeight)!==null&&n!==void 0?n:0),this.Qr.lastContentY=m,this.Qr.maxContentY=Math.max(m,(r=this.Qr.maxContentY)!==null&&r!==void 0?r:0),this.Qr.maxContentHeight=Math.max(h,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){qo(pe,"scroll",this.Kr,{capture:!0}),qo(pe,"scrollend",this.Kr,{capture:!0}),qo(pe,"resize",this.Kr)}scrollElement(){if(!this.ei)return pe?.document.documentElement;var t=Dt(this.ei)?this.ei:[this.ei];for(var o of t){var n=pe?.document.querySelector(o);if(n)return n}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return pe&&(pe.scrollY||pe.pageYOffset||pe.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return pe&&(pe.scrollX||pe.pageXOffset||pe.document.documentElement.scrollLeft)||0}}var Bie=e=>E4(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class pO{constructor(t,o,n,r){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[fC]:c})}},this._instance=t,this.si=o,this.ni=n,this.ii=r||Bie,this.si.onSessionId(this.ti)}ri(){return this.ni.props[fC]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?x4(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return lo(vE(this.getSetOnceProps()),((o,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+K_(n)]=o})),t}}class SE{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((n=>n!==o))}}emit(t,o){for(var n of this.oi[t]||[])n(o);for(var r of this.oi["*"]||[])r(t,o)}}var PS=ho("[SessionId]");class gO{on(t,o){return this.ai.on(t,o)}constructor(t,o,n){var r;if(this.li=[],this.ui=void 0,this.ai=new SE,this.hi=(m,h)=>!(!xc(m)||!xc(h))&&Math.abs(m-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===si)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ns,this.fi=n||ns;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Ta(this.Bt.session_idle_timeout_seconds||1800,60,36e3,PS.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=pn.Z(this.gi),c=pn.Z(this.mi);l&&!c?this.ci=l:pn.F(this.gi),pn.M(this.mi,!0)}if((r=this.Bt.bootstrap)!=null&&r.sessionID)try{var d=(m=>{var h=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(m){PS.error("Invalid sessionID in bootstrap",m)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ze(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&pn.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&pn.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?pn.Z(this.gi):null}bi(t,o,n){t===this.di&&o===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[yg]:[o,t,n]}))}Si(){var t=this.ni.props[yg];return Dt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&pe&&(pe.removeEventListener(Eg,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&pn.F(this.mi)},qo(pe,Eg,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===si)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=o||new Date().getTime(),[r,i,l]=this.Si(),c=this.Ci(),d=xc(l)&&Math.abs(n-l)>864e5,m=!1,h=!i,f=!h&&!t&&this.hi(n,r);h||f||d?(i=this.vi(),c=this.fi(),PS.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}}),l=n,m=!0):c||(c=this.fi(),m=!0);var g=xc(r)&&t&&!d?r:n,v=xc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,g,v),t||this.pi(),m&&this.li.forEach((y=>y(i,c,m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:r}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var M4=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&WD(o,t))return!0;try{var n=e?.userAgentData;if(n!=null&&n.brands&&n.brands.some((r=>WD(r?.brand,t))))return!0}catch{}return!!e.webdriver},Dg=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function vO(e,t,o){return Lc({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var L4={exact:(e,t)=>t.some((o=>e.some((n=>o===n)))),is_not:(e,t)=>t.every((o=>e.every((n=>o!==n)))),regex:(e,t)=>t.some((o=>e.some((n=>Dg(o,n))))),not_regex:(e,t)=>t.every((o=>e.every((n=>!Dg(o,n))))),icontains:(e,t)=>t.map(gp).some((o=>e.map(gp).some((n=>o.includes(n))))),not_icontains:(e,t)=>t.map(gp).every((o=>e.map(gp).every((n=>!o.includes(n))))),gt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n>parseFloat(r)))})),lt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n<parseFloat(r)))}))},gp=e=>e.toLowerCase();function N4(e,t){return!e||Object.entries(e).every((o=>{var[n,r]=o,i=t?.[n];if(ze(i)||yi(i))return!1;var l=[String(i)],c=L4[r.operator];return!!c&&c(r.values,l)}))}var wC="custom",bO="i.posthog.com",zie=/^\/static\//;class jie{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+bO,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":wC),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&zie.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var n=this.Ti(o);if(n)return""+n+o}if(this.region===wC)return this.apiHost+o;var r=bO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Zt=ho("[Surveys]"),EC="seenSurvey_",Uie=[CS.Popover,CS.Widget,CS.API],$ie={ignoreConditions:!1,ignoreDelay:!1,displayType:bC.Popover},qie=ho("[PostHog ExternalIntegrations]"),Vie={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Hie{constructor(t){this._instance=t}ur(t,o){var n;(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,(r=>{if(r)return qie.error("failed to load script",r);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,d,m;!r||(c=Ze.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Vie[l],(()=>{var h;(h=Ze.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(t._instance)})),!r&&(d=Ze.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[l]&&((m=Ze.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[l])==null||m.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(n)}}}var Cc,Vd={},RS=0,xC=()=>{},yO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Cd="Surveys module not available",SO="sanitize_properties is deprecated. Use before_send instead",F4="Invalid value for property_denylist config: ",Rc="posthog",B4=!Oie&&Qn?.indexOf("MSIE")===-1&&Qn?.indexOf("Mozilla")===-1,_O=e=>{var t;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:lie(Ne?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:xC,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:hn&&bo(hn?.search)&&hn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(pe==null||(t=pe.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Fe.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:vC,before_send:void 0,request_queue_config:{flush_interval_ms:CC},error_tracking:{},_onCapture:xC,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Gie=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],CO=e=>{var t={};for(var[o,n]of Gie)ze(e[o])||(t[n]=e[o]);var r=xo({},t,e);return Dt(e.property_blacklist)&&(ze(e.property_denylist)?r.property_denylist=e.property_blacklist:Dt(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Fe.error(F4+e.property_denylist)),r};class Kie{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Fe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Fr{Ei(t,o){if(t){var n=this.Ri.indexOf(t);n!==-1&&this.Ri.splice(n,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===si||this.config.cookieless_mode===tl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Kie,this.Mi=!1,this.version=Bn.LIB_VERSION,this.Fi=new SE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=_O(),this.SentryIntegration=bie,this.sentryIntegration=n=>(function(r,i){var l=y4(r,i);return{name:b4,processEvent:c=>l(c)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Fie(this),this.pageViewManager=new aO(this),this.rateLimiter=new Tie(this),this.requestRouter=new jie(this),this.consent=new pie(this),this.externalIntegrations=new Hie(this);var o=(t=Fr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(n,r,i)=>{var l=bo(n)?{[n]:r}:n;this.setPersonProperties(l),i?.({})},set_once:(n,r,i)=>{var l=bo(n)?{[n]:r}:n;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(n=>Fe.info('send "'+n?.event+'"',n)))}init(t,o,n){if(n&&n!==Rc){var r,i=(r=Vd[n])!==null&&r!==void 0?r:new Fr;return i._init(t,o,n),Vd[n]=i,Vd[Rc][n]=i,i}return this._init(t,o,n)}_init(t,o,n){var r,i;if(o===void 0&&(o={}),ze(t)||Dp(t))return Fe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(xo({},_O(o.defaults),CO(o),{name:n,token:t})),this.config.on_xhr_error&&Fe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:ya.GZipJS;var l=this.qi();this.persistence=new _S(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new _S(Oe({},this.config,{persistence:"sessionStorage"}),l);var c=Oe({},this.persistence.props),d=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Mie((E=>this.Vi(E)),this.config.request_queue_config),this.Hi=new Nie(this),this.__request_queue=[];var m=this.Ni();if(m||(this.sessionManager=new gO(this),this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Fe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(m)}),0)):(Fe.info("Initializing extensions synchronously"),this.zi(m)),Bn.DEBUG=Bn.DEBUG||this.config.debug,Bn.DEBUG&&Fe.info("Starting in debug mode",{this:this,config:o,thisC:Oe({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(r=o.bootstrap)!=null&&r.distinctID||(o.bootstrap=Oe({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=o.bootstrap.distinctID,f=this.get_distinct_id(),g=this.persistence.get_property(ta);if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===yc)this.identify(h);else if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===Sc)Fe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ns()),y=o.bootstrap.isIdentifiedID?v:h;this.persistence.set_property(ta,o.bootstrap.isIdentifiedID?Sc:yc),this.register({distinct_id:h,$device_id:y})}}if(m)this.register_once({distinct_id:dp,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ns());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(ta,yc)}return qo(pe,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(E,_){var w=E.config.segment;if(!w)return _();(function(P,x){var T=P.config.segment;if(!T)return x();var A=O=>{var N=()=>O.anonymousId()||ns();P.config.get_device_id=N,O.id()&&(P.register({distinct_id:O.id(),$device_id:N()}),P.persistence.set_property(ta,Sc)),x()},k=T.user();"then"in k&&ai(k.then)?k.then(A):A(k)})(E,(()=>{w.register((P=>{Promise&&Promise.resolve||SS.warn("This browser does not have Promise support, and can not use the segment integration");var x=(T,A)=>{if(!A)return T;T.event.userId||T.event.anonymousId===P.get_distinct_id()||(SS.info("No userId set, resetting PostHog"),P.reset()),T.event.userId&&T.event.userId!==P.get_distinct_id()&&(SS.info("UserId set, identifying with PostHog"),P.identify(T.event.userId));var k=P.calculateEventProperties(A,T.event.properties);return T.event.properties=Object.assign({},k,T.event.properties),T};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:T=>x(T,T.event.event),page:T=>x(T,Pc),identify:T=>x(T,bS),screen:T=>x(T,"$screen")}})(E)).then((()=>{_()}))}))})(this,(()=>this.Ui())):this.Ui(),ai(this.config._onCapture)&&this.config._onCapture!==xC&&(Fe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(E=>this.config._onCapture(E.event,E)))),this.config.ip&&Fe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,n,r,i,l,c,d,m=performance.now(),h=Oe({},Fr.__defaultExtensionClasses,this.config.__extensionClasses),f=[];h.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new h.featureFlags(this)),h.exceptions&&this.Ri.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new h.exceptions(this)),h.historyAutocapture&&this.Ri.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ri.push(new h.tracingHeaders(this)),h.siteApps&&this.Ri.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||f.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Ri.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ri.push(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new h.surveys(this)),h.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new h.logs(this)),h.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Ri.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ri.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ri.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,vie)),h.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new h.toolbar(this)),h.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new h.experiments(this)),this.Ri.forEach((g=>{g.initialize&&f.push((()=>{g.initialize==null||g.initialize()}))})),f.push((()=>{if(this.Yi){var g=this.Yi;this.Yi=void 0,this.Nr(g)}})),this.Gi(f,m)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var n=t.shift();if(n)try{n()}catch(i){Fe.error("Error initializing extension:",i)}}var r=Math.round(performance.now()-o);this.register_for_session({[f4]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[h4]:r}),this.config.__preview_deferred_init_extensions&&Fe.info("PostHog extensions initialized ("+r+"ms)")}Nr(t){var o;if(!Ne||!Ne.body)return Fe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(t.supportedCompression,ya.GZipJS)?ya.GZipJS:Ct(t.supportedCompression,ya.Base64)?ya.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:vC}),this.Ri.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(n){Fe.critical("`loaded` function failed",n)}if(this.Xi(),this.config.internal_or_test_user_hostname&&hn!=null&&hn.hostname){var t=hn.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new P4(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&mp(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,n,r;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(vS),(o=this.logs)==null||o.flushLogs("sendBeacon"),(n=this.Zi)==null||n.unload(),(r=this.Hi)==null||r.unload()):this.Qi()&&this.capture(vS,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(B4?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=yv(t.url,{ip:this.config.ip?1:0}),t.headers=Oe({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var n,r,i,l=Oe({},o);l.timeout=l.timeout||6e4,l.url=hO(l.url,l.compression);var c=(n=l.transport)!==null&&n!==void 0?n:"fetch",d=Lp.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),m=(r=(i=(function(h,f){for(var g=0;h.length>g;g++)if(h[g].transport===c)return h[g]})(d))==null?void 0:i.method)!==null&&r!==void 0?r:d[0].method;if(!m)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===ya.GZipJS&&bae&&!fO?Iie(l).then((h=>{m(h)})).catch((h=>{if((f=>!(!f||typeof f!="object")&&("name"in f?String(f.name):"")==="NotReadableError")(h))return fO=!0,void m(Oe({},l,{compression:void 0,url:hO(o.url,void 0)}));m(l)})):m(l)})(Oe({},t,{callback:o=>{var n,r;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){RS++;try{var o,n=[],r=[],i=[];mp(t,(c=>{c&&(Dt(o=c[0])?i.push(c):ai(c)?c.call(this):Dt(c)&&o==="alias"?n.push(c):Dt(c)&&o.indexOf("capture")!==-1&&ai(this[o])?i.push(c):r.push(c))}));var l=function(c,d){mp(c,(function(m){if(Dt(m[0])){var h=d;lo(m,(function(f){h=h[f[0]].apply(h,f.slice(1))}))}else d[m[0]].apply(d,m.slice(1))}))};l(n,this),l(r,this),l(i,this)}finally{RS--}}push(t){if(RS>0&&Dt(t)&&bo(t[0])){var o=Fr.prototype[t[0]];ai(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,n){var r,i,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!ze(t)&&bo(t)){var m=!this.config.opt_out_useragent_filter&&this._is_bot();if(!m||this.config.__preview_capture_bot_pageviews){var h=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){o!=null&&o.$current_url&&!bo(o?.$current_url)&&(Fe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||n!=null&&n.en||Fe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var f=new Date,g=n?.timestamp||f,v=ns(),y={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},g,v)};t===Pc&&this.config.__preview_capture_bot_pageviews&&m&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),h&&(y.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),n?.$set&&(y.$set=n?.$set);var S,E,_,w=this.tn(n?.$set_once,t!==tO,t===bS);if(w&&(y.$set_once=w),n!=null&&n._noTruncate||(i=this.config.properties_string_max_length,l=y,c=N=>bo(N)?N.slice(0,i):N,d=new Set,y=(function N($,F){return $!==Object($)?c?c($):$:d.has($)?void 0:(d.add($),Dt($)?(U=[],mp($,(j=>{U.push(N(j))}))):(U={},lo($,((j,K)=>{d.has(j)||(U[K]=N(j))}))),U);var U})(l)),y.timestamp=g,ze(n?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=f),t===Nd.DISMISSED||t===Nd.SENT){var P=o?.[wS.SURVEY_ID],x=o?.[wS.SURVEY_ITERATION];(N=>{try{var $=(F=>((U,j)=>{var K=""+EC+j.id;return j.current_iteration&&j.current_iteration>0&&(K=""+EC+j.id+"_"+j.current_iteration),K})(0,F))(N);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(F){Zt.error("Failed to persist survey seen state",F)}})({id:P,current_iteration:x}),y.$set=Oe({},y.$set,{[(S={id:P,current_iteration:x},E=t===Nd.SENT?"responded":"dismissed",_="$survey_"+E+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(_="$survey_"+E+"/"+S.id+"/"+S.current_iteration),_)]:!0})}else t===Nd.SHOWN&&(y.$set=Oe({},y.$set,{[wS.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===xie.SHOWN){var T=o?.[sO.TOUR_TYPE];T&&(y.$set=Oe({},y.$set,{[sO.TOUR_LAST_SEEN_DATE+"/"+T]:new Date().toISOString()}))}var A=Oe({},y.properties.$set,y.$set);if(Ic(A)||this.setPersonPropertiesForFlags(A),!wt(this.config.before_send)){var k=this.rn(y);if(!k)return;y=k}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(r=n?._url)!==null&&r!==void 0?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}Fe.critical("This capture call is ignored due to client rate limiting.")}}else Fe.error("No event name provided to posthog.capture")}else Fe.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Oe({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!bo(c.distinct_id)&&!Ur(c.distinct_id)||Dp(c.distinct_id))&&Fe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var m,h=(function(_,w){var P,x,T,A;if(!Qn)return{};var k,O,N,$,F,U,j,K,ae=_?[...ou,...w||[]]:[],[V,Z]=(function(te){for(var le=0;QD.length>le;le++){var[Q,M]=QD[le],H=Q.exec(te),q=H&&(ai(M)?M(H,te):M);if(q)return q}return["",""]})(Qn);return xo(vE({$os:V,$os_version:Z,$browser:t4(Qn,navigator.vendor),$device:JD(Qn),$device_type:(O=Qn,N={userAgentDataPlatform:(P=navigator)==null||(P=P.userAgentData)==null?void 0:P.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:pe==null||(T=pe.screen)==null?void 0:T.width,screenHeight:pe==null||(A=pe.screen)==null?void 0:A.height,devicePixelRatio:pe?.devicePixelRatio},K=JD(O),K===U3||K===j3||K==="Kobo"||K==="Kindle Fire"||K===e4?Xc:K===cm||K===Hc||K===um||K===Y_?"Console":K===q3?"Wearable":K?yr:N?.userAgentDataPlatform==="Android"&&(($=N?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((F=N?.screenWidth)!==null&&F!==void 0?F:0,(U=N?.screenHeight)!==null&&U!==void 0?U:0)/((j=N?.devicePixelRatio)!==null&&j!==void 0?j:1)?yr:Xc:"Desktop"),$timezone:T4(),$timezone_offset:wie()}),{$current_url:dm(hn?.href,ae,mm),$host:hn?.host,$pathname:hn?.pathname,$raw_user_agent:Qn.length>1e3?Qn.substring(0,997)+"...":Qn,$browser_version:Mae(Qn,navigator.vendor),$browser_language:iO(),$browser_language_prefix:(k=iO(),typeof k=="string"?k.split("-")[0]:void 0),$screen_height:pe?.screen.height,$screen_width:pe?.screen.width,$viewport_height:pe?.innerHeight,$viewport_width:pe?.innerWidth,$lib:Bn.LIB_NAME,$lib_version:Bn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:f,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());c.$session_id=f,c.$window_id=g}this.sessionPropsManager&&xo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&xo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(_){c.$sdk_debug_error_capturing_properties=String(_)}if(this.requestRouter.region===wC&&(c.$lib_custom_api_host=this.config.api_host),m=t!==Pc||i?t!==vS||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),c=xo(c,m),t===Pc&&Ne&&(c.title=Ne.title),!ze(l)){var y=n.getTime()-l;c.$duration=parseFloat((y/1e3).toFixed(3))}Qn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=xo({},h,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Dt(this.config.property_denylist)?lo(this.config.property_denylist,(function(_){delete c[_]})):Fe.error(F4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Fe.error(SO),c=S(c,t));var E=this.nn();return c.$process_person_profile=E,E&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,n){var r;if(o===void 0&&(o=!0),n===void 0&&(n=!1),!this.persistence||!this.nn()||this.Mi&&!n)return t;var i=this.persistence.get_initial_props(),l=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),c=xo({},i,l||{},t||{}),d=this.config.sanitize_properties;return d&&(Fe.error(SO),c=d(c,"$set_once")),o&&(this.Mi=!0),Ic(c)?void 0:c}register(t,o){var n;(n=this.persistence)==null||n.register(t,o)}register_once(t,o,n){var r;(r=this.persistence)==null||r.register_once(t,o,n)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,n){var r;(r=this.featureFlags)==null||r.updateFlags(t,o,n)}updateEarlyAccessFeatureEnrollment(t,o,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(t,o,n)}getEarlyAccessFeatures(t,o,n){var r;return o===void 0&&(o=!1),(r=this.featureFlags)==null?void 0:r.getEarlyAccessFeatures(t,o,n)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Cd}),()=>{})}onSessionId(t){var o,n;return(o=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:Cd})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:Cd})}renderSurvey(t,o){var n;(n=this.surveys)==null||n.renderSurvey(t,o)}displaySurvey(t,o){var n;o===void 0&&(o=$ie),(n=this.surveys)==null||n.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,n;return(o=(n=this.surveys)==null?void 0:n.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:Cd}}canRenderSurveyAsync(t,o){var n,r;return o===void 0&&(o=!1),(n=(r=this.surveys)==null?void 0:r.canRenderSurveyAsync(t,o))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:Cd})}ln(t){return!t||Dp(t)?(Fe.critical("Unique user id has not been set in posthog.identify"),!1):t===dp?(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,n){if(!this.__loaded||!this.persistence)return Fe.uninitializedWarning("posthog.identify");if(Ur(t)&&(t=t.toString(),Fe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:t}),this.get_property(bg)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),t!==r&&t!==this.get_property(Dd)&&(this.unregister(Dd),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(ta)||yc)===yc;t!==r&&l?(this.persistence.set_property(ta,Sc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:n||{}},!1),this.capture(bS,{distinct_id:t,$anon_distinct_id:r},{$set:o||{},$set_once:n||{}}),this.Di=vO(t,o,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(o||n)&&this.setPersonProperties(o,n),t!==r&&(this.reloadFeatureFlags(),this.unregister($d))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var n=vO(this.get_distinct_id(),t,o);this.Di!==n?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=n):Fe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,n){if(t&&o){var r=this.getGroups(),i=r[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Oe({},r,{[t]:o})}),i||n){var l={$group_type:t,$group_key:o};n&&(l.$group_set=n),this.capture(tO,l)}n&&this.setGroupPropertiesForFlags({[t]:n}),i&&!n&&this.reloadFeatureFlags()}else Fe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,n,r,i,l,c,d,m;if(Fe.info("reset"),!this.__loaded)return Fe.uninitializedWarning("posthog.reset");var h=this.get_property(bg);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(n=this.sessionPersistence)==null||n.clear(),(r=this.surveys)==null||r.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(ta,yc),(m=this.sessionManager)==null||m.resetSessionId(),this.Di=null,this.config.cookieless_mode===si)this.register_once({distinct_id:dp,$device_id:null},"");else{var f=this.config.get_device_id(ns());this.register_once({distinct_id:f,$device_id:t?f:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var n;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(n=this.conversations)==null||n.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&n){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-l,0)}return r}alias(t,o){return t===this.get_property(s4)?(Fe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ze(o)&&(o=this.get_distinct_id()),t!==o?(this.an(Dd,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Fe.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Oe({},this.config);if(Ao(t)){var n,r,i,l,c,d,m,h,f,g;xo(this.config,CO(t));var v=this.qi();(n=this.persistence)==null||n.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new _S(Oe({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);xa(y)&&(this.config.debug=y),xa(this.config.debug)&&(this.config.debug?(Bn.DEBUG=!0,vo.R()&&vo.M("ph_debug",!0),Fe.info("set_config",{config:t,oldConfig:o,newConfig:Oe({},this.config)})):(Bn.DEBUG=!1,vo.R()&&vo.F("ph_debug"))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(m=this.exceptionObserver)==null||m.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(f=this.surveys)==null||f.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Bn.LIB_NAME=t,Bn.LIB_VERSION=o}startSessionRecording(t){var o,n,r,i,l,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),d.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),d.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),d.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Oe({},r,o))}}addExceptionStep(t,o){var n;(n=this.exceptions)==null||n.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Fr.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,n;return(o=(n=this.toolbar)==null?void 0:n.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Rc;return o!==Rc&&(o=Rc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(ta))===Sc||((o=this.sessionPersistence)==null?void 0:o.get_property(ta))===Sc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===vC&&!this._isIdentified()&&Ic(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Dd])&&((o=this.persistence)==null||(o=o.props)==null||!o[Cg]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Fe.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(Cg,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==tl)}cn(){var t,o,n,r,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((n=this.persistence)==null||n.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((r=this.sessionPersistence)==null||r.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==si){if(this.Ni()){var n,r,i,l,c;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=new gO(this),this.pageViewManager=new aO(this),this.persistence&&(this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence));var d,m=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Fr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;m&&(this.sessionRecording=this.Ei(this.sessionRecording,new m(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var h,f;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==tl&&((h=this.surveys)==null||h.loadIfEnabled()),(ze(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((f=t?.captureEventName)!==null&&f!==void 0?f:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Fe.warn(yO)}opt_out_capturing(){var t,o,n;this.config.cookieless_mode!==si?(this.config.cookieless_mode===tl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===tl&&(this.register({distinct_id:dp,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Ji())):Fe.warn(yO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===si||(this.config.cookieless_mode===tl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return vr?M4(vr,this.config.custom_blocked_useragents):void 0}Ji(){Ne&&(Ne.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Pc,{title:Ne.title},{send_instantly:!0}),this.Pi&&(Ne.removeEventListener(wg,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),qo(Ne,wg,this.Pi)))}debug(t){t===!1?(pe?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(pe?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,n,r,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Fe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",r=Fe,i=(o="advanced_disable_flags")in(t=c)&&!wt(t[o]),l=n in t&&!wt(t[n]),i?t[o]:!!l&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[n]))}rn(t){if(wt(this.config.before_send))return t;var o=Dt(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var r of o){if(n=r(n),wt(n)){var i="Event '"+t.event+"' was rejected in beforeSend function";return Cae(t.event)?Fe.warn(i+". This can cause unexpected behavior."):Fe.info(i),null}n.properties&&!Ic(n.properties)||Fe.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(n)})}Bi(t){var o=xa(t)&&!t,n=vo.R()&&vo.O("ph_debug")==="true";return!o&&(!!n||t)}}function wO(e){return e instanceof Element&&(e.id===m4||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Sv(e){return!!e&&e.nodeType===1}function fs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function z4(e){return!!e&&e.nodeType===3}function j4(e){return!!e&&e.nodeType===11}function _E(e){return e?vv(e).split(/\s+/):[]}function EO(e){var t=pe?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Og(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return _E(t)}function U4(e){return wt(e)?null:vv(e).split(/(\s+)/).filter((t=>Hd(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function fm(e){var t="";return PC(e)&&!q4(e)&&e.childNodes&&e.childNodes.length&&lo(e.childNodes,(function(o){var n;z4(o)&&o.textContent&&(t+=(n=U4(o.textContent))!==null&&n!==void 0?n:"")})),vv(t)}function xO(e){return ze(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Fr.__defaultExtensionClasses={},Fr.dn={trace:Cc=()=>{},debug:Cc,info:Cc,warn:Cc,error:Cc,fatal:Cc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=iie(e.prototype[t[o]])})(Fr,["identify"]);var CE=["a","button","form","input","select","textarea","label"];function TO(e,t){if(ze(t))return!0;var o,n=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var r of e)if(o=n(r))return o.v;return!1}function $4(e){var t=e.parentNode;return!(!t||!Sv(t))&&t}var Wie=["next","previous","prev",">","<"],PO=[".ph-no-rageclick",".ph-no-capture"],TC=e=>!e||fs(e,"html")||!Sv(e),RO=(e,t)=>{if(!pe||TC(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,n=[e],r=e;r.parentNode&&!fs(r,"body");)if(j4(r.parentNode))n.push(r.parentNode.host),r=r.parentNode.host;else{var i=$4(r);if(!i)break;if(t||CE.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=pe.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}n.push(i),r=i}return{parentIsUsefulElement:o,targetElementList:n}};function PC(e){for(var t=e;t.parentNode&&!fs(t,"body");t=t.parentNode){var o=Og(t);if(Ct(o,"ph-sensitive")||Ct(o,"ph-no-capture"))return!1}if(Ct(Og(e),"ph-include"))return!0;var n=e.type||"";if(bo(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!bo(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function q4(e){return!!(fs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fs(e,"select")||fs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var V4="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Yie=new RegExp("^(?:"+V4+")$"),Zie=new RegExp(V4),H4="\\d{3}-?\\d{2}-?\\d{4}",Qie=new RegExp("^("+H4+")$"),Jie=new RegExp("("+H4+")");function Hd(e,t){return t===void 0&&(t=!0),!(wt(e)||bo(e)&&(e=vv(e),(t?Yie:Zie).test((e||"").replace(/[- ]/g,""))||(t?Qie:Jie).test(e)))}function AO(e){var t=fm(e);return Hd(t=(t+" "+G4(e)).trim())?t:""}function G4(e){var t="";return e&&e.childNodes&&e.childNodes.length&&lo(e.childNodes,(function(o){var n;if(o&&((n=o.tagName)==null?void 0:n.toLowerCase())==="span")try{var r=fm(o);t=(t+" "+r).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+G4(o)).trim())}catch(i){Fe.error("[AutoCapture]",i)}})),t}function kO(e){return e.replace(/"|\\"/g,'\\"')}function Xie(e){var t=e.attr__class;return t?Dt(t)?t:_E(t):void 0}class DO{constructor(t){this.disabled=t===!1;var o=Ao(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(t-r.x)+Math.abs(o-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:t,y:o,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:n}];return!1}}var AS="$copy_autocapture",OO=ho("[AutoCapture]");function kS(e,t){return t.length>e?t.slice(0,e)+"...":t}function ese(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Sv(t));return t}function tse(e,t){for(var o,n,{e:r,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,m=[e],h=e;h.parentNode&&!fs(h,"body");)j4(h.parentNode)?(m.push(h.parentNode.host),h=h.parentNode.host):(m.push(h.parentNode),h=h.parentNode);var f,g,v=[],y={},S=!1,E=!1;if(lo(m,(T=>{var A=PC(T);T.tagName.toLowerCase()==="a"&&(S=T.getAttribute("href"),S=A&&S&&Hd(S)&&S),Ct(Og(T),"ph-no-capture")&&(E=!0),v.push((function(O,N,$,F){var U=O.tagName.toLowerCase(),j={tag_name:U};CE.indexOf(U)>-1&&!$&&(j.$el_text=U.toLowerCase()==="a"||U.toLowerCase()==="button"?kS(1024,AO(O)):kS(1024,fm(O)));var K=Og(O);K.length>0&&(j.classes=K.filter((function(te){return te!==""}))),lo(O.attributes,(function(te){var le;if((!q4(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(F==null||!F.includes(te.name))&&!N&&Hd(te.value)&&(!bo(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=_E(Q).join(" ")),j["attr__"+te.name]=kS(1024,Q)}}));for(var ae=1,V=1,Z=O;Z=ese(Z);)ae++,Z.tagName===O.tagName&&V++;return j.nth_child=ae,j.nth_of_type=V,j})(T,i,l,c));var k=(function(O){if(!PC(O))return{};var N={};return lo(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var F=$.name.replace("data-ph-capture-attribute-",""),U=$.value;F&&U&&Hd(U)&&(N[F]=U)}})),N})(T);xo(y,k)})),E)return{props:{},explicitNoCapture:E};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?AO(e):fm(e)),S){var _,w;v[0].attr__href=S;var P=(_=Tg(S))==null?void 0:_.host,x=pe==null||(w=pe.location)==null?void 0:w.host;P&&x&&P!==x&&(f=S)}return{props:xo({$event_type:r.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(g=v,(function(T){return T.map((A=>{var k,O,N="";if(A.tag_name&&(N+=A.tag_name),A.attr_class)for(var $ of(A.attr_class.sort(),A.attr_class))N+="."+$.replace(/"/g,"");var F=Oe({},A.text?{text:A.text}:{},{"nth-child":(k=A.nth_child)!==null&&k!==void 0?k:0,"nth-of-type":(O=A.nth_of_type)!==null&&O!==void 0?O:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),U={};return Mp(F).sort(((j,K)=>{var[ae]=j,[V]=K;return ae.localeCompare(V)})).forEach((j=>{var[K,ae]=j;return U[kO(K.toString())]=kO(ae.toString())})),(N+=":")+Mp(U).map((j=>{var[K,ae]=j;return K+'="'+ae+'"'})).join("")})).join(";")})((function(T){return T.map((A=>{var k,O,N={text:(k=A.$el_text)==null?void 0:k.slice(0,400),tag_name:A.tag_name,href:(O=A.attr__href)==null?void 0:O.slice(0,2048),attr_class:Xie(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return Mp(A).filter(($=>{var[F]=$;return F.indexOf("attr__")===0})).forEach(($=>{var[F,U]=$;return N.attributes[F]=U})),N}))})(g)))},(o=v[0])!=null&&o.$el_text?{$el_text:(n=v[0])==null?void 0:n.$el_text}:{},f&&r.type==="click"?{$external_click_url:f}:{},y)}}var wd=ho("[ExceptionAutocapture]");function IO(e,t,o){try{if(!(t in e))return()=>{};var n=e[t],r=o(n);return ai(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=r,()=>{e[t]=n}}catch{return()=>{}}}var ose=ho("[TracingHeaders]"),Zi=ho("[Web Vitals]"),MO=9e5,LO="disabled",NO="lazy_loading",Ed="awaiting_config",vp="missing_config";ho("[SessionRecording]"),ho("[SessionRecording]");var RC="[SessionRecording]",Qi=ho(RC),nse=ho("[Heatmaps]");function FO(e){return Ao(e)&&"clientX"in e&&"clientY"in e&&Ur(e.clientX)&&Ur(e.clientY)}var BO=ho("[Product Tours]"),rse=["$set_once","$set"],Ji=ho("[SiteApps]"),zO="Error while initializing PostHog app with config id ";function wc(e,t,o){if(wt(e))return!1;switch(o){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class ase{constructor(t){this.vn=new SE,this.fn=(o,n)=>this.pn(o,n)&&this.gn(o,n)&&this.mn(o,n)&&this.yn(o,n),this.pn=(o,n)=>n==null||!n.event||o?.event===n?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;ze((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((n,r)=>{this.on(n,r)}))}register(t){var o,n;if(!ze((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((m=>{var h;(h=this.bn)==null||h.add(m?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var r,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((d=>{d!=null&&d.selector&&i.add(d?.selector)}))})),(r=this._instance)==null||r.autocapture.setElementSelectors(i)}}on(t,o){var n;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((n=this._n)==null?void 0:n.size)>0&&this._n.forEach((r=>{this.wn(o,r)&&this.vn.emit("actionCaptured",r.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var n of o.steps)if(this.fn(t,n))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var n,r=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!r||typeof r!="string"||!wc(r,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var n;if(o==null||!o.href)return!0;var r=this.kn(t);if(r.length>0)return r.some((c=>wc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!l&&wc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var n;if(o==null||!o.text)return!0;var r=this.kn(t);if(r.length>0)return r.some((m=>wc(m.text,o.text,o.text_matching||"exact")||wc(m.$el_text,o.text,o.text_matching||"exact")));var i,l,c,d=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!d&&(i=(function(m){for(var h,f=[],g=/(?::|")text="(.*?)"/g;!wt(h=g.exec(m));)f.includes(h[1])||f.push(h[1]);return f})(d),l=o.text,c=o.text_matching||"exact",i.some((m=>wc(m,l,c))))}xn(t,o){var n,r;if(o==null||!o.selector)return!0;var i=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||N4(o.properties.reduce(((n,r)=>{var i=Dt(r.value)?r.value.map(String):r.value!=null?[String(r.value)]:[];return n[r.key]={values:i,operator:r.operator||"exact"},n}),{}),t?.properties)}}class ise{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&N4(t.propertyFilters,o?.properties)}Nn(t,o){var n=new Map;return t.forEach((r=>{var i;(i=r.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=n.get(l.name)||[];c.push(r.id),n.set(l.name,c)}}))})),n}Mn(t,o,n){var r=(n===bd.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>r?.includes(c.id)))})),i.filter((l=>{var c,d=(c=l.conditions)==null||(c=c[n])==null||(c=c.values)==null?void 0:c.find((m=>m.name===t));return this.Rn(d,o)}))}register(t){var o;ze((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((n=>{var r,i;return((r=n.conditions)==null?void 0:r.actions)&&((i=n.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new ase(this._instance),this.Ln.init(),this.Ln.In((n=>{this.onAction(n)}))),o.forEach((n=>{var r,i,l,c,d;n.conditions&&(r=n.conditions)!=null&&r.actions&&(i=n.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(n.conditions.actions.values),(d=n.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((m=>{if(m&&m.name){var h=this.En.get(m.name);h&&h.push(n.id),this.En.set(m.name,h||[n.id])}})))})))}On(t){var o,n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),r=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));n.length===0&&r.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,bd.Activation),this.An=this.Nn(t,bd.Cancellation))}onEvent(t,o){var n,r=this.le(),i=this.Dn(),l=this.Bn(),c=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(l===t&&o&&c.length>0){var d,m;r.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var h=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(m=o.properties)==null?void 0:m.$product_tour_id);if(h){var f=c.indexOf(h);0>f||(c.splice(f,1),this.jn(c))}}else{if(this.An.has(t)){var g=this.Mn(t,o,bd.Cancellation);g.length>0&&(r.info("cancel event matched, cancelling items",{event:t,itemsToCancel:g.map((y=>y.id))}),g.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(t)){r.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,bd.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(t){var o,n=this.Dn(),r=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[n])||[];this.En.has(t)&&this.jn(r.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),n=[...new Set(t)].filter((r=>!this.qn(r)));o.info("updating activated items",{activatedItems:n}),this.Zn(n)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class sse extends ise{constructor(t){super(t)}Dn(){return uC}Bn(){return Nd.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return Zt}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[uC]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var DS="SDK is not enabled or survey functionality is not yet loaded",jO="Disabled. Not loading surveys.",lse=pe!=null&&pe.location?Rg(pe.location.hash,"__posthog")||Rg(location.hash,"state"):null,UO="_postHogToolbarParams",$O=ho("[Toolbar]"),Ln=ho("[FeatureFlags]"),Js=ho("[FeatureFlags]",{debugEnabled:!0}),OS=`" failed. Feature flags didn't load in time.`,qO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},VO=e=>{var t={};for(var[o,n]of Mp(e||{}))n&&(t[o]=n);return t},ni=ho("[Error tracking]"),HO="Refusing to render web experiment since the viewer is a likely bot",cse={icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!pe&&Dg(t.href,e),not_regex:(e,t)=>!!pe&&!Dg(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Tn{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),o.getWebExperiments((r=>{Tn.Hn("retrieved web experiments from the server"),o.zn=new Map,r.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Tn.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);bo(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var d in i.variants){var m=i.variants[d];Tn.Yn(m)&&o.Un(i.name,d,m.transforms)}}))}),n)},this._instance=t,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Tn.Hn(HO);else if(!this.Bt.disable_web_experiments){if(wt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Tn.Hn("applying feature flags",t),t.forEach((o=>{var n;if(this.zn&&(n=this.zn)!=null&&n.has(o)){var r,i=this._instance.getFeatureFlag(o),l=(r=this.zn)==null?void 0:r.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Tn.getWindowLocation();if(t!=null&&t.search){var o=Pg(t?.search,"__experiment_id"),n=Pg(t?.search,"__experiment_variant");o&&n&&(Tn.Hn("previewing web experiments "+o+" && "+n),this.getWebExperiments((r=>{this.Gn(parseInt(o),n,r)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,n){if(this.Bt.disable_web_experiments&&!n)return t([]);var r=this._instance.get_property("$web_experiments");if(r&&!o)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,n){var r=n.filter((i=>i.id===t));r&&r.length>0&&(Tn.Hn("Previewing web experiment ["+r[0].name+"] with variant ["+o+"]"),this.Un(r[0].name,o,r[0].variants[o].transforms))}static Yn(t){return!wt(t.conditions)&&Tn.Wn(t)&&Tn.Xn(t)}static Wn(t){var o;if(wt(t.conditions)||wt((o=t.conditions)==null?void 0:o.url))return!0;var n,r,i,l=Tn.getWindowLocation();return!!l&&((n=t.conditions)==null||!n.url||cse[(r=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&r!==void 0?r:"icontains"](t.conditions.url,l))}static getWindowLocation(){return pe?.location}static Xn(t){var o;if(wt(t.conditions)||wt((o=t.conditions)==null?void 0:o.utm))return!0;var n=S4();if(n.utm_source){var r,i,l,c,d,m,h,f,g=(r=t.conditions)==null||(r=r.utm)==null||!r.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==n.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==n.utm_source,y=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_medium)==n.utm_medium,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_term||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_term)==n.utm_term;return g&&y&&S&&v}return!1}static Hn(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;o>r;r++)n[r-1]=arguments[r];Fe.info("[WebExperiments] "+t,n)}Un(t,o,n){this._is_bot()?Tn.Hn(HO):o!=="control"?n.forEach((r=>{if(r.selector){var i;Tn.Hn("applying transform of variant "+o+" for experiment "+t+" ",r);var l=(i=document)==null?void 0:i.querySelectorAll(r.selector);l?.forEach((c=>{var d=c;r.html&&(d.innerHTML=r.html),r.css&&d.setAttribute("style",r.css)}))}})):Tn.Hn("Control variants leave the page unmodified.")}_is_bot(){return vr&&this._instance?M4(vr,this.Bt.custom_blocked_useragents):void 0}}var Mr=ho("[Conversations]"),Xs="Conversations not available yet.",_v={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ln.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ln.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var n=o&&typeof o=="string"&&o.trim().length>0;return n||Ln.error("Invalid evaluation context found:",o,"Expected non-empty string"),n})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,n=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(n).length){var r,i,l=(r=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&r!==void 0?r:{},c=Object.keys(n).filter((m=>!!n[m])).reduce(((m,h)=>(m[h]=n[h]||!1,m)),{}),d=Object.keys(l).filter((m=>c[m])).reduce(((m,h)=>(l[h]&&(m[h]=l[h]),m)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var n=o!=null&&o.merge?this.getFlagVariants():{},r=o!=null&&o.merge?this.getFlagPayloads():{},i=Oe({},n,e),l=Oe({},r,t),c={};for(var[d,m]of Object.entries(i)){var h=typeof m=="string";c[d]={key:d,enabled:!!h||!!m,variant:h?m:void 0,reason:void 0,metadata:ze(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(iC),t=this.os(ri),o=this.os(Tc);if(!o&&!t)return e||{};var n=xo({},e||{}),r=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of r){var l,c,d=n[i],m=t?.[i],h=ze(m)?(l=d?.enabled)!==null&&l!==void 0&&l:!!m,f=ze(m)?d.variant:typeof m=="string"?m:void 0,g=o?.[i],v=Oe({},d,{enabled:h,variant:h?f??d?.variant:void 0});h!==d?.enabled&&(v.original_enabled=d?.enabled),f!==d?.variant&&(v.original_variant=d?.variant),g&&(v.metadata=Oe({},d?.metadata,{payload:g,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),n[i]=v}return this.Jn||(Ln.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:n}),this.Jn=!0),n}getFlagVariants(){var e=this.os(Mc),t=this.os(ri);if(!t)return e||{};for(var o=xo({},e),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(sC),t=this.os(Tc);if(!t)return e||{};for(var o=xo({},e||{}),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,n=this.os(bg),r={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Ld)||{}),group_properties:this.os(el),timezone:T4()};yi(n)||ze(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.cs()&&(r.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:r,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,m,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Qn=!1,!r.disable_flags||this.ts){this.rs=!h;var f=[];l.error?l.error instanceof Error?f.push(l.error.name==="AbortError"?"timeout":"connection_error"):f.push("unknown_error"):l.statusCode!==200&&f.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&f.push("errors_while_computing_flags");var g,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&f.push("quota_limited"),(m=this.ni)==null||m.register({[mC]:f}),v?Ln.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(r.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},h,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var n=this.getFeatureFlagResult(e,t);return(o=n?.variant)!==null&&o!==void 0?o:n?.enabled}}else Ln.warn('getFeatureFlag for key "'+e+OS)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),n=e in o,r=o[e],i=this.getFlagPayloads()[e],l=String(r),c=this.os(lC)||void 0,d=this.os(Sg)||void 0,m=this.os($d)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var h,f=this._instance.get_session_id(),g=this.os(dC);f&&f!==g&&(m={},(h=this.ni)==null||h.register({[$d]:m,[dC]:f}))}if((t.send_event||!("send_event"in t))&&(!(e in m)||!m[e].includes(l))){var v,y,S,E,_,w,P,x,T,A;Dt(m[e])?m[e].push(l):m[e]=[l],(v=this.ni)==null||v.register({[$d]:m});var k=this.getFeatureFlagDetails(e),O=[...(y=this.os(mC))!==null&&y!==void 0?y:[]];ze(r)&&O.push("flag_missing");var N={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((E=this.Bt.bootstrap)==null||(E=E.featureFlagPayloads)==null?void 0:E[e])||null,$used_bootstrap_value:!this.rs};ze(k==null||(_=k.metadata)==null?void 0:_.version)||(N.$feature_flag_version=k.metadata.version);var $,F=(w=k==null||(P=k.reason)==null?void 0:P.description)!==null&&w!==void 0?w:k==null||(x=k.reason)==null?void 0:x.code;F&&(N.$feature_flag_reason=F),k!=null&&(T=k.metadata)!=null&&T.id&&(N.$feature_flag_id=k.metadata.id),ze(k?.original_variant)&&ze(k?.original_enabled)||(N.$feature_flag_original_response=ze(k.original_variant)?k.original_enabled:k.original_variant),k!=null&&(A=k.metadata)!=null&&A.original_payload&&(N.$feature_flag_original_payload=k==null||($=k.metadata)==null?void 0:$.original_payload),O.length&&(N.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",N)}if(n){var U=i;if(!ze(i))try{U=JSON.parse(i)}catch{}return{key:e,enabled:!!r,variant:typeof r=="string"?r:void 0,payload:U}}}}else Ln.warn('getFeatureFlagResult for key "'+e+OS)}getRemoteConfigPayload(e,t){var o=this.Bt.token,n={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(n.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(r){var i,l=(i=r.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return ze(o)?void 0:!!o}Ln.warn('isFeatureEnabled for key "'+e+OS)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,d,m,h,f){d===void 0&&(d={}),m===void 0&&(m={}),h===void 0&&(h={});var g=(O=>{var N=O.flags;return N?(O.featureFlags=Object.fromEntries(Object.keys(N).map(($=>{var F;return[$,(F=N[$].variant)!==null&&F!==void 0?F:N[$].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(N).filter(($=>N[$].enabled)).filter(($=>{var F;return(F=N[$].metadata)==null?void 0:F.payload})).map(($=>{var F;return[$,(F=N[$].metadata)==null?void 0:F.payload]})))):Ln.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=g.flags,y=g.featureFlags,S=g.featureFlagPayloads;if(y){var E=l.requestId,_=l.evaluatedAt;if(Dt(y)){Ln.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var w={};if(y)for(var P=0;y.length>P;P++)w[y[P]]=!0;c&&c.register({[Op]:y,[Mc]:w})}else{var x=y,T=S,A=v;if(f!=null&&f.partialResponse)x=Oe({},d,x),T=Oe({},m,T),A=Oe({},h,A);else if(l.errorsWhileComputingFlags)if(v){var k=new Set(Object.keys(v).filter((O=>{var N;return!((N=v[O])!=null&&N.failed)})));x=Oe({},d,Object.fromEntries(Object.entries(x).filter((O=>{var[N]=O;return k.has(N)})))),T=Oe({},m,Object.fromEntries(Object.entries(T||{}).filter((O=>{var[N]=O;return k.has(N)})))),A=Oe({},h,Object.fromEntries(Object.entries(A||{}).filter((O=>{var[N]=O;return k.has(N)}))))}else x=Oe({},d,x),T=Oe({},m,T),A=Oe({},h,A);c&&c.register(Oe({[Op]:Object.keys(VO(x)),[Mc]:x||{},[sC]:T||{},[iC]:A||{}},E?{[lC]:E}:{},_?{[Sg]:_}:{}))}}})(e,this.ni,n,r,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Ln.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Ln.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ri),this.ni.unregister(Tc),this.ps(),Js.info("All overrides cleared");if(Dt(e)){var t=qO(e);return this.ni.register({[ri]:t}),this.ps(),Js.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,n=e;if(this.Jn=!!((o=n.suppressWarning)!==null&&o!==void 0&&o),"flags"in n){if(n.flags===!1)this.ni.unregister(ri),Js.info("Flag overrides cleared");else if(n.flags){if(Dt(n.flags)){var r=qO(n.flags);this.ni.register({[ri]:r})}else this.ni.register({[ri]:n.flags});Js.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.ni.unregister(Tc),Js.info("Payload overrides cleared")):n.payloads&&(this.ni.register({[Tc]:n.payloads}),Js.info("Payload overrides set",{payloads:n.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ri]:e}),this.ps(),Js.info("Flag overrides set",{flags:e});Ln.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var n,r=(this.os(Md)||[]).find((d=>d.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};r&&(l.$early_access_feature_name=r.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Oe({},this.getFlagVariants(),{[e]:t});(n=this.ni)==null||n.register({[Op]:Object.keys(VO(c)),[Mc]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var n=this.os(Md),r=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+r),method:"GET",callback:i=>{var l,c;if(i.json){var d=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(Md),(c=this.ni)==null||c.register({[Md]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,n)=>(o[n]=t[n],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((n=>n(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Ld)||{},n=e?.$set||(e!=null&&e.$set_once?{}:e),r=e?.$set_once,i={};if(r)for(var l in r)({}).hasOwnProperty.call(r,l)&&(l in o||(i[l]=r[l]));this._instance.register({[Ld]:Oe({},o,i,n)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Ld)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(el)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((n=>{o[n]=Oe({},o[n],e[n]),delete e[n]})),this._instance.register({[el]:Oe({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(el)||{};this._instance.register({[el]:Oe({},t,{[e]:{}})})}else this._instance.unregister(el)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},use={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===Ed||this.bs===vp?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=LO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Qi.error("started without valid sessionManager"),new Error(RC+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===si)throw new Error(RC+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Id))==null||!e.enabled),o=!this.Bt.disable_session_recording,n=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return pe&&t&&o&&!n}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!ze(Object.assign)&&!ze(Array.from);this.ws&&o?(this.Is(e),Qi.info("starting")):(this.bs=LO,this.stopRecording())}}Is(e){var t,o,n;this.ws&&(this.bs!==Ed&&this.bs!==vp&&(this.bs=NO),Ze!=null&&(t=Ze.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=Ze.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.Ss,(r=>{if(r)return Qi.error("could not load recorder",r);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(pE)}Ts(e,t){if(wt(e))return null;var o,n=Ur(e)?e:parseFloat(e);return typeof(o=n)!="number"||!Number.isFinite(o)||0>o||o>1?(Qi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):n}As(e){if(this.ni){var t,o,n=this.ni,r=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),m=c??d;wt(m)&&this.ks();var h=l?.minimumDurationMilliseconds;n.register({[Id]:Oe({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Oe({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:m,minimumDurationMilliseconds:ze(h)?null:h,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};r(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(r)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===Ed&&(this.bs=vp,Qi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):Qi.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Id);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Id);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=Ze.__PosthogExtensions__)==null||!t.initSessionRecording)return Qi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[p4]:!0});if(this.ys||(this.ys=(o=Ze.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===vp||this.bs===Ed?void 0:(this.bs=Ed,Qi.info("persisted remote config is stale, requesting fresh config before starting"),void new P4(this._instance).load());this.bs=NO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[c4]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[l4]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?u4:d4]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},dse={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new DO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Ao(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((n=>new RegExp(n))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((n=>new RegExp(n))),o}Os(){if(this.isBrowserSupported()){if(pe&&Ne){var e=o=>{o=o||pe?.event;try{this.Ps(o)}catch(n){OO.error("Failed to capture event",n)}};if(qo(Ne,"submit",e,{capture:!0}),qo(Ne,"change",e,{capture:!0}),qo(Ne,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||pe?.event,AS)};qo(Ne,"copy",t,{capture:!0}),qo(Ne,"cut",t,{capture:!0})}}}else OO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[J_]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((n=>{var r=Ne?.querySelectorAll(n);r?.forEach((i=>{e===i&&o.push(n)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[J_];if(yi(this.Ns)&&!xa(o)&&!this.instance.Fr())return!1;var n=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!n}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,n=xO(e);z4(n)&&(n=n.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(f,g){if(!pe||TC(f))return!1;var v,y,S;if(xa(g)?(v=!!g&&PO,y=void 0):(v=(S=g?.css_selector_ignorelist)!==null&&S!==void 0?S:PO,y=g?.content_ignorelist),v===!1)return!1;var{targetElementList:E}=RO(f,!1);return!(function(_,w){if(_===!1||ze(_))return!1;var P;if(_===!0)P=Wie;else{if(!Dt(_))return!1;if(_.length>10)return Fe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;P=_.map((x=>x.toLowerCase()))}return w.some((x=>{var{safeText:T,ariaLabel:A}=x;return P.some((k=>T.includes(k)||A.includes(k)))}))})(y,E.map((_=>{var w;return{safeText:fm(_).toLowerCase(),ariaLabel:((w=_.getAttribute("aria-label"))==null?void 0:w.toLowerCase().trim())||""}})))&&!TO(E,v)})(n,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var r=t===AS;if(n&&(function(f,g,v,y,S){var E,_,w,P;if(v===void 0&&(v=void 0),!pe||TC(f)||(E=v)!=null&&E.url_allowlist&&!EO(v.url_allowlist)||(_=v)!=null&&_.url_ignorelist&&EO(v.url_ignorelist))return!1;if((w=v)!=null&&w.dom_event_allowlist){var x=v.dom_event_allowlist;if(x&&!x.some((N=>g.type===N)))return!1}var{parentIsUsefulElement:T,targetElementList:A}=RO(f,y);if(!(function(N,$){var F=$?.element_allowlist;if(ze(F))return!0;var U,j=function(ae){if(F.some((V=>ae.tagName.toLowerCase()===V)))return{v:!0}};for(var K of N)if(U=j(K))return U.v;return!1})(A,v)||!TO(A,(P=v)==null?void 0:P.css_selector_allowlist))return!1;var k=pe.getComputedStyle(f);if(k&&k.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var O=f.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(g.type)>=0;default:return T?(S||["click"]).indexOf(g.type)>=0:(S||["click"]).indexOf(g.type)>=0&&(CE.indexOf(O)>-1||f.getAttribute("contenteditable")==="true")}})(n,e,this.Bt,r,r?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=tse(n,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(n);if(c&&c.length>0&&(i.$element_selectors=c),t===AS){var d,m=U4(pe==null||(d=pe.getSelection())==null?void 0:d.toString()),h=e.type||"clipboard";if(!m)return!1;i.$selected_content=m,i.$copy_type=h}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return ai(Ne?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(pe==null||(t=pe.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Fe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Fe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(pe&&pe.history){var o=this;(e=pe.history.pushState)!=null&&e.__posthog_wrapped__||IO(pe.history,"pushState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("pushState")})),(t=pe.history.replaceState)!=null&&t.__posthog_wrapped__||IO(pe.history,"replaceState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=pe==null||(t=pe.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Pc,{navigation_type:e}),this.Ls=o}catch(n){Fe.error("Error capturing "+e+" pageview",n)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};qo(pe,"popstate",e),this.Ds=()=>{pe&&pe.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[X_]),this.rageclicks=new DO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Ao(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return wt(this.Bt.capture_heatmaps)?wt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;nse.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[X_]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Ne?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){pe&&Ne&&(this.zs=this.Yr.bind(this),qo(pe,Eg,this.zs),this.Us=e=>this.Tt(e||pe?.event),qo(Ne,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||pe?.event),qo(Ne,"mousemove",this.Ys,{capture:!0}),this.Ws=new rO(this.instance,gie,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),qo(Ne,wg,this.Xs),this.Rs=!0)}Vs(){var e;pe&&Ne&&(this.zs&&pe.removeEventListener(Eg,this.zs),this.Us&&Ne.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Ne.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Ne.removeEventListener(wg,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),i=(function(l,c,d){for(var m=l;m&&Sv(m)&&!fs(m,"body");){if(m===d)return!1;if(Ct(c,pe?.getComputedStyle(m).position))return!0;m=$4(m)}return!1})(xO(e),["fixed","sticky"],r);return{x:e.clientX+(i?0:n),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!wO(e.target)&&FO(e)){var n=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Oe({},n,{type:"rageclick"})),this.Qs(n)}}Gs(e){!wO(e.target)&&FO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(pe){var t=pe.location.href,o=this.Bt.custom_personal_data_properties,n=this.Bt.mask_personal_data_properties?[...ou,...o||[]]:[],r=dm(t,n,mm);this.T=this.T||{},this.T[r]||(this.T[r]=[]),this.T[r].push(e)}}Yr(){this.T&&!Ic(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:rO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,n)=>Oe({},o,{["$web_vitals_"+n.name+"_event"]:Oe({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var n,r=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(ze(r))Zi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();ze(i)||(wt(o?.name)||wt(o?.value)?Zi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ze(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=ze(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Oe({},o,{$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):Zi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,n,r,i,l=Ze.__PosthogExtensions__;ze(l)||ze(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:n,onFCP:r,onINP:i}=l.postHogWebVitalsCallbacks),o&&n&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):Zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[nC]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Ao(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return wt(o)?((t=this._instance.persistence)==null?void 0:t.props[aC])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Ao(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Ao(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Ao(this.oo)&&Ur(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:MO;return e>0&&6e4>=e?MO:e}get isEnabled(){var e=hn?.protocol;if(e!=="http:"&&e!=="https:")return Zi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Ao(this.oo)?this.oo.web_vitals:xa(this.oo)?this.oo:void 0;return xa(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(Zi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Ao(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Ao(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[nC]:t}),this._instance.persistence.register({[aC]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Zi.error("failed to load script",n):e()}))}io(){var e=pe?pe.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...ou,...t||[]]:[];return dm(e,o,mm)}Zi.error("Could not determine current URL")}}},mse={exceptionObserver:class{constructor(e){var t,o,n;this.so=()=>{var r;if(pe&&this.isEnabled&&(r=Ze.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var i=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){wd.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[eC]),this.do=new xae({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,Gt:wd}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Ao(e)?t=Oe({},t,e):(ze(e)?this.co:e)&&(t=Oe({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(wd.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return wd.error("failed to load script",n);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[eC]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,n,r=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(r)?wd.info("Skipping exception capture because of client rate limiting.",{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Bae([new Gae,new tie,new Wae,new Kae,new Xae,new Jae,new Zae,new eie],(function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;r>l;l++)i[l-1]=arguments[l];return function(c,d){d===void 0&&(d=0);for(var m=[],h=c.split(`
163
+ `),f=d;h.length>f;f++){var g=h[f];if(1024>=g.length){var v=eO.test(g)?g.replace(eO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){m.push(S);break}}if(m.length>=50)break}}}return(function(E){if(!E.length)return[];var _=Array.from(E);return _.reverse(),_.slice(0,50).map((w=>{return Oe({},w,{filename:w.filename||(P=_,P[P.length-1]||{}).filename,function:w.function||tu});var P}))})(m)}})("web:javascript",$ae,Hae)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(tC))!==null&&t!==void 0?t:[],this.mo=vg(this.yo()),this.bo=new nie(this.mo)}onConfigChange(){this.mo=vg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[tC]:this.fo,[oC]:i})}}get _o(){var e,t=!!this._instance.get_property(oC),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!bo(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>oie.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Oe({[pg]:e,[gg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&wt(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[pg]:e,[gg]:new Date().toISOString()})}wo(e){return Ao(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return bo(r)&&r.length>0&&o.$exception_types.push(r),bo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=L4[r.operator],c=Dt(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!wt(e)&&Dt(e)}}},fse=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[rC]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(rC)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?BO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Dt(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Ip];if(Dt(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return BO.error(l),void e([],{isLoaded:!1,error:l})}var c=Dt(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Ip]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){wt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Ip)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},_v),hse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},m=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[f,g]of Object.entries(h))d[f]={id:m[f],type:f,properties:g};var{$set_once:v,$set:y}=e;return{event:Oe({},N3(e,rse),{properties:Oe({},e.properties,y?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Oe({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(zO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var m;Ze["__$$ph_site_app_"+d]=r._instance,(m=Ze.__PosthogExtensions__)==null||m.loadSiteApp==null||m.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(zO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},pse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return ose.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},gse=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(wt(t))return Zt.warn("Flags not loaded yet. Not loading surveys.");var o=Dt(t);this.jo=o?t.length>0:t,Zt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(EC)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Zt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Zt.info(jO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Zt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(gE);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Zt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new sse(this._instance),Zt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Zt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Zt.info(jO),e([]);var o,n=this._instance.get_property(cC);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Zt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var m,h=r.json.surveys||[],f=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));f.length>0&&((m=this._surveyEventReceiver)==null||m.register(f)),(i=this._instance.persistence)==null||i.register({[cC]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Zt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!wt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Zt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(wt(this._surveyManager))return{eligible:!1,reason:DS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(wt(this._surveyManager))return Zt.warn("init was not called"),{visible:!1,disabledReason:DS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return wt(this._surveyManager)?(Zt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:DS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(wt(this._surveyManager))Zt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(Uie.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Zt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Zt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Zt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Zt.warn("Survey element not found")}else Zt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Zt.warn("Survey not found")}}displaySurvey(e,t){var o;if(wt(this._surveyManager))Zt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Oe({},n,{appearance:Oe({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==bC.Popover&&t.initialResponses&&Zt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Zt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==bC.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Zt.warn("Survey not found")}}cancelPendingSurvey(e){wt(this._surveyManager)?Zt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},_v),vse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),g4(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=lse||Rg(e.hash,"__posthog")||Rg(e.hash,"state"),i=r?oO((()=>JSON.parse(atob(decodeURIComponent(r)))))||oO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(UO)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!wt(t)&&ai(t)?t(e,this.instance):$O.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(m4));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(UO,JSON.stringify(Oe({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return $O.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),qo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},bse=Oe({experiments:Tn},_v),yse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;wt(t)||(xa(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||g4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(gE);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Xs),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Xs),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Xs),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Xs),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Xs),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Xs),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Xs),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Sse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=ho("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!wt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(gE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,m=Date.now();if(c>m-this.aa||(this.aa=m,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(f,g){var v=f.level||"info",{text:y,number:S}=o4[v]||Nae,E=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var w=Oe({},_,f.attributes||{}),P={timeUnixNano:E,observedTimeUnixNano:E,severityNumber:S,severityText:y,body:{stringValue:f.body},attributes:XD(w)};return f.trace_id&&(P.traceId=f.trace_id),f.span_id&&(P.spanId=f.span_id),ze(f.trace_flags)||(P.flags=f.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,m){return{resourceLogs:[{resource:{attributes:XD(c)},scopeLogs:[{scope:{name:d,version:m},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},_se=Oe({},_v,use,dse,mse,fse,hse,gse,pse,vse,bse,yse,Sse);Fr.__defaultExtensionClasses=Oe({},_se);var GO,Cl=(GO=Vd[Rc]=new Fr,(function(){function e(){e.done||(e.done=!0,B4=!1,lo(Vd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():qo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),GO);const Cse="studio-ui-resources",Ig="html",wse=10080*60*1e3,Ese=50,xse=16*1024*1024;function Tse(e){return e[0]==="mcp"&&e[1]===s2}function Cv(){return new Promise((e,t)=>{const o=indexedDB.open(Cse,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Ig)||o.result.createObjectStore(Ig)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function ru(e,t){return e.transaction(Ig,t).objectStore(Ig)}function AC(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function Pse(e){if(!(typeof indexedDB>"u"))try{const t=await Cv(),o=ru(t,"readonly"),n=await AC(o.getAllKeys()),r=await AC(o.getAll()),i=Date.now(),l=n.map((m,h)=>({key:m,value:r[h]})).sort((m,h)=>(h.value?.updatedAt??0)-(m.value?.updatedAt??0)),c=[];let d=0;for(const{key:m,value:h}of l){if(!h||i-h.updatedAt>wse||d>=Ese){c.push(m);continue}d++;try{const g=JSON.parse(String(m));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(m)}}if(c.length>0){const m=ru(t,"readwrite");for(const h of c)m.delete(h)}}catch{}}function Rse(e){if(typeof indexedDB>"u")return()=>{};const t=Cv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!Tse(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>xse||t.then(i=>{if(i)try{ru(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function Ase(){typeof indexedDB>"u"||Cv().then(e=>ru(e,"readwrite").clear()).catch(()=>{})}async function ome(e){if(!(typeof indexedDB>"u"))try{const t=await Cv(),o=await AC(ru(t,"readonly").getAllKeys()),n=ru(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===s2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Mg="studio:rq-cache",K4=1440*60*1e3,kse=1e3,Dse=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Ose=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let W4=!1,Y4=!1;function Ise(e){const t=e[0];return typeof t=="string"&&Dse.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Ose.has(e[4])}function Mse(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Mg);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>K4;if(o.buster!=="4.134.0"||n||!o.state){window.localStorage.removeItem(Mg);return}oz(e,o.state),W4=!0}catch{Nse()}}function Lse(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=tz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&Ise(r.queryKey)});window.localStorage.setItem(Mg,JSON.stringify({buster:"4.134.0",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,kse))})}const Z4="studio:org-cache:";function Q4(e){return`${Z4}${e}`}function nme(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(Q4(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>K4?null:(Y4=!0,n)}catch{return null}}function rme(e,t,o){if(!(typeof window>"u"))try{const n=Q4(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function Nse(){if(Ase(),!(typeof window>"u"))try{window.localStorage.removeItem(Mg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(Z4)&&window.localStorage.removeItem(t)}}catch{}}function Fse(){return W4}function Bse(){return Y4}let hi=!1,kC=null,KO=!1;const wE="studio:lp-distinct-id",J4="mesh:lp-distinct-id",IS="/api/_reports/link-token/",zse=1440*60*1e3;function X4(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(IS)&&r.pathname!==IS&&(r.pathname=`${IS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function MS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?X4(o):o]))}const jse=e=>e?(e.properties=MS(e.properties),e.$set&&(e.$set=MS(e.$set)),e.$set_once&&(e.$set_once=MS(e.$set_once)),e):null;function eB(){try{const e=window.localStorage.getItem(wE)??window.localStorage.getItem(J4);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=zse?t:void 0}catch{return}}function Use(){try{window.localStorage.removeItem(wE),window.localStorage.removeItem(J4)}catch{}}function $se(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(wE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??eB();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function qse(e){const t=eB();if(t&&(Use(),t!==e))try{Cl.alias(t)}catch{}}function Vse(e,t){if(hi||typeof window>"u")return;const o=$se();Cl.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:jse,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:X4(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function Hse(e,t){hi&&(Cl.identify(e,t),qse(e))}function Gse(){hi&&(Cl.reset(),kC=null)}function Kse(e,t){hi&&Cl.capture(e,t)}function ame(){return hi}function ime(){if(!hi||KO||typeof performance>"u")return;KO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Kse("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Fse(),org_cache_restored:Bse()})}function sme(e,t){hi&&e!==kC&&(Cl.group("organization",e,t),kC=e)}function tB(e,t){if(hi)try{Cl.captureException(e,t)}catch{}}let bp=null;function Wse({children:e}){const t=l2(),{data:o}=ov.useSession();if(t.posthog){Vse(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==bp?(Hse(n,{email:o?.user?.email,name:o?.user?.name}),bp=n):!n&&bp&&(Gse(),bp=null)}return R.jsx(R.Fragment,{children:e})}const EE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));EE.displayName="AlertTriangle";const oB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));oB.displayName="Archive";const xE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));xE.displayName="Loading01";const nB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));nB.displayName="Lock01";const rB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));rB.displayName="RefreshCw01";function TE(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:R.jsx(xE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Yse(e){try{return JSON.parse(e)}catch{return}}function WO(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Yse(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function Zse(e,t){const o=eo.c(25),n=Ng();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>WO(e,t),c=()=>WO(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:m}=pI(d);let h;o[10]!==e?(h=async w=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(w)),w),o[10]=e,o[11]=h):h=o[11];let f;o[12]!==n||o[13]!==i?(f=w=>{n.setQueryData(i,w)},o[12]=n,o[13]=i,o[14]=f):f=o[14];let g;o[15]!==h||o[16]!==f?(g={mutationFn:h,onSuccess:f},o[15]=h,o[16]=f,o[17]=g):g=o[17];const v=yp(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=w=>{const P=n.getQueryData(i),x=typeof w=="function"?w(P):w;v.mutate(x)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,E=m;let _;return o[22]!==S||o[23]!==E?(_=[E,S],o[22]=S,o[23]=E,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`studio:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`studio:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`studio:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`studio:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`studio:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`studio:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`studio:chat:draft:${e}:${t}`,sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:e=>`studio:connections:tab:${e}`,taskLastViewed:e=>`studio:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`studio:announcement:pt-br:${e}`,cmsTourSeen:e=>`studio:cms-tour:seen:${e}`},Qse=["en","pt-BR"];function aB(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Jse={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:aB()},iB=["auto","readonly"],lme=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Xse=["light","dark","system"];function cme(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(iB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function sB(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],Zse(t,ele)}function ele(e){const t={...Jse,...e};return iB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Xse.includes(t.theme)||(t.theme="system"),Qse.includes(t.language)||(t.language=aB()),t}async function tle(){performance.mark("studio:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("studio:config-fetch:end"),performance.measure("studio:config-fetch","studio:config-fetch:start","studio:config-fetch:end")}}function ole(e){if(!e)return;const t=document.getElementById("studio-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
164
164
  `);o.push(`:root {
165
165
  ${n}
166
166
  }`)}if(e.dark&&Object.keys(e.dark).length>0){const n=Object.entries(e.dark).map(([r,i])=>` ${r}: ${i};`).join(`
@@ -168,7 +168,7 @@ ${n}
168
168
  ${n}
169
169
  }`)}if(o.length>0){const n=document.createElement("style");n.id="studio-theme-overrides",n.textContent=o.join(`
170
170
 
171
- `),document.head.appendChild(n)}}function nle(e){const t=eo.c(9),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:_s.publicConfig(),queryFn:tle,staleTime:1/0},t[0]=n):n=t[0];const{data:r}=gl(n),[i]=s4();let l,c;t[1]!==r.theme?(l=()=>{ole(r.theme)},c=[r.theme],t[1]=r.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),D.useLayoutEffect(l,c);let d,m;t[4]!==i.theme?(d=()=>{const f=document.documentElement,g=()=>{const E=document.querySelector('meta[name="theme-color"]');if(!E)return;const _=getComputedStyle(f).getPropertyValue("--sidebar").trim();if(!_)return;const w=document.createElement("canvas").getContext("2d");if(!w)return;w.fillStyle="#010203";const P=w.fillStyle;w.fillStyle=_;const x=w.fillStyle;x!==P&&(E.content=x)};if(i.theme==="dark"){f.classList.add("dark"),g();return}if(i.theme==="light"){f.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=E=>{f.classList.toggle("dark",E),g()};y(v.matches);const S=E=>y(E.matches);return v.addEventListener("change",S),()=>v.removeEventListener("change",S)},m=[i.theme],t[4]=i.theme,t[5]=d,t[6]=m):(d=t[5],m=t[6]),D.useLayoutEffect(d,m);let h;return t[7]!==o?(h=R.jsx(R.Fragment,{children:o}),t[7]=o,t[8]=h):h=t[8],h}const rle={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your agent, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the agent can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.addConnectionMessage":"Add a connection above to configure pinned views.","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chat":"Chat","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this agent.","virtualMcp.layoutTabContent.noInteractiveTools":"None of the connected servers expose interactive tools.","virtualMcp.layoutTabContent.openCms":"Open CMS","virtualMcp.layoutTabContent.openCmsDescription":"Open the CMS automatically when the preview is ready to edit content.","virtualMcp.layoutTabContent.pinnedViews":"Pinned views","virtualMcp.layoutTabContent.pinnedViewsDescription":"Surface interactive tools as top-level tabs in the agent.","virtualMcp.layoutTabContent.preview":"Preview","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.subAgentsSection.addSubAgent":"Add sub-agent","virtualMcp.subAgentsSection.anyAgent":"Any agent","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any agent in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other agents.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-agents selected yet. Add one — until then this agent can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No agents found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search agents...","virtualMcp.subAgentsSection.specificAgents":"Specific agents","virtualMcp.subAgentsSection.title":"Sub-agents","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNamePlaceholder":"Agent name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete agent","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Agent?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this agent and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the agent","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
171
+ `),document.head.appendChild(n)}}function nle(e){const t=eo.c(9),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:_s.publicConfig(),queryFn:tle,staleTime:1/0},t[0]=n):n=t[0];const{data:r}=gl(n),[i]=sB();let l,c;t[1]!==r.theme?(l=()=>{ole(r.theme)},c=[r.theme],t[1]=r.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),D.useLayoutEffect(l,c);let d,m;t[4]!==i.theme?(d=()=>{const f=document.documentElement,g=()=>{const E=document.querySelector('meta[name="theme-color"]');if(!E)return;const _=getComputedStyle(f).getPropertyValue("--sidebar").trim();if(!_)return;const w=document.createElement("canvas").getContext("2d");if(!w)return;w.fillStyle="#010203";const P=w.fillStyle;w.fillStyle=_;const x=w.fillStyle;x!==P&&(E.content=x)};if(i.theme==="dark"){f.classList.add("dark"),g();return}if(i.theme==="light"){f.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=E=>{f.classList.toggle("dark",E),g()};y(v.matches);const S=E=>y(E.matches);return v.addEventListener("change",S),()=>v.removeEventListener("change",S)},m=[i.theme],t[4]=i.theme,t[5]=d,t[6]=m):(d=t[5],m=t[6]),D.useLayoutEffect(d,m);let h;return t[7]!==o?(h=R.jsx(R.Fragment,{children:o}),t[7]=o,t[8]=h):h=t[8],h}const rle={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your agent, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the agent can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.addConnectionMessage":"Add a connection above to configure pinned views.","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chat":"Chat","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this agent.","virtualMcp.layoutTabContent.noInteractiveTools":"None of the connected servers expose interactive tools.","virtualMcp.layoutTabContent.openCms":"Open CMS","virtualMcp.layoutTabContent.openCmsDescription":"Open the CMS automatically when the preview is ready to edit content.","virtualMcp.layoutTabContent.pinnedViews":"Pinned views","virtualMcp.layoutTabContent.pinnedViewsDescription":"Surface interactive tools as top-level tabs in the agent.","virtualMcp.layoutTabContent.preview":"Preview","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.subAgentsSection.addSubAgent":"Add sub-agent","virtualMcp.subAgentsSection.anyAgent":"Any agent","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any agent in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other agents.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-agents selected yet. Add one — until then this agent can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No agents found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search agents...","virtualMcp.subAgentsSection.specificAgents":"Specific agents","virtualMcp.subAgentsSection.title":"Sub-agents","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNamePlaceholder":"Agent name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete agent","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Agent?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this agent and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the agent","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
172
172
  Define who this agent is and what it specializes in.
173
173
  Example: You are a support triage agent for B2B merchants.
174
174
  </role>
@@ -232,4 +232,4 @@ debug?`,"orgs.monitoring.propertyFilters":"Filtros de propriedade","orgs.monitor
232
232
  e.g. usuario1@example.com, usuario2@example.com
233
233
  ou um por linha`,"common.inviteMemberDialog.errorFailedInvite":"Falha ao convidar {count} membro(s)","common.inviteMemberDialog.errorGeneric":"Falha ao convidar membros","common.inviteMemberDialog.errorNoValidEmail":"Digite pelo menos um endereço de e-mail válido","common.inviteMemberDialog.errorSelectRole":"Selecione uma função","common.inviteMemberDialog.inviteButton":"Convidar {count} membro(s)","common.inviteMemberDialog.invitingButton":"Convidando...","common.inviteMemberDialog.permAllConnections":"Todas as conexões","common.inviteMemberDialog.permAllTools":"todas as ferramentas","common.inviteMemberDialog.permConnections":"{count} conexão(ões)","common.inviteMemberDialog.permFullOrgAccess":"Acesso total à organização","common.inviteMemberDialog.permOrgPerms":"{count} permissão(ns) de org","common.inviteMemberDialog.permTools":"{count} ferramenta(s)","common.inviteMemberDialog.roleSelectPlaceholder":"Selecione uma função","common.inviteMemberDialog.successMultiple":"{count} membros convidados com sucesso!","common.inviteMemberDialog.successSingle":"Membro convidado com sucesso!","common.inviteMemberDialog.title":"Convidar membros","common.keyboardShortcutsDialog.title":"Atalhos de teclado","common.noAccessScreen.askAdminToInvite":"Peça a um administrador que o convide.","common.noAccessScreen.couldNotFind":"Não conseguimos encontrar uma organização chamada","common.noAccessScreen.goToHome":"Ir para home","common.noAccessScreen.noAccess":"Sem acesso","common.noAccessScreen.noAccessTo":"Você não tem acesso a","common.noAccessScreen.organizationNotFound":"Organização não encontrada","common.pendingInviteScreen.acceptButton":"Aceitar convite","common.pendingInviteScreen.acceptDescription":"Aceite o convite para se juntar a esta organização.","common.pendingInviteScreen.acceptingButton":"Aceitando…","common.pendingInviteScreen.declineButton":"Recusar","common.pendingInviteScreen.decliningButton":"Recusando…","common.pendingInviteScreen.failedToAccept":"Falha ao aceitar o convite","common.pendingInviteScreen.failedToDecline":"Falha ao recusar o convite","common.pendingInviteScreen.invitationDeclined":"Convite recusado","common.pendingInviteScreen.invitedTo":"Você foi convidado para {orgName}","common.requestPendingScreen.description":"Sua solicitação para ingressar em {orgName} está aguardando aprovação de um administrador. Você terá acesso após a aprovação.","common.requestPendingScreen.goHome":"Ir para início","common.requestPendingScreen.title":"Solicitação pendente","common.requestToJoinScreen.description":"Um administrador deve aprovar solicitações de e-mails @{domain} antes que você possa entrar.","common.requestToJoinScreen.failedToRequest":"Falha ao solicitar acesso","common.requestToJoinScreen.goToHome":"Ir para início","common.requestToJoinScreen.requestButton":"Solicitar acesso","common.requestToJoinScreen.requesting":"Solicitando…","common.requestToJoinScreen.title":"Solicitar acesso a {orgName}?","common.simpleIconPicker.filterPlaceholder":"Filtrar…","common.simpleIconPicker.noIconsFound":"Nenhum ícone encontrado","common.ssoRequiredScreen.goBack":"Voltar","common.ssoRequiredScreen.orgRequiresSsoAuth":"Esta organização requer autenticação SSO para acessar.","common.ssoRequiredScreen.requiresSsoAuth":"requer autenticação SSO","common.ssoRequiredScreen.signInWithSso":"Entrar com SSO","common.ssoRequiredScreen.title":"Autenticação SSO Necessária","common.ssoRequiredScreen.via":"via {domain}","common.tagMultiSelect.addTags":"Adicionar tags...","common.tagMultiSelect.available":"Disponível","common.tagMultiSelect.createTag":'Criar "{tagName}"',"common.tagMultiSelect.noTagsFound":"Nenhuma tag encontrada.","common.tagMultiSelect.searchOrCreate":"Pesquisar ou criar...","common.tagMultiSelect.selected":"Selecionado","common.toolInputForm.enterPlaceholder":"Digite {fieldKey}…","common.toolInputForm.false":"falso","common.toolInputForm.jsonPlaceholder":"Digite {fieldKey} como JSON…","common.toolInputForm.selectPlaceholder":"Selecione…","common.toolInputForm.true":"verdadeiro","common.toolSetSelector.filterAll":"Todos","common.toolSetSelector.filterSelected":"Selecionados","common.toolSetSelector.filterUnselected":"Não selecionados","common.toolSetSelector.noConnectionsAvailable":"Nenhuma conexão disponível","common.toolSetSelector.noConnectionsFound":"Nenhuma conexão encontrada","common.toolSetSelector.noServersSelected":"Nenhum servidor selecionado","common.toolSetSelector.noToolsAvailable":"Esta conexão não tem ferramentas disponíveis","common.toolSetSelector.noUnselectedServers":"Nenhum servidor não selecionado","common.toolSetSelector.searchPlaceholder":"Pesquisar servidores MCP...","common.toolSetSelector.selectConnection":"Selecione uma conexão para visualizar suas ferramentas","common.useStartThreadFromPrompt.failedToStartChat":"Falha ao iniciar o chat. Tente novamente.","common.useStartThreadFromPrompt.mcpClientNotAvailable":"Cliente MCP não disponível","common.versionCheckDialog.available":"Uma nova versão está disponível","common.versionCheckDialog.outdatedVersion":"Você está visualizando uma versão desatualizada desta página. Atualize para obter as últimas atualizações.","common.versionCheckDialog.refresh":"Atualizar","common.createAgentDropdown.createFromScratch":"Criar do zero","common.createAgentDropdown.importFromGitHub":"Importar do GitHub","common.createAgentDropdown.importFromDeco":"Importar do deco.cx","common.mainPanelTabs.overview":"Visão Geral","common.mainPanelTabs.preview":"Visualização","common.mainPanelTabs.code":"Código","common.mainPanelTabs.content":"Conteúdo","common.mainPanelTabs.reviewChanges":"Revisar alterações","common.mainPanelTabs.automations":"Automações","common.mainPanelTabs.settings":"Configurações","common.mainPanelTabs.report":"Relatório","common.taskBoard.listView":"Lista","common.taskBoard.boardView":"Quadro"},mce={"commerceOnboarding.companionCard.configure":"Configurar","commerceOnboarding.companionCard.configureAriaLabel":"Configurar {title}","commerceOnboarding.companionCard.configureDescription":"Configure o {title} para enriquecer os dados","commerceOnboarding.companionCard.connect":"Conectar","commerceOnboarding.companionCard.connectAriaLabel":"Conectar {title}","commerceOnboarding.companionCard.connected":"Conectado","commerceOnboarding.companionCard.disconnect":"Desconectar","commerceOnboarding.companionCard.disconnectAriaLabel":"Desconectar {title}","commerceOnboarding.companionCard.disconnectError":"Não foi possível desconectar. Tente novamente.","commerceOnboarding.companionCard.disconnectedSuccess":"{title} desconectado","commerceOnboarding.companionCard.editConfiguration":"Editar configuração","commerceOnboarding.companionCard.finishSetup":"Concluir configuração","commerceOnboarding.companionCard.required":"Obrigatório","commerceOnboarding.companionCard.grantAccessDescription":"Conceda acesso ao nosso leitor e informe o identificador","commerceOnboarding.githubConfigForm.cancel":"Cancelar","commerceOnboarding.githubConfigForm.failedToSave":"Não foi possível salvar a configuração","commerceOnboarding.githubConfigForm.githubConnectionNotFound":"Conexão do GitHub não encontrada.","commerceOnboarding.githubConfigForm.invalidRepository":'Repositório inválido: "{repo}". Use o formato owner/nome.',"commerceOnboarding.githubConfigForm.loadingRepositories":"Carregando repositórios...","commerceOnboarding.githubConfigForm.noGithubInstallation":'Nenhuma instalação do GitHub encontrada para "{owner}".',"commerceOnboarding.githubConfigForm.noRepositoriesFound":"Nenhum repositório encontrado. Digite o nome do repositório (owner/nome) para buscar.","commerceOnboarding.githubConfigForm.save":"Salvar","commerceOnboarding.githubConfigForm.saving":"Salvando...","commerceOnboarding.githubConfigForm.searchFailedPartial":"Parte da busca falhou — alguns repositórios podem não ter aparecido. Tente novamente ou digite owner/nome.","commerceOnboarding.githubConfigForm.searchFailedTotal":"Não foi possível buscar os repositórios (erro ou tempo esgotado). Tente novamente ou digite o repositório no formato owner/nome.","commerceOnboarding.githubConfigForm.searchRepositoryLabel":"Buscar repositório","commerceOnboarding.githubConfigForm.searchRepositoryPlaceholder":"Buscar repositório","commerceOnboarding.githubConfigForm.selectRepository":"Selecione um repositório","commerceOnboarding.saBindingForm.bind":"Vincular","commerceOnboarding.saBindingForm.bindError":"Não foi possível vincular.","commerceOnboarding.saBindingForm.cancel":"Cancelar","commerceOnboarding.saBindingForm.connectedSuccess":"{label} conectado","commerceOnboarding.saBindingForm.copyEmailLabel":"Copiar e-mail do service account","commerceOnboarding.saBindingForm.emailCopied":"E-mail copiado","commerceOnboarding.saBindingForm.googleLoginAlternative":"autorizar via login do Google","commerceOnboarding.saBindingForm.resourceIdRequired":"Informe o {resourceLabel}","commerceOnboarding.saBindingForm.storeUrlUnavailable":"URL da loja indisponível — recarregue a página.","commerceOnboarding.saBindingForm.verifying":"Verificando...","commerceOnboarding.vtexConfigForm.accountNameLabel":"Nome da conta","commerceOnboarding.vtexConfigForm.accountNamePlaceholder":"Nome da sua conta VTEX","commerceOnboarding.vtexConfigForm.appKeyLabel":"App Key (opcional)","commerceOnboarding.vtexConfigForm.appKeyPlaceholder":"App Key da VTEX","commerceOnboarding.vtexConfigForm.appTokenLabel":"App Token (opcional)","commerceOnboarding.vtexConfigForm.appTokenPlaceholder":"App Token da VTEX","commerceOnboarding.vtexConfigForm.cancelButton":"Cancelar","commerceOnboarding.vtexConfigForm.saveButton":"Salvar","commerceOnboarding.vtexConfigForm.savingButton":"Salvando...","commerceOnboarding.vtexConfigForm.savingError":"Não foi possível salvar a configuração"},fce={"collections.collectionDisplayButton.displayAndFilters":"Exibição & filtros","collections.collectionDisplayButton.sortBy":"Ordenar por","collections.collectionTableWrapper.loading":"Carregando...","collections.collectionTableWrapper.noItemsFound":"Nenhum item encontrado","collections.mutations.itemCreatedSuccessfully":"Item criado com sucesso","collections.mutations.itemUpdatedSuccessfully":"Item atualizado com sucesso","collections.mutations.itemDeletedSuccessfully":"Item deletado com sucesso","collections.mutations.createItemFailed":"Falha ao criar item: {error}","collections.mutations.updateItemFailed":"Falha ao atualizar item: {error}","collections.mutations.deleteItemFailed":"Falha ao deletar item: {error}"},hce={"cmsTour.menuItem":"Tour visual","cmsTour.preview.title":"Visualização","cmsTour.preview.description":"Veja seu site atualizar em tempo real enquanto edita — esta é a sua prévia de trabalho.","cmsTour.dropdown.title":"Mais visualizações","cmsTour.dropdown.description":"Código, Conteúdo e Biblioteca ficam aqui — abra este menu para alternar entre eles.","cmsTour.edit.title":"CMS","cmsTour.edit.description":"Abra o editor para mexer nas seções da página que você está vendo.","cmsTour.visualEditor.title":"Editor visual","cmsTour.visualEditor.description":"Ative para clicar em qualquer seção direto na página e editar ali mesmo.","cmsTour.device.title":"Visualização responsiva","cmsTour.device.description":"Alterne entre desktop, tablet e celular para conferir como o layout se adapta.","cmsTour.branches.title":"Branches","cmsTour.branches.description":"Cada conjunto de mudanças fica em sua própria branch — troque ou crie uma nova aqui.","cmsTour.submit.title":"Enviar para revisão","cmsTour.submit.description":"Envie suas mudanças como um pull request para o time revisar antes de irem ao ar.","cmsTour.publish.title":"Publicar","cmsTour.publish.description":"Publique suas mudanças no site quando estiverem prontas.","cmsTour.next":"Próximo","cmsTour.prev":"Voltar","cmsTour.done":"Entendi","cmsTour.skip":"Pular","cmsTour.progress":"{{current}} de {{total}}"},pce={"chat.agentCreate.agentCreated":"Agente criado: {name}","chat.agentCreate.cancelled":"Criação de agente cancelada","chat.agentCreate.couldntCreate":"Não foi possível criar o agente","chat.agentCreate.createAgent":"Criar agente","chat.agentCreate.created":"Agente criado","chat.agentCreate.creating":"Criando agente","chat.agentCreate.seeAgent":"Ver agente","chat.agentCreate.seeAgentLabel":"Ver agente: {name}","chat.agentIcons.claudeCode":"Claude Code","chat.agentIcons.codex":"Codex","chat.agentList.agentsNoun":"agentes","chat.agentList.couldntLoad":"Não foi possível carregar agentes","chat.agentList.listAgents":"Listar agentes","chat.agentList.loading":"Carregando agentes","chat.agentList.multiAgents":"{count} agentes","chat.agentList.noAgents":"Nenhum agente ainda","chat.agentList.noAgentsDesc":"Esta organização ainda não criou nenhum agente.","chat.agentList.oneAgent":"1 agente","chat.agentList.unavailable":"Lista de agentes indisponível","chat.agentModels.balancedQuality":"Qualidade equilibrada","chat.agentModels.deeperReasoning":"Raciocínio mais profundo","chat.agentModels.gptLunaLabel":"GPT-5.6 Luna","chat.agentModels.gptSolLabel":"GPT-5.6 Sol","chat.agentModels.gptTerraLabel":"GPT-5.6 Terra","chat.agentModels.haikuLabel":"Haiku 4.5","chat.agentModels.opusLabel":"Opus 4.8 1M","chat.agentModels.quickerResponses":"Respostas mais rápidas","chat.agentModels.sonnetLabel":"Sonnet 5","chat.approval.acceptButton":"Aceitar","chat.approval.batchedLabel":"{count} aprovação(ões) pendente(s)","chat.approval.defaultDenyReason":"O usuário negou esta chamada de ferramenta, ofereça outras alternativas.","chat.approval.denyButton":"Negar","chat.approval.needsApproval":"Aprovação necessária","chat.approval.noInput":"Sem entrada","chat.approval.preparingRequest":"Preparando solicitação de aprovação...","chat.assistant.messagePlural":"{count} mensagem(ns)","chat.assistant.noResponseGenerated":"Nenhuma resposta foi gerada","chat.assistant.resumedBackgroundTask":"Retomado — tarefa em segundo plano concluída","chat.assistant.resumingTask":"Retomando tarefa...","chat.assistant.toolCallPlural":"{count} chamada(s) de ferramenta","chat.brandContext.brand":"Marca","chat.brandContext.brandContextSet":"Contexto de marca definido","chat.brandContext.brandSet":"Marca definida: {name}","chat.brandContext.brandWithName":"Marca · {name}","chat.brandContext.colorAccent":"Destaque","chat.brandContext.colorBackground":"Fundo","chat.brandContext.colorForeground":"Primeiro Plano","chat.brandContext.colorPrimary":"Primário","chat.brandContext.colorSecondary":"Secundário","chat.brandContext.colorsSection":"Cores","chat.brandContext.couldNotLoadBrand":"Não foi possível carregar a marca","chat.brandContext.couldNotLoadBrands":"Não foi possível carregar as marcas","chat.brandContext.defaultBadge":"padrão","chat.brandContext.extractingBrand":"Extraindo marca","chat.brandContext.extractionFailed":"Falha ao extrair marca","chat.brandContext.fromDomain":"de {domain}","chat.brandContext.loadingBrand":"Carregando marca","chat.brandContext.loadingBrands":"Carregando marcas","chat.brandContext.multipleBrands":"{count} marca(s)","chat.brandContext.noBrandsContext":"A organização ainda não configurou nenhum contexto de marca.","chat.brandContext.noBrandsYet":"Nenhuma marca ainda","chat.brandContext.oneBrand":"1 marca","chat.brandContext.typographySection":"Tipografia","chat.brandContext.unknownError":"Erro desconhecido","chat.brandContext.untitled":"Sem Título","chat.chat.jumpToLatest":"Ir para o mais recente","chat.chat.loadingOlderMessages":"Carregando mensagens mais antigas…","chat.chatContext.activeTaskProviderMissingContext":"ActiveTaskProvider deve ser usado dentro de ChatContextProvider","chat.chatContext.cancelFailedStatus":"Falha ao cancelar: {status}","chat.chatContext.couldNotRemoveOriginalMessage":"Não foi possível remover a mensagem original","chat.chatContext.failedToCancel":"Falha ao cancelar","chat.chatContext.failedToQueueMessage":"Falha ao enfileirar mensagem","chat.chatContext.failedToSendEditedMessage":"Falha ao enviar mensagem editada","chat.chatContext.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em alguns momentos","chat.chatContext.useChatPrefsMissingContext":"useChatPrefs deve ser usado dentro de ChatContextProvider","chat.chatContext.useChatStreamMissingContext":"useChatStream deve ser usado dentro de ActiveTaskProvider","chat.chatContext.useChatTaskMissingContext":"useChatTask deve ser usado dentro de ChatContextProvider","chat.collapsibleHighlight.closeLabel":"Fechar","chat.collapsibleHighlight.closeTitle":"Fechar","chat.common.copy":"Copiar","chat.common.seeAll":"Ver todos os {count} {noun}","chat.connectDesktopDialog.agentClaudeCodeDescription":"Executa através do CLI do Claude Code","chat.connectDesktopDialog.agentClaudeCodeLabel":"Claude Code","chat.connectDesktopDialog.agentCodexDescription":"Executa através do CLI do Codex","chat.connectDesktopDialog.agentCodexLabel":"Codex","chat.connectDesktopDialog.connectYourDesktop":"Conecte seu desktop","chat.connectDesktopDialog.connectedTo":"Conectado a {desktopName}","chat.connectDesktopDialog.machineAgentsDescription":"Esta máquina fornece os seguintes agentes locais.","chat.connectDesktopDialog.notDetected":"Não detectado","chat.connectDesktopDialog.runCommandDescription":"Execute este comando no terminal do seu desktop. A caixa de diálogo será fechada assim que seu desktop ficar online.","chat.connectDesktopDialog.waitingForDesktop":"Aguardando desktop…","chat.connectDesktopDialog.yourDesktop":"Seu desktop","chat.connectionList.connectionNoun":"conexões","chat.connectionList.emptySummary":"Esta organização não conectou nenhum MCP.","chat.connectionList.emptyTitle":"Nenhuma conexão ainda","chat.connectionList.errorTitle":"Não foi possível carregar conexões","chat.connectionList.loadingTitle":"Carregando conexões","chat.connectionList.multipleConnections":"{count} conexões","chat.connectionList.singleConnection":"1 conexão","chat.connectionList.unavailableTitle":"Lista de conexões indisponível","chat.contextPanel.agentLabel":"Agente","chat.contextPanel.assistantPercent":"Assistente {pct}%","chat.contextPanel.contextBreakdownSection":"Análise do Contexto","chat.contextPanel.contextLimitLabel":"Limite de Contexto","chat.contextPanel.costLabel":"Custo","chat.contextPanel.emptyState":"Inicie uma conversa para ver o contexto","chat.contextPanel.inputTokensLabel":"Tokens de Entrada","chat.contextPanel.lastActivityLabel":"Última Atividade","chat.contextPanel.messagesLabel":"Mensagens","chat.contextPanel.modelLabel":"Modelo","chat.contextPanel.newChat":"Novo chat","chat.contextPanel.otherPercent":"Outro {pct}%","chat.contextPanel.outputTokensLabel":"Tokens de Saída","chat.contextPanel.rawMessagesSection":"Mensagens brutas","chat.contextPanel.reasoningTokensLabel":"Tokens de Raciocínio","chat.contextPanel.requestLabel":"Solicitação","chat.contextPanel.sessionCreatedLabel":"Sessão Criada","chat.contextPanel.sessionLabel":"Sessão","chat.contextPanel.sessionTokensLabel":"Tokens da Sessão (cobrados)","chat.contextPanel.subtask":"Subtarefa","chat.contextPanel.subtasksSection":"Subtarefas","chat.contextPanel.systemPromptLabel":"Prompt do sistema","chat.contextPanel.title":"Contexto","chat.contextPanel.tokAbbrev":"tok","chat.contextPanel.toolsActive":"ferramentas ativas","chat.contextPanel.usageLabel":"Uso","chat.contextPanel.userPercent":"Usuário {pct}%","chat.creditsEmptyState.add":"Adicionar","chat.creditsEmptyState.bestValueLabel":"Melhor custo","chat.creditsEmptyState.description":"Seus créditos gratuitos foram utilizados em outro workspace. Adicione créditos para usar IA aqui.","chat.creditsEmptyState.enterCustomAmount":"Inserir valor personalizado","chat.creditsEmptyState.opening":"Abrindo...","chat.creditsEmptyState.popularLabel":"Popular","chat.creditsEmptyState.skipForNow":"Pular por enquanto","chat.creditsEmptyState.starterLabel":"Iniciante","chat.creditsEmptyState.title":"Este workspace não possui créditos","chat.creditsEmptyState.topUpFailed":"Falha ao recarregar: {message}","chat.creditsEmptyState.useYourOwnProvider":"Usar seu próprio provedor","chat.creditsExhaustedBanner.add":"Adicionar","chat.creditsExhaustedBanner.benefit1":"Acesso a 100+ modelos de IA","chat.creditsExhaustedBanner.benefit2":"API unificada, sem necessidade de chaves separadas","chat.creditsExhaustedBanner.benefit3":"Pague apenas pelo que usar","chat.creditsExhaustedBanner.customPlaceholder":"50","chat.creditsExhaustedBanner.description":"Seus créditos foram esgotados. Adicione mais para continuar usando IA em todos os seus agentes.","chat.creditsExhaustedBanner.dismiss":"Descartar","chat.creditsExhaustedBanner.enterCustom":"Inserir valor personalizado","chat.creditsExhaustedBanner.manageProviders":"Gerenciar provedores","chat.creditsExhaustedBanner.opening":"Abrindo...","chat.creditsExhaustedBanner.tierBestValue":"Melhor valor","chat.creditsExhaustedBanner.tierPopular":"Popular","chat.creditsExhaustedBanner.tierStarter":"Iniciante","chat.creditsExhaustedBanner.title":"Recarregue para continuar criando","chat.creditsExhaustedBanner.topupError":"Falha na recarga: {error}","chat.decopilot.back":"Voltar","chat.decopilot.couldNotFetchModels":"Não foi possível buscar modelos deste provedor.","chat.decopilot.failedToLoadModels":"Falha ao carregar modelos","chat.decopilot.key":"Chave","chat.decopilot.manageApiKeys":"Gerenciar chaves de API","chat.decopilot.manageModels":"Gerenciar modelos","chat.decopilot.retry":"Tentar novamente","chat.decopilot.searchAllModels":"Pesquisar todos os modelos...","chat.decopilot.searchForModel":"Procure um modelo...","chat.decopilot.selectedCount":"{count} selecionado(s)","chat.decopilot.tierCheaper":"Mais barato","chat.decopilot.tierFaster":"Mais rápido","chat.decopilot.tierOther":"Outro","chat.decopilot.tierSmarter":"Mais inteligente","chat.decopilot.tryAnotherProviderOrRetry":"Tente outro provedor ou tente novamente.","chat.desktopCli.tierFastDescription":"Respostas mais rápidas","chat.desktopCli.tierSmartDescription":"Qualidade equilibrada","chat.desktopCli.tierThinkingDescription":"Raciocínio mais profundo","chat.desktopOfflineBanner.instructions":"Execute bunx decocms@latest link em um terminal naquele computador para trazê-lo de volta. As mensagens que você enviar enquanto estiver offline falharão.","chat.desktopOfflineBanner.label":"Seu desktop está offline","chat.desktopOfflineBanner.reconnectButton":"Reconectar desktop","chat.desktopOfflineBanner.title":"Este chat é executado no seu desktop, que não está conectado no momento.","chat.generateImage.failed":"Falhou","chat.generateImage.generatedImage":"Imagem gerada","chat.generateImage.generatedImageAlt":"Imagem gerada","chat.generateImage.generatingImage":"Gerando imagem","chat.generateImage.imageGeneration":"Geração de imagem","chat.generateImage.imageQueuedGeneratingInBackground":"Imagem na fila — gerando em segundo plano","chat.generateImage.noImagesGenerated":"Nenhuma imagem gerada","chat.generateImage.reference":"referência","chat.generateImage.references":"referências:","chat.generic.cancelled":"Cancelado","chat.generic.done":"Concluído","chat.generic.dynamicTool":"Ferramenta Dinâmica","chat.generic.failed":"Falhou","chat.generic.failedToLoad":"Falha ao carregar app {toolName}","chat.generic.loadingApp":"Carregando app...","chat.generic.openInPanel":"Abrir no painel","chat.generic.preparing":"Preparando...","chat.generic.retry":"Tentar novamente","chat.generic.waitingForApproval":"Aguardando sua aprovação","chat.highlight.continue":"Continuar","chat.highlight.copiedToClipboard":"Copiado para a área de transferência","chat.highlight.copy":"Copiar","chat.highlight.copyErrorDetails":"Copiar detalhes do erro","chat.highlight.couldNotCopy":"Não foi possível copiar","chat.highlight.errorOccurred":"Erro ocorreu","chat.highlight.fixInChat":"Corrigir no chat","chat.highlight.fixInChatMessage":"Encontrei este erro: {error}. Você pode me ajudar a corrigi-lo?","chat.highlight.hideTechnicalDetails":"Ocultar detalhes técnicos","chat.highlight.implementPlanMessage":`Implemente este plano:
234
234
 
235
- {plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.approved":"Aprovado","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.proposePlan.rejected":"Rejeitado","chat.proposePlan.viewPlan":"Ver plano","chat.queueTray.queuedMessage":"{count} mensagem na fila","chat.queueTray.queuedMessages":"{count} mensagens na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.flipToBackground":"Executar em background","chat.subtask.flipping":"Movendo para background…","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionCount":"{current} de {total}","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.skippedAnswer":"Pulado","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}","chat.mention.noItemsFound":"Nenhum item encontrado","chat.modelPreferences.title":"Seus modelos","chat.modelPreferences.description":"Escolha qual modelo cada nível usa para você. Isso altera apenas os seus chats — o padrão da organização permanece o mesmo.","chat.modelPreferences.customizeModel":"Personalizar modelo de {tier}","chat.modelPreferences.pickModel":"Escolher modelo","chat.modelPreferences.reset":"Redefinir","chat.modelPreferences.usingOrgDefault":"Usando o padrão da organização","chat.modelPreferences.orgDefaultIs":"Padrão da organização: {model}","chat.modelPreferences.autoPicked":"escolhido automaticamente","chat.modelPreferences.loadFailed":"Não foi possível carregar suas escolhas de modelo. O que aparece abaixo pode não corresponder ao que seus chats usam."},gce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},vce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},bce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},yce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerDeleteDialog.cancel":"Cancelar","sandbox.fileExplorerDeleteDialog.delete":"Excluir","sandbox.fileExplorerDeleteDialog.description":"Isso excluirá permanentemente","sandbox.fileExplorerDeleteDialog.folderSuffix":" e tudo dentro dela.","sandbox.fileExplorerDeleteDialog.titleFile":"Excluir arquivo?","sandbox.fileExplorerDeleteDialog.titleFolder":"Excluir pasta?","sandbox.fileExplorerDeleteDialog.unsavedChangesMany":"{count} arquivos abertos têm alterações não salvas que serão perdidas.","sandbox.fileExplorerDeleteDialog.unsavedChangesOne":"Um arquivo aberto tem alterações não salvas que serão perdidas.","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categorias","sandbox.pathParamPickerChip.kindCategoryNoun":"categoria","sandbox.pathParamPickerChip.kindProductHeading":"Produtos","sandbox.pathParamPickerChip.kindProductNoun":"produto","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.catchAllParamLabel":"caminho","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.cms":"CMS","sandbox.preview.collapseTerminal":"Recolher terminal","sandbox.preview.editContent":"Editar conteúdo","sandbox.preview.exitEditor":"Sair do editor","sandbox.preview.expandTerminal":"Expandir terminal","sandbox.preview.hideTerminal":"Ocultar terminal","sandbox.preview.showTerminal":"Mostrar terminal","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.enterToGo":"Enter para ir","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.moreOptions":"Mais opções","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.startingPreview":"Iniciando seu preview","sandbox.preview.startingPreviewHint":"Você já pode fazer alterações — elas aparecem quando o preview estiver pronto.","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.valueForParam":"Valor de {label}","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.productionUrlField.description":"Exibida no preview enquanto o servidor de desenvolvimento inicia, para você já visualizar e editar.","sandbox.productionUrlField.label":"URL de produção","sandbox.productionUrlField.placeholder":"https://exemplo.com","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.othersThreadTitle":"Você está no chat de outra pessoa","sandbox.stateCard.othersThreadMessage":"Esta conversa ({label}) é de outro membro. Continuar aqui significa dar sequência ao trabalho dela — comece um novo chat para trabalhar no seu.","sandbox.stateCard.othersThreadContinue":"Continuar mesmo assim","sandbox.stateCard.othersThreadNewChat":"Começar novo chat","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Sce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},_ce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.mainAgent.title":"Agente principal","settings.mainAgent.description":"O agente em que esta organização abre. Todos os membros chegam aqui em vez do Super Agent.","settings.mainAgent.itemTitle":"Agente de entrada","settings.mainAgent.itemDescription":"Escolha o agente que abre ao entrar nesta organização.","settings.mainAgent.superAgentOption":"Super Agent (padrão)","settings.mainAgent.setToast":'"{title}" agora é o agente principal',"settings.mainAgent.resetToast":"Redefinido para o Super Agent","settings.mainAgent.errorToast":"Não foi possível atualizar o agente principal","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Cce={...Ule,...$le,...qle,...Vle,...Hle,...Gle,...Kle,...Wle,...Yle,...Zle,...Qle,...Jle,...Xle,...ece,...tce,...oce,...nce,...rce,...ace,...ice,...sce,...lce,...cce,...uce,...dce,...mce,...fce,...hce,...pce,...gce,...vce,...bce,...yce,..._ce,...Sce},wce={en:zle,"pt-BR":Cce};function Nm(){const e=eo.c(2),[t]=s4(),o=wce[t.language];let n;return e[0]!==o?(n=(r,i)=>jle(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const Fm=new pz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});Mse(Fm);Lse(Fm);Pse(Fm);Rse(Fm);function Ece(e){const t=eo.c(2),{children:o}=e,n=Nm();U7({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=R.jsx(R.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function xce(e){const t=eo.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx(j7,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=R.jsx(TE,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=R.jsxs(gz,{client:Fm,children:[n,R.jsx(D.Suspense,{fallback:r,children:R.jsx(nle,{children:R.jsx(pH,{children:R.jsx(gae,{children:R.jsx(Wse,{children:R.jsx(Ece,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function l4(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:R.jsx(xE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Tce(...e){return lL(vw(e))}const Pce=OL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function hm(e){const t=eo.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?Rw:"button";let m;t[6]!==o||t[7]!==r||t[8]!==l?(m=Tce(Pce({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==m?(h=R.jsx(d,{"data-slot":"button",className:m,...n}),t[10]=d,t[11]=n,t[12]=m,t[13]=h):h=t[13],h}const Rce=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Ace(e){const t=eo.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Rce}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=R.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,R.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function c4(e){const t=eo.c(20),{orgName:o}=e,n=Nm(),r=kce;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=R.jsx("div",{className:"bg-muted p-3 rounded-full",children:R.jsx(o4,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=R.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let m;t[8]!==d?(m=R.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=m):m=t[9];let h;t[10]!==c||t[11]!==m?(h=R.jsxs("div",{className:"space-y-2",children:[c,m]}),t[10]=c,t[11]=m,t[12]=h):h=t[12];let f;t[13]!==n?(f=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=f):f=t[14];let g;t[15]!==f?(g=R.jsx(hm,{onClick:r,children:f}),t[15]=f,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=R.jsxs(Ace,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function kce(){window.location.href="/"}function Dce(){const e=eo.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=tv(t);let n;return e[1]!==o?(n=R.jsx(hm,{variant:"outline",size:"sm",asChild:!0,children:R.jsx(wm,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function Oce(e){const t=eo.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=R.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:R.jsx(n4,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=R.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let m;t[3]!==l?(m=R.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=m):m=t[4];let h;t[5]!==d||t[6]!==m?(h=R.jsxs("div",{className:"space-y-1",children:[d,m]}),t[5]=d,t[6]=m,t[7]=h):h=t[7];let f;t[8]!==r?(f=r??R.jsx(Dce,{}),t[8]=r,t[9]=f):f=t[9];let g;return t[10]!==h||t[11]!==f?(g=R.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,f]}),t[10]=h,t[11]=f,t[12]=g):g=t[12],g}const YO="__studio_chunk_reload_ts";function u4(e){return e?.message==="Organization is archived"}function Ice(e){return!!e?.message?.includes("Access denied")}function ZO(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Mce extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),t4(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:u4(this.state.error)?R.jsx(c4,{}):Ice(this.state.error)?R.jsx(Oce,{}):R.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(EE,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),R.jsx(hm,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function ume(e){const t=eo.c(3),o=Nm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(Mce,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class Lce extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=ZO(t);if(t4(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(YO),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(YO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&ZO(this.state.error)?R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:R.jsx(r4,{className:"h-6 w-6 text-primary"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),R.jsx(hm,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?u4(this.state.error)?R.jsx(c4,{}):R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(EE,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),R.jsx(hm,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Nce(e){const t=eo.c(3),o=Nm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(Lce,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}const Fce=[["mesh:","studio:"],["mesh-","studio-"]];function Bce(e){const t=Array.from({length:e.length},(o,n)=>e.key(n)).filter(o=>o!==null);for(const o of t){const n=Fce.find(([d])=>o.startsWith(d));if(!n)continue;const[r,i]=n,l=`${i}${o.slice(r.length)}`;if(e.getItem(l)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(l,c)}}function d4(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function zce(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function dme(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,QO=!1;const DC=new Set;function Lg(){for(const e of DC)e()}function jce(){QO||typeof window>"u"||(QO=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Lg()}),window.addEventListener("appinstalled",()=>{ui=null,Lg()}))}function mme(){ui!==null&&(ui=null,Lg())}function Uce(e){return DC.add(e),()=>{DC.delete(e)}}function $ce(){return ui}function qce(){return null}function Vce(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function Hce(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function fme(){const e=eo.c(5),t=D.useSyncExternalStore(Uce,$ce,qce);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Vce(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=Hce(),l=Gce,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function Gce(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Lg(),e.outcome}Bce(window.localStorage);const Hr=GG({component:()=>R.jsx(xce,{children:R.jsx(Nce,{children:R.jsx(D.Suspense,{fallback:R.jsx(TE,{}),children:R.jsx(M2,{})})})})}),Kce=it({getParentRoute:()=>Hr,path:"/login",component:mt(()=>dt(()=>import("./login-CwShDnT-.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>Ae({next:Y().optional(),client_id:Y().optional(),redirect_uri:Y().optional(),response_type:Y().optional(),state:Y().optional(),scope:Y().optional(),code_challenge:Y().optional(),code_challenge_method:Y().optional()}))}),Wce=it({getParentRoute:()=>Hr,path:"/cli/auth-success",component:mt(()=>dt(()=>import("./cli-auth-success-BojNvsEa.js"),__vite__mapDeps([7,6])))}),Yce=it({getParentRoute:()=>Hr,path:"/reset-password",component:mt(()=>dt(()=>import("./reset-password-p6Tu9swn.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>Ae({token:Y().optional(),error:Y().optional()}))}),Zce=it({getParentRoute:()=>Hr,path:"/auth/$pathname",component:mt(()=>dt(()=>import("./auth-catchall-DbjRfAcW.js"),[]))}),Qce=it({getParentRoute:()=>Hr,path:"/oauth/callback",component:mt(()=>dt(()=>import("./oauth-callback-DfBxOgNN.js"),__vite__mapDeps([9,10,11])))}),Jce=it({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:mt(()=>dt(()=>import("./oauth-callback-ai-provider-CySvWl7u.js"),[]))}),wv=it({getParentRoute:()=>Hr,path:"/_admin",component:mt(()=>dt(()=>import("./layout-BrQUrnm6.js"),__vite__mapDeps([12,13,14,15])))}),Xce=it({getParentRoute:()=>wv,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),eue=it({getParentRoute:()=>wv,path:"/users",component:mt(()=>dt(()=>import("./users-B0KO96yp.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),tue=it({getParentRoute:()=>wv,path:"/orgs",component:mt(()=>dt(()=>import("./orgs-HM6cmRH-.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),oue=wv.addChildren([Xce,eue,tue]),PE=it({getParentRoute:()=>Hr,id:"shell",component:mt(()=>dt(()=>import("./shell-layout-s3rqzqCP.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,5,4,55,56,57,58])))}),nue=it({getParentRoute:()=>PE,path:"/",beforeLoad:async()=>{const e=zce();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await G2();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),rue=it({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await G2();if(e&&e.length>0)throw is({to:"/"})},component:mt(()=>dt(()=>import("./onboarding-DuvKAAal.js"),__vite__mapDeps([59,14,6,60,29,30,2,38,61,45,49,62,63])))}),aue=it({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:mt(()=>dt(()=>import("./commerce-onboarding-CXjKz3gE.js"),__vite__mapDeps([64,65,53,11,66,67,68,69,70,25,71,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,19,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,21,51,39,22,94,95,96,97,98,38,2,32,99,100,101,10,1,3,4,5,6,60,29,102]))),validateSearch:pi(()=>Ae({org:Y().optional(),siteUrl:Y().optional()}))}),iue=it({getParentRoute:()=>Hr,path:"/report/$domain",component:mt(()=>dt(()=>import("./reports-_5d3tbVz.js"),__vite__mapDeps([103,1,2,3,4,5,69,25,72,74,49,79,85,46,90,91,51,104]))),validateSearch:pi(()=>Ae({key:Y().optional()}))}),Ev=it({getParentRoute:()=>PE,path:"/$org",beforeLoad:({params:e})=>{d4({org:e.org})},component:mt(()=>dt(()=>import("./org-layout-CAn8hL7c.js"),[]))}),xv=it({getParentRoute:()=>Ev,id:"org-shell",component:mt(()=>dt(()=>import("./index-CLLRcgSM.js"),__vite__mapDeps([105,18,19,20,21,22,65,53,11,66,67,68,69,70,25,71,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,39,94,95,96,97,98,38,2,32,99,100,101,10,52,106,107,108,109,110,111,54,5,4,55,57,112,113,56,114,115,116,117,118,119,120,121,122,123,44,29,14,58,124,125,126,127,3,128,129,40,130,131,132,31,133,15,134,135,136,137,138,139,140,141,142,143,144,145,34,35])))}),m4=it({getParentRoute:()=>xv,id:"agent-shell",pendingComponent:l4,component:mt(()=>dt(()=>import("./index-Bqugudv4.js").then(e=>e.bt),__vite__mapDeps([146,25,111,52,54,53,11,5,4,55,57,108,112,113,56,147,40,22,41,42,43,126,127,120,129,18,19,20,21,24,26,148,136,145,69,49,77,68,70,71,67,72,73,74,75,45,76,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,149,133,29,34,35,138,39,150,151,152,44,14,58,66,121,122,153,98,38,2,115,119,154,36,109,116,117,97,101,10,95,96,102,142,143,94,155,141,107,110,114,106,118,32,99,123,124,125,3,128,130,131,132,31,140,156,157,158,159,160,161,162,163,164,165,166,17,27,61,167,100,168,169,170])))}),sue=Ae({virtualmcpid:Y().optional(),tab:Y().optional(),sidepanel:ro([We("chat"),We(0)]).optional(),main:ro([Y(),We(0)]).optional(),preview:Y().optional(),id:Y().optional(),toolName:Y().optional(),tasks:kt().optional(),mainOpen:kt().optional(),autosend:Y().optional(),runLocally:Y().optional(),connect:wM().optional(),siteUrl:Y().optional()}),lue=it({getParentRoute:()=>m4,path:"/$taskId",validateSearch:sue,beforeLoad:({params:e,search:t})=>{d4({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),cue=Ae({main:Y().optional(),connect:wM().optional(),siteUrl:Y().optional()}),uue=it({getParentRoute:()=>xv,path:"/",validateSearch:cue,pendingComponent:l4,component:mt(()=>dt(()=>import("./index-CrA8C97p.js"),__vite__mapDeps([171,53,11,108,54,5,4,55,56,57,122])))}),due=Ae({task:Y().optional()}),mue=it({getParentRoute:()=>xv,path:"/board",validateSearch:due,component:mt(()=>dt(()=>import("./index-CGfW__bh.js").then(e=>e.n),__vite__mapDeps([154,36,29,30,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,19,84,85,86,87,88,89,46,28,90,91,92,63,93,48,21,51,109,53,11,116,117,39,120,97,101,10,95,96,148,136,57,55,4,113,34,35,102,152,138,142,143,115,44,14,52,54,5,56,58,94])))}),Lo=it({getParentRoute:()=>Ev,path:"/settings",component:mt(()=>dt(()=>import("./settings-layout-CBO6svV-.js"),__vite__mapDeps([172,13,18,19,20,21,22,17,75,45,82,83,84,85,90,30,51,163,173,57,161,160,113,55,4,114,144])))}),fue=it({getParentRoute:()=>Ev,path:"/install",component:mt(()=>dt(()=>import("./org-install-8IlDjSKy.js"),[]))}),hue=it({getParentRoute:()=>Lo,path:"/",component:mt(()=>dt(()=>import("./index-redirect-vXm17bcm.js"),__vite__mapDeps([174,163,175])))}),pue=it({getParentRoute:()=>Lo,path:"/connections",component:mt(()=>dt(()=>import("./connections-DAT9fF8o.js"),__vite__mapDeps([176,95,96,53,11,177,102,41,76,77,25,81,22,178,31,27,28,132,124,125,120,56,57,126,127,3,4,5,128,129,66,67,68,69,70,71,72,73,74,75,45,49,42,43,47,78,79,50,80,62,82,83,19,84,85,86,87,88,89,46,90,91,92,63,30,93,48,21,51,26,17,18,20,179,110,163,180,39,115,98,38,2,40,130,108,131,101,10,157]))),validateSearch:pi(()=>Ae({action:bn(["create"]).optional(),tab:bn(["all","connected"]).optional()}))}),gue=it({getParentRoute:()=>Lo,path:"/connections/$appSlug",component:mt(()=>dt(()=>import("./connection-detail-BeN0QZUt.js"),__vite__mapDeps([181,95,96,53,11,26,131,2,89,92,182,17,18,19,20,21,22,117,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,46,28,90,91,63,30,93,48,51,120,125,56,57,40,151,165,31,10,143,109,108,183,121,54,5,4,55,122,148,136,29,153,66,98,38,179,110,184,155,128,119,129,102,185]))),validateSearch:pi(()=>Ae({tab:Y().optional()}))}),vue=it({getParentRoute:()=>Lo,path:"/connections/$appSlug/$collectionName/$itemId",component:mt(()=>dt(()=>import("./collection-detail-B2tq49yQ.js"),__vite__mapDeps([186,26,53,11,98,38,2,130,182,17,18,19,20,21,22,117,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,120,95,96,125,56,57,40,151,165,31,10,143,109,108,183,121,54,5,4,55,122,187,128,150,111,52,112,113,66,44,29,39,14,58]))),validateSearch:pi(()=>Ae({replayId:Y().optional()}))}),bue=it({getParentRoute:()=>Lo,path:"/monitor",component:mt(()=>dt(()=>import("./index-CbzJbxjH.js"),__vite__mapDeps([188,27,28,17,18,19,20,21,22,26,189,163,190,175,147,40,41,42,43,126,127,120,53,11,108,129,24,148,136,145,69,49,77,68,70,25,71,67,72,73,74,75,45,76,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,90,91,92,63,30,93,48,51,149,57,133,29,34,35,138,39,52,54,5,4,55,111,112,113,56,150,151,152,44,14,58,66,121,122,153,98,38,2,128,31,109,191,157,142,143,130,132,61,187,184]))),validateSearch:pi(()=>Ae({tab:bn(["overview","audit","dashboards","threads","automations"]).default("overview"),from:Y().default("now-30m"),to:Y().default("now"),connectionId:Le(Y()).optional().default([]),virtualMcpId:Le(Y()).optional().default([]),tool:Y().default(""),status:bn(["all","success","errors"]).default("all"),search:Y().default(""),page:kt().optional(),streaming:Vt().default(!0),propertyFilters:Y().default(""),hideSystem:Vt().default(!1)}))}),yue=it({getParentRoute:()=>Lo,path:"/general",component:mt(()=>dt(()=>import("./general-DC_hLE8A.js"),__vite__mapDeps([192,17,18,19,20,21,22,187,72,84,48,136,166,29,30,2,159,129,73,40,41,42,43,106,68,69,70,25,71,67,74,75,45,49,76,77,47,78,79,50,80,62,81,82,83,85,86,87,88,89,46,28,90,91,92,63,93,51,53,11,108,123,56,57,193,31,110,189,163,190,175])))}),Sue=it({getParentRoute:()=>Lo,path:"/connect",component:mt(()=>dt(()=>import("./connect-C8G6hpUw.js"),__vite__mapDeps([194,187,129,155,138,41,78,83,84,92,17,18,19,20,21,22,159,73,139,53,11])))}),_ue=it({getParentRoute:()=>Lo,path:"/brand-context",component:mt(()=>dt(()=>import("./brand-context-CKoiCAsX.js"),__vite__mapDeps([195,42,76,89,80,92,110,17,18,19,20,21,22,57,166,84,51,2,130,189,163,190,175])))}),Cue=it({getParentRoute:()=>Lo,path:"/ai-providers",component:mt(()=>dt(()=>import("./ai-providers-BzHh1Y6X.js"),__vite__mapDeps([196,69,17,18,19,20,21,22,106,159,129,73,112,57,49,56,53,11,156,39,115,111,52,54,5,4,55,108,113,157,41,2,40,42,43,71,70,83,28,158,86,76,29,30,79,140,78,91,166,141,110,89,164,35,92,189,163,190,175])))}),wue=it({getParentRoute:()=>Lo,path:"/secrets",component:mt(()=>dt(()=>import("./secrets-BOx4wL5z.js"),__vite__mapDeps([197,69,89,30,93,39,21,2,38,40,22,41,42,43,106,130,17,18,19,20,159,129,73,167,57,189,163,190,175])))}),Eue=it({getParentRoute:()=>Lo,path:"/buckets",component:mt(()=>dt(()=>import("./buckets-Diftx4y0.js"),__vite__mapDeps([198,69,82,89,92,110,39,21,2,38,40,22,41,42,43,61,106,130,17,18,19,20,159,129,73,168,57,189,163,190,175])))}),xue=it({getParentRoute:()=>Lo,path:"/members",component:mt(()=>dt(()=>import("./members-BttVBgrz.js"),__vite__mapDeps([199,177,102,41,76,77,25,81,22,178,31,27,28,17,18,19,20,21,23,24,26,135,39,98,38,40,42,43,130,136,137,159,129,73,173,163,57,29,30,34,35,36,148,200,110,83,90,92,48,157,142,143,109,89,189,190,175])))}),Tue=it({getParentRoute:()=>Lo,path:"/roles",component:mt(()=>dt(()=>import("./roles-BN61drgS.js"),__vite__mapDeps([201,137,136,200,31,110,102,41,76,77,89,92,23,24,25,17,18,19,20,21,22,26,27,28,158,66,67,68,69,70,71,72,73,74,75,45,49,42,43,47,78,79,50,80,62,81,82,83,84,85,86,87,88,46,90,91,63,30,93,48,51,127,157,133,53,11,119,185,148,36,120,112,57,29,61,159,129,163,190,175]))),validateSearch:pi(()=>Ae({role:Y().optional()}))}),Pue=it({getParentRoute:()=>Lo,path:"/sso",component:mt(()=>dt(()=>import("./sso-DYCQicfk.js"),__vite__mapDeps([202,193,57,159,129,73,31,2,40,22,41,42,43,17,18,19,20,21,110,61,58,92,189,163,190,175])))}),Rue=it({getParentRoute:()=>Lo,path:"/profile",component:mt(()=>dt(()=>import("./profile-D7yfmHxW.js"),__vite__mapDeps([203,17,18,19,20,21,22,29,30,61,40,41,42,43,141,2,86,87,88,166,160,134,159,129,73])))}),Aue=it({getParentRoute:()=>Lo,path:"/store",component:mt(()=>dt(()=>import("./store-D9MbbsAH.js"),__vite__mapDeps([204,69,76,89,92,2,61,106,29,30,109,120,53,11,17,18,19,20,21,22,125,56,57,159,129,73,189,163,190,175])))}),kue=it({getParentRoute:()=>Lo,path:"/registry",component:mt(()=>dt(()=>import("./registry-BwhZVs9H.js"),__vite__mapDeps([205,189,163,190,175])))}),Due=it({getParentRoute:()=>Lo,path:"/store/registry",component:mt(()=>dt(()=>import("./store-registry-DhHadeia.js"),__vite__mapDeps([206,189,163,190,175])))}),Oue=it({getParentRoute:()=>Lo,path:"/agents",component:mt(()=>dt(()=>import("./agents-list-CcpsacXD.js"),__vite__mapDeps([207,102,41,76,77,45,116,53,11,117,108,17,18,19,20,21,22,68,69,70,25,71,67,72,73,74,75,49,42,43,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,164,35,121,54,5,4,55,122,56,57,163,129,26,183,120,118,39,119,32,101,10,95,96,99,97,162,110,27])))}),Iue=it({getParentRoute:()=>Lo,path:"/automations",component:mt(()=>dt(()=>import("./automations-BEapCfX5.js"),__vite__mapDeps([208,89,51,27,28,17,18,19,20,21,22,26,149,53,11,57,121,108,54,5,4,55,122,169,110,102,41,76,77,47,92,68,69,70,25,71,67,72,73,74,75,45,49,42,43,78,79,50,80,62,81,82,83,84,85,86,87,88,46,90,91,63,30,93,48,189,163,190,175])))}),Mue=Lo.addChildren([hue,pue,gue,vue,Oue,Iue,bue,yue,Sue,_ue,Cue,wue,Eue,xue,Tue,Pue,Rue,Aue,Due,kue]),Lue=m4.addChildren([lue]),Nue=xv.addChildren([uue,mue,Lue]),Fue=Ev.addChildren([Nue,Mue,fue]),Bue=PE.addChildren([nue,Fue]),zue=Hr.addChildren([Bue,oue,rue,aue,iue,Kce,Wce,Yce,Zce,Qce,Jce]);function jue(){const e=eo.c(16),t=Nm();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=R.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=R.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=R.jsx("button",{type:"button",onClick:Uue,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function Uue(){return window.history.back()}const $ue=nK({routeTree:zue,defaultPendingComponent:TE,defaultPendingMs:200,defaultNotFoundComponent:jue});jce();const que=document.getElementById("root");F6.createRoot(que).render(R.jsx(D.StrictMode,{children:R.jsx(iK,{router:$ue})}));export{eI as $,Xde as A,hm as B,Mde as C,Ode as D,ume as E,f7 as F,uu as G,IJ as H,Zse as I,ws as J,_s as K,wm as L,Are as M,Ide as N,M2 as O,Nse as P,Yue as Q,o4 as R,TE as S,Cl as T,l4 as U,Cz as V,Ae as W,Y as X,Aa as Y,Ra as Z,hde as _,ov as a,So as a$,Zo as a0,Le as a1,bn as a2,uo as a3,Vt as a4,kZ as a5,lme as a6,AZ as a7,cme as a8,l2 as a9,Sl as aA,Tm as aB,Xo as aC,dN as aD,ct as aE,ds as aF,dt as aG,kt as aH,vt as aI,au as aJ,Np as aK,lI as aL,vz as aM,bz as aN,wz as aO,yz as aP,Sz as aQ,Wo as aR,xz as aS,jR as aT,_z as aU,jn as aV,Sr as aW,rl as aX,Dde as aY,mme as aZ,fme as a_,eD as aa,OC as ab,IX as ac,ia as ad,rm as ae,Kg as af,jw as ag,Qc as ah,vs as ai,bi as aj,sa as ak,hN as al,LX as am,BX as an,NX as ao,wX as ap,fH as aq,i2 as ar,Hue as as,Pde as at,RZ as au,Fde as av,r4 as aw,ee as ax,Co as ay,uN as az,Nm as b,dV as b$,Rde as b0,ome as b1,s2 as b2,gde as b3,bde as b4,Rw as b5,W8 as b6,vM as b7,G8 as b8,ro as b9,cee as bA,uee as bB,FN as bC,vi as bD,Vue as bE,ra as bF,mde as bG,aa as bH,Pte as bI,DG as bJ,QM as bK,Pce as bL,Gg as bM,Zd as bN,bs as bO,Ace as bP,zce as bQ,dme as bR,a4 as bS,sme as bT,ime as bU,nme as bV,H2 as bW,c4 as bX,rme as bY,fde as bZ,Que as b_,We as ba,qC as bb,hM as bc,Xue as bd,Q8 as be,yq as bf,HC as bg,VC as bh,tq as bi,ede as bj,lde as bk,yde as bl,yV as bm,P8 as bn,pl as bo,gt as bp,X9 as bq,lL as br,vw as bs,OL as bt,dre as bu,BF as bv,jF as bw,Ete as bx,EN as by,Zte as bz,eo as c,nm as c$,mV as c0,ow as c1,WM as c2,KM as c3,Hg as c4,DM as c5,TV as c6,IM as c7,_V as c8,MV as c9,e_ as cA,Ede as cB,Tde as cC,xde as cD,Sde as cE,Mte as cF,Lte as cG,Ite as cH,MJ as cI,AJ as cJ,LJ as cK,DJ as cL,NJ as cM,OJ as cN,LN as cO,ZX as cP,Dw as cQ,TN as cR,Aw as cS,QX as cT,Bde as cU,JX as cV,kJ as cW,KL as cX,BL as cY,Ow as cZ,kw as c_,Vq as ca,Gq as cb,Yq as cc,iV as cd,CV as ce,Hq as cf,Kq as cg,Zq as ch,Qq as ci,sV as cj,pV as ck,kde as cl,Ade as cm,Qde as cn,yM as co,rH as cp,_de as cq,cH as cr,Cde as cs,wq as ct,WS as cu,ZS as cv,YS as cw,wde as cx,s_ as cy,Cn as cz,Cm as d,Yee as d$,Vz as d0,kM as d1,MM as d2,FM as d3,zM as d4,jM as d5,$M as d6,ide as d7,sde as d8,rde as d9,bte as dA,_te as dB,yte as dC,Ste as dD,Ude as dE,$de as dF,Gde as dG,Kde as dH,Wde as dI,Yde as dJ,qde as dK,Vde as dL,Hde as dM,OZ as dN,DZ as dO,CL as dP,vde as dQ,pde as dR,jde as dS,zde as dT,Kue as dU,Gue as dV,hI as dW,Om as dX,xm as dY,zee as dZ,Vee as d_,ade as da,Eq as db,nde as dc,LM as dd,BM as de,UM as df,ude as dg,NM as dh,Fq as di,ode as dj,AM as dk,i7 as dl,hV as dm,dde as dn,JV as dp,t7 as dq,NV as dr,LV as ds,cde as dt,v8 as du,Zue as dv,tde as dw,pi as dx,Jue as dy,vte as dz,yp as e,jee as e0,Uee as e1,Bee as e2,qN as e3,$ee as e4,qee as e5,Hee as e6,Gee as e7,Kee as e8,Wee as e9,Zee as ea,Jee as eb,Xee as ec,tv as f,eme as g,Jde as h,tme as i,R as j,xE as k,Oce as l,Tce as m,pI as n,Ng as o,Kse as p,ame as q,D as r,Lde as s,cs as t,hw as u,s4 as v,Nde as w,gl as x,n4 as y,EE as z};
235
+ {plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.approved":"Aprovado","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.proposePlan.rejected":"Rejeitado","chat.proposePlan.viewPlan":"Ver plano","chat.queueTray.queuedMessage":"{count} mensagem na fila","chat.queueTray.queuedMessages":"{count} mensagens na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.flipToBackground":"Executar em background","chat.subtask.flipping":"Movendo para background…","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionCount":"{current} de {total}","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.skippedAnswer":"Pulado","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}","chat.mention.noItemsFound":"Nenhum item encontrado","chat.modelPreferences.title":"Seus modelos","chat.modelPreferences.description":"Escolha qual modelo cada nível usa para você. Isso altera apenas os seus chats — o padrão da organização permanece o mesmo.","chat.modelPreferences.customizeModel":"Personalizar modelo de {tier}","chat.modelPreferences.pickModel":"Escolher modelo","chat.modelPreferences.reset":"Redefinir","chat.modelPreferences.usingOrgDefault":"Usando o padrão da organização","chat.modelPreferences.orgDefaultIs":"Padrão da organização: {model}","chat.modelPreferences.autoPicked":"escolhido automaticamente","chat.modelPreferences.loadFailed":"Não foi possível carregar suas escolhas de modelo. O que aparece abaixo pode não corresponder ao que seus chats usam."},gce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},vce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},bce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},yce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerDeleteDialog.cancel":"Cancelar","sandbox.fileExplorerDeleteDialog.delete":"Excluir","sandbox.fileExplorerDeleteDialog.description":"Isso excluirá permanentemente","sandbox.fileExplorerDeleteDialog.folderSuffix":" e tudo dentro dela.","sandbox.fileExplorerDeleteDialog.titleFile":"Excluir arquivo?","sandbox.fileExplorerDeleteDialog.titleFolder":"Excluir pasta?","sandbox.fileExplorerDeleteDialog.unsavedChangesMany":"{count} arquivos abertos têm alterações não salvas que serão perdidas.","sandbox.fileExplorerDeleteDialog.unsavedChangesOne":"Um arquivo aberto tem alterações não salvas que serão perdidas.","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categorias","sandbox.pathParamPickerChip.kindCategoryNoun":"categoria","sandbox.pathParamPickerChip.kindProductHeading":"Produtos","sandbox.pathParamPickerChip.kindProductNoun":"produto","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.catchAllParamLabel":"caminho","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.cms":"CMS","sandbox.preview.collapseTerminal":"Recolher terminal","sandbox.preview.editContent":"Editar conteúdo","sandbox.preview.exitEditor":"Sair do editor","sandbox.preview.expandTerminal":"Expandir terminal","sandbox.preview.hideTerminal":"Ocultar terminal","sandbox.preview.showTerminal":"Mostrar terminal","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.enterToGo":"Enter para ir","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.moreOptions":"Mais opções","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.startingPreview":"Iniciando seu preview","sandbox.preview.startingPreviewHint":"Você já pode fazer alterações — elas aparecem quando o preview estiver pronto.","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.valueForParam":"Valor de {label}","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.productionUrlField.description":"Exibida no preview enquanto o servidor de desenvolvimento inicia, para você já visualizar e editar.","sandbox.productionUrlField.label":"URL de produção","sandbox.productionUrlField.placeholder":"https://exemplo.com","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.othersThreadTitle":"Você está no chat de outra pessoa","sandbox.stateCard.othersThreadMessage":"Esta conversa ({label}) é de outro membro. Continuar aqui significa dar sequência ao trabalho dela — comece um novo chat para trabalhar no seu.","sandbox.stateCard.othersThreadContinue":"Continuar mesmo assim","sandbox.stateCard.othersThreadNewChat":"Começar novo chat","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Sce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},_ce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.mainAgent.title":"Agente principal","settings.mainAgent.description":"O agente em que esta organização abre. Todos os membros chegam aqui em vez do Super Agent.","settings.mainAgent.itemTitle":"Agente de entrada","settings.mainAgent.itemDescription":"Escolha o agente que abre ao entrar nesta organização.","settings.mainAgent.superAgentOption":"Super Agent (padrão)","settings.mainAgent.setToast":'"{title}" agora é o agente principal',"settings.mainAgent.resetToast":"Redefinido para o Super Agent","settings.mainAgent.errorToast":"Não foi possível atualizar o agente principal","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Cce={...Ule,...$le,...qle,...Vle,...Hle,...Gle,...Kle,...Wle,...Yle,...Zle,...Qle,...Jle,...Xle,...ece,...tce,...oce,...nce,...rce,...ace,...ice,...sce,...lce,...cce,...uce,...dce,...mce,...fce,...hce,...pce,...gce,...vce,...bce,...yce,..._ce,...Sce},wce={en:zle,"pt-BR":Cce};function Nm(){const e=eo.c(2),[t]=sB(),o=wce[t.language];let n;return e[0]!==o?(n=(r,i)=>jle(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const Fm=new pz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});Mse(Fm);Lse(Fm);Pse(Fm);Rse(Fm);function Ece(e){const t=eo.c(2),{children:o}=e,n=Nm();U7({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=R.jsx(R.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function xce(e){const t=eo.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx(j7,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=R.jsx(TE,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=R.jsxs(gz,{client:Fm,children:[n,R.jsx(D.Suspense,{fallback:r,children:R.jsx(nle,{children:R.jsx(pH,{children:R.jsx(gae,{children:R.jsx(Wse,{children:R.jsx(Ece,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function lB(){const e=eo.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:R.jsx(xE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Tce(...e){return lL(vw(e))}const Pce=OL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function hm(e){const t=eo.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?Rw:"button";let m;t[6]!==o||t[7]!==r||t[8]!==l?(m=Tce(Pce({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==m?(h=R.jsx(d,{"data-slot":"button",className:m,...n}),t[10]=d,t[11]=n,t[12]=m,t[13]=h):h=t[13],h}const Rce=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Ace(e){const t=eo.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Rce}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=R.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,R.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function cB(e){const t=eo.c(20),{orgName:o}=e,n=Nm(),r=kce;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=R.jsx("div",{className:"bg-muted p-3 rounded-full",children:R.jsx(oB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=R.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let m;t[8]!==d?(m=R.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=m):m=t[9];let h;t[10]!==c||t[11]!==m?(h=R.jsxs("div",{className:"space-y-2",children:[c,m]}),t[10]=c,t[11]=m,t[12]=h):h=t[12];let f;t[13]!==n?(f=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=f):f=t[14];let g;t[15]!==f?(g=R.jsx(hm,{onClick:r,children:f}),t[15]=f,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=R.jsxs(Ace,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function kce(){window.location.href="/"}function Dce(){const e=eo.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=tv(t);let n;return e[1]!==o?(n=R.jsx(hm,{variant:"outline",size:"sm",asChild:!0,children:R.jsx(wm,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function Oce(e){const t=eo.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=R.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:R.jsx(nB,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=R.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let m;t[3]!==l?(m=R.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=m):m=t[4];let h;t[5]!==d||t[6]!==m?(h=R.jsxs("div",{className:"space-y-1",children:[d,m]}),t[5]=d,t[6]=m,t[7]=h):h=t[7];let f;t[8]!==r?(f=r??R.jsx(Dce,{}),t[8]=r,t[9]=f):f=t[9];let g;return t[10]!==h||t[11]!==f?(g=R.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,f]}),t[10]=h,t[11]=f,t[12]=g):g=t[12],g}const YO="__studio_chunk_reload_ts";function uB(e){return e?.message==="Organization is archived"}function Ice(e){return!!e?.message?.includes("Access denied")}function ZO(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Mce extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),tB(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:uB(this.state.error)?R.jsx(cB,{}):Ice(this.state.error)?R.jsx(Oce,{}):R.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(EE,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),R.jsx(hm,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function ume(e){const t=eo.c(3),o=Nm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(Mce,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class Lce extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=ZO(t);if(tB(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(YO),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(YO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&ZO(this.state.error)?R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:R.jsx(rB,{className:"h-6 w-6 text-primary"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),R.jsx(hm,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?uB(this.state.error)?R.jsx(cB,{}):R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(EE,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),R.jsx(hm,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Nce(e){const t=eo.c(3),o=Nm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(Lce,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}const Fce=[["mesh:","studio:"],["mesh-","studio-"]];function Bce(e){const t=Array.from({length:e.length},(o,n)=>e.key(n)).filter(o=>o!==null);for(const o of t){const n=Fce.find(([d])=>o.startsWith(d));if(!n)continue;const[r,i]=n,l=`${i}${o.slice(r.length)}`;if(e.getItem(l)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(l,c)}}function dB(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function zce(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function dme(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,QO=!1;const DC=new Set;function Lg(){for(const e of DC)e()}function jce(){QO||typeof window>"u"||(QO=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Lg()}),window.addEventListener("appinstalled",()=>{ui=null,Lg()}))}function mme(){ui!==null&&(ui=null,Lg())}function Uce(e){return DC.add(e),()=>{DC.delete(e)}}function $ce(){return ui}function qce(){return null}function Vce(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function Hce(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function fme(){const e=eo.c(5),t=D.useSyncExternalStore(Uce,$ce,qce);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Vce(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=Hce(),l=Gce,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function Gce(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Lg(),e.outcome}Bce(window.localStorage);const Hr=GG({component:()=>R.jsx(xce,{children:R.jsx(Nce,{children:R.jsx(D.Suspense,{fallback:R.jsx(TE,{}),children:R.jsx(M2,{})})})})}),Kce=it({getParentRoute:()=>Hr,path:"/login",component:mt(()=>dt(()=>import("./login-B8ldKcGZ.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>Ae({next:Y().optional(),client_id:Y().optional(),redirect_uri:Y().optional(),response_type:Y().optional(),state:Y().optional(),scope:Y().optional(),code_challenge:Y().optional(),code_challenge_method:Y().optional()}))}),Wce=it({getParentRoute:()=>Hr,path:"/cli/auth-success",component:mt(()=>dt(()=>import("./cli-auth-success-cL_WLHjB.js"),__vite__mapDeps([7,6])))}),Yce=it({getParentRoute:()=>Hr,path:"/reset-password",component:mt(()=>dt(()=>import("./reset-password-BC_gCCYf.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>Ae({token:Y().optional(),error:Y().optional()}))}),Zce=it({getParentRoute:()=>Hr,path:"/auth/$pathname",component:mt(()=>dt(()=>import("./auth-catchall--Gmjmmje.js"),[]))}),Qce=it({getParentRoute:()=>Hr,path:"/oauth/callback",component:mt(()=>dt(()=>import("./oauth-callback-CWSvdAAJ.js"),__vite__mapDeps([9,10,11])))}),Jce=it({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:mt(()=>dt(()=>import("./oauth-callback-ai-provider-ngN9pz72.js"),[]))}),wv=it({getParentRoute:()=>Hr,path:"/_admin",component:mt(()=>dt(()=>import("./layout-rkrT3Bzp.js"),__vite__mapDeps([12,13,14,15])))}),Xce=it({getParentRoute:()=>wv,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),eue=it({getParentRoute:()=>wv,path:"/users",component:mt(()=>dt(()=>import("./users-BMA7Vi19.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),tue=it({getParentRoute:()=>wv,path:"/orgs",component:mt(()=>dt(()=>import("./orgs-DE4WrubW.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),oue=wv.addChildren([Xce,eue,tue]),PE=it({getParentRoute:()=>Hr,id:"shell",component:mt(()=>dt(()=>import("./shell-layout-kETjcZPq.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,5,4,55,56,57,58])))}),nue=it({getParentRoute:()=>PE,path:"/",beforeLoad:async()=>{const e=zce();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await G2();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),rue=it({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await G2();if(e&&e.length>0)throw is({to:"/"})},component:mt(()=>dt(()=>import("./onboarding-D3pH64NX.js"),__vite__mapDeps([59,14,6,60,29,30,2,38,61,45,49,62,63])))}),aue=it({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:mt(()=>dt(()=>import("./commerce-onboarding-gWh4R_kR.js"),__vite__mapDeps([64,65,53,11,66,67,68,69,70,25,71,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,19,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,21,51,39,22,94,95,96,97,98,38,2,32,99,100,101,10,1,3,4,5,6,60,29,102]))),validateSearch:pi(()=>Ae({org:Y().optional(),siteUrl:Y().optional()}))}),iue=it({getParentRoute:()=>Hr,path:"/report/$domain",component:mt(()=>dt(()=>import("./reports-0YvS0f-S.js"),__vite__mapDeps([103,1,2,3,4,5,69,25,72,74,49,79,85,46,90,91,51,104]))),validateSearch:pi(()=>Ae({key:Y().optional()}))}),Ev=it({getParentRoute:()=>PE,path:"/$org",beforeLoad:({params:e})=>{dB({org:e.org})},component:mt(()=>dt(()=>import("./org-layout-BxDmKAuW.js"),[]))}),xv=it({getParentRoute:()=>Ev,id:"org-shell",component:mt(()=>dt(()=>import("./index-nK00K7JC.js"),__vite__mapDeps([105,18,19,20,21,22,65,53,11,66,67,68,69,70,25,71,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,39,94,95,96,97,98,38,2,32,99,100,101,10,52,106,107,108,109,110,111,54,5,4,55,57,112,113,56,114,115,116,117,118,119,120,121,122,123,44,29,14,58,124,125,126,127,3,128,129,40,130,131,132,31,133,15,134,135,136,137,138,139,140,141,142,143,144,145,34,35])))}),mB=it({getParentRoute:()=>xv,id:"agent-shell",pendingComponent:lB,component:mt(()=>dt(()=>import("./index-ChXShJzf.js").then(e=>e.bt),__vite__mapDeps([146,25,111,52,54,53,11,5,4,55,57,108,112,113,56,147,40,22,41,42,43,126,127,120,129,18,19,20,21,24,26,148,136,145,69,49,77,68,70,71,67,72,73,74,75,45,76,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,149,133,29,34,35,138,39,150,151,152,44,14,58,66,121,122,153,98,38,2,115,119,154,36,109,116,117,97,101,10,95,96,102,142,143,94,155,141,107,110,114,106,118,32,99,123,124,125,3,128,130,131,132,31,140,156,157,158,159,160,161,162,163,164,165,166,17,27,61,167,100,168,169,170])))}),sue=Ae({virtualmcpid:Y().optional(),tab:Y().optional(),sidepanel:ro([We("chat"),We(0)]).optional(),main:ro([Y(),We(0)]).optional(),preview:Y().optional(),id:Y().optional(),toolName:Y().optional(),tasks:kt().optional(),mainOpen:kt().optional(),autosend:Y().optional(),runLocally:Y().optional(),connect:wM().optional(),siteUrl:Y().optional()}),lue=it({getParentRoute:()=>mB,path:"/$taskId",validateSearch:sue,beforeLoad:({params:e,search:t})=>{dB({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),cue=Ae({main:Y().optional(),connect:wM().optional(),siteUrl:Y().optional()}),uue=it({getParentRoute:()=>xv,path:"/",validateSearch:cue,pendingComponent:lB,component:mt(()=>dt(()=>import("./index-BFwblmgK.js"),__vite__mapDeps([171,53,11,108,54,5,4,55,56,57,122])))}),due=Ae({task:Y().optional()}),mue=it({getParentRoute:()=>xv,path:"/board",validateSearch:due,component:mt(()=>dt(()=>import("./index-CyPSumm4.js").then(e=>e.n),__vite__mapDeps([154,36,29,30,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,19,84,85,86,87,88,89,46,28,90,91,92,63,93,48,21,51,109,53,11,116,117,39,120,97,101,10,95,96,148,136,57,55,4,113,34,35,102,152,138,142,143,115,44,14,52,54,5,56,58,94])))}),Lo=it({getParentRoute:()=>Ev,path:"/settings",component:mt(()=>dt(()=>import("./settings-layout-CTYQ9jGd.js"),__vite__mapDeps([172,13,18,19,20,21,22,17,75,45,82,83,84,85,90,30,51,163,173,57,161,160,113,55,4,114,144])))}),fue=it({getParentRoute:()=>Ev,path:"/install",component:mt(()=>dt(()=>import("./org-install-CLFM7pRi.js"),[]))}),hue=it({getParentRoute:()=>Lo,path:"/",component:mt(()=>dt(()=>import("./index-redirect-D3GTlyfe.js"),__vite__mapDeps([174,163,175])))}),pue=it({getParentRoute:()=>Lo,path:"/connections",component:mt(()=>dt(()=>import("./connections-aRaqOToD.js"),__vite__mapDeps([176,95,96,53,11,177,102,41,76,77,25,81,22,178,31,27,28,132,124,125,120,56,57,126,127,3,4,5,128,129,66,67,68,69,70,71,72,73,74,75,45,49,42,43,47,78,79,50,80,62,82,83,19,84,85,86,87,88,89,46,90,91,92,63,30,93,48,21,51,26,17,18,20,179,110,163,180,39,115,98,38,2,40,130,108,131,101,10,157]))),validateSearch:pi(()=>Ae({action:bn(["create"]).optional(),tab:bn(["all","connected"]).optional()}))}),gue=it({getParentRoute:()=>Lo,path:"/connections/$appSlug",component:mt(()=>dt(()=>import("./connection-detail-I7RjLE-w.js"),__vite__mapDeps([181,95,96,53,11,26,131,2,89,92,182,17,18,19,20,21,22,117,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,46,28,90,91,63,30,93,48,51,120,125,56,57,40,151,165,31,10,143,109,108,183,121,54,5,4,55,122,148,136,29,153,66,98,38,179,110,184,155,128,119,129,102,185]))),validateSearch:pi(()=>Ae({tab:Y().optional()}))}),vue=it({getParentRoute:()=>Lo,path:"/connections/$appSlug/$collectionName/$itemId",component:mt(()=>dt(()=>import("./collection-detail-C_VF5gqc.js"),__vite__mapDeps([186,26,53,11,98,38,2,130,182,17,18,19,20,21,22,117,68,69,70,25,71,67,72,73,74,75,45,49,41,42,76,43,77,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,120,95,96,125,56,57,40,151,165,31,10,143,109,108,183,121,54,5,4,55,122,187,128,150,111,52,112,113,66,44,29,39,14,58]))),validateSearch:pi(()=>Ae({replayId:Y().optional()}))}),bue=it({getParentRoute:()=>Lo,path:"/monitor",component:mt(()=>dt(()=>import("./index-D6AuCJX5.js"),__vite__mapDeps([188,27,28,17,18,19,20,21,22,26,189,163,190,175,147,40,41,42,43,126,127,120,53,11,108,129,24,148,136,145,69,49,77,68,70,25,71,67,72,73,74,75,45,76,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,90,91,92,63,30,93,48,51,149,57,133,29,34,35,138,39,52,54,5,4,55,111,112,113,56,150,151,152,44,14,58,66,121,122,153,98,38,2,128,31,109,191,157,142,143,130,132,61,187,184]))),validateSearch:pi(()=>Ae({tab:bn(["overview","audit","dashboards","threads","automations"]).default("overview"),from:Y().default("now-30m"),to:Y().default("now"),connectionId:Le(Y()).optional().default([]),virtualMcpId:Le(Y()).optional().default([]),tool:Y().default(""),status:bn(["all","success","errors"]).default("all"),search:Y().default(""),page:kt().optional(),streaming:Vt().default(!0),propertyFilters:Y().default(""),hideSystem:Vt().default(!1)}))}),yue=it({getParentRoute:()=>Lo,path:"/general",component:mt(()=>dt(()=>import("./general-fhECfGyy.js"),__vite__mapDeps([192,17,18,19,20,21,22,187,72,84,48,136,166,29,30,2,159,129,73,40,41,42,43,106,68,69,70,25,71,67,74,75,45,49,76,77,47,78,79,50,80,62,81,82,83,85,86,87,88,89,46,28,90,91,92,63,93,51,53,11,108,123,56,57,193,31,110,189,163,190,175])))}),Sue=it({getParentRoute:()=>Lo,path:"/connect",component:mt(()=>dt(()=>import("./connect-kEcJ_SIb.js"),__vite__mapDeps([194,187,129,155,138,41,78,83,84,92,17,18,19,20,21,22,159,73,139,53,11])))}),_ue=it({getParentRoute:()=>Lo,path:"/brand-context",component:mt(()=>dt(()=>import("./brand-context-v9mf7fQa.js"),__vite__mapDeps([195,42,76,89,80,92,110,17,18,19,20,21,22,57,166,84,51,2,130,189,163,190,175])))}),Cue=it({getParentRoute:()=>Lo,path:"/ai-providers",component:mt(()=>dt(()=>import("./ai-providers-DPGugvmJ.js"),__vite__mapDeps([196,69,17,18,19,20,21,22,106,159,129,73,112,57,49,56,53,11,156,39,115,111,52,54,5,4,55,108,113,157,41,2,40,42,43,71,70,83,28,158,86,76,29,30,79,140,78,91,166,141,110,89,164,35,92,189,163,190,175])))}),wue=it({getParentRoute:()=>Lo,path:"/secrets",component:mt(()=>dt(()=>import("./secrets-Bq3gXmCd.js"),__vite__mapDeps([197,69,89,30,93,39,21,2,38,40,22,41,42,43,106,130,17,18,19,20,159,129,73,167,57,189,163,190,175])))}),Eue=it({getParentRoute:()=>Lo,path:"/buckets",component:mt(()=>dt(()=>import("./buckets-DRZrJnUm.js"),__vite__mapDeps([198,69,82,89,92,110,39,21,2,38,40,22,41,42,43,61,106,130,17,18,19,20,159,129,73,168,57,189,163,190,175])))}),xue=it({getParentRoute:()=>Lo,path:"/members",component:mt(()=>dt(()=>import("./members-yTHMiAP6.js"),__vite__mapDeps([199,177,102,41,76,77,25,81,22,178,31,27,28,17,18,19,20,21,23,24,26,135,39,98,38,40,42,43,130,136,137,159,129,73,173,163,57,29,30,34,35,36,148,200,110,83,90,92,48,157,142,143,109,89,189,190,175])))}),Tue=it({getParentRoute:()=>Lo,path:"/roles",component:mt(()=>dt(()=>import("./roles-DdA0Dp3j.js"),__vite__mapDeps([201,137,136,200,31,110,102,41,76,77,89,92,23,24,25,17,18,19,20,21,22,26,27,28,158,66,67,68,69,70,71,72,73,74,75,45,49,42,43,47,78,79,50,80,62,81,82,83,84,85,86,87,88,46,90,91,63,30,93,48,51,127,157,133,53,11,119,185,148,36,120,112,57,29,61,159,129,163,190,175]))),validateSearch:pi(()=>Ae({role:Y().optional()}))}),Pue=it({getParentRoute:()=>Lo,path:"/sso",component:mt(()=>dt(()=>import("./sso-214mvCXv.js"),__vite__mapDeps([202,193,57,159,129,73,31,2,40,22,41,42,43,17,18,19,20,21,110,61,58,92,189,163,190,175])))}),Rue=it({getParentRoute:()=>Lo,path:"/profile",component:mt(()=>dt(()=>import("./profile-CP-822UF.js"),__vite__mapDeps([203,17,18,19,20,21,22,29,30,61,40,41,42,43,141,2,86,87,88,166,160,134,159,129,73])))}),Aue=it({getParentRoute:()=>Lo,path:"/store",component:mt(()=>dt(()=>import("./store-DUf6AZlh.js"),__vite__mapDeps([204,69,76,89,92,2,61,106,29,30,109,120,53,11,17,18,19,20,21,22,125,56,57,159,129,73,189,163,190,175])))}),kue=it({getParentRoute:()=>Lo,path:"/registry",component:mt(()=>dt(()=>import("./registry-Jn7LExN9.js"),__vite__mapDeps([205,189,163,190,175])))}),Due=it({getParentRoute:()=>Lo,path:"/store/registry",component:mt(()=>dt(()=>import("./store-registry-CJrKYYv3.js"),__vite__mapDeps([206,189,163,190,175])))}),Oue=it({getParentRoute:()=>Lo,path:"/agents",component:mt(()=>dt(()=>import("./agents-list-BjiTgs_2.js"),__vite__mapDeps([207,102,41,76,77,45,116,53,11,117,108,17,18,19,20,21,22,68,69,70,25,71,67,72,73,74,75,49,42,43,47,78,79,50,80,62,81,82,83,84,85,86,87,88,89,46,28,90,91,92,63,30,93,48,51,164,35,121,54,5,4,55,122,56,57,163,129,26,183,120,118,39,119,32,101,10,95,96,99,97,162,110,27])))}),Iue=it({getParentRoute:()=>Lo,path:"/automations",component:mt(()=>dt(()=>import("./automations--_VpEnw2.js"),__vite__mapDeps([208,89,51,27,28,17,18,19,20,21,22,26,149,53,11,57,121,108,54,5,4,55,122,169,110,102,41,76,77,47,92,68,69,70,25,71,67,72,73,74,75,45,49,42,43,78,79,50,80,62,81,82,83,84,85,86,87,88,46,90,91,63,30,93,48,189,163,190,175])))}),Mue=Lo.addChildren([hue,pue,gue,vue,Oue,Iue,bue,yue,Sue,_ue,Cue,wue,Eue,xue,Tue,Pue,Rue,Aue,Due,kue]),Lue=mB.addChildren([lue]),Nue=xv.addChildren([uue,mue,Lue]),Fue=Ev.addChildren([Nue,Mue,fue]),Bue=PE.addChildren([nue,Fue]),zue=Hr.addChildren([Bue,oue,rue,aue,iue,Kce,Wce,Yce,Zce,Qce,Jce]);function jue(){const e=eo.c(16),t=Nm();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=R.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=R.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=R.jsx("button",{type:"button",onClick:Uue,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function Uue(){return window.history.back()}const $ue=nK({routeTree:zue,defaultPendingComponent:TE,defaultPendingMs:200,defaultNotFoundComponent:jue});jce();const que=document.getElementById("root");F6.createRoot(que).render(R.jsx(D.StrictMode,{children:R.jsx(iK,{router:$ue})}));export{eI as $,Xde as A,hm as B,Mde as C,Ode as D,ume as E,f7 as F,uu as G,IJ as H,Zse as I,ws as J,_s as K,wm as L,Are as M,Ide as N,M2 as O,Nse as P,Yue as Q,oB as R,TE as S,Cl as T,lB as U,Cz as V,Ae as W,Y as X,Aa as Y,Ra as Z,hde as _,ov as a,So as a$,Zo as a0,Le as a1,bn as a2,uo as a3,Vt as a4,kZ as a5,lme as a6,AZ as a7,cme as a8,l2 as a9,Sl as aA,Tm as aB,Xo as aC,dN as aD,ct as aE,ds as aF,dt as aG,kt as aH,vt as aI,au as aJ,Np as aK,lI as aL,vz as aM,bz as aN,wz as aO,yz as aP,Sz as aQ,Wo as aR,xz as aS,jR as aT,_z as aU,jn as aV,Sr as aW,rl as aX,Dde as aY,mme as aZ,fme as a_,eD as aa,OC as ab,IX as ac,ia as ad,rm as ae,Kg as af,jw as ag,Qc as ah,vs as ai,bi as aj,sa as ak,hN as al,LX as am,BX as an,NX as ao,wX as ap,fH as aq,i2 as ar,Hue as as,Pde as at,RZ as au,Fde as av,rB as aw,ee as ax,Co as ay,uN as az,Nm as b,dV as b$,Rde as b0,ome as b1,s2 as b2,gde as b3,bde as b4,Rw as b5,W8 as b6,vM as b7,G8 as b8,ro as b9,cee as bA,uee as bB,FN as bC,vi as bD,Vue as bE,ra as bF,mde as bG,aa as bH,Pte as bI,DG as bJ,QM as bK,Pce as bL,Gg as bM,Zd as bN,bs as bO,Ace as bP,zce as bQ,dme as bR,aB as bS,sme as bT,ime as bU,nme as bV,H2 as bW,cB as bX,rme as bY,fde as bZ,Que as b_,We as ba,qC as bb,hM as bc,Xue as bd,Q8 as be,yq as bf,HC as bg,VC as bh,tq as bi,ede as bj,lde as bk,yde as bl,yV as bm,P8 as bn,pl as bo,gt as bp,X9 as bq,lL as br,vw as bs,OL as bt,dre as bu,BF as bv,jF as bw,Ete as bx,EN as by,Zte as bz,eo as c,nm as c$,mV as c0,ow as c1,WM as c2,KM as c3,Hg as c4,DM as c5,TV as c6,IM as c7,_V as c8,MV as c9,e_ as cA,Ede as cB,Tde as cC,xde as cD,Sde as cE,Mte as cF,Lte as cG,Ite as cH,MJ as cI,AJ as cJ,LJ as cK,DJ as cL,NJ as cM,OJ as cN,LN as cO,ZX as cP,Dw as cQ,TN as cR,Aw as cS,QX as cT,Bde as cU,JX as cV,kJ as cW,KL as cX,BL as cY,Ow as cZ,kw as c_,Vq as ca,Gq as cb,Yq as cc,iV as cd,CV as ce,Hq as cf,Kq as cg,Zq as ch,Qq as ci,sV as cj,pV as ck,kde as cl,Ade as cm,Qde as cn,yM as co,rH as cp,_de as cq,cH as cr,Cde as cs,wq as ct,WS as cu,ZS as cv,YS as cw,wde as cx,s_ as cy,Cn as cz,Cm as d,Yee as d$,Vz as d0,kM as d1,MM as d2,FM as d3,zM as d4,jM as d5,$M as d6,ide as d7,sde as d8,rde as d9,bte as dA,_te as dB,yte as dC,Ste as dD,Ude as dE,$de as dF,Gde as dG,Kde as dH,Wde as dI,Yde as dJ,qde as dK,Vde as dL,Hde as dM,OZ as dN,DZ as dO,CL as dP,vde as dQ,pde as dR,jde as dS,zde as dT,Kue as dU,Gue as dV,hI as dW,Om as dX,xm as dY,zee as dZ,Vee as d_,ade as da,Eq as db,nde as dc,LM as dd,BM as de,UM as df,ude as dg,NM as dh,Fq as di,ode as dj,AM as dk,i7 as dl,hV as dm,dde as dn,JV as dp,t7 as dq,NV as dr,LV as ds,cde as dt,v8 as du,Zue as dv,tde as dw,pi as dx,Jue as dy,vte as dz,yp as e,jee as e0,Uee as e1,Bee as e2,qN as e3,$ee as e4,qee as e5,Hee as e6,Gee as e7,Kee as e8,Wee as e9,Zee as ea,Jee as eb,Xee as ec,tv as f,eme as g,Jde as h,tme as i,R as j,xE as k,Oce as l,Tce as m,pI as n,Ng as o,Kse as p,ame as q,D as r,Lde as s,cs as t,hw as u,sB as v,Nde as w,gl as x,nB as y,EE as z};