prefect 3.6.14.dev1__py3-none-any.whl → 3.6.14.dev2__py3-none-any.whl

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 (228) hide show
  1. prefect/_build_info.py +3 -3
  2. prefect/_observers.py +20 -8
  3. prefect/cli/server.py +18 -3
  4. prefect/deployments/runner.py +448 -8
  5. prefect/flows.py +162 -34
  6. prefect/runner/runner.py +48 -0
  7. prefect/server/orchestration/global_policy.py +4 -2
  8. prefect/server/ui-v2/assets/{artifact-card-DkgEVahF.js → artifact-card-D41jcvLX.js} +2 -2
  9. prefect/server/ui-v2/assets/{artifact-card-DkgEVahF.js.map → artifact-card-D41jcvLX.js.map} +1 -1
  10. prefect/server/ui-v2/assets/{artifact._id-C7yJhkKY.js → artifact._id-CYMvBFBb.js} +2 -2
  11. prefect/server/ui-v2/assets/{artifact._id-C7yJhkKY.js.map → artifact._id-CYMvBFBb.js.map} +1 -1
  12. prefect/server/ui-v2/assets/{automation-wizard-BLI4sqs9.js → automation-wizard-DHsWJ8JS.js} +2 -2
  13. prefect/server/ui-v2/assets/{automation-wizard-BLI4sqs9.js.map → automation-wizard-DHsWJ8JS.js.map} +1 -1
  14. prefect/server/ui-v2/assets/{automation._id-OLes3du9.js → automation._id-CCroE1-1.js} +2 -2
  15. prefect/server/ui-v2/assets/{automation._id-OLes3du9.js.map → automation._id-CCroE1-1.js.map} +1 -1
  16. prefect/server/ui-v2/assets/{automation_._id.edit-QrSzkDDB.js → automation_._id.edit-BgpDmMq7.js} +2 -2
  17. prefect/server/ui-v2/assets/{automation_._id.edit-QrSzkDDB.js.map → automation_._id.edit-BgpDmMq7.js.map} +1 -1
  18. prefect/server/ui-v2/assets/{automations-header-BoJc9HK8.js → automations-header-BEZXZmli.js} +2 -2
  19. prefect/server/ui-v2/assets/{automations-header-BoJc9HK8.js.map → automations-header-BEZXZmli.js.map} +1 -1
  20. prefect/server/ui-v2/assets/{base-job-template-form-section-Br6s0jNS.js → base-job-template-form-section-BubT4OHj.js} +2 -2
  21. prefect/server/ui-v2/assets/{base-job-template-form-section-Br6s0jNS.js.map → base-job-template-form-section-BubT4OHj.js.map} +1 -1
  22. prefect/server/ui-v2/assets/{block-type-details-BSbBP-Nm.js → block-type-details-DCWuBOwb.js} +2 -2
  23. prefect/server/ui-v2/assets/{block-type-details-BSbBP-Nm.js.map → block-type-details-DCWuBOwb.js.map} +1 -1
  24. prefect/server/ui-v2/assets/{block-type-logo-DNFERTyH.js → block-type-logo-SZMe2NdY.js} +2 -2
  25. prefect/server/ui-v2/assets/{block-type-logo-DNFERTyH.js.map → block-type-logo-SZMe2NdY.js.map} +1 -1
  26. prefect/server/ui-v2/assets/{block._id-DO6Hulrv.js → block._id-B6_kwTZ-.js} +2 -2
  27. prefect/server/ui-v2/assets/{block._id-DO6Hulrv.js.map → block._id-B6_kwTZ-.js.map} +1 -1
  28. prefect/server/ui-v2/assets/{block_._id.edit-BWF0TQvv.js → block_._id.edit-Bjg9WgY6.js} +2 -2
  29. prefect/server/ui-v2/assets/{block_._id.edit-BWF0TQvv.js.map → block_._id.edit-Bjg9WgY6.js.map} +1 -1
  30. prefect/server/ui-v2/assets/{catalog-BlaqZP0r.js → catalog-Bv8x-rIx.js} +2 -2
  31. prefect/server/ui-v2/assets/{catalog-BlaqZP0r.js.map → catalog-Bv8x-rIx.js.map} +1 -1
  32. prefect/server/ui-v2/assets/{catalog_._slug-BZWiMtjq.js → catalog_._slug-2GldfHc0.js} +2 -2
  33. prefect/server/ui-v2/assets/{catalog_._slug-BZWiMtjq.js.map → catalog_._slug-2GldfHc0.js.map} +1 -1
  34. prefect/server/ui-v2/assets/{catalog_._slug_.create-oHffbeMs.js → catalog_._slug_.create-Bjt7az95.js} +2 -2
  35. prefect/server/ui-v2/assets/{catalog_._slug_.create-oHffbeMs.js.map → catalog_._slug_.create-Bjt7az95.js.map} +1 -1
  36. prefect/server/ui-v2/assets/{collapsible-D45P93xU.js → collapsible-BT0EnMmT.js} +2 -2
  37. prefect/server/ui-v2/assets/{collapsible-D45P93xU.js.map → collapsible-BT0EnMmT.js.map} +1 -1
  38. prefect/server/ui-v2/assets/{concurrency-limit._id-B6oyPVya.js → concurrency-limit._id-Ba5Uof4l.js} +2 -2
  39. prefect/server/ui-v2/assets/{concurrency-limit._id-B6oyPVya.js.map → concurrency-limit._id-Ba5Uof4l.js.map} +1 -1
  40. prefect/server/ui-v2/assets/{create-CcYMd6w6.js → create-DK8Cy1hG.js} +2 -2
  41. prefect/server/ui-v2/assets/{create-CcYMd6w6.js.map → create-DK8Cy1hG.js.map} +1 -1
  42. prefect/server/ui-v2/assets/{create-DK1WvDhf.js → create-Ds8Lheyk.js} +2 -2
  43. prefect/server/ui-v2/assets/{create-DK1WvDhf.js.map → create-Ds8Lheyk.js.map} +1 -1
  44. prefect/server/ui-v2/assets/cronstrue-C72j5NDa.js +2 -0
  45. prefect/server/ui-v2/assets/cronstrue-C72j5NDa.js.map +1 -0
  46. prefect/server/ui-v2/assets/{data-table-B_iyrrTm.js → data-table-B6bdz5Zj.js} +2 -2
  47. prefect/server/ui-v2/assets/{data-table-B_iyrrTm.js.map → data-table-B6bdz5Zj.js.map} +1 -1
  48. prefect/server/ui-v2/assets/{delete-confirmation-dialog-7GKqeKy1.js → delete-confirmation-dialog-CV8ITEEW.js} +2 -2
  49. prefect/server/ui-v2/assets/{delete-confirmation-dialog-7GKqeKy1.js.map → delete-confirmation-dialog-CV8ITEEW.js.map} +1 -1
  50. prefect/server/ui-v2/assets/{deployment-action-header-DrvnfE9Y.js → deployment-action-header-DpjOcab0.js} +2 -2
  51. prefect/server/ui-v2/assets/{deployment-action-header-DrvnfE9Y.js.map → deployment-action-header-DpjOcab0.js.map} +1 -1
  52. prefect/server/ui-v2/assets/{deployment-form-DsAij22s.js → deployment-form-CjIPPnwV.js} +3 -3
  53. prefect/server/ui-v2/assets/{deployment-form-DsAij22s.js.map → deployment-form-CjIPPnwV.js.map} +1 -1
  54. prefect/server/ui-v2/assets/{deployment-links-BwqfKWQX.js → deployment-links--VkBo9wV.js} +2 -2
  55. prefect/server/ui-v2/assets/{deployment-links-BwqfKWQX.js.map → deployment-links--VkBo9wV.js.map} +1 -1
  56. prefect/server/ui-v2/assets/{deployment._id-E5e5s6bO.js → deployment._id-CW00MZGG.js} +2 -2
  57. prefect/server/ui-v2/assets/{deployment._id-E5e5s6bO.js.map → deployment._id-CW00MZGG.js.map} +1 -1
  58. prefect/server/ui-v2/assets/{deployment._id-U6KrtWw0.js → deployment._id-DjYh9IiR.js} +2 -2
  59. prefect/server/ui-v2/assets/{deployment._id-U6KrtWw0.js.map → deployment._id-DjYh9IiR.js.map} +1 -1
  60. prefect/server/ui-v2/assets/deployment_._id.duplicate-18ZQHHgI.js +2 -0
  61. prefect/server/ui-v2/assets/{deployment_._id.duplicate-C_kNyCA9.js.map → deployment_._id.duplicate-18ZQHHgI.js.map} +1 -1
  62. prefect/server/ui-v2/assets/deployment_._id.edit-C9H0Teuv.js +2 -0
  63. prefect/server/ui-v2/assets/{deployment_._id.edit-BP8pfTOR.js.map → deployment_._id.edit-C9H0Teuv.js.map} +1 -1
  64. prefect/server/ui-v2/assets/{deployment_._id.run-Di3-4Mtk.js → deployment_._id.run-CwHYw8j1.js} +2 -2
  65. prefect/server/ui-v2/assets/{deployment_._id.run-Di3-4Mtk.js.map → deployment_._id.run-CwHYw8j1.js.map} +1 -1
  66. prefect/server/ui-v2/assets/{dropdown-menu-iS8iJMpx.js → dropdown-menu-BYgkpoqb.js} +2 -2
  67. prefect/server/ui-v2/assets/{dropdown-menu-iS8iJMpx.js.map → dropdown-menu-BYgkpoqb.js.map} +1 -1
  68. prefect/server/ui-v2/assets/{event._eventDate._eventId-CG15qDSZ.js → event._eventDate._eventId-mPwFHce2.js} +2 -2
  69. prefect/server/ui-v2/assets/{event._eventDate._eventId-CG15qDSZ.js.map → event._eventDate._eventId-mPwFHce2.js.map} +1 -1
  70. prefect/server/ui-v2/assets/flow-run-graph-BMp5vJJa.js +2 -0
  71. prefect/server/ui-v2/assets/flow-run-graph-BMp5vJJa.js.map +1 -0
  72. prefect/server/ui-v2/assets/{flow-run._id-D_eAHZ5z.js → flow-run._id-CafHaMND.js} +2 -2
  73. prefect/server/ui-v2/assets/{flow-run._id-D_eAHZ5z.js.map → flow-run._id-CafHaMND.js.map} +1 -1
  74. prefect/server/ui-v2/assets/flow-run._id-CelqqA9P.js +4 -0
  75. prefect/server/ui-v2/assets/flow-run._id-CelqqA9P.js.map +1 -0
  76. prefect/server/ui-v2/assets/{flow-run._id-wco0Q19f.js → flow-run._id-hVuHWXbi.js} +2 -2
  77. prefect/server/ui-v2/assets/{flow-run._id-wco0Q19f.js.map → flow-run._id-hVuHWXbi.js.map} +1 -1
  78. prefect/server/ui-v2/assets/{flow-runs-pagination-DzGHOht3.js → flow-runs-pagination-CqjL9gOj.js} +2 -2
  79. prefect/server/ui-v2/assets/{flow-runs-pagination-DzGHOht3.js.map → flow-runs-pagination-CqjL9gOj.js.map} +1 -1
  80. prefect/server/ui-v2/assets/{flow._id-Dn2so3rK.js → flow._id-C1Djus0m.js} +2 -2
  81. prefect/server/ui-v2/assets/{flow._id-Dn2so3rK.js.map → flow._id-C1Djus0m.js.map} +1 -1
  82. prefect/server/ui-v2/assets/{form-rC8pxeRl.js → form-z_RaFdEo.js} +2 -2
  83. prefect/server/ui-v2/assets/{form-rC8pxeRl.js.map → form-z_RaFdEo.js.map} +1 -1
  84. prefect/server/ui-v2/assets/{header-CuAwmJ64.js → header-B-PvVnN7.js} +2 -2
  85. prefect/server/ui-v2/assets/{header-CuAwmJ64.js.map → header-B-PvVnN7.js.map} +1 -1
  86. prefect/server/ui-v2/assets/{header-C0zV3WDn.js → header-BSXYXvPS.js} +2 -2
  87. prefect/server/ui-v2/assets/{header-C0zV3WDn.js.map → header-BSXYXvPS.js.map} +1 -1
  88. prefect/server/ui-v2/assets/{header-C6ko3O7G.js → header-CKVO4oLE.js} +2 -2
  89. prefect/server/ui-v2/assets/{header-C6ko3O7G.js.map → header-CKVO4oLE.js.map} +1 -1
  90. prefect/server/ui-v2/assets/{index-CotXErTe.js → index-B5zctA6A.js} +2 -2
  91. prefect/server/ui-v2/assets/{index-CotXErTe.js.map → index-B5zctA6A.js.map} +1 -1
  92. prefect/server/ui-v2/assets/{index-k2161reF.js → index-BCzGofA2.js} +2 -2
  93. prefect/server/ui-v2/assets/{index-k2161reF.js.map → index-BCzGofA2.js.map} +1 -1
  94. prefect/server/ui-v2/assets/{index-BdgomKuA.js → index-BOuQzuoR.js} +2 -2
  95. prefect/server/ui-v2/assets/{index-BdgomKuA.js.map → index-BOuQzuoR.js.map} +1 -1
  96. prefect/server/ui-v2/assets/{index-pE_31vXF.js → index-BQOxk1xu.js} +2 -2
  97. prefect/server/ui-v2/assets/{index-pE_31vXF.js.map → index-BQOxk1xu.js.map} +1 -1
  98. prefect/server/ui-v2/assets/{index-Benf9xn3.js → index-BU1Y-wgo.js} +2 -2
  99. prefect/server/ui-v2/assets/{index-Benf9xn3.js.map → index-BU1Y-wgo.js.map} +1 -1
  100. prefect/server/ui-v2/assets/{index-CYpFLd7y.js → index-BxGluvOD.js} +2 -2
  101. prefect/server/ui-v2/assets/{index-CYpFLd7y.js.map → index-BxGluvOD.js.map} +1 -1
  102. prefect/server/ui-v2/assets/{index-CcVSC2pV.js → index-CAbBPipD.js} +2 -2
  103. prefect/server/ui-v2/assets/{index-CcVSC2pV.js.map → index-CAbBPipD.js.map} +1 -1
  104. prefect/server/ui-v2/assets/index-CHwhYh-B.js +2 -0
  105. prefect/server/ui-v2/assets/{index-BYQ1P2TC.js.map → index-CHwhYh-B.js.map} +1 -1
  106. prefect/server/ui-v2/assets/{index-0g8aAM30.js → index-CIKCrLeZ.js} +2 -2
  107. prefect/server/ui-v2/assets/{index-0g8aAM30.js.map → index-CIKCrLeZ.js.map} +1 -1
  108. prefect/server/ui-v2/assets/{index-fhrsIceD.js → index-CLUjhc4A.js} +2 -2
  109. prefect/server/ui-v2/assets/{index-fhrsIceD.js.map → index-CLUjhc4A.js.map} +1 -1
  110. prefect/server/ui-v2/assets/index-CX5uU1zd.js +2 -0
  111. prefect/server/ui-v2/assets/index-CX5uU1zd.js.map +1 -0
  112. prefect/server/ui-v2/assets/{index-DwkedbVy.js → index-CXVePXfG.js} +2 -2
  113. prefect/server/ui-v2/assets/{index-DwkedbVy.js.map → index-CXVePXfG.js.map} +1 -1
  114. prefect/server/ui-v2/assets/{index-DB2qeheX.js → index-D-ZIgaBw.js} +2 -2
  115. prefect/server/ui-v2/assets/{index-DB2qeheX.js.map → index-D-ZIgaBw.js.map} +1 -1
  116. prefect/server/ui-v2/assets/{index-D8fZaZa7.js → index-D10Svo9k.js} +2 -2
  117. prefect/server/ui-v2/assets/{index-D8fZaZa7.js.map → index-D10Svo9k.js.map} +1 -1
  118. prefect/server/ui-v2/assets/{index-CEStyUb-.js → index-D2EEipYt.js} +2 -2
  119. prefect/server/ui-v2/assets/{index-CEStyUb-.js.map → index-D2EEipYt.js.map} +1 -1
  120. prefect/server/ui-v2/assets/{index-BIqzfifB.js → index-DV5fpxXB.js} +2 -2
  121. prefect/server/ui-v2/assets/{index-BIqzfifB.js.map → index-DV5fpxXB.js.map} +1 -1
  122. prefect/server/ui-v2/assets/{index-C3D0Re7U.js → index-FHRYGk_R.js} +2 -2
  123. prefect/server/ui-v2/assets/{index-C3D0Re7U.js.map → index-FHRYGk_R.js.map} +1 -1
  124. prefect/server/ui-v2/assets/{index-CCs20W5W.js → index-IGxqySze.js} +2 -2
  125. prefect/server/ui-v2/assets/{index-CCs20W5W.js.map → index-IGxqySze.js.map} +1 -1
  126. prefect/server/ui-v2/assets/{index-BKbBu9gL.js → index-P2xc38Yh.js} +2 -2
  127. prefect/server/ui-v2/assets/{index-BKbBu9gL.js.map → index-P2xc38Yh.js.map} +1 -1
  128. prefect/server/ui-v2/assets/index-Yzhlw6-Q.js +17 -0
  129. prefect/server/ui-v2/assets/index-Yzhlw6-Q.js.map +1 -0
  130. prefect/server/ui-v2/assets/{index-BjsWjEUO.js → index-n7YFiQkB.js} +2 -2
  131. prefect/server/ui-v2/assets/{index-BjsWjEUO.js.map → index-n7YFiQkB.js.map} +1 -1
  132. prefect/server/ui-v2/assets/{json-input-C9dkBSdc.js → json-input-Dlzy_XLK.js} +2 -2
  133. prefect/server/ui-v2/assets/{json-input-C9dkBSdc.js.map → json-input-Dlzy_XLK.js.map} +1 -1
  134. prefect/server/ui-v2/assets/{key._key-BBVH44_R.js → key._key-DN_txnIw.js} +2 -2
  135. prefect/server/ui-v2/assets/{key._key-BBVH44_R.js.map → key._key-DN_txnIw.js.map} +1 -1
  136. prefect/server/ui-v2/assets/{lazy-markdown-BoMKGRXo.js → lazy-markdown-CPQjrQrX.js} +2 -2
  137. prefect/server/ui-v2/assets/{lazy-markdown-BoMKGRXo.js.map → lazy-markdown-CPQjrQrX.js.map} +1 -1
  138. prefect/server/ui-v2/assets/{login-BmmIDesJ.js → login-BsnFlv-8.js} +2 -2
  139. prefect/server/ui-v2/assets/{login-BmmIDesJ.js.map → login-BsnFlv-8.js.map} +1 -1
  140. prefect/server/ui-v2/assets/{markdown-input-C6P8cYT1.js → markdown-input-b0zl1NLl.js} +2 -2
  141. prefect/server/ui-v2/assets/{markdown-input-C6P8cYT1.js.map → markdown-input-b0zl1NLl.js.map} +1 -1
  142. prefect/server/ui-v2/assets/{python-example-snippet-DPumgTpL.js → python-example-snippet-W9Z_3hjQ.js} +3 -3
  143. prefect/server/ui-v2/assets/{python-example-snippet-DPumgTpL.js.map → python-example-snippet-W9Z_3hjQ.js.map} +1 -1
  144. prefect/server/ui-v2/assets/{python-input-DX4uV8MF.js → python-input-EKDBgTDE.js} +2 -2
  145. prefect/server/ui-v2/assets/{python-input-DX4uV8MF.js.map → python-input-EKDBgTDE.js.map} +1 -1
  146. prefect/server/ui-v2/assets/{radio-group-DeNK-Ob0.js → radio-group-BMeznoY8.js} +2 -2
  147. prefect/server/ui-v2/assets/{radio-group-DeNK-Ob0.js.map → radio-group-BMeznoY8.js.map} +1 -1
  148. prefect/server/ui-v2/assets/{route-error-state-C9CbByMx.js → route-error-state-BGOi4dn-.js} +2 -2
  149. prefect/server/ui-v2/assets/{route-error-state-C9CbByMx.js.map → route-error-state-BGOi4dn-.js.map} +1 -1
  150. prefect/server/ui-v2/assets/{schema-form-B45xnsnK.js → schema-form-BHWTZ8Sy.js} +2 -2
  151. prefect/server/ui-v2/assets/{schema-form-B45xnsnK.js.map → schema-form-BHWTZ8Sy.js.map} +1 -1
  152. prefect/server/ui-v2/assets/{schema-form-input-string-format-datetime-BJj81bu-.js → schema-form-input-string-format-datetime-hWIr4wQr.js} +4 -4
  153. prefect/server/ui-v2/assets/{schema-form-input-string-format-datetime-BJj81bu-.js.map → schema-form-input-string-format-datetime-hWIr4wQr.js.map} +1 -1
  154. prefect/server/ui-v2/assets/{settings-CbkeWqQ9.js → settings-DVSPGBen.js} +2 -2
  155. prefect/server/ui-v2/assets/{settings-CbkeWqQ9.js.map → settings-DVSPGBen.js.map} +1 -1
  156. prefect/server/ui-v2/assets/{sort-filter-DM7SvBB0.js → sort-filter-MiwMjIYc.js} +2 -2
  157. prefect/server/ui-v2/assets/{sort-filter-DM7SvBB0.js.map → sort-filter-MiwMjIYc.js.map} +1 -1
  158. prefect/server/ui-v2/assets/{table-CEPo6xb_.js → table-BJkw82b1.js} +2 -2
  159. prefect/server/ui-v2/assets/{table-CEPo6xb_.js.map → table-BJkw82b1.js.map} +1 -1
  160. prefect/server/ui-v2/assets/{tags-input-DJiZSVHp.js → tags-input-1KkWhGJZ.js} +2 -2
  161. prefect/server/ui-v2/assets/{tags-input-DJiZSVHp.js.map → tags-input-1KkWhGJZ.js.map} +1 -1
  162. prefect/server/ui-v2/assets/{task-run-concurrency-limits-reset-dialog-vJEkvqWp.js → task-run-concurrency-limits-reset-dialog-ClBlDic_.js} +2 -2
  163. prefect/server/ui-v2/assets/{task-run-concurrency-limits-reset-dialog-vJEkvqWp.js.map → task-run-concurrency-limits-reset-dialog-ClBlDic_.js.map} +1 -1
  164. prefect/server/ui-v2/assets/{task-run._id-BCnDnXrL.js → task-run._id-48TwMBP1.js} +2 -2
  165. prefect/server/ui-v2/assets/{task-run._id-BCnDnXrL.js.map → task-run._id-48TwMBP1.js.map} +1 -1
  166. prefect/server/ui-v2/assets/{task-run._id-ByJw1K82.js → task-run._id-BmK7HGNl.js} +2 -2
  167. prefect/server/ui-v2/assets/{task-run._id-ByJw1K82.js.map → task-run._id-BmK7HGNl.js.map} +1 -1
  168. prefect/server/ui-v2/assets/{task-runs-pagination-DbjB6XnY.js → task-runs-pagination-DA4izCRv.js} +2 -2
  169. prefect/server/ui-v2/assets/{task-runs-pagination-DbjB6XnY.js.map → task-runs-pagination-DA4izCRv.js.map} +1 -1
  170. prefect/server/ui-v2/assets/{textarea-BX8KbLGx.js → textarea-BqtBNhJB.js} +2 -2
  171. prefect/server/ui-v2/assets/{textarea-BX8KbLGx.js.map → textarea-BqtBNhJB.js.map} +1 -1
  172. prefect/server/ui-v2/assets/{timezone-select-TBj2n6Ox.js → timezone-select-BgD_PENN.js} +2 -2
  173. prefect/server/ui-v2/assets/{timezone-select-TBj2n6Ox.js.map → timezone-select-BgD_PENN.js.map} +1 -1
  174. prefect/server/ui-v2/assets/{toggle-group-D7mfSUim.js → toggle-group-ChA-JYQB.js} +2 -2
  175. prefect/server/ui-v2/assets/{toggle-group-D7mfSUim.js.map → toggle-group-ChA-JYQB.js.map} +1 -1
  176. prefect/server/ui-v2/assets/{use-delete-automation-confirmation-dialog-BpBSjz60.js → use-delete-automation-confirmation-dialog-Da1iWNZ_.js} +2 -2
  177. prefect/server/ui-v2/assets/{use-delete-automation-confirmation-dialog-BpBSjz60.js.map → use-delete-automation-confirmation-dialog-Da1iWNZ_.js.map} +1 -1
  178. prefect/server/ui-v2/assets/{use-delete-block-document-confirmation-dialog-BjKsNw6b.js → use-delete-block-document-confirmation-dialog-DfrxGSyY.js} +2 -2
  179. prefect/server/ui-v2/assets/{use-delete-block-document-confirmation-dialog-BjKsNw6b.js.map → use-delete-block-document-confirmation-dialog-DfrxGSyY.js.map} +1 -1
  180. prefect/server/ui-v2/assets/{use-flow-runs-selected-rows-B_BlBMic.js → use-flow-runs-selected-rows-CYOsQ-Df.js} +2 -2
  181. prefect/server/ui-v2/assets/{use-flow-runs-selected-rows-B_BlBMic.js.map → use-flow-runs-selected-rows-CYOsQ-Df.js.map} +1 -1
  182. prefect/server/ui-v2/assets/{use-get-artifacts-flow-task-runs-BfE433bC.js → use-get-artifacts-flow-task-runs-C0V3_gYz.js} +2 -2
  183. prefect/server/ui-v2/assets/{use-get-artifacts-flow-task-runs-BfE433bC.js.map → use-get-artifacts-flow-task-runs-C0V3_gYz.js.map} +1 -1
  184. prefect/server/ui-v2/assets/{use-quick-run-qrtcF-DD.js → use-quick-run-CgM0EheE.js} +2 -2
  185. prefect/server/ui-v2/assets/{use-quick-run-qrtcF-DD.js.map → use-quick-run-CgM0EheE.js.map} +1 -1
  186. prefect/server/ui-v2/assets/{use-stepper-CVy1_GBw.js → use-stepper-CSAs1T4U.js} +2 -2
  187. prefect/server/ui-v2/assets/{use-stepper-CVy1_GBw.js.map → use-stepper-CSAs1T4U.js.map} +1 -1
  188. prefect/server/ui-v2/assets/{utilities-D5-00wjP.js → utilities-DqaYuzh1.js} +2 -2
  189. prefect/server/ui-v2/assets/{utilities-D5-00wjP.js.map → utilities-DqaYuzh1.js.map} +1 -1
  190. prefect/server/ui-v2/assets/{vendor-date-7GxEwcQM.js → vendor-date-JS-ReHrg.js} +2 -2
  191. prefect/server/ui-v2/assets/{vendor-date-7GxEwcQM.js.map → vendor-date-JS-ReHrg.js.map} +1 -1
  192. prefect/server/ui-v2/assets/{vendor-graphs-R8z6S3Jg.js → vendor-graphs-BRVnayIy.js} +2 -2
  193. prefect/server/ui-v2/assets/{vendor-graphs-R8z6S3Jg.js.map → vendor-graphs-BRVnayIy.js.map} +1 -1
  194. prefect/server/ui-v2/assets/{vendor-radix-CznP1SOq.js → vendor-radix-BZJHvSaq.js} +9 -9
  195. prefect/server/ui-v2/assets/{vendor-radix-CznP1SOq.js.map → vendor-radix-BZJHvSaq.js.map} +1 -1
  196. prefect/server/ui-v2/assets/{work-pool-filter-D8MkTbSW.js → work-pool-filter-T6dM4jKE.js} +2 -2
  197. prefect/server/ui-v2/assets/{work-pool-filter-D8MkTbSW.js.map → work-pool-filter-T6dM4jKE.js.map} +1 -1
  198. prefect/server/ui-v2/assets/{work-pool-queue-toggle-CbI7Gfu5.js → work-pool-queue-toggle-CdUw2mAH.js} +2 -2
  199. prefect/server/ui-v2/assets/{work-pool-queue-toggle-CbI7Gfu5.js.map → work-pool-queue-toggle-CdUw2mAH.js.map} +1 -1
  200. prefect/server/ui-v2/assets/{work-pool._workPoolName-CCzzgVV2.js → work-pool._workPoolName-DD8gh9X-.js} +2 -2
  201. prefect/server/ui-v2/assets/{work-pool._workPoolName-CCzzgVV2.js.map → work-pool._workPoolName-DD8gh9X-.js.map} +1 -1
  202. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-BAgiuU_j.js → work-pool_._workPoolName.edit-mmnZTSTy.js} +2 -2
  203. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-BAgiuU_j.js.map → work-pool_._workPoolName.edit-mmnZTSTy.js.map} +1 -1
  204. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue._workQueueName-BUawWJEy.js → work-pool_._workPoolName.queue._workQueueName-fbwQqkVN.js} +2 -2
  205. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue._workQueueName-BUawWJEy.js.map → work-pool_._workPoolName.queue._workQueueName-fbwQqkVN.js.map} +1 -1
  206. prefect/server/ui-v2/assets/{work-queue-icon-text-D_G_UCJX.js → work-queue-icon-text-YyKOH96e.js} +2 -2
  207. prefect/server/ui-v2/assets/{work-queue-icon-text-D_G_UCJX.js.map → work-queue-icon-text-YyKOH96e.js.map} +1 -1
  208. prefect/server/ui-v2/index.html +3 -3
  209. prefect/settings/models/runner.py +11 -0
  210. prefect/tasks.py +30 -4
  211. {prefect-3.6.14.dev1.dist-info → prefect-3.6.14.dev2.dist-info}/METADATA +1 -1
  212. {prefect-3.6.14.dev1.dist-info → prefect-3.6.14.dev2.dist-info}/RECORD +215 -215
  213. prefect/server/ui-v2/assets/cronstrue-WDy4rv2V.js +0 -2
  214. prefect/server/ui-v2/assets/cronstrue-WDy4rv2V.js.map +0 -1
  215. prefect/server/ui-v2/assets/deployment_._id.duplicate-C_kNyCA9.js +0 -2
  216. prefect/server/ui-v2/assets/deployment_._id.edit-BP8pfTOR.js +0 -2
  217. prefect/server/ui-v2/assets/flow-run-graph-B1vF1w0Z.js +0 -2
  218. prefect/server/ui-v2/assets/flow-run-graph-B1vF1w0Z.js.map +0 -1
  219. prefect/server/ui-v2/assets/flow-run._id-BHY61H6u.js +0 -4
  220. prefect/server/ui-v2/assets/flow-run._id-BHY61H6u.js.map +0 -1
  221. prefect/server/ui-v2/assets/index-BYQ1P2TC.js +0 -2
  222. prefect/server/ui-v2/assets/index-Cd7pM9pk.js +0 -17
  223. prefect/server/ui-v2/assets/index-Cd7pM9pk.js.map +0 -1
  224. prefect/server/ui-v2/assets/index-DvKYj8ko.js +0 -2
  225. prefect/server/ui-v2/assets/index-DvKYj8ko.js.map +0 -1
  226. {prefect-3.6.14.dev1.dist-info → prefect-3.6.14.dev2.dist-info}/WHEEL +0 -0
  227. {prefect-3.6.14.dev1.dist-info → prefect-3.6.14.dev2.dist-info}/entry_points.txt +0 -0
  228. {prefect-3.6.14.dev1.dist-info → prefect-3.6.14.dev2.dist-info}/licenses/LICENSE +0 -0
@@ -1157,5 +1157,5 @@ void main(void)\r
1157
1157
  font-style: ${e.style};
1158
1158
  font-display: ${e.display};
1159
1159
  }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(t){this._stylesheet!==t&&(this._stylesheet=t,this.styleID++)}normalizeColor(t){return Array.isArray(t)&&(t=Fw(t)),typeof t=="number"?Nw(t):t}dropShadowToCSS(){let t=this.normalizeColor(this.dropShadowColor);const e=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),n=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);t.startsWith("#")&&e<1&&(t+=(e*255|0).toString(16).padStart(2,"0"));const s=`${i}px ${n}px`;return this.dropShadowBlur>0?`text-shadow: ${s} ${this.dropShadowBlur}px ${t}`:`text-shadow: ${s} ${t}`}reset(){Object.assign(this,Wn.defaultOptions)}onBeforeDraw(){const{fontsDirty:t}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&t?new Promise(e=>setTimeout(e,100)):Promise.resolve()}get isSafari(){const{userAgent:t}=ot.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}set fillGradientStops(t){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(t){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(t){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(t){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(t){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(t){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(t){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};ec.availableFonts={},ec.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let Zl=ec;const da=class Xn extends Yt{constructor(t="",e={}){super(ct.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const i=new Image,n=ct.from(i,{scaleMode:ot.SCALE_MODE,resourceOptions:{autoLoad:!1}});n.orig=new yt,n.trim=new yt,this.texture=n;const s="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg"),h=document.createElementNS(s,"foreignObject"),l=document.createElementNS(o,"div"),u=document.createElementNS(o,"style");h.setAttribute("width","10000"),h.setAttribute("height","10000"),h.style.overflow="hidden",a.appendChild(h),this.maxWidth=Xn.defaultMaxWidth,this.maxHeight=Xn.defaultMaxHeight,this._domElement=l,this._styleElement=u,this._svgRoot=a,this._foreignObject=h,this._foreignObject.appendChild(u),this._foreignObject.appendChild(l),this._image=i,this._loadImage=new Image,this._autoResolution=Xn.defaultAutoResolution,this._resolution=Xn.defaultResolution??ot.RESOLUTION,this.text=t,this.style=e}measureText(t){const{text:e,style:i,resolution:n}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},t);Object.assign(this._domElement,{innerHTML:e,style:i.toCSS(n)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const s=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=s;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const h=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",h.toString()),this._svgRoot.setAttribute("height",l.toString()),e!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:this._style?.toCSS(n)}),this._styleElement.textContent=this._style?.toGlobalCSS()),{width:h+i.padding*2,height:l+i.padding*2}}async updateText(t=!0){const{style:e,_image:i,_loadImage:n}=this;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),!this.dirty&&t)return;const{width:s,height:o}=this.measureText();i.width=n.width=Math.ceil(Math.max(1,s)),i.height=n.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(h=>{n.onload=async()=>{if(a<this._updateID){h();return}await e.onBeforeDraw(),i.src=n.src,n.onload=null,n.src="",this.updateTexture(),h()};const l=new XMLSerializer().serializeToString(this._svgRoot);n.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){return this._image}updateTexture(){const{style:t,texture:e,_image:i,resolution:n}=this,{padding:s}=t,{baseTexture:o}=e;e.trim.width=e._frame.width=i.width/n,e.trim.height=e._frame.height=i.height/n,e.trim.x=-s,e.trim.y=-s,e.orig.width=e._frame.width-s*2,e.orig.height=e._frame.height-s*2,this._onTextureUpdate(),o.setRealSize(i.width,i.height,n),this.dirty=!1}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),super._render(t)}_renderCanvas(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(t)}getLocalBounds(t){return this.updateText(!0),super.getLocalBounds(t)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(t){typeof t=="boolean"&&(t={children:t}),t=Object.assign({},Xn.defaultDestroyOptions,t),super.destroy(t);const e=null;this.ownsStyle&&this._style?.cleanFonts(),this._style=e,this._svgRoot?.remove(),this._svgRoot=e,this._domElement?.remove(),this._domElement=e,this._foreignObject?.remove(),this._foreignObject=e,this._styleElement?.remove(),this._styleElement=e,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=e,this._image.src="",this._image=e}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(t){this.updateText(!0);const e=Ei(this.scale.x)||1;this.scale.x=e*t/this._image.width/this.resolution,this._width=t}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(t){this.updateText(!0);const e=Ei(this.scale.y)||1;this.scale.y=e*t/this._image.height/this.resolution,this._height=t}get style(){return this._style}set style(t){this._style!==t&&(t=t||{},t instanceof Zl?(this.ownsStyle=!1,this._style=t):t instanceof Ni?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=Zl.from(t)):(this.ownsStyle=!0,this._style=new Zl(t)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(t){t=String(t===""||t===null||t===void 0?" ":t),t=this.sanitiseText(t),this._text!==t&&(this._text=t,this.dirty=!0)}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)}sanitiseText(t){return t.replace(/<br>/gi,"<br/>").replace(/<hr>/gi,"<hr/>").replace(/&nbsp;/gi,"&#160;")}};da.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0},da.defaultMaxWidth=2024,da.defaultMaxHeight=2024,da.defaultAutoResolution=!0;function $T(){const r=new Map;function t(o,a){const h=r.get(o);return h?h.add(a):r.set(o,new Set([a])),()=>i(o,a)}function e(o,a){const h=l=>{i(o,h),a(l)};t(o,h)}function i(o,a){r.get(o)?.delete(a)}function n(o,a){r.get(o)?.forEach(h=>h(a))}function s(){r.clear()}return{on:t,off:i,once:e,emit:n,clear:s}}const rt=$T();function Re(r){let t;return new Promise(e=>{t=e,rt.on(r,t)}).then(e=>(rt.off(r,t),e))}let ei=null;const uy=new ResizeObserver(()=>{ei&&rt.emit("stageUpdated",ei)});function YT(r){ei=r,uy.observe(ei),rt.emit("stageCreated",ei)}function qT(){ei&&uy.unobserve(ei),ei=null}async function Wc(){return ei||await Re("stageCreated")}let $e=null;async function ZT(){const r=await Wc();QT(r),rt.on("stageUpdated",JT)}function KT(){$e&&($e.destroy(!0,{children:!0}),$e=null)}function QT(r){$e||($e=new U0({backgroundAlpha:0,resizeTo:r,antialias:!0,resolution:Math.ceil(window.devicePixelRatio)}),$e.stage.sortableChildren=!0,r.appendChild($e.view),rt.emit("applicationCreated",$e))}async function Qt(){return $e||await Re("applicationCreated")}function JT(r){$e&&($e.resizeTo=r,rt.emit("applicationResized",$e))}let Ma=new Map;function tE(){Ma=new Map}async function So(r,t){const e=`${r.toString()}-${JSON.stringify(t)}`;if(Ma.has(e))return Ma.get(e);const i=await r(...t);return Ma.set(e,i),i}let eo=null;const eE={animationDuration:500,disableAnimationsThreshold:500,disableEdgesThreshold:500,fetchEvents:()=>[],fetchEventsInterval:3e4,theme:"dark"};function rE(r){return{...eE,...r}}function iE(r){nE(r)}function nE(r){const t=rE(r);if(!eo){eo=t,rt.emit("configCreated",t);return}Object.assign(eo,t),rt.emit("configUpdated",t)}function sE(){eo=null}async function Ue(){return eo||await Re("configCreated")}const Zi=new yt;class oE{constructor(t={}){this._recursive=typeof t.recursive=="boolean"?t.recursive:!0,this._toggle=t.toggle||"visible",this._targetList=new Set}add(t){return this._targetList.add(t),this}addAll(t){for(let e=0,i=t.length;e<i;e++)this._targetList.add(t[e]);return this}remove(t){return this._targetList.delete(t),this}removeAll(t){for(let e=0,i=t.length;e<i;e++)this._targetList.delete(t[e]);return this}clear(){return this._targetList.clear(),this}cull(t,e=!1){return e||this.uncull(),this._targetList.forEach(i=>{e||i.getBounds(!1,Zi),this._recursive?this.cullRecursive(t,i,e):(e&&i._bounds.getRectangle(t),i[this._toggle]=Zi.right>t.left&&Zi.left<t.right&&Zi.bottom>t.top&&Zi.top<t.bottom)}),this}uncull(){return this._targetList.forEach(t=>{this._recursive?this.uncullRecursive(t):t[this._toggle]=!1}),this}cullRecursive(t,e,i){const n=i?e._bounds.getRectangle(Zi):e.getBounds(!0,Zi);if(e[this._toggle]=n.right>t.left&&n.left<t.right&&n.bottom>t.top&&n.top<t.bottom,!(n.left>=t.left&&n.top>=t.top&&n.right<=t.right&&n.bottom<=t.bottom)&&e[this._toggle]&&e.children&&e.children.length){const s=e.children;for(let o=0,a=s.length;o<a;o++)this.cullRecursive(t,s[o])}}uncullRecursive(t){if(t[this._toggle]=!0,t.children&&t.children.length){const e=t.children;for(let i=0,n=e.length;i<n;i++)this.uncullRecursive(e[i])}}}var Ra={exports:{}};Ra.exports;var dm;function aE(){return dm||(dm=1,(function(r,t){var e=200,i="__lodash_hash_undefined__",n=1,s=2,o=9007199254740991,a="[object Arguments]",h="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",w="[object Object]",_="[object Promise]",T="[object Proxy]",b="[object RegExp]",x="[object Set]",y="[object String]",S="[object Symbol]",D="[object Undefined]",G="[object WeakMap]",O="[object ArrayBuffer]",N="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",j="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",B="[object Uint8ClampedArray]",I="[object Uint16Array]",M="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,$={};$[P]=$[F]=$[j]=$[E]=$[A]=$[C]=$[B]=$[I]=$[M]=!0,$[a]=$[h]=$[O]=$[u]=$[N]=$[c]=$[d]=$[f]=$[m]=$[g]=$[w]=$[b]=$[x]=$[y]=$[G]=!1;var tt=typeof qe=="object"&&qe&&qe.Object===Object&&qe,et=typeof self=="object"&&self&&self.Object===Object&&self,K=tt||et||Function("return this")(),U=t&&!t.nodeType&&t,X=U&&!0&&r&&!r.nodeType&&r,q=X&&X.exports===U,z=q&&tt.process,at=(function(){try{return z&&z.binding&&z.binding("util")}catch{}})(),nt=at&&at.isTypedArray;function J(R,H){for(var Z=-1,lt=R==null?0:R.length,Ot=0,xt=[];++Z<lt;){var Wt=R[Z];H(Wt,Z,R)&&(xt[Ot++]=Wt)}return xt}function ht(R,H){for(var Z=-1,lt=H.length,Ot=R.length;++Z<lt;)R[Ot+Z]=H[Z];return R}function Ct(R,H){for(var Z=-1,lt=R==null?0:R.length;++Z<lt;)if(H(R[Z],Z,R))return!0;return!1}function Pt(R,H){for(var Z=-1,lt=Array(R);++Z<R;)lt[Z]=H(Z);return lt}function ir(R){return function(H){return R(H)}}function xe(R,H){return R.has(H)}function ci(R,H){return R?.[H]}function di(R){var H=-1,Z=Array(R.size);return R.forEach(function(lt,Ot){Z[++H]=[Ot,lt]}),Z}function fi(R,H){return function(Z){return R(H(Z))}}function Xh(R){var H=-1,Z=Array(R.size);return R.forEach(function(lt){Z[++H]=lt}),Z}var Vh=Array.prototype,$h=Function.prototype,Hi=Object.prototype,ws=K["__core-js_shared__"],pi=$h.toString,we=Hi.hasOwnProperty,bs=(function(){var R=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""})(),Do=Hi.toString,Yh=RegExp("^"+pi.call(we).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),On=q?K.Buffer:void 0,Gr=K.Symbol,W=K.Uint8Array,Y=Hi.propertyIsEnumerable,At=Vh.splice,Et=Gr?Gr.toStringTag:void 0,Rt=Object.getOwnPropertySymbols,_t=On?On.isBuffer:void 0,_r=fi(Object.keys,Object),nr=Nn(K,"DataView"),te=Nn(K,"Map"),He=Nn(K,"Promise"),Gi=Nn(K,"Set"),xr=Nn(K,"WeakMap"),ue=Nn(Object,"create"),Oo=Xi(nr),ko=Xi(te),No=Xi(He),zi=Xi(Gi),Ts=Xi(xr),ji=Gr?Gr.prototype:void 0,Wi=ji?ji.valueOf:void 0;function sr(R){var H=-1,Z=R==null?0:R.length;for(this.clear();++H<Z;){var lt=R[H];this.set(lt[0],lt[1])}}function Fo(){this.__data__=ue?ue(null):{},this.size=0}function Lo(R){var H=this.has(R)&&delete this.__data__[R];return this.size-=H?1:0,H}function Es(R){var H=this.__data__;if(ue){var Z=H[R];return Z===i?void 0:Z}return we.call(H,R)?H[R]:void 0}function Bo(R){var H=this.__data__;return ue?H[R]!==void 0:we.call(H,R)}function As(R,H){var Z=this.__data__;return this.size+=this.has(R)?0:1,Z[R]=ue&&H===void 0?i:H,this}sr.prototype.clear=Fo,sr.prototype.delete=Lo,sr.prototype.get=Es,sr.prototype.has=Bo,sr.prototype.set=As;function Ge(R){var H=-1,Z=R==null?0:R.length;for(this.clear();++H<Z;){var lt=R[H];this.set(lt[0],lt[1])}}function qh(){this.__data__=[],this.size=0}function Ss(R){var H=this.__data__,Z=Ho(H,R);if(Z<0)return!1;var lt=H.length-1;return Z==lt?H.pop():At.call(H,Z,1),--this.size,!0}function mi(R){var H=this.__data__,Z=Ho(H,R);return Z<0?void 0:H[Z][1]}function kn(R){return Ho(this.__data__,R)>-1}function Zh(R,H){var Z=this.__data__,lt=Ho(Z,R);return lt<0?(++this.size,Z.push([R,H])):Z[lt][1]=H,this}Ge.prototype.clear=qh,Ge.prototype.delete=Ss,Ge.prototype.get=mi,Ge.prototype.has=kn,Ge.prototype.set=Zh;function wr(R){var H=-1,Z=R==null?0:R.length;for(this.clear();++H<Z;){var lt=R[H];this.set(lt[0],lt[1])}}function R_(){this.size=0,this.__data__={hash:new sr,map:new(te||Ge),string:new sr}}function P_(R){var H=Go(this,R).delete(R);return this.size-=H?1:0,H}function I_(R){return Go(this,R).get(R)}function D_(R){return Go(this,R).has(R)}function O_(R,H){var Z=Go(this,R),lt=Z.size;return Z.set(R,H),this.size+=Z.size==lt?0:1,this}wr.prototype.clear=R_,wr.prototype.delete=P_,wr.prototype.get=I_,wr.prototype.has=D_,wr.prototype.set=O_;function Uo(R){var H=-1,Z=R==null?0:R.length;for(this.__data__=new wr;++H<Z;)this.add(R[H])}function k_(R){return this.__data__.set(R,i),this}function N_(R){return this.__data__.has(R)}Uo.prototype.add=Uo.prototype.push=k_,Uo.prototype.has=N_;function gi(R){var H=this.__data__=new Ge(R);this.size=H.size}function F_(){this.__data__=new Ge,this.size=0}function L_(R){var H=this.__data__,Z=H.delete(R);return this.size=H.size,Z}function B_(R){return this.__data__.get(R)}function U_(R){return this.__data__.has(R)}function H_(R,H){var Z=this.__data__;if(Z instanceof Ge){var lt=Z.__data__;if(!te||lt.length<e-1)return lt.push([R,H]),this.size=++Z.size,this;Z=this.__data__=new wr(lt)}return Z.set(R,H),this.size=Z.size,this}gi.prototype.clear=F_,gi.prototype.delete=L_,gi.prototype.get=B_,gi.prototype.has=U_,gi.prototype.set=H_;function G_(R,H){var Z=zo(R),lt=!Z&&rx(R),Ot=!Z&&!lt&&Kh(R),xt=!Z&&!lt&&!Ot&&Fd(R),Wt=Z||lt||Ot||xt,se=Wt?Pt(R.length,String):[],ce=se.length;for(var Lt in R)we.call(R,Lt)&&!(Wt&&(Lt=="length"||Ot&&(Lt=="offset"||Lt=="parent")||xt&&(Lt=="buffer"||Lt=="byteLength"||Lt=="byteOffset")||K_(Lt,ce)))&&se.push(Lt);return se}function Ho(R,H){for(var Z=R.length;Z--;)if(Dd(R[Z][0],H))return Z;return-1}function z_(R,H,Z){var lt=H(R);return zo(R)?lt:ht(lt,Z(R))}function Cs(R){return R==null?R===void 0?D:v:Et&&Et in Object(R)?q_(R):ex(R)}function Md(R){return Ms(R)&&Cs(R)==a}function Rd(R,H,Z,lt,Ot){return R===H?!0:R==null||H==null||!Ms(R)&&!Ms(H)?R!==R&&H!==H:j_(R,H,Z,lt,Rd,Ot)}function j_(R,H,Z,lt,Ot,xt){var Wt=zo(R),se=zo(H),ce=Wt?h:yi(R),Lt=se?h:yi(H);ce=ce==a?w:ce,Lt=Lt==a?w:Lt;var Pe=ce==w,or=Lt==w,fe=ce==Lt;if(fe&&Kh(R)){if(!Kh(H))return!1;Wt=!0,Pe=!1}if(fe&&!Pe)return xt||(xt=new gi),Wt||Fd(R)?Pd(R,H,Z,lt,Ot,xt):$_(R,H,ce,Z,lt,Ot,xt);if(!(Z&n)){var ze=Pe&&we.call(R,"__wrapped__"),je=or&&we.call(H,"__wrapped__");if(ze||je){var vi=ze?R.value():R,zr=je?H.value():H;return xt||(xt=new gi),Ot(vi,zr,Z,lt,xt)}}return fe?(xt||(xt=new gi),Y_(R,H,Z,lt,Ot,xt)):!1}function W_(R){if(!Nd(R)||J_(R))return!1;var H=Od(R)?Yh:L;return H.test(Xi(R))}function X_(R){return Ms(R)&&kd(R.length)&&!!$[Cs(R)]}function V_(R){if(!tx(R))return _r(R);var H=[];for(var Z in Object(R))we.call(R,Z)&&Z!="constructor"&&H.push(Z);return H}function Pd(R,H,Z,lt,Ot,xt){var Wt=Z&n,se=R.length,ce=H.length;if(se!=ce&&!(Wt&&ce>se))return!1;var Lt=xt.get(R);if(Lt&&xt.get(H))return Lt==H;var Pe=-1,or=!0,fe=Z&s?new Uo:void 0;for(xt.set(R,H),xt.set(H,R);++Pe<se;){var ze=R[Pe],je=H[Pe];if(lt)var vi=Wt?lt(je,ze,Pe,H,R,xt):lt(ze,je,Pe,R,H,xt);if(vi!==void 0){if(vi)continue;or=!1;break}if(fe){if(!Ct(H,function(zr,Vi){if(!xe(fe,Vi)&&(ze===zr||Ot(ze,zr,Z,lt,xt)))return fe.push(Vi)})){or=!1;break}}else if(!(ze===je||Ot(ze,je,Z,lt,xt))){or=!1;break}}return xt.delete(R),xt.delete(H),or}function $_(R,H,Z,lt,Ot,xt,Wt){switch(Z){case N:if(R.byteLength!=H.byteLength||R.byteOffset!=H.byteOffset)return!1;R=R.buffer,H=H.buffer;case O:return!(R.byteLength!=H.byteLength||!xt(new W(R),new W(H)));case u:case c:case g:return Dd(+R,+H);case d:return R.name==H.name&&R.message==H.message;case b:case y:return R==H+"";case m:var se=di;case x:var ce=lt&n;if(se||(se=Xh),R.size!=H.size&&!ce)return!1;var Lt=Wt.get(R);if(Lt)return Lt==H;lt|=s,Wt.set(R,H);var Pe=Pd(se(R),se(H),lt,Ot,xt,Wt);return Wt.delete(R),Pe;case S:if(Wi)return Wi.call(R)==Wi.call(H)}return!1}function Y_(R,H,Z,lt,Ot,xt){var Wt=Z&n,se=Id(R),ce=se.length,Lt=Id(H),Pe=Lt.length;if(ce!=Pe&&!Wt)return!1;for(var or=ce;or--;){var fe=se[or];if(!(Wt?fe in H:we.call(H,fe)))return!1}var ze=xt.get(R);if(ze&&xt.get(H))return ze==H;var je=!0;xt.set(R,H),xt.set(H,R);for(var vi=Wt;++or<ce;){fe=se[or];var zr=R[fe],Vi=H[fe];if(lt)var Ld=Wt?lt(Vi,zr,fe,H,R,xt):lt(zr,Vi,fe,R,H,xt);if(!(Ld===void 0?zr===Vi||Ot(zr,Vi,Z,lt,xt):Ld)){je=!1;break}vi||(vi=fe=="constructor")}if(je&&!vi){var jo=R.constructor,Wo=H.constructor;jo!=Wo&&"constructor"in R&&"constructor"in H&&!(typeof jo=="function"&&jo instanceof jo&&typeof Wo=="function"&&Wo instanceof Wo)&&(je=!1)}return xt.delete(R),xt.delete(H),je}function Id(R){return z_(R,sx,Z_)}function Go(R,H){var Z=R.__data__;return Q_(H)?Z[typeof H=="string"?"string":"hash"]:Z.map}function Nn(R,H){var Z=ci(R,H);return W_(Z)?Z:void 0}function q_(R){var H=we.call(R,Et),Z=R[Et];try{R[Et]=void 0;var lt=!0}catch{}var Ot=Do.call(R);return lt&&(H?R[Et]=Z:delete R[Et]),Ot}var Z_=Rt?function(R){return R==null?[]:(R=Object(R),J(Rt(R),function(H){return Y.call(R,H)}))}:ox,yi=Cs;(nr&&yi(new nr(new ArrayBuffer(1)))!=N||te&&yi(new te)!=m||He&&yi(He.resolve())!=_||Gi&&yi(new Gi)!=x||xr&&yi(new xr)!=G)&&(yi=function(R){var H=Cs(R),Z=H==w?R.constructor:void 0,lt=Z?Xi(Z):"";if(lt)switch(lt){case Oo:return N;case ko:return m;case No:return _;case zi:return x;case Ts:return G}return H});function K_(R,H){return H=H??o,!!H&&(typeof R=="number"||V.test(R))&&R>-1&&R%1==0&&R<H}function Q_(R){var H=typeof R;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?R!=="__proto__":R===null}function J_(R){return!!bs&&bs in R}function tx(R){var H=R&&R.constructor,Z=typeof H=="function"&&H.prototype||Hi;return R===Z}function ex(R){return Do.call(R)}function Xi(R){if(R!=null){try{return pi.call(R)}catch{}try{return R+""}catch{}}return""}function Dd(R,H){return R===H||R!==R&&H!==H}var rx=Md((function(){return arguments})())?Md:function(R){return Ms(R)&&we.call(R,"callee")&&!Y.call(R,"callee")},zo=Array.isArray;function ix(R){return R!=null&&kd(R.length)&&!Od(R)}var Kh=_t||ax;function nx(R,H){return Rd(R,H)}function Od(R){if(!Nd(R))return!1;var H=Cs(R);return H==f||H==p||H==l||H==T}function kd(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=o}function Nd(R){var H=typeof R;return R!=null&&(H=="object"||H=="function")}function Ms(R){return R!=null&&typeof R=="object"}var Fd=nt?ir(nt):X_;function sx(R){return ix(R)?G_(R):V_(R)}function ox(){return[]}function ax(){return!1}r.exports=nx})(Ra,Ra.exports)),Ra.exports}var hE=aE();const cy=bo(hE);class er{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}var lE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uE(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var dy={exports:{}};(function(r,t){(function(){var e,i;i=function(n){return r.exports=n},e={linear:function(n,s,o,a){return o*n/a+s},easeInQuad:function(n,s,o,a){return o*(n/=a)*n+s},easeOutQuad:function(n,s,o,a){return-o*(n/=a)*(n-2)+s},easeInOutQuad:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n+s:-o/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,o,a){return o*(n/=a)*n*n+s},easeOutCubic:function(n,s,o,a){return o*((n=n/a-1)*n*n+1)+s},easeInOutCubic:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n+s:o/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,o,a){return o*(n/=a)*n*n*n+s},easeOutQuart:function(n,s,o,a){return-o*((n=n/a-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n+s:-o/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,o,a){return o*(n/=a)*n*n*n*n+s},easeOutQuint:function(n,s,o,a){return o*((n=n/a-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n*n+s:o/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,o,a){return-o*Math.cos(n/a*(Math.PI/2))+o+s},easeOutSine:function(n,s,o,a){return o*Math.sin(n/a*(Math.PI/2))+s},easeInOutSine:function(n,s,o,a){return-o/2*(Math.cos(Math.PI*n/a)-1)+s},easeInExpo:function(n,s,o,a){return n===0?s:o*Math.pow(2,10*(n/a-1))+s},easeOutExpo:function(n,s,o,a){return n===a?s+o:o*(-Math.pow(2,-10*n/a)+1)+s},easeInOutExpo:function(n,s,o,a){return(n/=a/2)<1?o/2*Math.pow(2,10*(n-1))+s:o/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,o,a){return-o*(Math.sqrt(1-(n/=a)*n)-1)+s},easeOutCirc:function(n,s,o,a){return o*Math.sqrt(1-(n=n/a-1)*n)+s},easeInOutCirc:function(n,s,o,a){return(n/=a/2)<1?-o/2*(Math.sqrt(1-n*n)-1)+s:o/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,o,a){var h,l,u;return u=1.70158,l=0,h=o,n===0||(n/=a),l||(l=a*.3),h<Math.abs(o)?(h=o,u=l/4):u=l/(2*Math.PI)*Math.asin(o/h),-(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/l))+s},easeOutElastic:function(n,s,o,a){var h,l,u;return u=1.70158,l=0,h=o,n===0||(n/=a),l||(l=a*.3),h<Math.abs(o)?(h=o,u=l/4):u=l/(2*Math.PI)*Math.asin(o/h),h*Math.pow(2,-10*n)*Math.sin((n*a-u)*(2*Math.PI)/l)+o+s},easeInOutElastic:function(n,s,o,a){var h,l,u;return u=1.70158,l=0,h=o,n===0||(n/=a/2),l||(l=a*(.3*1.5)),h<Math.abs(o)?(h=o,u=l/4):u=l/(2*Math.PI)*Math.asin(o/h),n<1?-.5*(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/l))+s:h*Math.pow(2,-10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/l)*.5+o+s},easeInBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*(n/=a)*n*((h+1)*n-h)+s},easeOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*((n=n/a-1)*n*((h+1)*n+h)+1)+s},easeInOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),(n/=a/2)<1?o/2*(n*n*(((h*=1.525)+1)*n-h))+s:o/2*((n-=2)*n*(((h*=1.525)+1)*n+h)+2)+s},easeInBounce:function(n,s,o,a){var h;return h=e.easeOutBounce(a-n,0,o,a),o-h+s},easeOutBounce:function(n,s,o,a){return(n/=a)<1/2.75?o*(7.5625*n*n)+s:n<2/2.75?o*(7.5625*(n-=1.5/2.75)*n+.75)+s:n<2.5/2.75?o*(7.5625*(n-=2.25/2.75)*n+.9375)+s:o*(7.5625*(n-=2.625/2.75)*n+.984375)+s},easeInOutBounce:function(n,s,o,a){var h;return n<a/2?(h=e.easeInBounce(n*2,0,o,a),h*.5+s):(h=e.easeOutBounce(n*2-a,0,o,a),h*.5+o*.5+s)}},i(e)}).call(lE)})(dy);var cE=dy.exports;const fm=uE(cE);function kh(r,t){if(r){if(typeof r=="function")return r;if(typeof r=="string")return fm[r]}else return fm[t]}const dE={removeOnInterrupt:!1,ease:"linear",time:1e3};class fE extends er{constructor(t,e={}){super(t),this.startWidth=null,this.startHeight=null,this.deltaWidth=null,this.deltaHeight=null,this.width=null,this.height=null,this.time=0,this.options=Object.assign({},dE,e),this.options.ease=kh(this.options.ease),this.setupPosition(),this.setupZoom(),this.time=0}setupPosition(){typeof this.options.position<"u"?(this.startX=this.parent.center.x,this.startY=this.parent.center.y,this.deltaX=this.options.position.x-this.parent.center.x,this.deltaY=this.options.position.y-this.parent.center.y,this.keepCenter=!1):this.keepCenter=!0}setupZoom(){this.width=null,this.height=null,typeof this.options.scale<"u"?this.width=this.parent.screenWidth/this.options.scale:typeof this.options.scaleX<"u"||typeof this.options.scaleY<"u"?(typeof this.options.scaleX<"u"&&(this.width=this.parent.screenWidth/this.options.scaleX),typeof this.options.scaleY<"u"&&(this.height=this.parent.screenHeight/this.options.scaleY)):(typeof this.options.width<"u"&&(this.width=this.options.width),typeof this.options.height<"u"&&(this.height=this.options.height)),this.width!==null&&(this.startWidth=this.parent.screenWidthInWorldPixels,this.deltaWidth=this.width-this.startWidth),this.height!==null&&(this.startHeight=this.parent.screenHeightInWorldPixels,this.deltaHeight=this.height-this.startHeight)}down(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("animate"),!1}complete(){this.parent.plugins.remove("animate"),this.width!==null&&this.parent.fitWidth(this.width,this.keepCenter,this.height===null),this.height!==null&&this.parent.fitHeight(this.height,this.keepCenter,this.width===null),!this.keepCenter&&this.options.position&&this.parent.moveCenter(this.options.position),this.parent.emit("animate-end",this.parent),this.options.callbackOnComplete&&this.options.callbackOnComplete(this.parent)}update(t){if(this.paused)return;this.time+=t;const e=new mt(this.parent.scale.x,this.parent.scale.y);if(this.time>=this.options.time){const i=this.parent.width,n=this.parent.height;this.complete(),(i!==this.parent.width||n!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:e,type:"animate"})}else{const i=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const n=this.startWidth,s=this.deltaWidth;this.parent.fitWidth(n+s*i,this.keepCenter,this.height===null)}if(this.height!==null){const n=this.startHeight,s=this.deltaHeight;this.parent.fitHeight(n+s*i,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const n=this.startX,s=this.startY,o=this.deltaX,a=this.deltaY,h=new mt(this.parent.x,this.parent.y);this.parent.moveCenter(n+o*i,s+a*i),this.parent.emit("moved",{viewport:this.parent,original:h,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:e,type:"animate"})}}}const pE={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class mE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},pE,e),this.ease=kh(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const i=this.options.underflow.toLowerCase();i==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=i.indexOf("left")!==-1?-1:i.indexOf("right")!==-1?1:0,this.underflowY=i.indexOf("top")!==-1?-1:i.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const e=this.toX;e.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),e.time>=this.options.time?(this.parent.x=e.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(e.time,e.start,e.delta,this.options.time)}if(this.toY){const e=this.toY;e.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),e.time>=this.options.time?(this.parent.y=e.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(e.time,e.start,e.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const e=typeof t.x>"u"?0:t.x,i=typeof t.y>"u"?0:t.y,n=typeof t.width>"u"?this.parent.worldWidth:t.width,s=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.left<e,right:this.parent.right>n,top:this.parent.top<i,bottom:this.parent.bottom>s,topLeft:new mt(e*this.parent.scale.x,i*this.parent.scale.y),bottomRight:new mt(n*this.parent.scale.x-this.parent.screenWidth,s*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new mt(0,0),bottomRight:new mt(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,e;if(this.paused)return;let i,n=this.parent.plugins.get("decelerate",!0);n&&(n.x||n.y)&&(n.x&&n.percentChangeX===((t=n.options)==null?void 0:t.friction)||n.y&&n.percentChangeY===((e=n.options)==null?void 0:e.friction))&&(i=this.oob(),(i.left&&this.left||i.right&&this.right)&&(n.percentChangeX=this.options.friction),(i.top&&this.top||i.bottom&&this.bottom)&&(n.percentChangeY=this.options.friction));const s=this.parent.plugins.get("drag",!0)||{},o=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(o!=null&&o.active)&&(!this.toX||!this.toY)&&(!n.x||!n.y)){i=i||this.oob();const a=i.topLeft,h=i.bottomRight;if(!this.toX&&!n.x){let l=null;i.left&&this.left?l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-a.x:i.right&&this.right&&(l=this.parent.screenWorldWidth<this.parent.screenWidth?this.calcUnderflowX():-h.x),l!==null&&this.parent.x!==l&&(this.toX={time:0,start:this.parent.x,delta:l-this.parent.x,end:l},this.parent.emit("bounce-x-start",this.parent))}if(!this.toY&&!n.y){let l=null;i.top&&this.top?l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-a.y:i.bottom&&this.bottom&&(l=this.parent.screenWorldHeight<this.parent.screenHeight?this.calcUnderflowY():-h.y),l!==null&&this.parent.y!==l&&(this.toY={time:0,start:this.parent.y,delta:l-this.parent.y,end:l},this.parent.emit("bounce-y-start",this.parent))}}}reset(){this.toX=this.toY=null,this.bounce()}}const gE={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class yE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},gE,e),this.options.direction&&(this.options.left=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.right=this.options.direction==="x"||this.options.direction==="all"?!0:null,this.options.top=this.options.direction==="y"||this.options.direction==="all"?!0:null,this.options.bottom=this.options.direction==="y"||this.options.direction==="all"?!0:null),this.parseUnderflow(),this.last={x:null,y:null,scaleX:null,scaleY:null},this.update()}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="none"?this.noUnderflow=!0:t==="center"?(this.underflowX=this.underflowY=0,this.noUnderflow=!1):(this.underflowX=t.indexOf("left")!==-1?-1:t.indexOf("right")!==-1?1:0,this.underflowY=t.indexOf("top")!==-1?-1:t.indexOf("bottom")!==-1?1:0,this.noUnderflow=!1)}move(){return this.update(),!1}update(){if(this.paused||this.parent.x===this.last.x&&this.parent.y===this.last.y&&this.parent.scale.x===this.last.scaleX&&this.parent.scale.y===this.last.scaleY)return;const t=new mt(this.parent.x,this.parent.y),e=this.parent.plugins.decelerate||{};if(this.options.left!==null||this.options.right!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x!==0&&(this.parent.x=0,i=!0);break;case 1:this.parent.x!==this.parent.screenWidth-this.parent.screenWorldWidth&&(this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth,i=!0);break;default:this.parent.x!==(this.parent.screenWidth-this.parent.screenWorldWidth)/2&&(this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2,i=!0)}else this.options.left!==null&&this.parent.left<(this.options.left===!0?0:this.options.left)&&(this.parent.x=-(this.options.left===!0?0:this.options.left)*this.parent.scale.x,e.x=0,i=!0),this.options.right!==null&&this.parent.right>(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,e.x=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let i=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y!==0&&(this.parent.y=0,i=!0);break;case 1:this.parent.y!==this.parent.screenHeight-this.parent.screenWorldHeight&&(this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight,i=!0);break;default:this.parent.y!==(this.parent.screenHeight-this.parent.screenWorldHeight)/2&&(this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2,i=!0)}else this.options.top!==null&&this.parent.top<(this.options.top===!0?0:this.options.top)&&(this.parent.y=-(this.options.top===!0?0:this.options.top)*this.parent.scale.y,e.y=0,i=!0),this.options.bottom!==null&&this.parent.bottom>(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,e.y=0,i=!0);i&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}}const vE={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class _E extends er{constructor(t,e={}){super(t),this.options=Object.assign({},vE,e),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&t<this.options.minWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.minWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxWidth!==null&&t>this.options.maxWidth){const i=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/i,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&e<this.options.minHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.minHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.maxHeight!==null&&e>this.options.maxHeight){const i=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/i,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},e={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const s=this.options.minScale;t.x=typeof s.x>"u"?null:s.x,t.y=typeof s.y>"u"?null:s.y}if(typeof this.options.maxScale=="number")e.x=this.options.maxScale,e.y=this.options.maxScale;else if(this.options.maxScale!==null){const s=this.options.maxScale;e.x=typeof s.x>"u"?null:s.x,e.y=typeof s.y>"u"?null:s.y}let i=this.parent.scale.x,n=this.parent.scale.y;t.x!==null&&i<t.x&&(i=t.x),e.x!==null&&i>e.x&&(i=e.x),t.y!==null&&n<t.y&&(n=t.y),e.y!==null&&n>e.y&&(n=e.y),(i!==this.parent.scale.x||n!==this.parent.scale.y)&&(this.parent.scale.set(i,n),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}}const xE={friction:.98,bounce:.8,minSpeed:.01},xi=16;class wE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},xE,e),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",i=>this.handleMoved(i))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const e=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?e.x===t.original.x&&(e.x=this.parent.x):t.type==="clamp-y"&&t.original&&e.y===t.original.y&&(e.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const e of this.saved)if(e.time>=t-100){const i=t-e.time;this.x=(this.parent.x-e.x)/i,this.y=(this.parent.y-e.y)/i,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const e=this.x||this.y,i=this.timeSinceRelease,n=this.timeSinceRelease+t;if(this.x){const s=this.percentChangeX,o=Math.log(s);this.parent.x+=this.x*xi/o*(Math.pow(s,n/xi)-Math.pow(s,i/xi)),this.x*=Math.pow(this.percentChangeX,t/xi)}if(this.y){const s=this.percentChangeY,o=Math.log(s);this.parent.y+=this.y*xi/o*(Math.pow(s,n/xi)-Math.pow(s,i/xi)),this.y*=Math.pow(this.percentChangeY,t/xi)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x)<this.options.minSpeed&&Math.abs(this.y)<this.options.minSpeed&&(this.x=0,this.y=0):(Math.abs(this.x||0)<this.options.minSpeed&&(this.x=0),Math.abs(this.y||0)<this.options.minSpeed&&(this.y=0)),e&&this.parent.emit("moved",{viewport:this.parent,type:"decelerate"})}reset(){this.x=this.y=null}}const bE={direction:"all",pressDrag:!0,wheel:!0,wheelScroll:1,reverse:!1,clampWheel:!1,underflow:"center",factor:1,mouseButtons:"all",keyToPress:null,ignoreKeyToPressOnTouch:!1,lineHeight:20,wheelSwapAxes:!1};class TE extends er{constructor(t,e={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},bE,e),this.moved=!1,this.reverse=this.options.reverse?1:-1,this.xDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="x",this.yDirection=!this.options.direction||this.options.direction==="all"||this.options.direction==="y",this.keyIsPressed=!1,this.parseUnderflow(),this.mouseButtons(this.options.mouseButtons),this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){const e=n=>{t.includes(n.code)&&(this.keyIsPressed=!0)},i=n=>{t.includes(n.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",i),this.addWindowEventHandler("keydown",e)}addWindowEventHandler(t,e){typeof window>"u"||(window.addEventListener(t,e),this.windowEventHandlers.push({event:t,handler:e}))}destroy(){typeof window>"u"||this.windowEventHandlers.forEach(({event:t,handler:e})=>{window.removeEventListener(t,e)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const e=t.pointerType==="mouse",i=this.parent.input.count();return!!((i===1||i>1&&!this.parent.plugins.get("pinch",!0))&&(!e||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const e=t.global.x,i=t.global.y,n=this.parent.input.count();if(n===1||n>1&&!this.parent.plugins.get("pinch",!0)){const s=e-this.last.x,o=i-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(s)||this.yDirection&&this.parent.input.checkThreshold(o)){const a={x:e,y:i};return this.xDirection&&(this.parent.x+=(a.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(a.y-this.last.y)*this.options.factor),this.last=a,this.moved||this.parent.emit("drag-start",{event:t,screen:new mt(this.last.x,this.last.y),world:this.parent.toWorld(new mt(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const e=this.parent.input.touches;if(e.length===1){const i=e[0];return i.last&&(this.last={x:i.last.x,y:i.last.y},this.current=i.id),this.moved=!1,!0}else if(this.last&&this.moved){const i=new mt(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:i,world:this.parent.toWorld(i),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const e=this.parent.plugins.get("wheel",!0);if(!e||!e.options.wheelZoom&&!t.ctrlKey){const i=t.deltaMode?this.options.lineHeight:1,n=[t.deltaX,t.deltaY],[s,o]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=o*i*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidth<this.parent.screenWidth)switch(this.underflowX){case-1:this.parent.x=0;break;case 1:this.parent.x=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:this.parent.x=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}else this.parent.left<0?(this.parent.x=0,t.x=0):this.parent.right>this.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeight<this.parent.screenHeight)switch(this.underflowY){case-1:this.parent.y=0;break;case 1:this.parent.y=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:this.parent.y=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}else this.parent.top<0&&(this.parent.y=0,t.y=0),this.parent.bottom>this.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}}const EE={speed:0,acceleration:null,radius:null};class AE extends er{constructor(t,e,i={}){super(t),this.target=e,this.options=Object.assign({},EE,i),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const e=this.parent.center;let i=this.target.x,n=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-e.y,2)+Math.pow(this.target.x-e.x,2))>this.options.radius){const a=Math.atan2(this.target.y-e.y,this.target.x-e.x);i=this.target.x-Math.cos(a)*this.options.radius,n=this.target.y-Math.sin(a)*this.options.radius}else return;const s=i-e.x,o=n-e.y;if(s||o)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(n-e.y,i-e.x),h=Math.sqrt(Math.pow(s,2)+Math.pow(o,2));if(h){const l=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);h>l?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const u=Math.cos(a)*this.velocity.x,c=Math.sin(a)*this.velocity.y,d=Math.abs(u)>Math.abs(s)?i:e.x+u,f=Math.abs(c)>Math.abs(o)?n:e.y+c;this.parent.moveCenter(d,f),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(n-e.y,i-e.x),h=Math.cos(a)*this.options.speed,l=Math.sin(a)*this.options.speed,u=Math.abs(h)>Math.abs(s)?i:e.x+h,c=Math.abs(l)>Math.abs(o)?n:e.y+l;this.parent.moveCenter(u,c),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}const SE={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class CE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},SE,e),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const e=t.global.x,i=t.global.y;if(this.radiusSquared){const n=this.parent.toScreen(this.parent.center);if(Math.pow(n.x-e,2)+Math.pow(n.y-i,2)>=this.radiusSquared){const s=Math.atan2(n.y-i,n.x-e);this.options.linear?(this.horizontal=Math.round(Math.cos(s))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(s))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(s)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(s)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&e<this.left?this.horizontal=Number(this.reverse)*this.options.speed*(60/1e3):this.right!==null&&e>this.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&i<this.top?this.vertical=Number(this.reverse)*this.options.speed*(60/1e3):this.bottom!==null&&i>this.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}}const ME={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};class RE extends er{constructor(t,e={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},ME,e)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const e=t.global.x,i=t.global.y,n=this.parent.input.touches;if(n.length>=2){const s=n[0],o=n[1],a=s.last&&o.last?Math.sqrt(Math.pow(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:e,y:i,data:t}:o.id===t.pointerId&&(o.last={x:e,y:i,data:t}),a){let h;const l=new mt(s.last.x+(o.last.x-s.last.x)/2,s.last.y+(o.last.y-s.last.y)/2);this.options.center||(h=this.parent.toLocal(l));let u=Math.sqrt(Math.pow(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2));u=u===0?u=1e-10:u;const c=(1-a/u)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=c),this.isAxisY()&&(this.parent.scale.y+=c),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:l});const d=this.parent.plugins.get("clamp-zoom",!0);if(d&&d.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const f=this.parent.toGlobal(h);this.parent.x+=(l.x-f.x)*this.options.factor,this.parent.y+=(l.y-f.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(l.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(l.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=l,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}}const PE={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class IE extends er{constructor(t,e,i,n={}){super(t),this.options=Object.assign({},PE,n),this.ease=kh(n.ease,"easeInOutSine"),this.x=e,this.y=i,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const e=this.snapping;e.time+=t;let i,n,s;const o=this.startX,a=this.startY,h=this.deltaX,l=this.deltaY;if(e.time>this.options.time)i=!0,n=o+h,s=a+l;else{const u=this.ease(e.time,0,1,this.options.time);n=o+h*u,s=a+l*u}this.options.topLeft?this.parent.moveCorner(n,s):this.parent.moveCenter(n,s),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),i&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const e=this.options.topLeft?this.parent.corner:this.parent.center;(e.x!==this.x||e.y!==this.y)&&this.snapStart()}}}const DE={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class OE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},DE,e),this.ease=kh(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):e.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,e=this.parent.worldScreenHeight,i=this.parent.screenWidth/this.xScale,n=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:e,deltaX:i-t,deltaY:n-e},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let e;if(!this.options.center&&!this.options.noMove&&(e=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const i=this.snapping;if(i.time+=t,i.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const s=this.snapping,o=this.ease(s.time,s.startX,s.deltaX,this.options.time),a=this.ease(s.time,s.startY,s.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/o,this.parent.scale.y=this.parent.screenHeight/a}const n=this.parent.plugins.get("clamp-zoom",!0);n&&n.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(e))}}resume(){this.snapping=null,super.resume()}}const kE={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class NE extends er{constructor(t,e={}){super(t),this.options=Object.assign({},kE,e),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){typeof window>"u"||(window.addEventListener("keydown",e=>{t.includes(e.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",e=>{t.includes(e.code)&&(this.keyIsPressed=!1)}))}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,e=this.smoothing;let i;this.options.center||(i=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=e.x),this.isAxisY()&&(this.parent.scale.y+=e.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const n=this.parent.plugins.get("clamp-zoom",!0);if(n&&n.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const s=this.parent.toGlobal(i);this.parent.x+=t.x-s.x,this.parent.y+=t.y-s.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const e=this.parent.input.getPointerPosition(t),i=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,n=Math.pow(2,(1+this.options.percent)*i);let s;this.options.center||(s=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(s);this.parent.x+=e.x-a.x,this.parent.y+=e.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const e=this.parent.input.getPointerPosition(t),i=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,n=Math.pow(2,(1+this.options.percent)*i);if(this.options.smooth){const s={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+s.x)*n-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+s.y)*n-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=e}else{let s;this.options.center||(s=this.parent.toLocal(e)),this.isAxisX()&&(this.parent.scale.x*=n),this.isAxisY()&&(this.parent.scale.y*=n),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(s);this.parent.x+=e.x-a.x,this.parent.y+=e.y-a.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}}class FE{constructor(t){this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.eventMode="static",this.viewport.forceHitArea||(this.viewport.hitArea=new yt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){var t;(t=this.viewport.options.events.domElement)==null||t.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.visible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const e=this.viewport.plugins.get("decelerate",!0),i=this.viewport.plugins.get("bounce",!0);(!e||!e.isActive())&&(!i||!i.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.visible)return;const e=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const i=t.global.x-this.last.x,n=t.global.y-this.last.y;(this.checkThreshold(i)||this.checkThreshold(n))&&(this.clickedAvailable=!1)}e&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.visible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const e=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),e&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const e=new mt;return this.viewport.options.events.mapPositionToPoint(e,t.clientX,t.clientY),e}handleWheel(t){if(this.viewport.pause||!this.viewport.visible)return;const e=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=e.x&&e.x<=this.viewport.right&&this.viewport.top<=e.y&&e.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const e of this.touches)if(e.id===t)return e;return null}remove(t){for(let e=0;e<this.touches.length;e++)if(this.touches[e].id===t){this.touches.splice(e,1);return}}count(){return(this.isMouseDown?1:0)+this.touches.length}}const Os=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class LE{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,e,i=Os.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=e;const s=Os.indexOf(t);s!==-1&&Os.splice(s,1),Os.splice(i,0,t),this.sort()}get(t,e){var i;return e&&(i=this.plugins[t])!=null&&i.paused?null:this.plugins[t]}update(t){for(const e of this.list)e.update(t)}resize(){for(const t of this.list)t.resize()}reset(){for(const t of this.list)t.reset()}removeAll(){this.list.forEach(t=>{t.destroy()}),this.plugins={},this.sort()}remove(t){var e;this.plugins[t]&&((e=this.plugins[t])==null||e.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var e;(e=this.plugins[t])==null||e.pause()}resume(t){var e;(e=this.plugins[t])==null||e.resume()}sort(){this.list=[];for(const t of Os)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let e=!1;for(const i of this.list)i.down(t)&&(e=!0);return e}move(t){let e=!1;for(const i of this.viewport.plugins.list)i.move(t)&&(e=!0);return e}up(t){let e=!1;for(const i of this.list)i.up(t)&&(e=!0);return e}wheel(t){let e=!1;for(const i of this.list)i.wheel(t)&&(e=!0);return e}}const BE={screenWidth:typeof window>"u"?0:window.innerWidth,screenHeight:typeof window>"u"?0:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:_e.shared,allowPreserveDragOutside:!1};class UE extends bt{constructor(t){super(),this._disableOnContextMenu=e=>e.preventDefault(),this.options={...BE,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new FE(this),this.plugins=new LE(this)}destroy(t){var e;!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&((e=this.options.events.domElement)==null||e.removeEventListener("contextmenu",this._disableOnContextMenu)),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new yt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=typeof window>"u"?0:window.innerWidth,e=typeof window>"u"?0:window.innerHeight,i,n){this.screenWidth=t,this.screenHeight=e,typeof i<"u"&&(this._worldWidth=i),typeof n<"u"&&(this._worldHeight=n),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new yt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,e){return arguments.length===2?this.toLocal(new mt(t,e)):this.toLocal(t)}toScreen(t,e){return arguments.length===2?this.toGlobal(new mt(t,e)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new mt(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let e,i;typeof t[0]=="number"?(e=t[0],i=t[1]):(e=t[0].x,i=t[0].y);const n=(this.worldScreenWidth/2-e)*this.scale.x,s=(this.worldScreenHeight/2-i)*this.scale.y;return(this.x!==n||this.y!==s)&&(this.position.set(n,s),this.plugins.reset(),this.dirty=!0),this}get corner(){return new mt(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let e,i;return t.length===1?(e=-t[0].x*this.scale.x,i=-t[0].y*this.scale.y):(e=-t[0]*this.scale.x,i=-t[1]*this.scale.y),(e!==this.x||i!==this.y)&&(this.position.set(e,i),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,e){const i=this.screenWidth/t,n=this.screenHeight/e;return Math.min(i,n)}findCover(t,e){const i=this.screenWidth/t,n=this.screenHeight/e;return Math.max(i,n)}fitWidth(t=this.worldWidth,e,i=!0,n){let s;e&&(s=this.center),this.scale.x=this.screenWidth/t,i&&(this.scale.y=this.scale.x);const o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.clamp(),e&&s&&this.moveCenter(s),this}fitHeight(t=this.worldHeight,e,i=!0,n){let s;e&&(s=this.center),this.scale.y=this.screenHeight/t,i&&(this.scale.x=this.scale.y);const o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.clamp(),e&&s&&this.moveCenter(s),this}fitWorld(t){let e;t&&(e=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const i=this.plugins.get("clamp-zoom",!0);return i&&i.clamp(),t&&e&&this.moveCenter(e),this}fit(t,e=this.worldWidth,i=this.worldHeight){let n;t&&(n=this.center),this.scale.x=this.screenWidth/e,this.scale.y=this.screenHeight/i,this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y;const s=this.plugins.get("clamp-zoom",!0);return s&&s.clamp(),t&&n&&this.moveCenter(n),this}setZoom(t,e){let i;e&&(i=this.center),this.scale.set(t);const n=this.plugins.get("clamp-zoom",!0);return n&&n.clamp(),e&&i&&this.moveCenter(i),this}zoomPercent(t,e){return this.setZoom(this.scale.x+this.scale.x*t,e)}zoom(t,e){return this.fitWidth(t+this.worldScreenWidth,e),this}get scaled(){return this.scale.x}set scaled(t){this.setZoom(t,!0)}snapZoom(t){return this.plugins.add("snap-zoom",new OE(this,t)),this}OOB(){return{left:this.left<0,right:this.right>this.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new mt(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new yt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new TE(this,t)),this}clamp(t){return this.plugins.add("clamp",new yE(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new wE(this,t)),this}bounce(t){return this.plugins.add("bounce",new mE(this,t)),this}pinch(t){return this.plugins.add("pinch",new RE(this,t)),this}snap(t,e,i){return this.plugins.add("snap",new IE(this,t,e,i)),this}follow(t,e){return this.plugins.add("follow",new AE(this,t,e)),this}wheel(t){return this.plugins.add("wheel",new NE(this,t)),this}animate(t){return this.plugins.add("animate",new fE(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new _E(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new CE(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,e,i,n,s){s&&(i>this.worldScreenWidth||n>this.worldScreenHeight)&&(this.fit(!0,i,n),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let o=!1;t<this.left?(this.left=t,o=!0):t+i>this.right&&(this.right=t+i,o=!0),e<this.top?(this.top=e,o=!0):e+n>this.bottom&&(this.bottom=e+n,o=!0),o&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Pa=1e3,pm=Symbol.for("constructDateFrom");async function fy(r,t){const e=await Ue();let i,n=null;async function s(){try{n=await e.fetch(r),t(n)}catch(a){console.error(a)}n&&!n.end_time&&(i=setTimeout(()=>s(),HE(n)))}function o(){clearTimeout(i)}return{start:s,stop:o}}function HE(r){const t=Math.floor(r.nodes.size/Pa)*Pa;return Math.max(Pa,t)}function $r(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function py(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t}var Le={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},hs={duration:.5,overwrite:!1,delay:0},Xc,me,Ft,Ke=1e8,Dt=1/Ke,rc=Math.PI*2,GE=rc/4,zE=0,my=Math.sqrt,jE=Math.cos,WE=Math.sin,he=function(r){return typeof r=="string"},Xt=function(r){return typeof r=="function"},ii=function(r){return typeof r=="number"},Vc=function(r){return typeof r>"u"},Lr=function(r){return typeof r=="object"},Ee=function(r){return r!==!1},$c=function(){return typeof window<"u"},fa=function(r){return Xt(r)||he(r)},gy=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ge=Array.isArray,ic=/(?:-?\.?\d|\.)+/gi,yy=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,$n=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,vy=/[+-]=-?[.\d]+/,_y=/[^,'"\[\]\s]+/gi,XE=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ht,Sr,nc,Yc,Be={},eh={},xy,wy=function(r){return(eh=bn(r,Be))&&Me},qc=function(r,t){return console.warn("Invalid property",r,"set to",t,"Missing plugin? gsap.registerPlugin()")},lo=function(r,t){return!t&&console.warn(r)},by=function(r,t){return r&&(Be[r]=t)&&eh&&(eh[r]=t)||Be},uo=function(){return 0},VE={suppressEvents:!0,isStart:!0,kill:!1},Ia={suppressEvents:!0,kill:!1},$E={suppressEvents:!0},Zc={},Pi=[],sc={},Ty,Oe={},Ql={},mm=30,Da=[],Kc="",Qc=function(r){var t=r[0],e,i;if(Lr(t)||Xt(t)||(r=[r]),!(e=(t._gsap||{}).harness)){for(i=Da.length;i--&&!Da[i].targetTest(t););e=Da[i]}for(i=r.length;i--;)r[i]&&(r[i]._gsap||(r[i]._gsap=new $y(r[i],e)))||r.splice(i,1);return r},pn=function(r){return r._gsap||Qc(Qe(r))[0]._gsap},Ey=function(r,t,e){return(e=r[t])&&Xt(e)?r[t]():Vc(e)&&r.getAttribute&&r.getAttribute(t)||e},Ae=function(r,t){return(r=r.split(",")).forEach(t)||r},Vt=function(r){return Math.round(r*1e5)/1e5||0},ae=function(r){return Math.round(r*1e7)/1e7||0},rs=function(r,t){var e=t.charAt(0),i=parseFloat(t.substr(2));return r=parseFloat(r),e==="+"?r+i:e==="-"?r-i:e==="*"?r*i:r/i},YE=function(r,t){for(var e=t.length,i=0;r.indexOf(t[i])<0&&++i<e;);return i<e},rh=function(){var r=Pi.length,t=Pi.slice(0),e,i;for(sc={},Pi.length=0,e=0;e<r;e++)i=t[e],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Ay=function(r,t,e,i){Pi.length&&!me&&rh(),r.render(t,e,me&&t<0&&(r._initted||r._startAt)),Pi.length&&!me&&rh()},Sy=function(r){var t=parseFloat(r);return(t||t===0)&&(r+"").match(_y).length<2?t:he(r)?r.trim():r},Cy=function(r){return r},tr=function(r,t){for(var e in t)e in r||(r[e]=t[e]);return r},qE=function(r){return function(t,e){for(var i in e)i in t||i==="duration"&&r||i==="ease"||(t[i]=e[i])}},bn=function(r,t){for(var e in t)r[e]=t[e];return r},gm=function r(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=Lr(e[i])?r(t[i]||(t[i]={}),e[i]):e[i]);return t},ih=function(r,t){var e={},i;for(i in r)i in t||(e[i]=r[i]);return e},ro=function(r){var t=r.parent||Ht,e=r.keyframes?qE(ge(r.keyframes)):tr;if(Ee(r.inherit))for(;t;)e(r,t.vars.defaults),t=t.parent||t._dp;return r},ZE=function(r,t){for(var e=r.length,i=e===t.length;i&&e--&&r[e]===t[e];);return e<0},My=function(r,t,e,i,n){var s=r[i],o;if(n)for(o=t[n];s&&s[n]>o;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=r[e],r[e]=t),t._next?t._next._prev=t:r[i]=t,t._prev=s,t.parent=t._dp=r,t},Nh=function(r,t,e,i){e===void 0&&(e="_first"),i===void 0&&(i="_last");var n=t._prev,s=t._next;n?n._next=s:r[e]===t&&(r[e]=s),s?s._prev=n:r[i]===t&&(r[i]=n),t._next=t._prev=t.parent=null},Fi=function(r,t){r.parent&&(!t||r.parent.autoRemoveChildren)&&r.parent.remove&&r.parent.remove(r),r._act=0},mn=function(r,t){if(r&&(!t||t._end>r._dur||t._start<0))for(var e=r;e;)e._dirty=1,e=e.parent;return r},KE=function(r){for(var t=r.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return r},oc=function(r,t,e,i){return r._startAt&&(me?r._startAt.revert(Ia):r.vars.immediateRender&&!r.vars.autoRevert||r._startAt.render(t,!0,i))},QE=function r(t){return!t||t._ts&&r(t.parent)},ym=function(r){return r._repeat?ls(r._tTime,r=r.duration()+r._rDelay)*r:0},ls=function(r,t){var e=Math.floor(r/=t);return r&&e===r?e-1:e},nh=function(r,t){return(r-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Fh=function(r){return r._end=ae(r._start+(r._tDur/Math.abs(r._ts||r._rts||Dt)||0))},Lh=function(r,t){var e=r._dp;return e&&e.smoothChildTiming&&r._ts&&(r._start=ae(e._time-(r._ts>0?t/r._ts:((r._dirty?r.totalDuration():r._tDur)-t)/-r._ts)),Fh(r),e._dirty||mn(e,r)),r},Ry=function(r,t){var e;if((t._time||!t._dur&&t._initted||t._start<r._time&&(t._dur||!t.add))&&(e=nh(r.rawTime(),t),(!t._dur||Co(0,t.totalDuration(),e)-t._tTime>Dt)&&t.render(e,!0)),mn(r,t)._dp&&r._initted&&r._time>=r._dur&&r._ts){if(r._dur<r.duration())for(e=r;e._dp;)e.rawTime()>=0&&e.totalTime(e._tTime),e=e._dp;r._zTime=-Dt}},Mr=function(r,t,e,i){return t.parent&&Fi(t),t._start=ae((ii(e)?e:e||r!==Ht?We(r,e,t):r._time)+t._delay),t._end=ae(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),My(r,t,"_first","_last",r._sort?"_start":0),ac(t)||(r._recent=t),i||Ry(r,t),r._ts<0&&Lh(r,r._tTime),r},Py=function(r,t){return(Be.ScrollTrigger||qc("scrollTrigger",t))&&Be.ScrollTrigger.create(t,r)},Iy=function(r,t,e,i,n){if(td(r,t,n),!r._initted)return 1;if(!e&&r._pt&&!me&&(r._dur&&r.vars.lazy!==!1||!r._dur&&r.vars.lazy)&&Ty!==Ne.frame)return Pi.push(r),r._lazy=[n,i],1},JE=function r(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||r(e))},ac=function(r){var t=r.data;return t==="isFromStart"||t==="isStart"},tA=function(r,t,e,i){var n=r.ratio,s=t<0||!t&&(!r._start&&JE(r)&&!(!r._initted&&ac(r))||(r._ts<0||r._dp._ts<0)&&!ac(r))?0:1,o=r._rDelay,a=0,h,l,u;if(o&&r._repeat&&(a=Co(0,r._tDur,t),l=ls(a,o),r._yoyo&&l&1&&(s=1-s),l!==ls(r._tTime,o)&&(n=1-s,r.vars.repeatRefresh&&r._initted&&r.invalidate())),s!==n||me||i||r._zTime===Dt||!t&&r._zTime){if(!r._initted&&Iy(r,t,i,e,a))return;for(u=r._zTime,r._zTime=t||(e?Dt:0),e||(e=t&&!u),r.ratio=s,r._from&&(s=1-s),r._time=0,r._tTime=a,h=r._pt;h;)h.r(s,h.d),h=h._next;t<0&&oc(r,t,e,!0),r._onUpdate&&!e&&Fe(r,"onUpdate"),a&&r._repeat&&!e&&r.parent&&Fe(r,"onRepeat"),(t>=r._tDur||t<0)&&r.ratio===s&&(s&&Fi(r,1),!e&&!me&&(Fe(r,s?"onComplete":"onReverseComplete",!0),r._prom&&r._prom()))}else r._zTime||(r._zTime=t)},eA=function(r,t,e){var i;if(e>t)for(i=r._first;i&&i._start<=e;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=r._last;i&&i._start>=e;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},us=function(r,t,e,i){var n=r._repeat,s=ae(t)||0,o=r._tTime/r._tDur;return o&&!i&&(r._time*=s/r._dur),r._dur=s,r._tDur=n?n<0?1e10:ae(s*(n+1)+r._rDelay*n):s,o>0&&!i&&Lh(r,r._tTime=r._tDur*o),r.parent&&Fh(r),e||mn(r.parent,r),r},vm=function(r){return r instanceof ye?mn(r):us(r,r._dur)},rA={_start:0,endTime:uo,totalDuration:uo},We=function r(t,e,i){var n=t.labels,s=t._recent||rA,o=t.duration()>=Ke?s.endTime(!1):t._dur,a,h,l;return he(e)&&(isNaN(e)||e in n)?(h=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),h==="<"||h===">"?(a>=0&&(e=e.replace(/=/,"")),(h==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?s:i).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(h=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&i&&(h=h/100*(ge(i)?i[0]:i).totalDuration()),a>1?r(t,e.substr(0,a-1),i)+h:o+h)):e==null?o:+e},io=function(r,t,e){var i=ii(t[1]),n=(i?2:1)+(r<2?0:1),s=t[n],o,a;if(i&&(s.duration=t[1]),s.parent=e,r){for(o=s,a=e;a&&!("immediateRender"in o);)o=a.vars.defaults||{},a=Ee(a.vars.inherit)&&a.parent;s.immediateRender=Ee(o.immediateRender),r<2?s.runBackwards=1:s.startAt=t[n-1]}return new qt(t[0],s,t[n+1])},Ui=function(r,t){return r||r===0?t(r):t},Co=function(r,t,e){return e<r?r:e>t?t:e},pe=function(r,t){return!he(r)||!(t=XE.exec(r))?"":t[1]},iA=function(r,t,e){return Ui(e,function(i){return Co(r,t,i)})},hc=[].slice,Dy=function(r,t){return r&&Lr(r)&&"length"in r&&(!t&&!r.length||r.length-1 in r&&Lr(r[0]))&&!r.nodeType&&r!==Sr},nA=function(r,t,e){return e===void 0&&(e=[]),r.forEach(function(i){var n;return he(i)&&!t||Dy(i,1)?(n=e).push.apply(n,Qe(i)):e.push(i)})||e},Qe=function(r,t,e){return Ft&&!t&&Ft.selector?Ft.selector(r):he(r)&&!e&&(nc||!cs())?hc.call((t||Yc).querySelectorAll(r),0):ge(r)?nA(r,e):Dy(r)?hc.call(r,0):r?[r]:[]},lc=function(r){return r=Qe(r)[0]||lo("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return Qe(t,e.querySelectorAll?e:e===r?lo("Invalid scope")||Yc.createElement("div"):r)}},Oy=function(r){return r.sort(function(){return .5-Math.random()})},ky=function(r){if(Xt(r))return r;var t=Lr(r)?r:{each:r},e=gn(t.ease),i=t.from||0,n=parseFloat(t.base)||0,s={},o=i>0&&i<1,a=isNaN(i)||o,h=t.axis,l=i,u=i;return he(i)?l=u={center:.5,edges:.5,end:1}[i]||0:!o&&a&&(l=i[0],u=i[1]),function(c,d,f){var p=(f||t).length,m=s[p],g,v,w,_,T,b,x,y,S;if(!m){if(S=t.grid==="auto"?0:(t.grid||[1,Ke])[1],!S){for(x=-Ke;x<(x=f[S++].getBoundingClientRect().left)&&S<p;);S<p&&S--}for(m=s[p]=[],g=a?Math.min(S,p)*l-.5:i%S,v=S===Ke?0:a?p*u/S-.5:i/S|0,x=0,y=Ke,b=0;b<p;b++)w=b%S-g,_=v-(b/S|0),m[b]=T=h?Math.abs(h==="y"?_:w):my(w*w+_*_),T>x&&(x=T),T<y&&(y=T);i==="random"&&Oy(m),m.max=x-y,m.min=y,m.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(S>p?p-1:h?h==="y"?p/S:S:Math.max(S,p/S))||0)*(i==="edges"?-1:1),m.b=p<0?n-p:n,m.u=pe(t.amount||t.each)||0,e=e&&p<0?Wy(e):e}return p=(m[c]-m.min)/m.max||0,ae(m.b+(e?e(p):p)*m.v)+m.u}},uc=function(r){var t=Math.pow(10,((r+"").split(".")[1]||"").length);return function(e){var i=ae(Math.round(parseFloat(e)/r)*r*t);return(i-i%1)/t+(ii(e)?0:pe(e))}},Ny=function(r,t){var e=ge(r),i,n;return!e&&Lr(r)&&(i=e=r.radius||Ke,r.values?(r=Qe(r.values),(n=!ii(r[0]))&&(i*=i)):r=uc(r.increment)),Ui(t,e?Xt(r)?function(s){return n=r(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),a=parseFloat(n?s.y:0),h=Ke,l=0,u=r.length,c,d;u--;)n?(c=r[u].x-o,d=r[u].y-a,c=c*c+d*d):c=Math.abs(r[u]-o),c<h&&(h=c,l=u);return l=!i||h<=i?r[l]:s,n||l===s||ii(s)?l:l+pe(s)}:uc(r))},Fy=function(r,t,e,i){return Ui(ge(r)?!t:e===!0?!!(e=0):!i,function(){return ge(r)?r[~~(Math.random()*r.length)]:(e=e||1e-5)&&(i=e<1?Math.pow(10,(e+"").length-2):1)&&Math.floor(Math.round((r-e/2+Math.random()*(t-r+e*.99))/e)*e*i)/i})},sA=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return t.reduce(function(n,s){return s(n)},i)}},oA=function(r,t){return function(e){return r(parseFloat(e))+(t||pe(e))}},aA=function(r,t,e){return By(r,t,0,1,e)},Ly=function(r,t,e){return Ui(e,function(i){return r[~~t(i)]})},hA=function r(t,e,i){var n=e-t;return ge(t)?Ly(t,r(0,t.length),e):Ui(i,function(s){return(n+(s-t)%n)%n+t})},lA=function r(t,e,i){var n=e-t,s=n*2;return ge(t)?Ly(t,r(0,t.length-1),e):Ui(i,function(o){return o=(s+(o-t)%s)%s||0,t+(o>n?s-o:o)})},co=function(r){for(var t=0,e="",i,n,s,o;~(i=r.indexOf("random(",t));)s=r.indexOf(")",i),o=r.charAt(i+7)==="[",n=r.substr(i+7,s-i-7).match(o?_y:ic),e+=r.substr(t,i-t)+Fy(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),t=s+1;return e+r.substr(t,r.length-t)},By=function(r,t,e,i,n){var s=t-r,o=i-e;return Ui(n,function(a){return e+((a-r)/s*o||0)})},uA=function r(t,e,i,n){var s=isNaN(t+e)?0:function(f){return(1-f)*t+f*e};if(!s){var o=he(t),a={},h,l,u,c,d;if(i===!0&&(n=1)&&(i=null),o)t={p:t},e={p:e};else if(ge(t)&&!ge(e)){for(u=[],c=t.length,d=c-2,l=1;l<c;l++)u.push(r(t[l-1],t[l]));c--,s=function(f){f*=c;var p=Math.min(d,~~f);return u[p](f-p)},i=e}else n||(t=bn(ge(t)?[]:{},t));if(!u){for(h in e)Jc.call(a,t,h,"get",e[h]);s=function(f){return id(f,a)||(o?t.p:t)}}}return Ui(i,s)},_m=function(r,t,e){var i=r.labels,n=Ke,s,o,a;for(s in i)o=i[s]-t,o<0==!!e&&o&&n>(o=Math.abs(o))&&(a=s,n=o);return a},Fe=function(r,t,e){var i=r.vars,n=i[t],s=Ft,o=r._ctx,a,h,l;if(n)return a=i[t+"Params"],h=i.callbackScope||r,e&&Pi.length&&rh(),o&&(Ft=o),l=a?n.apply(h,a):n.call(h),Ft=s,l},Ys=function(r){return Fi(r),r.scrollTrigger&&r.scrollTrigger.kill(!!me),r.progress()<1&&Fe(r,"onInterrupt"),r},Yn,Uy=[],Hy=function(r){if(r)if(r=!r.name&&r.default||r,$c()||r.headless){var t=r.name,e=Xt(r),i=t&&!e&&r.init?function(){this._props=[]}:r,n={init:uo,render:id,add:Jc,kill:SA,modifier:AA,rawVars:0},s={targetTest:0,get:0,getSetter:rd,aliases:{},register:0};if(cs(),r!==i){if(Oe[t])return;tr(i,tr(ih(r,n),s)),bn(i.prototype,bn(n,ih(r,s))),Oe[i.prop=t]=i,r.targetTest&&(Da.push(i),Zc[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}by(t,i),r.register&&r.register(Me,i,Se)}else Uy.push(r)},It=255,qs={aqua:[0,It,It],lime:[0,It,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,It],navy:[0,0,128],white:[It,It,It],olive:[128,128,0],yellow:[It,It,0],orange:[It,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[It,0,0],pink:[It,192,203],cyan:[0,It,It],transparent:[It,It,It,0]},Jl=function(r,t,e){return r+=r<0?1:r>1?-1:0,(r*6<1?t+(e-t)*r*6:r<.5?e:r*3<2?t+(e-t)*(2/3-r)*6:t)*It+.5|0},Gy=function(r,t,e){var i=r?ii(r)?[r>>16,r>>8&It,r&It]:0:qs.black,n,s,o,a,h,l,u,c,d,f;if(!i){if(r.substr(-1)===","&&(r=r.substr(0,r.length-1)),qs[r])i=qs[r];else if(r.charAt(0)==="#"){if(r.length<6&&(n=r.charAt(1),s=r.charAt(2),o=r.charAt(3),r="#"+n+n+s+s+o+o+(r.length===5?r.charAt(4)+r.charAt(4):"")),r.length===9)return i=parseInt(r.substr(1,6),16),[i>>16,i>>8&It,i&It,parseInt(r.substr(7),16)/255];r=parseInt(r.substr(1),16),i=[r>>16,r>>8&It,r&It]}else if(r.substr(0,3)==="hsl"){if(i=f=r.match(ic),!t)a=+i[0]%360/360,h=+i[1]/100,l=+i[2]/100,s=l<=.5?l*(h+1):l+h-l*h,n=l*2-s,i.length>3&&(i[3]*=1),i[0]=Jl(a+1/3,n,s),i[1]=Jl(a,n,s),i[2]=Jl(a-1/3,n,s);else if(~r.indexOf("="))return i=r.match(yy),e&&i.length<4&&(i[3]=1),i}else i=r.match(ic)||qs.transparent;i=i.map(Number)}return t&&!f&&(n=i[0]/It,s=i[1]/It,o=i[2]/It,u=Math.max(n,s,o),c=Math.min(n,s,o),l=(u+c)/2,u===c?a=h=0:(d=u-c,h=l>.5?d/(2-u-c):d/(u+c),a=u===n?(s-o)/d+(s<o?6:0):u===s?(o-n)/d+2:(n-s)/d+4,a*=60),i[0]=~~(a+.5),i[1]=~~(h*100+.5),i[2]=~~(l*100+.5)),e&&i.length<4&&(i[3]=1),i},zy=function(r){var t=[],e=[],i=-1;return r.split(Ii).forEach(function(n){var s=n.match($n)||[];t.push.apply(t,s),e.push(i+=s.length+1)}),t.c=e,t},xm=function(r,t,e){var i="",n=(r+i).match(Ii),s=t?"hsla(":"rgba(",o=0,a,h,l,u;if(!n)return r;if(n=n.map(function(c){return(c=Gy(c,t,1))&&s+(t?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),e&&(l=zy(r),a=e.c,a.join(i)!==l.c.join(i)))for(h=r.replace(Ii,"1").split($n),u=h.length-1;o<u;o++)i+=h[o]+(~a.indexOf(o)?n.shift()||s+"0,0,0,0)":(l.length?l:n.length?n:e).shift());if(!h)for(h=r.split(Ii),u=h.length-1;o<u;o++)i+=h[o]+n[o];return i+h[u]},Ii=(function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in qs)r+="|"+t+"\\b";return new RegExp(r+")","gi")})(),cA=/hsl[a]?\(/,jy=function(r){var t=r.join(" "),e;if(Ii.lastIndex=0,Ii.test(t))return e=cA.test(t),r[1]=xm(r[1],e),r[0]=xm(r[0],e,zy(r[1])),!0},fo,Ne=(function(){var r=Date.now,t=500,e=33,i=r(),n=i,s=1e3/240,o=s,a=[],h,l,u,c,d,f,p=function m(g){var v=r()-n,w=g===!0,_,T,b,x;if((v>t||v<0)&&(i+=v-e),n+=v,b=n-i,_=b-o,(_>0||w)&&(x=++c.frame,d=b-c.time*1e3,c.time=b=b/1e3,o+=_+(_>=s?4:s-_),T=1),w||(h=l(m)),T)for(f=0;f<a.length;f++)a[f](b,d,x,g)};return c={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){xy&&(!nc&&$c()&&(Sr=nc=window,Yc=Sr.document||{},Be.gsap=Me,(Sr.gsapVersions||(Sr.gsapVersions=[])).push(Me.version),wy(eh||Sr.GreenSockGlobals||!Sr.gsap&&Sr||{}),Uy.forEach(Hy)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,h&&c.sleep(),l=u||function(m){return setTimeout(m,o-c.time*1e3+1|0)},fo=1,p(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(h),fo=0,l=uo},lagSmoothing:function(m,g){t=m||1/0,e=Math.min(g||33,t)},fps:function(m){s=1e3/(m||240),o=c.time*1e3+s},add:function(m,g,v){var w=g?function(_,T,b,x){m(_,T,b,x),c.remove(w)}:m;return c.remove(m),a[v?"unshift":"push"](w),cs(),w},remove:function(m,g){~(g=a.indexOf(m))&&a.splice(g,1)&&f>=g&&f--},_listeners:a},c})(),cs=function(){return!fo&&Ne.wake()},Tt={},dA=/^[\d.\-M][\d.\-,\s]/,fA=/["']/g,pA=function(r){for(var t={},e=r.substr(1,r.length-3).split(":"),i=e[0],n=1,s=e.length,o,a,h;n<s;n++)a=e[n],o=n!==s-1?a.lastIndexOf(","):a.length,h=a.substr(0,o),t[i]=isNaN(h)?h.replace(fA,"").trim():+h,i=a.substr(o+1).trim();return t},mA=function(r){var t=r.indexOf("(")+1,e=r.indexOf(")"),i=r.indexOf("(",t);return r.substring(t,~i&&i<e?r.indexOf(")",e+1):e)},gA=function(r){var t=(r+"").split("("),e=Tt[t[0]];return e&&t.length>1&&e.config?e.config.apply(null,~r.indexOf("{")?[pA(t[1])]:mA(r).split(",").map(Sy)):Tt._CE&&dA.test(r)?Tt._CE("",r):e},Wy=function(r){return function(t){return 1-r(1-t)}},Xy=function r(t,e){for(var i=t._first,n;i;)i instanceof ye?r(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?r(i.timeline,e):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=e)),i=i._next},gn=function(r,t){return r&&(Xt(r)?r:Tt[r]||gA(r))||t},Pn=function(r,t,e,i){e===void 0&&(e=function(o){return 1-t(1-o)}),i===void 0&&(i=function(o){return o<.5?t(o*2)/2:1-t((1-o)*2)/2});var n={easeIn:t,easeOut:e,easeInOut:i},s;return Ae(r,function(o){Tt[o]=Be[o]=n,Tt[s=o.toLowerCase()]=e;for(var a in n)Tt[s+(a==="easeIn"?".in":a==="easeOut"?".out":".inOut")]=Tt[o+"."+a]=n[a]}),n},Vy=function(r){return function(t){return t<.5?(1-r(1-t*2))/2:.5+r((t-.5)*2)/2}},tu=function r(t,e,i){var n=e>=1?e:1,s=(i||(t?.3:.45))/(e<1?e:1),o=s/rc*(Math.asin(1/n)||0),a=function(l){return l===1?1:n*Math.pow(2,-10*l)*WE((l-o)*s)+1},h=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Vy(a);return s=rc/s,h.config=function(l,u){return r(t,l,u)},h},eu=function r(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},n=t==="out"?i:t==="in"?function(s){return 1-i(1-s)}:Vy(i);return n.config=function(s){return r(t,s)},n};Ae("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,t){var e=t<5?t+1:t;Pn(r+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});Tt.Linear.easeNone=Tt.none=Tt.Linear.easeIn;Pn("Elastic",tu("in"),tu("out"),tu());(function(r,t){var e=1/t,i=2*e,n=2.5*e,s=function(o){return o<e?r*o*o:o<i?r*Math.pow(o-1.5/t,2)+.75:o<n?r*(o-=2.25/t)*o+.9375:r*Math.pow(o-2.625/t,2)+.984375};Pn("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);Pn("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});Pn("Circ",function(r){return-(my(1-r*r)-1)});Pn("Sine",function(r){return r===1?1:-jE(r*GE)+1});Pn("Back",eu("in"),eu("out"),eu());Tt.SteppedEase=Tt.steps=Be.SteppedEase={config:function(r,t){r===void 0&&(r=1);var e=1/r,i=r+(t?0:1),n=t?1:0,s=1-Dt;return function(o){return((i*Co(0,s,o)|0)+n)*e}}};hs.ease=Tt["quad.out"];Ae("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return Kc+=r+","+r+"Params,"});var $y=function(r,t){this.id=zE++,r._gsap=this,this.target=r,this.harness=t,this.get=t?t.get:Ey,this.set=t?t.getSetter:rd},po=(function(){function r(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,us(this,+e.duration,1,1),this.data=e.data,Ft&&(this._ctx=Ft,Ft.data.push(this)),fo||Ne.wake()}var t=r.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,us(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,i){if(cs(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Lh(this,e),!n._dp||n.parent||Ry(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Mr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Dt||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ay(this,e,i)),this},t.time=function(e,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+ym(this))%(this._dur+this._rDelay)||(e?this._dur:0),i):this._time},t.totalProgress=function(e,i){return arguments.length?this.totalTime(this.totalDuration()*e,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(e,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+ym(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,i):this._repeat?ls(this._tTime,n)+1:1},t.timeScale=function(e,i){if(!arguments.length)return this._rts===-Dt?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?nh(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Dt?0:this._rts,this.totalTime(Co(-Math.abs(this._delay),this._tDur,n),i!==!1),Fh(this),KE(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(cs(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Dt&&(this._tTime-=Dt)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Mr(i,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ee(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var i=this.parent||this._dp;return i?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?nh(i.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=$E);var i=me;return me=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!=="nested"&&e.kill!==!1&&this.kill(),me=i,this},t.globalTime=function(e){for(var i=this,n=arguments.length?e:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,vm(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var i=this._time;return this._rDelay=e,vm(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,i){return this.totalTime(We(this,e),Ee(i))},t.restart=function(e,i){return this.play().totalTime(e?-this._delay:0,Ee(i))},t.play=function(e,i){return e!=null&&this.seek(e,i),this.reversed(!1).paused(!1)},t.reverse=function(e,i){return e!=null&&this.seek(e||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(e,i){return e!=null&&this.seek(e,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-Dt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Dt,this},t.isActive=function(){var e=this.parent||this._dp,i=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=i&&n<this.endTime(!0)-Dt)},t.eventCallback=function(e,i,n){var s=this.vars;return arguments.length>1?(i?(s[e]=i,n&&(s[e+"Params"]=n),e==="onUpdate"&&(this._onUpdate=i)):delete s[e],this):s[e]},t.then=function(e){var i=this;return new Promise(function(n){var s=Xt(e)?e:Cy,o=function(){var a=i.then;i.then=null,Xt(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=a),n(s),i.then=a};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){Ys(this)},r})();tr(po.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Dt,_prom:0,_ps:!1,_rts:1});var ye=(function(r){py(t,r);function t(i,n){var s;return i===void 0&&(i={}),s=r.call(this,i)||this,s.labels={},s.smoothChildTiming=!!i.smoothChildTiming,s.autoRemoveChildren=!!i.autoRemoveChildren,s._sort=Ee(i.sortChildren),Ht&&Mr(i.parent||Ht,$r(s),n),i.reversed&&s.reverse(),i.paused&&s.paused(!0),i.scrollTrigger&&Py($r(s),i.scrollTrigger),s}var e=t.prototype;return e.to=function(i,n,s){return io(0,arguments,this),this},e.from=function(i,n,s){return io(1,arguments,this),this},e.fromTo=function(i,n,s,o){return io(2,arguments,this),this},e.set=function(i,n,s){return n.duration=0,n.parent=this,ro(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new qt(i,n,We(this,s),1),this},e.call=function(i,n,s){return Mr(this,qt.delayedCall(0,i,n),s)},e.staggerTo=function(i,n,s,o,a,h,l){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=h,s.onCompleteParams=l,s.parent=this,new qt(i,s,We(this,a)),this},e.staggerFrom=function(i,n,s,o,a,h,l){return s.runBackwards=1,ro(s).immediateRender=Ee(s.immediateRender),this.staggerTo(i,n,s,o,a,h,l)},e.staggerFromTo=function(i,n,s,o,a,h,l,u){return o.startAt=s,ro(o).immediateRender=Ee(o.immediateRender),this.staggerTo(i,n,o,a,h,l,u)},e.render=function(i,n,s){var o=this._time,a=this._dirty?this.totalDuration():this._tDur,h=this._dur,l=i<=0?0:ae(i),u=this._zTime<0!=i<0&&(this._initted||!h),c,d,f,p,m,g,v,w,_,T,b,x;if(this!==Ht&&l>a&&i>=0&&(l=a),l!==this._tTime||s||u){if(o!==this._time&&h&&(l+=this._time-o,i+=this._time-o),c=l,_=this._start,w=this._ts,g=!w,u&&(h||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(b=this._yoyo,m=h+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(c=ae(l%m),l===a?(p=this._repeat,c=h):(p=~~(l/m),p&&p===l/m&&(c=h,p--),c>h&&(c=h)),T=ls(this._tTime,m),!o&&this._tTime&&T!==p&&this._tTime-T*m-this._dur<=0&&(T=p),b&&p&1&&(c=h-c,x=1),p!==T&&!this._lock){var y=b&&T&1,S=y===(b&&p&1);if(p<T&&(y=!y),o=y?0:l%h?h:l,this._lock=1,this.render(o||(x?0:ae(p*m)),n,!h)._lock=0,this._tTime=l,!n&&this.parent&&Fe(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),o&&o!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,a=this._tDur,S&&(this._lock=2,o=y?h:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;Xy(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=eA(this,ae(o),ae(c)),v&&(l-=c-(c=v._start))),this._tTime=l,this._time=c,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&c&&!n&&!p&&(Fe(this,"onStart"),this._tTime!==l))return this;if(c>=o&&i>=0)for(d=this._first;d;){if(f=d._next,(d._act||c>=d._start)&&d._ts&&v!==d){if(d.parent!==this)return this.render(i,n,s);if(d.render(d._ts>0?(c-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(c-d._start)*d._ts,n,s),c!==this._time||!this._ts&&!g){v=0,f&&(l+=this._zTime=-Dt);break}}d=f}else{d=this._last;for(var D=i<0?i:c;d;){if(f=d._prev,(d._act||D<=d._end)&&d._ts&&v!==d){if(d.parent!==this)return this.render(i,n,s);if(d.render(d._ts>0?(D-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(D-d._start)*d._ts,n,s||me&&(d._initted||d._startAt)),c!==this._time||!this._ts&&!g){v=0,f&&(l+=this._zTime=D?-Dt:Dt);break}}d=f}}if(v&&!n&&(this.pause(),v.render(c>=o?0:-Dt)._zTime=c>=o?1:-1,this._ts))return this._start=_,Fh(this),this.render(i,n,s);this._onUpdate&&!n&&Fe(this,"onUpdate",!0),(l===a&&this._tTime>=this.totalDuration()||!l&&o)&&(_===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((i||!h)&&(l===a&&this._ts>0||!l&&this._ts<0)&&Fi(this,1),!n&&!(i<0&&!o)&&(l||o||!a)&&(Fe(this,l===a&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(l<a&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,n){var s=this;if(ii(n)||(n=We(this,n,i)),!(i instanceof po)){if(ge(i))return i.forEach(function(o){return s.add(o,n)}),this;if(he(i))return this.addLabel(i,n);if(Xt(i))i=qt.delayedCall(0,i);else return this}return this!==i?Mr(this,i,n):this},e.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Ke);for(var a=[],h=this._first;h;)h._start>=o&&(h instanceof qt?n&&a.push(h):(s&&a.push(h),i&&a.push.apply(a,h.getChildren(!0,n,s)))),h=h._next;return a},e.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},e.remove=function(i){return he(i)?this.removeLabel(i):Xt(i)?this.killTweensOf(i):(Nh(this,i),i===this._recent&&(this._recent=this._last),mn(this))},e.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ae(Ne.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),r.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},e.addLabel=function(i,n){return this.labels[i]=We(this,n),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,n,s){var o=qt.delayedCall(0,n||uo,s);return o.data="isPause",this._hasPause=1,Mr(this,o,We(this,i))},e.removePause=function(i){var n=this._first;for(i=We(this,i);n;)n._start===i&&n.data==="isPause"&&Fi(n),n=n._next},e.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),a=o.length;a--;)Si!==o[a]&&o[a].kill(i,n);return this},e.getTweensOf=function(i,n){for(var s=[],o=Qe(i),a=this._first,h=ii(n),l;a;)a instanceof qt?YE(a._targets,o)&&(h?(!Si||a._initted&&a._ts)&&a.globalTime(0)<=n&&a.globalTime(a.totalDuration())>n:!n||a.isActive())&&s.push(a):(l=a.getTweensOf(o,n)).length&&s.push.apply(s,l),a=a._next;return s},e.tweenTo=function(i,n){n=n||{};var s=this,o=We(s,i),a=n,h=a.startAt,l=a.onStart,u=a.onStartParams,c=a.immediateRender,d,f=qt.to(s,tr({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(h&&"time"in h?h.time:s._time))/s.timeScale())||Dt,onStart:function(){if(s.pause(),!d){var p=n.duration||Math.abs((o-(h&&"time"in h?h.time:s._time))/s.timeScale());f._dur!==p&&us(f,p,0,1).render(f._time,!0,!0),d=1}l&&l.apply(f,u||[])}},n));return c?f.render(0):f},e.tweenFromTo=function(i,n,s){return this.tweenTo(n,tr({startAt:{time:We(this,i)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),_m(this,We(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),_m(this,We(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Dt)},e.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,a=this.labels,h;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(h in a)a[h]>=s&&(a[h]+=i);return mn(this)},e.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return r.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),mn(this)},e.totalDuration=function(i){var n=0,s=this,o=s._last,a=Ke,h,l,u;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(u=s.parent;o;)h=o._prev,o._dirty&&o.totalDuration(),l=o._start,l>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,Mr(s,o,l-o._delay,1)._lock=0):a=l,l<0&&o._ts&&(n-=l,(!u&&!s._dp||u&&u.smoothChildTiming)&&(s._start+=l/s._ts,s._time-=l,s._tTime-=l),s.shiftChildren(-l,!1,-1/0),a=0),o._end>n&&o._ts&&(n=o._end),o=h;us(s,s===Ht&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(Ht._ts&&(Ay(Ht,nh(i,Ht)),Ty=Ne.frame),Ne.frame>=mm){mm+=Le.autoSleep||120;var n=Ht._first;if((!n||!n._ts)&&Le.autoSleep&&Ne._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Ne.sleep()}}},t})(po);tr(ye.prototype,{_lock:0,_hasPause:0,_forcing:0});var yA=function(r,t,e,i,n,s,o){var a=new Se(this._pt,r,t,0,1,Jy,null,n),h=0,l=0,u,c,d,f,p,m,g,v;for(a.b=e,a.e=i,e+="",i+="",(g=~i.indexOf("random("))&&(i=co(i)),s&&(v=[e,i],s(v,r,t),e=v[0],i=v[1]),c=e.match(Kl)||[];u=Kl.exec(i);)f=u[0],p=i.substring(h,u.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),f!==c[l++]&&(m=parseFloat(c[l-1])||0,a._pt={_next:a._pt,p:p||l===1?p:",",s:m,c:f.charAt(1)==="="?rs(m,f)-m:parseFloat(f)-m,m:d&&d<4?Math.round:0},h=Kl.lastIndex);return a.c=h<i.length?i.substring(h,i.length):"",a.fp=o,(vy.test(i)||g)&&(a.e=0),this._pt=a,a},Jc=function(r,t,e,i,n,s,o,a,h,l){Xt(i)&&(i=i(n||0,r,s));var u=r[t],c=e!=="get"?e:Xt(u)?h?r[t.indexOf("set")||!Xt(r["get"+t.substr(3)])?t:"get"+t.substr(3)](h):r[t]():u,d=Xt(u)?h?bA:Ky:ed,f;if(he(i)&&(~i.indexOf("random(")&&(i=co(i)),i.charAt(1)==="="&&(f=rs(c,i)+(pe(c)||0),(f||f===0)&&(i=f))),!l||c!==i||cc)return!isNaN(c*i)&&i!==""?(f=new Se(this._pt,r,t,+c||0,i-(c||0),typeof u=="boolean"?EA:Qy,0,d),h&&(f.fp=h),o&&f.modifier(o,this,r),this._pt=f):(!u&&!(t in r)&&qc(t,i),yA.call(this,r,t,c,i,d,a||Le.stringFilter,h))},vA=function(r,t,e,i,n){if(Xt(r)&&(r=no(r,n,t,e,i)),!Lr(r)||r.style&&r.nodeType||ge(r)||gy(r))return he(r)?no(r,n,t,e,i):r;var s={},o;for(o in r)s[o]=no(r[o],n,t,e,i);return s},Yy=function(r,t,e,i,n,s){var o,a,h,l;if(Oe[r]&&(o=new Oe[r]).init(n,o.rawVars?t[r]:vA(t[r],i,n,s,e),e,i,s)!==!1&&(e._pt=a=new Se(e._pt,n,r,0,1,o.render,o,0,o.priority),e!==Yn))for(h=e._ptLookup[e._targets.indexOf(n)],l=o._props.length;l--;)h[o._props[l]]=a;return o},Si,cc,td=function r(t,e,i){var n=t.vars,s=n.ease,o=n.startAt,a=n.immediateRender,h=n.lazy,l=n.onUpdate,u=n.runBackwards,c=n.yoyoEase,d=n.keyframes,f=n.autoRevert,p=t._dur,m=t._startAt,g=t._targets,v=t.parent,w=v&&v.data==="nested"?v.vars.targets:g,_=t._overwrite==="auto"&&!Xc,T=t.timeline,b,x,y,S,D,G,O,N,P,F,j,E,A;if(T&&(!d||!s)&&(s="none"),t._ease=gn(s,hs.ease),t._yEase=c?Wy(gn(c===!0?s:c,hs.ease)):0,c&&t._yoyo&&!t._repeat&&(c=t._yEase,t._yEase=t._ease,t._ease=c),t._from=!T&&!!n.runBackwards,!T||d&&!n.stagger){if(N=g[0]?pn(g[0]).harness:0,E=N&&n[N.prop],b=ih(n,Zc),m&&(m._zTime<0&&m.progress(1),e<0&&u&&a&&!f?m.render(-1,!0):m.revert(u&&p?Ia:VE),m._lazy=0),o){if(Fi(t._startAt=qt.set(g,tr({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&Ee(h),startAt:null,delay:0,onUpdate:l&&function(){return Fe(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(me||!a&&!f)&&t._startAt.revert(Ia),a&&p&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(u&&p&&!m){if(e&&(a=!1),y=tr({overwrite:!1,data:"isFromStart",lazy:a&&!m&&Ee(h),immediateRender:a,stagger:0,parent:v},b),E&&(y[N.prop]=E),Fi(t._startAt=qt.set(g,y)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(me?t._startAt.revert(Ia):t._startAt.render(-1,!0)),t._zTime=e,!a)r(t._startAt,Dt,Dt);else if(!e)return}for(t._pt=t._ptCache=0,h=p&&Ee(h)||h&&!p,x=0;x<g.length;x++){if(D=g[x],O=D._gsap||Qc(g)[x]._gsap,t._ptLookup[x]=F={},sc[O.id]&&Pi.length&&rh(),j=w===g?x:w.indexOf(D),N&&(P=new N).init(D,E||b,t,j,w)!==!1&&(t._pt=S=new Se(t._pt,D,P.name,0,1,P.render,P,0,P.priority),P._props.forEach(function(C){F[C]=S}),P.priority&&(G=1)),!N||E)for(y in b)Oe[y]&&(P=Yy(y,b,t,j,D,w))?P.priority&&(G=1):F[y]=S=Jc.call(t,D,y,"get",b[y],j,w,0,n.stringFilter);t._op&&t._op[x]&&t.kill(D,t._op[x]),_&&t._pt&&(Si=t,Ht.killTweensOf(D,F,t.globalTime(e)),A=!t.parent,Si=0),t._pt&&h&&(sc[O.id]=1)}G&&tv(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!A,d&&e<=0&&T.render(Ke,!0,!0)},_A=function(r,t,e,i,n,s,o,a){var h=(r._pt&&r._ptCache||(r._ptCache={}))[t],l,u,c,d;if(!h)for(h=r._ptCache[t]=[],c=r._ptLookup,d=r._targets.length;d--;){if(l=c[d][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return cc=1,r.vars[t]="+=0",td(r,o),cc=0,a?lo(t+" not eligible for reset"):1;h.push(l)}for(d=h.length;d--;)u=h[d],l=u._pt||u,l.s=(i||i===0)&&!n?i:l.s+(i||0)+s*l.c,l.c=e-l.s,u.e&&(u.e=Vt(e)+pe(u.e)),u.b&&(u.b=l.s+pe(u.b))},xA=function(r,t){var e=r[0]?pn(r[0]).harness:0,i=e&&e.aliases,n,s,o,a;if(!i)return t;n=bn({},t);for(s in i)if(s in n)for(a=i[s].split(","),o=a.length;o--;)n[a[o]]=n[s];return n},wA=function(r,t,e,i){var n=t.ease||i||"power1.inOut",s,o;if(ge(t))o=e[r]||(e[r]=[]),t.forEach(function(a,h){return o.push({t:h/(t.length-1)*100,v:a,e:n})});else for(s in t)o=e[s]||(e[s]=[]),s==="ease"||o.push({t:parseFloat(r),v:t[s],e:n})},no=function(r,t,e,i,n){return Xt(r)?r.call(t,e,i,n):he(r)&&~r.indexOf("random(")?co(r):r},qy=Kc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zy={};Ae(qy+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return Zy[r]=1});var qt=(function(r){py(t,r);function t(i,n,s,o){var a;typeof n=="number"&&(s.duration=n,n=s,s=null),a=r.call(this,o?n:ro(n))||this;var h=a.vars,l=h.duration,u=h.delay,c=h.immediateRender,d=h.stagger,f=h.overwrite,p=h.keyframes,m=h.defaults,g=h.scrollTrigger,v=h.yoyoEase,w=n.parent||Ht,_=(ge(i)||gy(i)?ii(i[0]):"length"in n)?[i]:Qe(i),T,b,x,y,S,D,G,O;if(a._targets=_.length?Qc(_):lo("GSAP target "+i+" not found. https://gsap.com",!Le.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=f,p||d||fa(l)||fa(u)){if(n=a.vars,T=a.timeline=new ye({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:_}),T.kill(),T.parent=T._dp=$r(a),T._start=0,d||fa(l)||fa(u)){if(y=_.length,G=d&&ky(d),Lr(d))for(S in d)~qy.indexOf(S)&&(O||(O={}),O[S]=d[S]);for(b=0;b<y;b++)x=ih(n,Zy),x.stagger=0,v&&(x.yoyoEase=v),O&&bn(x,O),D=_[b],x.duration=+no(l,$r(a),b,D,_),x.delay=(+no(u,$r(a),b,D,_)||0)-a._delay,!d&&y===1&&x.delay&&(a._delay=u=x.delay,a._start+=u,x.delay=0),T.to(D,x,G?G(b,D,_):0),T._ease=Tt.none;T.duration()?l=u=0:a.timeline=0}else if(p){ro(tr(T.vars.defaults,{ease:"none"})),T._ease=gn(p.ease||n.ease||"none");var N=0,P,F,j;if(ge(p))p.forEach(function(E){return T.to(_,E,">")}),T.duration();else{x={};for(S in p)S==="ease"||S==="easeEach"||wA(S,p[S],x,p.easeEach);for(S in x)for(P=x[S].sort(function(E,A){return E.t-A.t}),N=0,b=0;b<P.length;b++)F=P[b],j={ease:F.e,duration:(F.t-(b?P[b-1].t:0))/100*l},j[S]=F.v,T.to(_,j,N),N+=j.duration;T.duration()<l&&T.to({},{duration:l-T.duration()})}}l||a.duration(l=T.duration())}else a.timeline=0;return f===!0&&!Xc&&(Si=$r(a),Ht.killTweensOf(_),Si=0),Mr(w,$r(a),s),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(c||!l&&!p&&a._start===ae(w._time)&&Ee(c)&&QE($r(a))&&w.data!=="nested")&&(a._tTime=-Dt,a.render(Math.max(0,-u)||0)),g&&Py($r(a),g),a}var e=t.prototype;return e.render=function(i,n,s){var o=this._time,a=this._tDur,h=this._dur,l=i<0,u=i>a-Dt&&!l?a:i<Dt?0:i,c,d,f,p,m,g,v,w,_;if(!h)tA(this,i,n,s);else if(u!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==l){if(c=u,w=this.timeline,this._repeat){if(p=h+this._rDelay,this._repeat<-1&&l)return this.totalTime(p*100+i,n,s);if(c=ae(u%p),u===a?(f=this._repeat,c=h):(f=~~(u/p),f&&f===ae(u/p)&&(c=h,f--),c>h&&(c=h)),g=this._yoyo&&f&1,g&&(_=this._yEase,c=h-c),m=ls(this._tTime,p),c===o&&!s&&this._initted&&f===m)return this._tTime=u,this;f!==m&&(w&&this._yEase&&Xy(w,g),this.vars.repeatRefresh&&!g&&!this._lock&&this._time!==p&&this._initted&&(this._lock=s=1,this.render(ae(p*f),!0).invalidate()._lock=0))}if(!this._initted){if(Iy(this,l?i:c,s,n,u))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&f!==m))return this;if(h!==this._dur)return this.render(i,n,s)}if(this._tTime=u,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(_||this._ease)(c/h),this._from&&(this.ratio=v=1-v),c&&!o&&!n&&!f&&(Fe(this,"onStart"),this._tTime!==u))return this;for(d=this._pt;d;)d.r(v,d.d),d=d._next;w&&w.render(i<0?i:w._dur*w._ease(c/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(l&&oc(this,i,n,s),Fe(this,"onUpdate")),this._repeat&&f!==m&&this.vars.onRepeat&&!n&&this.parent&&Fe(this,"onRepeat"),(u===this._tDur||!u)&&this._tTime===u&&(l&&!this._onUpdate&&oc(this,i,!0,!0),(i||!h)&&(u===this._tDur&&this._ts>0||!u&&this._ts<0)&&Fi(this,1),!n&&!(l&&!o)&&(u||o||g)&&(Fe(this,u===a?"onComplete":"onReverseComplete",!0),this._prom&&!(u<a&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),r.prototype.invalidate.call(this,i)},e.resetTo=function(i,n,s,o,a){fo||Ne.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),l;return this._initted||td(this,h),l=this._ease(h/this._dur),_A(this,i,n,s,o,l,h,a)?this.resetTo(i,n,s,o,1):(Lh(this,0),this.parent||My(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Ys(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Si&&Si.vars.overwrite!==!0)._first||Ys(this),this.parent&&s!==this.timeline.totalDuration()&&us(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,a=i?Qe(i):o,h=this._ptLookup,l=this._pt,u,c,d,f,p,m,g;if((!n||n==="all")&&ZE(o,a))return n==="all"&&(this._pt=0),Ys(this);for(u=this._op=this._op||[],n!=="all"&&(he(n)&&(p={},Ae(n,function(v){return p[v]=1}),n=p),n=xA(o,n)),g=o.length;g--;)if(~a.indexOf(o[g])){c=h[g],n==="all"?(u[g]=n,f=c,d={}):(d=u[g]=u[g]||{},f=n);for(p in f)m=c&&c[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&Nh(this,m,"_pt"),delete c[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&l&&Ys(this),this},t.to=function(i,n){return new t(i,n,arguments[2])},t.from=function(i,n){return io(1,arguments)},t.delayedCall=function(i,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(i,n,s){return io(2,arguments)},t.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(i,n)},t.killTweensOf=function(i,n,s){return Ht.killTweensOf(i,n,s)},t})(po);tr(qt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ae("staggerTo,staggerFrom,staggerFromTo",function(r){qt[r]=function(){var t=new ye,e=hc.call(arguments,0);return e.splice(r==="staggerFromTo"?5:4,0,0),t[r].apply(t,e)}});var ed=function(r,t,e){return r[t]=e},Ky=function(r,t,e){return r[t](e)},bA=function(r,t,e,i){return r[t](i.fp,e)},TA=function(r,t,e){return r.setAttribute(t,e)},rd=function(r,t){return Xt(r[t])?Ky:Vc(r[t])&&r.setAttribute?TA:ed},Qy=function(r,t){return t.set(t.t,t.p,Math.round((t.s+t.c*r)*1e6)/1e6,t)},EA=function(r,t){return t.set(t.t,t.p,!!(t.s+t.c*r),t)},Jy=function(r,t){var e=t._pt,i="";if(!r&&t.b)i=t.b;else if(r===1&&t.e)i=t.e;else{for(;e;)i=e.p+(e.m?e.m(e.s+e.c*r):Math.round((e.s+e.c*r)*1e4)/1e4)+i,e=e._next;i+=t.c}t.set(t.t,t.p,i,t)},id=function(r,t){for(var e=t._pt;e;)e.r(r,e.d),e=e._next},AA=function(r,t,e,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(r,t,e),n=s},SA=function(r){for(var t=this._pt,e,i;t;)i=t._next,t.p===r&&!t.op||t.op===r?Nh(this,t,"_pt"):t.dep||(e=1),t=i;return!e},CA=function(r,t,e,i){i.mSet(r,t,i.m.call(i.tween,e,i.mt),i)},tv=function(r){for(var t=r._pt,e,i,n,s;t;){for(e=t._next,i=n;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:s)?t._prev._next=t:n=t,(t._next=i)?i._prev=t:s=t,t=e}r._pt=n},Se=(function(){function r(e,i,n,s,o,a,h,l,u){this.t=i,this.s=s,this.c=o,this.p=n,this.r=a||Qy,this.d=h||this,this.set=l||ed,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=r.prototype;return t.modifier=function(e,i,n){this.mSet=this.mSet||this.set,this.set=CA,this.m=e,this.mt=n,this.tween=i},r})();Ae(Kc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(r){return Zc[r]=1});Be.TweenMax=Be.TweenLite=qt;Be.TimelineLite=Be.TimelineMax=ye;Ht=new ye({sortChildren:!1,defaults:hs,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Le.stringFilter=jy;var yn=[],Oa={},MA=[],wm=0,RA=0,ru=function(r){return(Oa[r]||MA).map(function(t){return t()})},dc=function(){var r=Date.now(),t=[];r-wm>2&&(ru("matchMediaInit"),yn.forEach(function(e){var i=e.queries,n=e.conditions,s,o,a,h;for(o in i)s=Sr.matchMedia(i[o]).matches,s&&(a=1),s!==n[o]&&(n[o]=s,h=1);h&&(e.revert(),a&&t.push(e))}),ru("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(i){return e.add(null,i)})}),wm=r,ru("matchMedia"))},ev=(function(){function r(e,i){this.selector=i&&lc(i),this.data=[],this._r=[],this.isReverted=!1,this.id=RA++,e&&this.add(e)}var t=r.prototype;return t.add=function(e,i,n){Xt(e)&&(n=i,i=e,e=Xt);var s=this,o=function(){var a=Ft,h=s.selector,l;return a&&a!==s&&a.data.push(s),n&&(s.selector=lc(n)),Ft=s,l=i.apply(s,arguments),Xt(l)&&s._r.push(l),Ft=a,s.selector=h,s.isReverted=!1,l};return s.last=o,e===Xt?o(s,function(a){return s.add(null,a)}):e?s[e]=o:o},t.ignore=function(e){var i=Ft;Ft=null,e(this),Ft=i},t.getTweens=function(){var e=[];return this.data.forEach(function(i){return i instanceof r?e.push.apply(e,i.getTweens()):i instanceof qt&&!(i.parent&&i.parent.data==="nested")&&e.push(i)}),e},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,i){var n=this;if(e?(function(){for(var o=n.getTweens(),a=n.data.length,h;a--;)h=n.data[a],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(l){return o.splice(o.indexOf(l),1)}));for(o.map(function(l){return{g:l._dur||l._delay||l._sat&&!l._sat.vars.immediateRender?l.globalTime(0):-1/0,t:l}}).sort(function(l,u){return u.g-l.g||-1/0}).forEach(function(l){return l.t.revert(e)}),a=n.data.length;a--;)h=n.data[a],h instanceof ye?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof qt)&&h.revert&&h.revert(e);n._r.forEach(function(l){return l(e,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=yn.length;s--;)yn[s].id===this.id&&yn.splice(s,1)},t.revert=function(e){this.kill(e||{})},r})(),PA=(function(){function r(e){this.contexts=[],this.scope=e,Ft&&Ft.data.push(this)}var t=r.prototype;return t.add=function(e,i,n){Lr(e)||(e={matches:e});var s=new ev(0,n||this.scope),o=s.conditions={},a,h,l;Ft&&!s.selector&&(s.selector=Ft.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=e;for(h in e)h==="all"?l=1:(a=Sr.matchMedia(e[h]),a&&(yn.indexOf(s)<0&&yn.push(s),(o[h]=a.matches)&&(l=1),a.addListener?a.addListener(dc):a.addEventListener("change",dc)));return l&&i(s,function(u){return s.add(null,u)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(i){return i.kill(e,!0)})},r})(),sh={registerPlugin:function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];t.forEach(function(i){return Hy(i)})},timeline:function(r){return new ye(r)},getTweensOf:function(r,t){return Ht.getTweensOf(r,t)},getProperty:function(r,t,e,i){he(r)&&(r=Qe(r)[0]);var n=pn(r||{}).get,s=e?Cy:Sy;return e==="native"&&(e=""),r&&(t?s((Oe[t]&&Oe[t].get||n)(r,t,e,i)):function(o,a,h){return s((Oe[o]&&Oe[o].get||n)(r,o,a,h))})},quickSetter:function(r,t,e){if(r=Qe(r),r.length>1){var i=r.map(function(l){return Me.quickSetter(l,t,e)}),n=i.length;return function(l){for(var u=n;u--;)i[u](l)}}r=r[0]||{};var s=Oe[t],o=pn(r),a=o.harness&&(o.harness.aliases||{})[t]||t,h=s?function(l){var u=new s;Yn._pt=0,u.init(r,e?l+e:l,Yn,0,[r]),u.render(1,u),Yn._pt&&id(1,Yn)}:o.set(r,a);return s?h:function(l){return h(r,a,e?l+e:l,o,1)}},quickTo:function(r,t,e){var i,n=Me.to(r,bn((i={},i[t]="+=0.1",i.paused=!0,i),e||{})),s=function(o,a,h){return n.resetTo(t,o,a,h)};return s.tween=n,s},isTweening:function(r){return Ht.getTweensOf(r,!0).length>0},defaults:function(r){return r&&r.ease&&(r.ease=gn(r.ease,hs.ease)),gm(hs,r||{})},config:function(r){return gm(Le,r||{})},registerEffect:function(r){var t=r.name,e=r.effect,i=r.plugins,n=r.defaults,s=r.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Oe[o]&&!Be[o]&&lo(t+" effect requires "+o+" plugin.")}),Ql[t]=function(o,a,h){return e(Qe(o),tr(a||{},n),h)},s&&(ye.prototype[t]=function(o,a,h){return this.add(Ql[t](o,Lr(a)?a:(h=a)&&{},this),h)})},registerEase:function(r,t){Tt[r]=gn(t)},parseEase:function(r,t){return arguments.length?gn(r,t):Tt},getById:function(r){return Ht.getById(r)},exportRoot:function(r,t){r===void 0&&(r={});var e=new ye(r),i,n;for(e.smoothChildTiming=Ee(r.smoothChildTiming),Ht.remove(e),e._dp=0,e._time=e._tTime=Ht._time,i=Ht._first;i;)n=i._next,(t||!(!i._dur&&i instanceof qt&&i.vars.onComplete===i._targets[0]))&&Mr(e,i,i._start-i._delay),i=n;return Mr(Ht,e,0),e},context:function(r,t){return r?new ev(r,t):Ft},matchMedia:function(r){return new PA(r)},matchMediaRefresh:function(){return yn.forEach(function(r){var t=r.conditions,e,i;for(i in t)t[i]&&(t[i]=!1,e=1);e&&r.revert()})||dc()},addEventListener:function(r,t){var e=Oa[r]||(Oa[r]=[]);~e.indexOf(t)||e.push(t)},removeEventListener:function(r,t){var e=Oa[r],i=e&&e.indexOf(t);i>=0&&e.splice(i,1)},utils:{wrap:hA,wrapYoyo:lA,distribute:ky,random:Fy,snap:Ny,normalize:aA,getUnit:pe,clamp:iA,splitColor:Gy,toArray:Qe,selector:lc,mapRange:By,pipe:sA,unitize:oA,interpolate:uA,shuffle:Oy},install:wy,effects:Ql,ticker:Ne,updateRoot:ye.updateRoot,plugins:Oe,globalTimeline:Ht,core:{PropTween:Se,globals:by,Tween:qt,Timeline:ye,Animation:po,getCache:pn,_removeLinkedListItem:Nh,reverting:function(){return me},context:function(r){return r&&Ft&&(Ft.data.push(r),r._ctx=Ft),Ft},suppressOverwrites:function(r){return Xc=r}}};Ae("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return sh[r]=qt[r]});Ne.add(ye.updateRoot);Yn=sh.to({},{duration:0});var IA=function(r,t){for(var e=r._pt;e&&e.p!==t&&e.op!==t&&e.fp!==t;)e=e._next;return e},DA=function(r,t){var e=r._targets,i,n,s;for(i in t)for(n=e.length;n--;)s=r._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=IA(s,i)),s&&s.modifier&&s.modifier(t[i],r,e[n],i))},iu=function(r,t){return{name:r,rawVars:1,init:function(e,i,n){n._onInit=function(s){var o,a;if(he(i)&&(o={},Ae(i,function(h){return o[h]=1}),i=o),t){o={};for(a in i)o[a]=t(i[a]);i=o}DA(s,i)}}}},Me=sh.registerPlugin({name:"attr",init:function(r,t,e,i,n){var s,o,a;this.tween=e;for(s in t)a=r.getAttribute(s)||"",o=this.add(r,"setAttribute",(a||0)+"",t[s],i,n,0,0,s),o.op=s,o.b=a,this._props.push(s)},render:function(r,t){for(var e=t._pt;e;)me?e.set(e.t,e.p,e.b,e):e.r(r,e.d),e=e._next}},{name:"endArray",init:function(r,t){for(var e=t.length;e--;)this.add(r,e,r[e]||0,t[e],0,0,0,0,0,1)}},iu("roundProps",uc),iu("modifiers"),iu("snap",Ny))||sh;qt.version=ye.version=Me.version="3.12.5";xy=1;$c()&&cs();Tt.Power0;Tt.Power1;Tt.Power2;Tt.Power3;Tt.Power4;Tt.Linear;Tt.Quad;Tt.Cubic;Tt.Quart;Tt.Quint;Tt.Strong;Tt.Elastic;Tt.Back;Tt.SteppedEase;Tt.Bounce;Tt.Sine;Tt.Expo;Tt.Circ;var bm,Ci,is,nd,ln,Tm,sd,OA=function(){return typeof window<"u"},ni={},on=180/Math.PI,ns=Math.PI/180,Bn=Math.atan2,Em=1e8,od=/([A-Z])/g,kA=/(left|right|width|margin|padding|x)/i,NA=/[\s,\(]\S/,Pr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},fc=function(r,t){return t.set(t.t,t.p,Math.round((t.s+t.c*r)*1e4)/1e4+t.u,t)},FA=function(r,t){return t.set(t.t,t.p,r===1?t.e:Math.round((t.s+t.c*r)*1e4)/1e4+t.u,t)},LA=function(r,t){return t.set(t.t,t.p,r?Math.round((t.s+t.c*r)*1e4)/1e4+t.u:t.b,t)},BA=function(r,t){var e=t.s+t.c*r;t.set(t.t,t.p,~~(e+(e<0?-.5:.5))+t.u,t)},rv=function(r,t){return t.set(t.t,t.p,r?t.e:t.b,t)},iv=function(r,t){return t.set(t.t,t.p,r!==1?t.b:t.e,t)},UA=function(r,t,e){return r.style[t]=e},HA=function(r,t,e){return r.style.setProperty(t,e)},GA=function(r,t,e){return r._gsap[t]=e},zA=function(r,t,e){return r._gsap.scaleX=r._gsap.scaleY=e},jA=function(r,t,e,i,n){var s=r._gsap;s.scaleX=s.scaleY=e,s.renderTransform(n,s)},WA=function(r,t,e,i,n){var s=r._gsap;s[t]=e,s.renderTransform(n,s)},Gt="transform",Ce=Gt+"Origin",XA=function r(t,e){var i=this,n=this.target,s=n.style,o=n._gsap;if(t in ni&&s){if(this.tfm=this.tfm||{},t!=="transform")t=Pr[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=Yr(n,a)}):this.tfm[t]=o.x?o[t]:Yr(n,t),t===Ce&&(this.tfm.zOrigin=o.zOrigin);else return Pr.transform.split(",").forEach(function(a){return r.call(i,a,e)});if(this.props.indexOf(Gt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Ce,e,"")),t=Gt}(s||e)&&this.props.push(t,e,s[t])},nv=function(r){r.translate&&(r.removeProperty("translate"),r.removeProperty("scale"),r.removeProperty("rotate"))},VA=function(){var r=this.props,t=this.target,e=t.style,i=t._gsap,n,s;for(n=0;n<r.length;n+=3)r[n+1]?t[r[n]]=r[n+2]:r[n+2]?e[r[n]]=r[n+2]:e.removeProperty(r[n].substr(0,2)==="--"?r[n]:r[n].replace(od,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),n=sd(),(!n||!n.isStart)&&!e[Gt]&&(nv(e),i.zOrigin&&e[Ce]&&(e[Ce]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},sv=function(r,t){var e={target:r,props:[],revert:VA,save:XA};return r._gsap||Me.core.getCache(r),t&&t.split(",").forEach(function(i){return e.save(i)}),e},ov,pc=function(r,t){var e=Ci.createElementNS?Ci.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),r):Ci.createElement(r);return e&&e.style?e:Ci.createElement(r)},kr=function r(t,e,i){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(od,"-$1").toLowerCase())||n.getPropertyValue(e)||!i&&r(t,ds(e)||e,1)||""},Am="O,Moz,ms,Ms,Webkit".split(","),ds=function(r,t,e){var i=t||ln,n=i.style,s=5;if(r in n&&!e)return r;for(r=r.charAt(0).toUpperCase()+r.substr(1);s--&&!(Am[s]+r in n););return s<0?null:(s===3?"ms":s>=0?Am[s]:"")+r},mc=function(){OA()&&window.document&&(bm=window,Ci=bm.document,is=Ci.documentElement,ln=pc("div")||{style:{}},pc("div"),Gt=ds(Gt),Ce=Gt+"Origin",ln.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ov=!!ds("perspective"),sd=Me.core.reverting,nd=1)},nu=function r(t){var e=pc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,s=this.style.cssText,o;if(is.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(o=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),is.removeChild(e),this.style.cssText=s,o},Sm=function(r,t){for(var e=t.length;e--;)if(r.hasAttribute(t[e]))return r.getAttribute(t[e])},av=function(r){var t;try{t=r.getBBox()}catch{t=nu.call(r,!0)}return t&&(t.width||t.height)||r.getBBox===nu||(t=nu.call(r,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Sm(r,["x","cx","x1"])||0,y:+Sm(r,["y","cy","y1"])||0,width:0,height:0}:t},hv=function(r){return!!(r.getCTM&&(!r.parentNode||r.ownerSVGElement)&&av(r))},Tn=function(r,t){if(t){var e=r.style,i;t in ni&&t!==Ce&&(t=Gt),e.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),e.removeProperty(i==="--"?t:t.replace(od,"-$1").toLowerCase())):e.removeAttribute(t)}},Mi=function(r,t,e,i,n,s){var o=new Se(r._pt,t,e,0,1,s?iv:rv);return r._pt=o,o.b=i,o.e=n,r._props.push(e),o},Cm={deg:1,rad:1,turn:1},$A={grid:1,flex:1},Li=function r(t,e,i,n){var s=parseFloat(i)||0,o=(i+"").trim().substr((s+"").length)||"px",a=ln.style,h=kA.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(h?"Width":"Height"),c=100,d=n==="px",f=n==="%",p,m,g,v;if(n===o||!s||Cm[n]||Cm[o])return s;if(o!=="px"&&!d&&(s=r(t,e,i,"px")),v=t.getCTM&&hv(t),(f||o==="%")&&(ni[e]||~e.indexOf("adius")))return p=v?t.getBBox()[h?"width":"height"]:t[u],Vt(f?s/p*c:s/100*p);if(a[h?"width":"height"]=c+(d?o:n),m=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===Ci||!m.appendChild)&&(m=Ci.body),g=m._gsap,g&&f&&g.width&&h&&g.time===Ne.time&&!g.uncache)return Vt(s/g.width*c);if(f&&(e==="height"||e==="width")){var w=t.style[e];t.style[e]=c+n,p=t[u],w?t.style[e]=w:Tn(t,e)}else(f||o==="%")&&!$A[kr(m,"display")]&&(a.position=kr(t,"position")),m===t&&(a.position="static"),m.appendChild(ln),p=ln[u],m.removeChild(ln),a.position="absolute";return h&&f&&(g=pn(m),g.time=Ne.time,g.width=m[u]),Vt(d?p*s/c:p&&s?c/p*s:0)},Yr=function(r,t,e,i){var n;return nd||mc(),t in Pr&&t!=="transform"&&(t=Pr[t],~t.indexOf(",")&&(t=t.split(",")[0])),ni[t]&&t!=="transform"?(n=go(r,i),n=t!=="transformOrigin"?n[t]:n.svg?n.origin:ah(kr(r,Ce))+" "+n.zOrigin+"px"):(n=r.style[t],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=oh[t]&&oh[t](r,t,e)||kr(r,t)||Ey(r,t)||(t==="opacity"?1:0))),e&&!~(n+"").trim().indexOf(" ")?Li(r,t,n,e)+e:n},YA=function(r,t,e,i){if(!e||e==="none"){var n=ds(t,r,1),s=n&&kr(r,n,1);s&&s!==e?(t=n,e=s):t==="borderColor"&&(e=kr(r,"borderTopColor"))}var o=new Se(this._pt,r.style,t,0,1,Jy),a=0,h=0,l,u,c,d,f,p,m,g,v,w,_,T;if(o.b=e,o.e=i,e+="",i+="",i==="auto"&&(p=r.style[t],r.style[t]=i,i=kr(r,t)||i,p?r.style[t]=p:Tn(r,t)),l=[e,i],jy(l),e=l[0],i=l[1],c=e.match($n)||[],T=i.match($n)||[],T.length){for(;u=$n.exec(i);)m=u[0],v=i.substring(a,u.index),f?f=(f+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(f=1),m!==(p=c[h++]||"")&&(d=parseFloat(p)||0,_=p.substr((d+"").length),m.charAt(1)==="="&&(m=rs(d,m)+_),g=parseFloat(m),w=m.substr((g+"").length),a=$n.lastIndex-w.length,w||(w=w||Le.units[t]||_,a===i.length&&(i+=w,o.e+=w)),_!==w&&(d=Li(r,t,p,w)||0),o._pt={_next:o._pt,p:v||h===1?v:",",s:d,c:g-d,m:f&&f<4||t==="zIndex"?Math.round:0});o.c=a<i.length?i.substring(a,i.length):""}else o.r=t==="display"&&i==="none"?iv:rv;return vy.test(i)&&(o.e=0),this._pt=o,o},Mm={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qA=function(r){var t=r.split(" "),e=t[0],i=t[1]||"50%";return(e==="top"||e==="bottom"||i==="left"||i==="right")&&(r=e,e=i,i=r),t[0]=Mm[e]||e,t[1]=Mm[i]||i,t.join(" ")},ZA=function(r,t){if(t.tween&&t.tween._time===t.tween._dur){var e=t.t,i=e.style,n=t.u,s=e._gsap,o,a,h;if(n==="all"||n===!0)i.cssText="",a=1;else for(n=n.split(","),h=n.length;--h>-1;)o=n[h],ni[o]&&(a=1,o=o==="transformOrigin"?Ce:Gt),Tn(e,o);a&&(Tn(e,Gt),s&&(s.svg&&e.removeAttribute("transform"),go(e,1),s.uncache=1,nv(i)))}},oh={clearProps:function(r,t,e,i,n){if(n.data!=="isFromStart"){var s=r._pt=new Se(r._pt,t,e,0,0,ZA);return s.u=i,s.pr=-10,s.tween=n,r._props.push(e),1}}},mo=[1,0,0,1,0,0],lv={},uv=function(r){return r==="matrix(1, 0, 0, 1, 0, 0)"||r==="none"||!r},Rm=function(r){var t=kr(r,Gt);return uv(t)?mo:t.substr(7).match(yy).map(Vt)},ad=function(r,t){var e=r._gsap||pn(r),i=r.style,n=Rm(r),s,o,a,h;return e.svg&&r.getAttribute("transform")?(a=r.transform.baseVal.consolidate().matrix,n=[a.a,a.b,a.c,a.d,a.e,a.f],n.join(",")==="1,0,0,1,0,0"?mo:n):(n===mo&&!r.offsetParent&&r!==is&&!e.svg&&(a=i.display,i.display="block",s=r.parentNode,(!s||!r.offsetParent)&&(h=1,o=r.nextElementSibling,is.appendChild(r)),n=Rm(r),a?i.display=a:Tn(r,"display"),h&&(o?s.insertBefore(r,o):s?s.appendChild(r):is.removeChild(r))),t&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},gc=function(r,t,e,i,n,s){var o=r._gsap,a=n||ad(r,!0),h=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,c=o.yOffset||0,d=a[0],f=a[1],p=a[2],m=a[3],g=a[4],v=a[5],w=t.split(" "),_=parseFloat(w[0])||0,T=parseFloat(w[1])||0,b,x,y,S;e?a!==mo&&(x=d*m-f*p)&&(y=_*(m/x)+T*(-p/x)+(p*v-m*g)/x,S=_*(-f/x)+T*(d/x)-(d*v-f*g)/x,_=y,T=S):(b=av(r),_=b.x+(~w[0].indexOf("%")?_/100*b.width:_),T=b.y+(~(w[1]||w[0]).indexOf("%")?T/100*b.height:T)),i||i!==!1&&o.smooth?(g=_-h,v=T-l,o.xOffset=u+(g*d+v*p)-g,o.yOffset=c+(g*f+v*m)-v):o.xOffset=o.yOffset=0,o.xOrigin=_,o.yOrigin=T,o.smooth=!!i,o.origin=t,o.originIsAbsolute=!!e,r.style[Ce]="0px 0px",s&&(Mi(s,o,"xOrigin",h,_),Mi(s,o,"yOrigin",l,T),Mi(s,o,"xOffset",u,o.xOffset),Mi(s,o,"yOffset",c,o.yOffset)),r.setAttribute("data-svg-origin",_+" "+T)},go=function(r,t){var e=r._gsap||new $y(r);if("x"in e&&!t&&!e.uncache)return e;var i=r.style,n=e.scaleX<0,s="px",o="deg",a=getComputedStyle(r),h=kr(r,Ce)||"0",l,u,c,d,f,p,m,g,v,w,_,T,b,x,y,S,D,G,O,N,P,F,j,E,A,C,B,I,M,k,L,V;return l=u=c=p=m=g=v=w=_=0,d=f=1,e.svg=!!(r.getCTM&&hv(r)),a.translate&&((a.translate!=="none"||a.scale!=="none"||a.rotate!=="none")&&(i[Gt]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[Gt]!=="none"?a[Gt]:"")),i.scale=i.rotate=i.translate="none"),x=ad(r,e.svg),e.svg&&(e.uncache?(A=r.getBBox(),h=e.xOrigin-A.x+"px "+(e.yOrigin-A.y)+"px",E=""):E=!t&&r.getAttribute("data-svg-origin"),gc(r,E||h,!!E||e.originIsAbsolute,e.smooth!==!1,x)),T=e.xOrigin||0,b=e.yOrigin||0,x!==mo&&(G=x[0],O=x[1],N=x[2],P=x[3],l=F=x[4],u=j=x[5],x.length===6?(d=Math.sqrt(G*G+O*O),f=Math.sqrt(P*P+N*N),p=G||O?Bn(O,G)*on:0,v=N||P?Bn(N,P)*on+p:0,v&&(f*=Math.abs(Math.cos(v*ns))),e.svg&&(l-=T-(T*G+b*N),u-=b-(T*O+b*P))):(V=x[6],k=x[7],B=x[8],I=x[9],M=x[10],L=x[11],l=x[12],u=x[13],c=x[14],y=Bn(V,M),m=y*on,y&&(S=Math.cos(-y),D=Math.sin(-y),E=F*S+B*D,A=j*S+I*D,C=V*S+M*D,B=F*-D+B*S,I=j*-D+I*S,M=V*-D+M*S,L=k*-D+L*S,F=E,j=A,V=C),y=Bn(-N,M),g=y*on,y&&(S=Math.cos(-y),D=Math.sin(-y),E=G*S-B*D,A=O*S-I*D,C=N*S-M*D,L=P*D+L*S,G=E,O=A,N=C),y=Bn(O,G),p=y*on,y&&(S=Math.cos(y),D=Math.sin(y),E=G*S+O*D,A=F*S+j*D,O=O*S-G*D,j=j*S-F*D,G=E,F=A),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,g=180-g),d=Vt(Math.sqrt(G*G+O*O+N*N)),f=Vt(Math.sqrt(j*j+V*V)),y=Bn(F,j),v=Math.abs(y)>2e-4?y*on:0,_=L?1/(L<0?-L:L):0),e.svg&&(E=r.getAttribute("transform"),e.forceCSS=r.setAttribute("transform","")||!uv(kr(r,Gt)),E&&r.setAttribute("transform",E))),Math.abs(v)>90&&Math.abs(v)<270&&(n?(d*=-1,v+=p<=0?180:-180,p+=p<=0?180:-180):(f*=-1,v+=v<=0?180:-180)),t=t||e.uncache,e.x=l-((e.xPercent=l&&(!t&&e.xPercent||(Math.round(r.offsetWidth/2)===Math.round(-l)?-50:0)))?r.offsetWidth*e.xPercent/100:0)+s,e.y=u-((e.yPercent=u&&(!t&&e.yPercent||(Math.round(r.offsetHeight/2)===Math.round(-u)?-50:0)))?r.offsetHeight*e.yPercent/100:0)+s,e.z=c+s,e.scaleX=Vt(d),e.scaleY=Vt(f),e.rotation=Vt(p)+o,e.rotationX=Vt(m)+o,e.rotationY=Vt(g)+o,e.skewX=v+o,e.skewY=w+o,e.transformPerspective=_+s,(e.zOrigin=parseFloat(h.split(" ")[2])||!t&&e.zOrigin||0)&&(i[Ce]=ah(h)),e.xOffset=e.yOffset=0,e.force3D=Le.force3D,e.renderTransform=e.svg?QA:ov?cv:KA,e.uncache=0,e},ah=function(r){return(r=r.split(" "))[0]+" "+r[1]},su=function(r,t,e){var i=pe(t);return Vt(parseFloat(t)+parseFloat(Li(r,"x",e+"px",i)))+i},KA=function(r,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,cv(r,t)},Ki="0deg",ks="0px",Qi=") ",cv=function(r,t){var e=t||this,i=e.xPercent,n=e.yPercent,s=e.x,o=e.y,a=e.z,h=e.rotation,l=e.rotationY,u=e.rotationX,c=e.skewX,d=e.skewY,f=e.scaleX,p=e.scaleY,m=e.transformPerspective,g=e.force3D,v=e.target,w=e.zOrigin,_="",T=g==="auto"&&r&&r!==1||g===!0;if(w&&(u!==Ki||l!==Ki)){var b=parseFloat(l)*ns,x=Math.sin(b),y=Math.cos(b),S;b=parseFloat(u)*ns,S=Math.cos(b),s=su(v,s,x*S*-w),o=su(v,o,-Math.sin(b)*-w),a=su(v,a,y*S*-w+w)}m!==ks&&(_+="perspective("+m+Qi),(i||n)&&(_+="translate("+i+"%, "+n+"%) "),(T||s!==ks||o!==ks||a!==ks)&&(_+=a!==ks||T?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+Qi),h!==Ki&&(_+="rotate("+h+Qi),l!==Ki&&(_+="rotateY("+l+Qi),u!==Ki&&(_+="rotateX("+u+Qi),(c!==Ki||d!==Ki)&&(_+="skew("+c+", "+d+Qi),(f!==1||p!==1)&&(_+="scale("+f+", "+p+Qi),v.style[Gt]=_||"translate(0, 0)"},QA=function(r,t){var e=t||this,i=e.xPercent,n=e.yPercent,s=e.x,o=e.y,a=e.rotation,h=e.skewX,l=e.skewY,u=e.scaleX,c=e.scaleY,d=e.target,f=e.xOrigin,p=e.yOrigin,m=e.xOffset,g=e.yOffset,v=e.forceCSS,w=parseFloat(s),_=parseFloat(o),T,b,x,y,S;a=parseFloat(a),h=parseFloat(h),l=parseFloat(l),l&&(l=parseFloat(l),h+=l,a+=l),a||h?(a*=ns,h*=ns,T=Math.cos(a)*u,b=Math.sin(a)*u,x=Math.sin(a-h)*-c,y=Math.cos(a-h)*c,h&&(l*=ns,S=Math.tan(h-l),S=Math.sqrt(1+S*S),x*=S,y*=S,l&&(S=Math.tan(l),S=Math.sqrt(1+S*S),T*=S,b*=S)),T=Vt(T),b=Vt(b),x=Vt(x),y=Vt(y)):(T=u,y=c,b=x=0),(w&&!~(s+"").indexOf("px")||_&&!~(o+"").indexOf("px"))&&(w=Li(d,"x",s,"px"),_=Li(d,"y",o,"px")),(f||p||m||g)&&(w=Vt(w+f-(f*T+p*x)+m),_=Vt(_+p-(f*b+p*y)+g)),(i||n)&&(S=d.getBBox(),w=Vt(w+i/100*S.width),_=Vt(_+n/100*S.height)),S="matrix("+T+","+b+","+x+","+y+","+w+","+_+")",d.setAttribute("transform",S),v&&(d.style[Gt]=S)},JA=function(r,t,e,i,n){var s=360,o=he(n),a=parseFloat(n)*(o&&~n.indexOf("rad")?on:1),h=a-i,l=i+h+"deg",u,c;return o&&(u=n.split("_")[1],u==="short"&&(h%=s,h!==h%(s/2)&&(h+=h<0?s:-s)),u==="cw"&&h<0?h=(h+s*Em)%s-~~(h/s)*s:u==="ccw"&&h>0&&(h=(h-s*Em)%s-~~(h/s)*s)),r._pt=c=new Se(r._pt,t,e,i,h,FA),c.e=l,c.u="deg",r._props.push(e),c},Pm=function(r,t){for(var e in t)r[e]=t[e];return r},tS=function(r,t,e){var i=Pm({},e._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=e.style,o,a,h,l,u,c,d,f;i.svg?(h=e.getAttribute("transform"),e.setAttribute("transform",""),s[Gt]=t,o=go(e,1),Tn(e,Gt),e.setAttribute("transform",h)):(h=getComputedStyle(e)[Gt],s[Gt]=t,o=go(e,1),s[Gt]=h);for(a in ni)h=i[a],l=o[a],h!==l&&n.indexOf(a)<0&&(d=pe(h),f=pe(l),u=d!==f?Li(e,a,h,f):parseFloat(h),c=parseFloat(l),r._pt=new Se(r._pt,o,a,u,c-u,fc),r._pt.u=f||0,r._props.push(a));Pm(o,i)};Ae("padding,margin,Width,Radius",function(r,t){var e="Top",i="Right",n="Bottom",s="Left",o=(t<3?[e,i,n,s]:[e+s,e+i,n+i,n+s]).map(function(a){return t<2?r+a:"border"+a+r});oh[t>1?"border"+r:r]=function(a,h,l,u,c){var d,f;if(arguments.length<4)return d=o.map(function(p){return Yr(a,p,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(p,m){return f[p]=d[m]=d[m]||d[(m-1)/2|0]}),a.init(h,f,c)}});var dv={name:"css",register:mc,targetTest:function(r){return r.style&&r.nodeType},init:function(r,t,e,i,n){var s=this._props,o=r.style,a=e.vars.startAt,h,l,u,c,d,f,p,m,g,v,w,_,T,b,x,y;nd||mc(),this.styles=this.styles||sv(r),y=this.styles.props,this.tween=e;for(p in t)if(p!=="autoRound"&&(l=t[p],!(Oe[p]&&Yy(p,t,e,i,r,n)))){if(d=typeof l,f=oh[p],d==="function"&&(l=l.call(e,i,r,n),d=typeof l),d==="string"&&~l.indexOf("random(")&&(l=co(l)),f)f(this,r,p,l,e)&&(x=1);else if(p.substr(0,2)==="--")h=(getComputedStyle(r).getPropertyValue(p)+"").trim(),l+="",Ii.lastIndex=0,Ii.test(h)||(m=pe(h),g=pe(l)),g?m!==g&&(h=Li(r,p,h,g)+g):m&&(l+=m),this.add(o,"setProperty",h,l,i,n,0,0,p),s.push(p),y.push(p,0,o[p]);else if(d!=="undefined"){if(a&&p in a?(h=typeof a[p]=="function"?a[p].call(e,i,r,n):a[p],he(h)&&~h.indexOf("random(")&&(h=co(h)),pe(h+"")||h==="auto"||(h+=Le.units[p]||pe(Yr(r,p))||""),(h+"").charAt(1)==="="&&(h=Yr(r,p))):h=Yr(r,p),c=parseFloat(h),v=d==="string"&&l.charAt(1)==="="&&l.substr(0,2),v&&(l=l.substr(2)),u=parseFloat(l),p in Pr&&(p==="autoAlpha"&&(c===1&&Yr(r,"visibility")==="hidden"&&u&&(c=0),y.push("visibility",0,o.visibility),Mi(this,o,"visibility",c?"inherit":"hidden",u?"inherit":"hidden",!u)),p!=="scale"&&p!=="transform"&&(p=Pr[p],~p.indexOf(",")&&(p=p.split(",")[0]))),w=p in ni,w){if(this.styles.save(p),_||(T=r._gsap,T.renderTransform&&!t.parseTransform||go(r,t.parseTransform),b=t.smoothOrigin!==!1&&T.smooth,_=this._pt=new Se(this._pt,o,Gt,0,1,T.renderTransform,T,0,-1),_.dep=1),p==="scale")this._pt=new Se(this._pt,T,"scaleY",T.scaleY,(v?rs(T.scaleY,v+u):u)-T.scaleY||0,fc),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){y.push(Ce,0,o[Ce]),l=qA(l),T.svg?gc(r,l,0,b,0,this):(g=parseFloat(l.split(" ")[2])||0,g!==T.zOrigin&&Mi(this,T,"zOrigin",T.zOrigin,g),Mi(this,o,p,ah(h),ah(l)));continue}else if(p==="svgOrigin"){gc(r,l,1,b,0,this);continue}else if(p in lv){JA(this,T,p,c,v?rs(c,v+l):l);continue}else if(p==="smoothOrigin"){Mi(this,T,"smooth",T.smooth,l);continue}else if(p==="force3D"){T[p]=l;continue}else if(p==="transform"){tS(this,l,r);continue}}else p in o||(p=ds(p)||p);if(w||(u||u===0)&&(c||c===0)&&!NA.test(l)&&p in o)m=(h+"").substr((c+"").length),u||(u=0),g=pe(l)||(p in Le.units?Le.units[p]:m),m!==g&&(c=Li(r,p,h,g)),this._pt=new Se(this._pt,w?T:o,p,c,(v?rs(c,v+u):u)-c,!w&&(g==="px"||p==="zIndex")&&t.autoRound!==!1?BA:fc),this._pt.u=g||0,m!==g&&g!=="%"&&(this._pt.b=h,this._pt.r=LA);else if(p in o)YA.call(this,r,p,h,v?v+l:l);else if(p in r)this.add(r,p,h||r[p],v?v+l:l,i,n);else if(p!=="parseTransform"){qc(p,l);continue}w||(p in o?y.push(p,0,o[p]):y.push(p,1,h||r[p])),s.push(p)}}x&&tv(this)},render:function(r,t){if(t.tween._time||!sd())for(var e=t._pt;e;)e.r(r,e.d),e=e._next;else t.styles.revert()},get:Yr,aliases:Pr,getSetter:function(r,t,e){var i=Pr[t];return i&&i.indexOf(",")<0&&(t=i),t in ni&&t!==Ce&&(r._gsap.x||Yr(r,"x"))?e&&Tm===e?t==="scale"?zA:GA:(Tm=e||{})&&(t==="scale"?jA:WA):r.style&&!Vc(r.style[t])?UA:~t.indexOf("-")?HA:rd(r,t)},core:{_removeProperty:Tn,_getMatrix:ad}};Me.utils.checkPrefix=ds;Me.core.getStyleSaver=sv;(function(r,t,e,i){var n=Ae(r+","+t+","+e,function(s){ni[s]=1});Ae(t,function(s){Le.units[s]="deg",lv[s]=1}),Pr[n[13]]=r+","+t,Ae(i,function(s){var o=s.split(":");Pr[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ae("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Le.units[r]="px"});Me.registerPlugin(dv);var fv=Me.registerPlugin(dv)||Me;fv.core.Tween;function pv(r,t){return typeof r=="function"?r(t):r&&typeof r=="object"&&pm in r?r[pm](t):r instanceof Date?new r.constructor(t):new Date(t)}function yc(r,t){return pv(r,r)}function eS(r,t,e){return pv(r,+yc(r)+t)}function rS(r,t,e){return eS(r,t*1e3)}function iS(r){return t=>{const e=Math.trunc,i=e(t);return i===0?0:i}}function mv(r,t){return+yc(r)-+yc(t)}function nS(r,t,e){const i=mv(r,t)/1e3;return iS()(i)}const sS=r=>({font:{fontFamily:"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",type:"BitmapFont"},rowGap:24,columnGap:32,textDefault:r==="dark"?"#ffffff":"#161618",textInverse:r==="dark"?"#161618":"#ffffff",selectedBorderColor:r==="dark"?"#3fa2c3":"#297f9c",selectedBorderWidth:2,selectedBorderOffset:4,selectedBorderRadius:9,nodesPadding:16,nodeHeight:32,nodePadding:4,nodeRadius:6,nodeBorderRadius:9,nodeToggleSize:28,nodeToggleBgColor:"#35363C",nodeToggleBorderRadius:6,nodeToggleBorderColor:r==="dark"?"#4d4f56":"#bbbec9",nodeUnselectedAlpha:.2,artifactsGap:4,artifactsNodeOverlap:4,artifactPaddingLeft:2,artifactPaddingRight:4,artifactPaddingY:2,artifactTextColor:"#ffffff",artifactBgColor:"#35363b",artifactBorderRadius:4,artifactContentGap:4,artifactIconSize:16,artifactIconColor:"#ffffff",flowStateBarHeight:8,flowStateSelectedBarHeight:10,flowStateAreaAlpha:.1,eventTargetSize:30,eventBottomMargin:4,eventSelectedBorderInset:8,eventRadiusDefault:4,eventColor:"#A564F9",eventClusterRadiusDefault:6,eventClusterColor:"#A564F9",edgeColor:r==="dark"?"#adadad":"#737682",guideLineWidth:1,guideLineColor:r==="dark"?"#4d4f56":"#bbbec9",guideTextTopPadding:8,guideTextLeftPadding:8,guideTextSize:12,guideTextColor:r==="dark"?"#adadad":"#737682",playheadWidth:2,playheadColor:"#6272FF",node:()=>({background:"#ffffff"}),state:()=>({background:"#ffffff"})});let qn=null;async function oS(){const r=await Ue();qn=Im(r),rt.emit("stylesCreated",qn),rt.on("configUpdated",t=>{qn=Im(t),rt.emit("stylesUpdated",qn)})}function aS(){qn=null}async function jt(){return qn||await Re("stylesCreated")}function Im(r){return{...sS(r.theme),...r.styles?.(r.theme)}}function hS(r){let t=0;for(const[,{children:e}]of r)t+=e.length;return t}function lS({start_time:r,end_time:t,nodes:e},i,n){const s=Math.max(nS(t??new Date,r),1),o=i.nodeHeight+i.rowGap;return(e.size>0?e.size*o*.5:o*4)*n/(s*Ag)}async function uS(){const r=await Hr(),t=await Ue(),e=await jt(),i=await Qt(),n=i.view.width/i.view.height,s=lS(r,e,n);gv(s,!0),r.nodes.size>t.disableAnimationsThreshold&&(ut.disableAnimations=!0),hS(r.nodes)>t.disableEdgesThreshold&&(ut.disableEdges=!0)}function cS(){ut.horizontal="temporal",ut.vertical="nearest-parent",ut.horizontalScaleMultiplierDefault=0,ut.horizontalScaleMultiplier=0,ut.disableAnimations=!1,ut.disableGuides=!1,ut.disableEdges=!1,ut.disableArtifacts=!1,ut.disableEvents=!1}const ut={horizontal:"temporal",vertical:"nearest-parent",horizontalScaleMultiplierDefault:0,horizontalScaleMultiplier:0,disableAnimations:!1,disableGuides:!1,disableEdges:!1,disableArtifacts:!1,disableEvents:!1,isTemporal(){return this.horizontal==="temporal"},isDependency(){return this.horizontal==="dependency"},isWaterfall(){return this.vertical==="waterfall"},isNearestParent(){return this.vertical==="nearest-parent"},isLeftAligned(){return this.horizontal==="left-aligned"}};async function Kt(){return vc()?ut:await Re("layoutSettingsCreated")}function hd(){return ut.isDependency()?vx:Ag*ut.horizontalScaleMultiplier}function dS(){return[0,hd()]}function fS(r){if(ut.isDependency())return[0,1];const t=r,e=rS(t,yx);return[t,e]}function gv(r,t=!1){if(ut.horizontalScaleMultiplier===r)return;const e=xs();ut.horizontalScaleMultiplier=r,t&&(ut.horizontalScaleMultiplierDefault=r),e()}function hD(){gv(ut.horizontalScaleMultiplierDefault)}function lD(r){if(ut.horizontal===r)return;const t=xs();ut.horizontal=r,ut.disableGuides=ut.isDependency()||ut.isLeftAligned(),t()}function uD(r){if(ut.vertical===r)return;const t=xs();ut.vertical=r,t()}function cD(r){if(ut.disableEdges===r)return;const t=xs();ut.disableEdges=r,t()}function dD(r){if(ut.disableArtifacts===r)return;const t=xs();ut.disableArtifacts=r,t()}function fD(r){if(ut.disableEvents===r)return;const t=xs();ut.disableEvents=r,t()}function xs(){const r=vc()?"layoutSettingsUpdated":"layoutSettingsCreated",{horizontal:t,vertical:e}=ut;return()=>{vc()&&rt.emit(r,ut),(t!==ut.horizontal||e!==ut.vertical)&&rt.emit("layoutUpdated")}}function vc(){return ut.horizontalScaleMultiplier!==0}async function yv(){const r=await Kt(),t=await Ue();function e(i,n,s){const o=r.disableAnimations||s?0:t.animationDuration/1e3;return fv.to(i,{...n,duration:o,ease:"power1.out",onUpdate:()=>{Io()}})}return{animate:e}}async function pS({size:r,stroke:t=1,radius:e=0}){const i=await Qt(),n=new ki;return n.lineStyle(t,"#fff",1,0),n.drawRoundedRect(0,0,r*2,r*2,e),i.renderer.generateTexture(n,{region:new yt(0,0,r,r),resolution:10})}async function Zs(r){return await So(pS,[r])}var hh=(r=>(r[r.Up=0]="Up",r[r.Down=180]="Down",r[r.Left=270]="Left",r[r.Right=90]="Right",r))(hh||{});function vv(){const r=new Yt;async function t(e){const{rotate:i=0}=e,n={size:e.size,radius:e.radius,stroke:e.stroke},s=await Zs(n);return r.texture=s,r.anchor.set(.5,.5),r.angle=45+i,r}return{element:r,render:t}}async function mS(){const r=await Qt(),t=new ki;return t.beginFill("#fff"),t.drawRect(0,0,1,1),t.endFill(),r.renderer.generateTexture(t,{wrapMode:Ir.REPEAT})}async function ld(){return await So(mS,[])}function _c(r,t){return Array.from({length:r},(e,i)=>t(i))}const gS=8,yS=2;async function vS(){const r=await jt(),t=await S_(),e=await VI(),{animate:i}=await yv(),n=new bt,{element:s,render:o}=await vv(),a=await ld(),h=_c(Mg,()=>new mt),l=new gT(a,h);let u=!1;n.name=gx,n.addChild(s),n.addChild(l),t.addAll([s,l]),e.add(n);async function c(){return await o({size:10,rotate:hh.Right}),s.tint=r.edgeColor,l.tint=r.edgeColor,n}async function d(p,m){const g=f(m);u||await c();for(const[v,w]of h.entries()){const{x:_,y:T}=g[v];i(w,{x:_,y:T},!u)}i(n,{x:p.x,y:p.y},!u),i(s,{x:m.x-gS,y:m.y},!u),u=!0}function f({x:p,y:m}){const g=[],v={x:0,y:0},w={x:p-yS,y:m},_={x:Dm(v.x,{source:v,target:w}),y:v.y},T={x:Dm(w.x,{source:v,target:w},!0),y:w.y};for(const[b]of h.entries()){if(b===h.length-1){g[b]=w;continue}const x=_S(b,{source:v,target:w,sourceBezier:_,targetBezier:T});g[b]=x}return g}return{element:n,render:c,setPosition:d}}function Dm(r,{source:t,target:e},i){const n=(e.x-t.x)/2;return r+(n>Bd?n:Bd)*(i?-1:1)}function _S(r,t){const e=r/Mg,{source:i,target:n,sourceBezier:s,targetBezier:o}=t,a=i.x+(s.x-i.x)*e,h=i.y+(s.y-i.y)*e,l=s.x+(o.x-s.x)*e,u=s.y+(o.y-s.y)*e,c=o.x+(n.x-o.x)*e,d=o.y+(n.y-o.y)*e,f=a+(l-a)*e,p=h+(u-h)*e,m=l+(c-l)*e,g=u+(d-u)*e,v=f+(m-f)*e,w=p+(g-p)*e;return{x:v,y:w}}async function xS({height:r,radius:t}){const e=await Qt(),i=new ki;return i.beginFill("#fff"),i.drawRoundedRect(0,0,t*2,r,t),i.endFill(),e.renderer.generateTexture(i,{region:new yt(0,0,t,r),resolution:Sg})}async function wS(r){return await So(xS,[r])}function bS(){const r=new Yt,t=new Yt;async function e(i){const n=await wS(i);return r.texture=n,t.texture=n,t.anchor.x=1,t.scale.x=-1,{left:r,right:t}}return{left:r,right:t,render:e}}async function si(){const r=await ld();return new Yt(r)}async function ud(){const r=new bt,t=await si(),{left:e,right:i,render:n}=await bS();r.addChild(t),r.addChild(e),r.addChild(i);async function s(h){const{width:l,x:u,visible:c}=a(h);return await n({height:h.height,radius:h.radius}),t.visible=c,t.width=l,t.height=h.height,t.x=u,e.visible=o(h.capLeft,h.radius),i.visible=o(h.capRight,h.radius),i.x=h.radius+l,t.tint=h.background,e.tint=h.background,i.tint=h.background,r}function o(h,l){return l===0?!1:h??!0}function a(h){const l=o(h.capLeft,h.radius),u=o(h.capRight,h.radius);let c=0;l&&(c+=h.radius),u&&(c+=h.radius);const d=Math.max(h.width-c,0),f=d>0,p=l?h.radius:0;return{width:d,visible:f,x:p}}return{element:r,render:s}}function Bh(){const r=new bt,t=new Yt,e=new Yt,i=new Yt,n=new Yt,s=new Yt,o=new Yt,a=new Yt,h=new Yt;t.name="border-corner-top-left",e.name="border-corner-top-right",i.name="border-corner-bottom-left",n.name="border-corner-bottom-right",s.name="border-corner-left",o.name="border-corner-right",a.name="border-corner-top",h.name="border-corner-bottom",e.anchor.x=1,e.scale.x=-1,i.anchor.y=1,i.scale.y=-1,n.anchor.x=1,n.scale.x=-1,n.anchor.y=1,n.scale.y=-1,r.addChild(t),r.addChild(e),r.addChild(i),r.addChild(n),r.addChild(s),r.addChild(o),r.addChild(a),r.addChild(h);async function l(p){const{radius:m=0,color:g="#fff",stroke:v,width:w,height:_}=p,T=typeof m=="number",b={topLeft:u(T?m:m[0],w,_),topRight:u(T?m:m[1],w,_),bottomLeft:u(T?m:m[2],w,_),bottomRight:u(T?m:m[3],w,_)};return await c({width:w,height:_,stroke:v,cornerSizes:b}),await d({width:w,height:_,stroke:v,cornerSizes:b}),f(g),r}function u(p,m,g){const v=Math.min(m,g);return{size:p*2>v?v/2:p,radius:p}}async function c({width:p,height:m,stroke:g,cornerSizes:v}){const{topLeft:w,topRight:_,bottomLeft:T,bottomRight:b}=v,[x,y,S,D]=await Promise.all([Zs({...w,stroke:g}),Zs({..._,stroke:g}),Zs({...T,stroke:g}),Zs({...b,stroke:g})]);t.texture=x,e.texture=y,i.texture=D,n.texture=S,t.position.set(0,0),e.position.set(p-_.size,0),i.position.set(0,m-T.size),n.position.set(p-b.size,m-b.size)}async function d({width:p,height:m,stroke:g,cornerSizes:v}){const w=await ld(),{topLeft:_,topRight:T,bottomLeft:b,bottomRight:x}=v;a.texture=w,s.texture=w,o.texture=w,h.texture=w,s.position.set(0,_.size),s.height=Math.max(m-_.size-b.size,0),s.width=g,o.position.set(p-g,T.size),o.height=Math.max(m-T.size-x.size,0),o.width=g,a.position.set(_.size,0),a.width=Math.max(p-_.size-T.size,0),a.height=g,h.position.set(b.size,m-g),h.width=Math.max(p-b.size-x.size,0),h.height=g}function f(p){t.tint=p,e.tint=p,i.tint=p,n.tint=p,a.tint=p,s.tint=p,o.tint=p,h.tint=p}return{element:r,render:l}}async function Uh(){const r=await jt(),t=new bt,{element:e,render:i}=await Bh();async function n({selected:s,width:o,height:a}){if(!s)return t.removeChild(e),t;const{selectedBorderColor:h,selectedBorderWidth:l,selectedBorderOffset:u,selectedBorderRadius:c}=r;return e.position.set(-u,-u),t.addChild(e),await i({stroke:l,radius:c,width:o+u*2,height:a+u*2,color:h}),t}return{element:t,render:n}}async function TS(){const r=await jt(),t=new bt,{element:e,render:i}=await ud(),{element:n,render:s}=await Uh();t.addChild(e),t.addChild(n);async function o({selected:a,width:h,height:l}){const{artifactBgColor:u,artifactBorderRadius:c}=r,d={width:h,height:l,background:u,radius:c,capLeft:!0,capRight:!0};return await Promise.all([i(d),s({selected:a,width:h,height:l})]),t}return{element:t,render:o}}var ES=Object.defineProperty,AS=(r,t,e)=>t in r?ES(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Ns=(r,t,e)=>(AS(r,typeof t!="symbol"?t+"":t,e),e);class SS extends bt{constructor(t){super(),Ns(this,"_progress",0),Ns(this,"options"),Ns(this,"bgCircle",new ki),Ns(this,"fillCircle",new ki),Ns(this,"innerView",new bt),this.options=t,this.addChild(this.innerView),this.innerView.addChild(this.bgCircle,this.fillCircle),this.addBackground(),t.value&&(this.progress=t.value)}addBackground(){const{backgroundColor:t,lineWidth:e,radius:i,backgroundAlpha:n}=this.options;let s=1;n>0&&(s=n),t===void 0&&(s=1e-6),this.bgCircle.lineStyle({width:e,color:t,alpha:s}).drawCircle(0,0,i)}set progress(t){t>100&&(t=100),t<0&&(t=0),this._progress=t;const{lineWidth:e,radius:i,fillColor:n,fillAlpha:s,cap:o}=this.options;if(t===0&&s===0){this.fillCircle.clear();return}const a=0,h=360/100*t;this.fillCircle.clear().lineStyle({width:e,color:n,cap:o,alpha:s}).arc(0,0,i,(-90+a)*Su,(-90+a+h)*Su)}get progress(){return this._progress}}async function CS(r={}){const t=await M_(),e=new SS({fillColor:16777215,cullAtZoomThreshold:!0,backgroundColor:0,backgroundAlpha:1,value:50,cap:"round",fillAlpha:1,lineWidth:20,radius:50,...r});r.cullAtZoomThreshold&&t.add(e);function i(n){e.progress=n.value??0;const s=(n.radius+n.lineWidth)*2;return e.width=s,e.height=s,e.position.set(s/2),e}return{element:e,render:i}}const MS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_19)'%3e%3cmask%20id='mask0_7_19'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_19)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.47715%204.47715%200%2010%200C15.5228%200%2020%204.47715%2020%2010C20%2015.5228%2015.5228%2020%2010%2020C4.47715%2020%200%2015.5228%200%2010ZM10%201.81818C5.4813%201.81818%201.81818%205.4813%201.81818%2010C1.81818%2014.5187%205.48131%2018.1818%2010%2018.1818C14.5187%2018.1818%2018.1818%2014.5187%2018.1818%2010C18.1818%205.48131%2014.5187%201.81818%2010%201.81818Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.68182%205.63634C5.68182%205.15937%206.06849%204.77271%206.54546%204.77271H13.4546C13.9316%204.77271%2014.3182%205.15937%2014.3182%205.63634V14.2512C14.3182%2014.8932%2013.6426%2015.3108%2013.0683%2015.0237L11.8182%2014.3986L10.3863%2015.1146C10.1431%2015.2362%209.85691%2015.2362%209.61373%2015.1146L8.18182%2014.3986L6.93169%2015.0237C6.35746%2015.3108%205.68182%2014.8932%205.68182%2014.2512V5.63634ZM7.04546%206.13634V13.4423L7.7956%2013.0672C8.03873%2012.9456%208.32491%2012.9456%208.5681%2013.0672L10%2013.7832L11.4319%2013.0672C11.6751%2012.9456%2011.9613%2012.9456%2012.2045%2013.0672L12.9546%2013.4423V6.13634H7.04546Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36365%208.63631C6.36365%208.38531%206.56716%208.18176%206.81819%208.18176H6.98566C7.23669%208.18176%207.4402%208.38531%207.4402%208.63631C7.4402%208.88731%207.23669%209.09085%206.98566%209.09085H6.81819C6.56716%209.09085%206.36365%208.88731%206.36365%208.63631ZM7.78709%208.63631C7.78709%208.38531%207.9906%208.18176%208.24165%208.18176H8.57656C8.82765%208.18176%209.0311%208.38531%209.0311%208.63631C9.0311%208.88731%208.82765%209.09085%208.57656%209.09085H8.24165C7.9906%209.09085%207.78709%208.88731%207.78709%208.63631ZM9.37801%208.63631C9.37801%208.38531%209.58147%208.18176%209.83256%208.18176H10.1675C10.4186%208.18176%2010.622%208.38531%2010.622%208.63631C10.622%208.88731%2010.4186%209.09085%2010.1675%209.09085H9.83256C9.58147%209.09085%209.37801%208.88731%209.37801%208.63631ZM10.9689%208.63631C10.9689%208.38531%2011.1724%208.18176%2011.4235%208.18176H11.7584C12.0095%208.18176%2012.2129%208.38531%2012.2129%208.63631C12.2129%208.88731%2012.0095%209.09085%2011.7584%209.09085H11.4235C11.1724%209.09085%2010.9689%208.88731%2010.9689%208.63631ZM12.5598%208.63631C12.5598%208.38531%2012.7633%208.18176%2013.0144%208.18176H13.1818C13.4328%208.18176%2013.6364%208.38531%2013.6364%208.63631C13.6364%208.88731%2013.4328%209.09085%2013.1818%209.09085H13.0144C12.7633%209.09085%2012.5598%208.88731%2012.5598%208.63631Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_19'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",RS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_27)'%3e%3cmask%20id='mask0_7_27'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_27)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.47715%204.47715%200%2010%200C15.5228%200%2020%204.47715%2020%2010C20%2015.5228%2015.5228%2020%2010%2020C4.47715%2020%200%2015.5228%200%2010ZM10%201.81818C5.4813%201.81818%201.81818%205.4813%201.81818%2010C1.81818%2014.5187%205.48131%2018.1818%2010%2018.1818C14.5187%2018.1818%2018.1818%2014.5187%2018.1818%2010C18.1818%205.48131%2014.5187%201.81818%2010%201.81818Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36365%2010C6.36365%209.49794%206.77067%209.09094%207.27274%209.09094H12.7273C13.2294%209.09094%2013.6364%209.49794%2013.6364%2010C13.6364%2010.5021%2013.2294%2010.9091%2012.7273%2010.9091H7.27274C6.77067%2010.9091%206.36365%2010.5021%206.36365%2010Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36365%2013.6364C6.36365%2013.1343%206.77067%2012.7273%207.27274%2012.7273H9.09092C9.59301%2012.7273%2010%2013.1343%2010%2013.6364C10%2014.1385%209.59301%2014.5455%209.09092%2014.5455H7.27274C6.77067%2014.5455%206.36365%2014.1385%206.36365%2013.6364Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36365%206.36368C6.36365%205.86161%206.77067%205.45459%207.27274%205.45459H11.8182C12.3203%205.45459%2012.7273%205.86161%2012.7273%206.36368C12.7273%206.86575%2012.3203%207.27277%2011.8182%207.27277H7.27274C6.77067%207.27277%206.36365%206.86575%206.36365%206.36368Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_27'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",PS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_19)'%3e%3cmask%20id='mask0_7_19'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_19)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.47715%204.47715%200%2010%200C15.5228%200%2020%204.47715%2020%2010C20%2015.5228%2015.5228%2020%2010%2020C4.47715%2020%200%2015.5228%200%2010ZM10%201.81818C5.4813%201.81818%201.81818%205.4813%201.81818%2010C1.81818%2014.5187%205.48131%2018.1818%2010%2018.1818C14.5187%2018.1818%2018.1818%2014.5187%2018.1818%2010C18.1818%205.48131%2014.5187%201.81818%2010%201.81818Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.68182%205.63634C5.68182%205.15937%206.06849%204.77271%206.54546%204.77271H13.4546C13.9316%204.77271%2014.3182%205.15937%2014.3182%205.63634V14.2512C14.3182%2014.8932%2013.6426%2015.3108%2013.0683%2015.0237L11.8182%2014.3986L10.3863%2015.1146C10.1431%2015.2362%209.85691%2015.2362%209.61373%2015.1146L8.18182%2014.3986L6.93169%2015.0237C6.35746%2015.3108%205.68182%2014.8932%205.68182%2014.2512V5.63634ZM7.04546%206.13634V13.4423L7.7956%2013.0672C8.03873%2012.9456%208.32491%2012.9456%208.5681%2013.0672L10%2013.7832L11.4319%2013.0672C11.6751%2012.9456%2011.9613%2012.9456%2012.2045%2013.0672L12.9546%2013.4423V6.13634H7.04546Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36365%208.63631C6.36365%208.38531%206.56716%208.18176%206.81819%208.18176H6.98566C7.23669%208.18176%207.4402%208.38531%207.4402%208.63631C7.4402%208.88731%207.23669%209.09085%206.98566%209.09085H6.81819C6.56716%209.09085%206.36365%208.88731%206.36365%208.63631ZM7.78709%208.63631C7.78709%208.38531%207.9906%208.18176%208.24165%208.18176H8.57656C8.82765%208.18176%209.0311%208.38531%209.0311%208.63631C9.0311%208.88731%208.82765%209.09085%208.57656%209.09085H8.24165C7.9906%209.09085%207.78709%208.88731%207.78709%208.63631ZM9.37801%208.63631C9.37801%208.38531%209.58147%208.18176%209.83256%208.18176H10.1675C10.4186%208.18176%2010.622%208.38531%2010.622%208.63631C10.622%208.88731%2010.4186%209.09085%2010.1675%209.09085H9.83256C9.58147%209.09085%209.37801%208.88731%209.37801%208.63631ZM10.9689%208.63631C10.9689%208.38531%2011.1724%208.18176%2011.4235%208.18176H11.7584C12.0095%208.18176%2012.2129%208.38531%2012.2129%208.63631C12.2129%208.88731%2012.0095%209.09085%2011.7584%209.09085H11.4235C11.1724%209.09085%2010.9689%208.88731%2010.9689%208.63631ZM12.5598%208.63631C12.5598%208.38531%2012.7633%208.18176%2013.0144%208.18176H13.1818C13.4328%208.18176%2013.6364%208.38531%2013.6364%208.63631C13.6364%208.88731%2013.4328%209.09085%2013.1818%209.09085H13.0144C12.7633%209.09085%2012.5598%208.88731%2012.5598%208.63631Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_19'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",IS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_9)'%3e%3cmask%20id='mask0_7_9'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_9)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.47715%204.47715%200%2010%200C15.5228%200%2020%204.47715%2020%2010C20%2015.5228%2015.5228%2020%2010%2020C4.47715%2020%200%2015.5228%200%2010ZM10%201.81818C5.4813%201.81818%201.81818%205.4813%201.81818%2010C1.81818%2014.5187%205.48131%2018.1818%2010%2018.1818C14.5187%2018.1818%2018.1818%2014.5187%2018.1818%2010C18.1818%205.48131%2014.5187%201.81818%2010%201.81818Z'%20fill='white'/%3e%3cpath%20d='M8.18183%205.45459H6.36365C5.86157%205.45459%205.45456%205.8616%205.45456%206.36368V8.18186C5.45456%208.68394%205.86157%209.09095%206.36365%209.09095H8.18183C8.68391%209.09095%209.09092%208.68394%209.09092%208.18186V6.36368C9.09092%205.8616%208.68391%205.45459%208.18183%205.45459Z'%20fill='white'/%3e%3cpath%20d='M13.6364%205.45459H11.8182C11.3161%205.45459%2010.9091%205.8616%2010.9091%206.36368V8.18186C10.9091%208.68394%2011.3161%209.09095%2011.8182%209.09095H13.6364C14.1384%209.09095%2014.5455%208.68394%2014.5455%208.18186V6.36368C14.5455%205.8616%2014.1384%205.45459%2013.6364%205.45459Z'%20fill='white'/%3e%3cpath%20d='M13.6364%2010.9091H11.8182C11.3161%2010.9091%2010.9091%2011.3161%2010.9091%2011.8181V13.6363C10.9091%2014.1384%2011.3161%2014.5454%2011.8182%2014.5454H13.6364C14.1384%2014.5454%2014.5455%2014.1384%2014.5455%2013.6363V11.8181C14.5455%2011.3161%2014.1384%2010.9091%2013.6364%2010.9091Z'%20fill='white'/%3e%3cpath%20d='M8.18183%2010.9091H6.36365C5.86157%2010.9091%205.45456%2011.3161%205.45456%2011.8181V13.6363C5.45456%2014.1384%205.86157%2014.5454%206.36365%2014.5454H8.18183C8.68391%2014.5454%209.09092%2014.1384%209.09092%2013.6363V11.8181C9.09092%2011.3161%208.68391%2010.9091%208.18183%2010.9091Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_9'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",DS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_36)'%3e%3cmask%20id='mask0_7_36'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_36)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.47715%204.47715%200%2010%200C15.5228%200%2020%204.47715%2020%2010C20%2015.5228%2015.5228%2020%2010%2020C4.47715%2020%200%2015.5228%200%2010ZM10%201.81818C5.4813%201.81818%201.81818%205.4813%201.81818%2010C1.81818%2014.5187%205.48131%2018.1818%2010%2018.1818C14.5187%2018.1818%2018.1818%2014.5187%2018.1818%2010C18.1818%205.48131%2014.5187%201.81818%2010%201.81818Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.4718%2010.0244C11.2567%209.97354%2011.0304%2010.0028%2010.8353%2010.1067L2.29995%2014.6522C1.8568%2014.8882%201.68886%2015.4387%201.92486%2015.8818C2.16086%2016.325%202.71143%2016.4929%203.15458%2016.2569L11.3872%2011.8727L17.9726%2013.4302C18.4612%2013.5457%2018.951%2013.2433%2019.0665%2012.7546C19.1821%2012.2661%2018.8796%2011.7764%2018.3911%2011.6607L11.4718%2010.0244Z'%20fill='white'/%3e%3cpath%20d='M6.07329%209.09092C5.32016%209.09092%204.70966%208.48037%204.70966%207.72728C4.70966%206.97417%205.32016%206.36365%206.07329%206.36365C6.82643%206.36365%207.43693%206.97417%207.43693%207.72728C7.43693%208.48037%206.82643%209.09092%206.07329%209.09092Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_36'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",OS="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7_2)'%3e%3cmask%20id='mask0_7_2'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='-1'%20y='-1'%20width='22'%20height='22'%3e%3cpath%20d='M20.9091%20-0.909058H-0.909088V20.9091H20.9091V-0.909058Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_7_2)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.04937%200.190318C8.681%200.0653727%209.33327%200%2010%200C10.6667%200%2011.319%200.0653727%2011.9506%200.190318L11.5978%201.97394C11.0817%201.87185%2010.5475%201.81818%2010%201.81818C9.45245%201.81818%208.91827%201.87185%208.40218%201.97394L8.04937%200.190318ZM15.5568%201.68489C16.6469%202.41471%2017.5853%203.35308%2018.3151%204.4432L16.8043%205.45469C16.2066%204.56206%2015.4379%203.79335%2014.5453%203.19574L15.5568%201.68489ZM1.68489%204.4432C2.41471%203.35308%203.35308%202.41471%204.4432%201.68489L5.45469%203.19574C4.56206%203.79335%203.79335%204.56206%203.19574%205.45469L1.68489%204.4432ZM19.8096%208.04937C19.9346%208.681%2020%209.33327%2020%2010C20%2010.6667%2019.9346%2011.319%2019.8096%2011.9506L18.0261%2011.5978C18.1282%2011.0817%2018.1818%2010.5475%2018.1818%2010C18.1818%209.45245%2018.1282%208.91827%2018.0261%208.40218L19.8096%208.04937ZM0%2010C0%209.33327%200.0653727%208.681%200.190318%208.04937L1.97394%208.40218C1.87185%208.91827%201.81818%209.45245%201.81818%2010C1.81818%2010.5475%201.87185%2011.0817%201.97394%2011.5978L0.190318%2011.9506C0.0653727%2011.319%200%2010.6667%200%2010ZM18.3151%2015.5568C17.5853%2016.6469%2016.6469%2017.5853%2015.5568%2018.3151L14.5453%2016.8043C15.4379%2016.2066%2016.2066%2015.4379%2016.8043%2014.5453L18.3151%2015.5568ZM4.4432%2018.3151C3.35308%2017.5853%202.41471%2016.6469%201.68489%2015.5568L3.19574%2014.5453C3.79335%2015.4379%204.56206%2016.2066%205.45469%2016.8043L4.4432%2018.3151ZM10%2020C9.33327%2020%208.681%2019.9346%208.04937%2019.8096L8.40218%2018.0261C8.91827%2018.1282%209.45245%2018.1818%2010%2018.1818C10.5475%2018.1818%2011.0817%2018.1282%2011.5978%2018.0261L11.9506%2019.8096C11.319%2019.9346%2010.6667%2020%2010%2020Z'%20fill='white'/%3e%3cpath%20d='M10%2011.8181C8.99582%2011.8181%208.18182%2011.0041%208.18182%209.99994C8.18182%208.99576%208.99582%208.18176%2010%208.18176C11.0042%208.18176%2011.8182%208.99576%2011.8182%209.99994C11.8182%2011.0041%2011.0042%2011.8181%2010%2011.8181Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7_2'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",kS=Object.freeze(Object.defineProperty({__proto__:null,Artifact:MS,ArtifactImage:DS,ArtifactMarkdown:RS,ArtifactProgress:OS,ArtifactResult:PS,ArtifactTable:IS},Symbol.toStringTag,{value:"Module"}));function NS(r){const t={resolution:Cg};return ct.from(kS[r],t)}async function FS(r){return await So(NS,[r])}async function LS({cullAtZoomThreshold:r=!0}={}){const t=await M_(),e=new Yt;r&&t.add(e);async function i(n){const s=await FS(n);return e.texture=s,e}return{element:e,render:i}}var Om={exports:{}},km;function BS(){return km||(km=1,(function(r){(function(){function t(m,g){document.addEventListener?m.addEventListener("scroll",g,!1):m.attachEvent("scroll",g)}function e(m){document.body?m():document.addEventListener?document.addEventListener("DOMContentLoaded",function g(){document.removeEventListener("DOMContentLoaded",g),m()}):document.attachEvent("onreadystatechange",function g(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",g),m())})}function i(m){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(m)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function n(m,g){m.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+g+";"}function s(m){var g=m.g.offsetWidth,v=g+100;return m.j.style.width=v+"px",m.i.scrollLeft=v,m.h.scrollLeft=m.h.scrollWidth+100,m.l!==g?(m.l=g,!0):!1}function o(m,g){function v(){var _=w;s(_)&&_.g.parentNode!==null&&g(_.l)}var w=m;t(m.h,v),t(m.i,v),s(m)}function a(m,g,v){g=g||{},v=v||window,this.family=m,this.style=g.style||"normal",this.weight=g.weight||"normal",this.stretch=g.stretch||"normal",this.context=v}var h=null,l=null,u=null,c=null;function d(m){return l===null&&(f(m)&&/Apple/.test(window.navigator.vendor)?(m=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!m&&603>parseInt(m[1],10)):l=!1),l}function f(m){return c===null&&(c=!!m.document.fonts),c}function p(m,g){var v=m.style,w=m.weight;if(u===null){var _=document.createElement("div");try{_.style.font="condensed 100px sans-serif"}catch{}u=_.style.font!==""}return[v,w,u?m.stretch:"","100px",g].join(" ")}a.prototype.load=function(m,g){var v=this,w=m||"BESbswy",_=0,T=g||3e3,b=new Date().getTime();return new Promise(function(x,y){if(f(v.context)&&!d(v.context)){var S=new Promise(function(G,O){function N(){new Date().getTime()-b>=T?O(Error(""+T+"ms timeout exceeded")):v.context.document.fonts.load(p(v,'"'+v.family+'"'),w).then(function(P){1<=P.length?G():setTimeout(N,25)},O)}N()}),D=new Promise(function(G,O){_=setTimeout(function(){O(Error(""+T+"ms timeout exceeded"))},T)});Promise.race([D,S]).then(function(){clearTimeout(_),x(v)},y)}else e(function(){function G(){var k;(k=j!=-1&&E!=-1||j!=-1&&A!=-1||E!=-1&&A!=-1)&&((k=j!=E&&j!=A&&E!=A)||(h===null&&(k=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),h=!!k&&(536>parseInt(k[1],10)||parseInt(k[1],10)===536&&11>=parseInt(k[2],10))),k=h&&(j==C&&E==C&&A==C||j==B&&E==B&&A==B||j==I&&E==I&&A==I)),k=!k),k&&(M.parentNode!==null&&M.parentNode.removeChild(M),clearTimeout(_),x(v))}function O(){if(new Date().getTime()-b>=T)M.parentNode!==null&&M.parentNode.removeChild(M),y(Error(""+T+"ms timeout exceeded"));else{var k=v.context.document.hidden;(k===!0||k===void 0)&&(j=N.g.offsetWidth,E=P.g.offsetWidth,A=F.g.offsetWidth,G()),_=setTimeout(O,50)}}var N=new i(w),P=new i(w),F=new i(w),j=-1,E=-1,A=-1,C=-1,B=-1,I=-1,M=document.createElement("div");M.dir="ltr",n(N,p(v,"sans-serif")),n(P,p(v,"serif")),n(F,p(v,"monospace")),M.appendChild(N.g),M.appendChild(P.g),M.appendChild(F.g),v.context.document.body.appendChild(M),C=N.g.offsetWidth,B=P.g.offsetWidth,I=F.g.offsetWidth,O(),o(N,function(k){j=k,G()}),n(N,p(v,'"'+v.family+'",sans-serif')),o(P,function(k){E=k,G()}),n(P,p(v,'"'+v.family+'",serif')),o(F,function(k){A=k,G()}),n(F,p(v,'"'+v.family+'",monospace'))})})},r.exports=a})()})(Om)),Om.exports}var US=BS();const HS=bo(US);let lh=null;const GS={fontFamily:"Inter Variable",fontSize:16,lineHeight:20,fill:16777215},ou={resolution:Cg,chars:Ve.ASCII},au="sans-serif";async function zS(){const{font:r}=await jt(),t={...GS,fontFamily:r.fontFamily};await jS(t,r.type),lh=XS(t),rt.emit("fontLoaded",lh)}async function jS(r,t){const{fontFamily:e,...i}=r;try{t==="WebFont"?await new HS(e).load():Ve.from(e,{fontFamily:au,...i},ou)}catch(n){console.error(n),console.warn(`fonts: font ${e} failed to load, falling back to ${au}`),Ve.from(e,{fontFamily:au,...i},ou);return}Ve.from(e,r,ou)}function WS(){lh=null}async function _v(){return lh||await Re("fontLoaded")}function XS(r){const{fontFamily:t,...e}=r,i={fontName:t,...e};return n=>new WT(n,i)}async function Hh({cullAtZoomThreshold:r=!0}={}){const t=await _v(),e=await C_(),i=t("");r&&e.add(i);async function n(s){return i.text=s,await i}return{element:i,render:n}}async function xv({cullAtZoomThreshold:r}){const t=await jt(),e=new bt,i=new bt,{element:n,render:s}=await LS({cullAtZoomThreshold:r}),{element:o,render:a}=await CS(),{element:h,render:l}=await Hh({cullAtZoomThreshold:r}),{element:u,render:c}=await TS();let d=!1,f=null,p;i.addChild(h),e.addChild(u),e.addChild(i);async function m(T){const{selected:b,name:x,type:y}=T;return d=b??d,f=x??f,p=y,p==="progress"?i.addChild(o):i.addChild(n),T.type==="progress"?await Promise.all([v(T.data),w()]):await Promise.all([g(),w()]),await _(),e}async function g(){if(p==="progress")return n;const T=hx[p],{artifactIconSize:b,artifactIconColor:x,artifactPaddingLeft:y,artifactPaddingY:S}=t,D=await s(T);return D.position={x:y,y:S},D.width=b,D.height=b,D.tint=x,D}async function v(T){const{artifactPaddingLeft:b,artifactPaddingRight:x,artifactPaddingY:y,artifactIconSize:S}=t,D=20,G=(S-D*2)/2,O=a({value:T,radius:G,lineWidth:D});return f?O.position.x+=b:O.position.x+=(b+x)/2,O.position.y+=y,o}async function w(){if(!f)return h.visible=!1,h;await l(f);const{artifactPaddingLeft:T,artifactPaddingY:b,artifactTextColor:x,artifactIconSize:y,artifactContentGap:S}=t,D=f?S:0,G=T+y+D,O=b;return h.tint=x,h.scale.set(.75),h.position={x:G,y:O},h.visible=!0,h}async function _(){const{artifactPaddingLeft:T,artifactPaddingRight:b,artifactPaddingY:x}=t,y={selected:d,width:i.width+T+b,height:i.height+x*2};return await c(y)}return{element:e,render:m}}let Bt=null,uh=!1;async function VS(){const r=await Jt();r.on("click",()=>li(null)),r.on("drag-start",()=>{uh=!0}),r.on("drag-end",()=>{setTimeout(()=>{uh=!1})})}function $S(){Bt=null,uh=!1}function li(r){if(!uh&&!(!r&&!Bt||r&&ui(r))){if(Bt=r,r===null){rt.emit("itemSelected",null);return}rt.emit("itemSelected",r)}}function ui(r){if(Bt===null)return!1;const{kind:t}=r;switch(t){case"task-run":return gu(Bt)&&Bt.id===r.id;case"flow-run":return gu(Bt)&&Bt.id===r.id;case"artifact":return ux(Bt)&&Bt.id===r.id;case"artifacts":return cx(Bt)&&Bt.ids.length===r.ids.length&&Bt.ids.every(i=>r.ids.includes(i));case"state":return dx(Bt)&&Bt.id===r.id;case"event":return fx(Bt)&&Bt.id===r.id;case"events":return px(Bt)&&Bt.ids.length===r.ids.length&&Bt.ids.every(i=>r.ids.includes(i));default:const e=t;throw new Error(`switch does not have case for value: ${e}`)}}function YS(){return Bt&&gu(Bt)?Bt:null}async function cd(r,{cullAtZoomThreshold:t=!0,enableLocalClickHandling:e=!1}={}){const{element:i,render:n}=await xv({cullAtZoomThreshold:t});let s=!1,o=r;i.eventMode="static",i.cursor="pointer",e&&i.on("click",c=>{c.stopPropagation(),li({kind:"artifact",id:o.id})}),rt.on("itemSelected",()=>{const c=ui({kind:"artifact",id:o.id});c!==s&&(s=c,a(o))});async function a(c){o=c,await n({selected:s,name:o.key,...o})}function h(){return s}function l(){return o.created}function u(){return o.id}return{isArtifact:!0,element:i,render:a,getSelected:h,getDate:l,getId:u}}function wv(r){return r.isArtifact===!0}function qS(r){return typeof r=="function"}function ka(r){return qS(r)?r():r}async function bv(r,t){const e=await Hr(),i=await Ue();let n,s=null;async function o(){try{s=await i.fetchEvents(ka(r)),t(s)}catch(h){console.error(h)}e.end_time||(n=setTimeout(()=>o(),i.fetchEventsInterval))}function a(){clearTimeout(n)}return{start:o,stop:a}}async function Tv(){const r=await jt(),t=await C_(),e=new bt,{element:i,render:n}=await vv(),{element:s,render:o}=await ud(),{element:a,render:h}=await Bh();t.add(e);let l=!1;e.eventMode="static",e.cursor="pointer",e.addChild(s),e.addChild(i),e.addChild(a),e.on("mouseover",c),e.on("mouseout",d);async function u({inside:f,isOpen:p}){l=f;const m={size:10,stroke:2,rotate:p?hh.Up:hh.Down},g=await n(m),v={width:r.nodeToggleSize,height:r.nodeToggleSize,background:r.nodeToggleBgColor,radius:r.nodeToggleBorderRadius},w=await o(v);w.alpha=f?0:.5;const _=await h({width:v.width,height:v.height,radius:v.radius,stroke:1,color:r.nodeToggleBorderColor});_.alpha=f?0:1;const T={y:w.height/2,x:w.width/2},b=m.size/4;return g.x=T.x,g.y=p?T.y+b:T.y-b,e}function c(){s.alpha=l?.5:1}function d(){s.alpha=l?0:.5}return{element:e,render:u}}async function Ev(){const r=await jt(),t=await Kt(),e=new bt,{element:i,render:n}=await ud(),{element:s,render:o}=await Uh();e.addChild(i),e.addChild(s);async function a(l){const{background:u="#fff"}=r.node(l),{nodeHeight:c,nodeRadius:d}=r,f=ui({kind:l.kind,id:l.id}),p=h(l,d),m=l.state_type!=="RUNNING"||t.isDependency();return await Promise.all([n({width:p,height:c,radius:d,background:u,capRight:m}),o({selected:f,width:p,height:c})]),i}function h(l,u){const c=hd();if(ut.isTemporal()||ut.isLeftAligned()){const d=l.start_time,f=l.end_time??new Date,p=mv(f,d)/Pa*c;return Math.max(p,u*2)}return c}return{element:e,render:a}}var hu,Nm;function ZS(){if(Nm)return hu;Nm=1;var r="Expected a function",t=NaN,e="[object Symbol]",i=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,h=typeof qe=="object"&&qe&&qe.Object===Object&&qe,l=typeof self=="object"&&self&&self.Object===Object&&self,u=h||l||Function("return this")(),c=Object.prototype,d=c.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function g(x,y,S){var D,G,O,N,P,F,j=0,E=!1,A=!1,C=!0;if(typeof x!="function")throw new TypeError(r);y=b(y)||0,w(S)&&(E=!!S.leading,A="maxWait"in S,O=A?f(b(S.maxWait)||0,y):O,C="trailing"in S?!!S.trailing:C);function B(K){var U=D,X=G;return D=G=void 0,j=K,N=x.apply(X,U),N}function I(K){return j=K,P=setTimeout(L,y),E?B(K):N}function M(K){var U=K-F,X=K-j,q=y-U;return A?p(q,O-X):q}function k(K){var U=K-F,X=K-j;return F===void 0||U>=y||U<0||A&&X>=O}function L(){var K=m();if(k(K))return V(K);P=setTimeout(L,M(K))}function V(K){return P=void 0,C&&D?B(K):(D=G=void 0,N)}function $(){P!==void 0&&clearTimeout(P),j=0,D=F=G=P=void 0}function tt(){return P===void 0?N:V(m())}function et(){var K=m(),U=k(K);if(D=arguments,G=this,F=K,U){if(P===void 0)return I(F);if(A)return P=setTimeout(L,y),B(F)}return P===void 0&&(P=setTimeout(L,y)),N}return et.cancel=$,et.flush=tt,et}function v(x,y,S){var D=!0,G=!0;if(typeof x!="function")throw new TypeError(r);return w(S)&&(D="leading"in S?!!S.leading:D,G="trailing"in S?!!S.trailing:G),g(x,y,{leading:D,maxWait:y,trailing:G})}function w(x){var y=typeof x;return!!x&&(y=="object"||y=="function")}function _(x){return!!x&&typeof x=="object"}function T(x){return typeof x=="symbol"||_(x)&&d.call(x)==e}function b(x){if(typeof x=="number")return x;if(T(x))return t;if(w(x)){var y=typeof x.valueOf=="function"?x.valueOf():x;x=w(y)?y+"":y}if(typeof x!="string")return x===0?x:+x;x=x.replace(i,"");var S=s.test(x);return S||o.test(x)?a(x.slice(2),S?2:8):n.test(x)?t:+x}return hu=v,hu}var KS=ZS();const Av=bo(KS);async function Sv(){const{element:r,render:t}=await xv({cullAtZoomThreshold:!1});let e=null,i=[],n=!1;r.eventMode="static",r.cursor="pointer",rt.on("itemSelected",()=>{const l=ui({kind:"artifacts",ids:i});l!==n&&e&&(n=l,s({ids:i,date:e}))});async function s(l){if(!l){e=null,i=[],r.visible=!1;return}const{ids:u,date:c}=l;e=c,i=u,await t({selected:n,type:"unknown",name:u.length.toString()}),r.visible=!0}function o(){return n}function a(){return e}function h(){return i}return{isArtifactCluster:!0,element:r,render:s,getSelected:o,getDate:a,getIds:h,isCluster:!0}}async function QS({radius:r}){const t=await Qt(),e=new ki;return e.beginFill("#fff"),e.drawCircle(0,0,r),e.endFill(),t.renderer.generateTexture(e,{resolution:Sg})}async function JS(r){return await So(QS,[r])}async function Cv(r){const t=await JS(r);return new Yt(t)}async function Mv(r){const t=new bt,e=await jt(),i=await si(),n=await Cv({radius:e.eventRadiusDefault}),{element:s,render:o}=await Uh();let a=!1;t.addChild(i),t.addChild(n),t.addChild(s),t.eventMode="static",t.cursor="pointer",t.on("mouseenter",()=>{a||n.scale.set(1.5)}),t.on("mouseleave",()=>{a||n.scale.set(1)}),rt.on("itemSelected",()=>{const c=ui({kind:"event",id:r.id,occurred:r.occurred});c!==a&&(a=c,n.scale.set(c?1.5:1),h())});function h(){const{eventColor:c,eventTargetSize:d,eventSelectedBorderInset:f}=e;i.alpha=0,i.width=d,i.height=d,n.tint=c,n.anchor.set(.5),n.position.set(d/2,d/2),s.position.set(f,f),o({selected:a,width:d-f*2,height:d-f*2})}function l(){return r.id}function u(){return r.occurred}return{element:t,render:h,getId:l,getDate:u}}async function Rv(){const r=new bt,t=await jt(),e=await si(),i=await Cv({radius:t.eventClusterRadiusDefault}),{element:n,render:s}=await Uh(),{element:o,render:a}=await Hh({cullAtZoomThreshold:!1});let h=null,l=[],u=!1;r.addChild(e),r.addChild(i),r.addChild(o),r.addChild(n),r.eventMode="static",r.cursor="pointer",r.on("mouseenter",()=>{u||i.scale.set(1.5)}),r.on("mouseleave",()=>{u||i.scale.set(1)}),rt.on("itemSelected",()=>{const w=ui({kind:"events",ids:l});w!==u&&(u=w,i.scale.set(w?1.5:1),h&&c({ids:l,date:h}))});async function c(w){if(!w){h=null,l=[],r.visible=!1;return}const{ids:_,date:T}=w;h=T,l=_,d(),f(),m(),await p(_.length.toString()),r.visible=!0}function d(){const{eventTargetSize:w}=t;e.alpha=0,e.width=w,e.height=w}function f(){const{eventClusterColor:w,eventTargetSize:_}=t;i.tint=w,i.anchor.set(.5),i.position.set(_/2,_/2)}async function p(w){if(l.length<2)return;const{eventTargetSize:_}=t;o.scale.set(.6),o.anchor.set(.5),o.position.set(_/2,_/2+-1),await a(w)}function m(){const{eventSelectedBorderInset:w,eventTargetSize:_}=t;n.position.set(w,w),s({selected:u,width:_-w*2,height:_-w*2})}function g(){return l}function v(){return h}return{element:r,render:c,getIds:g,getDate:v}}function Na(r,t){return r==null||t==null?NaN:r<t?-1:r>t?1:r>=t?0:NaN}function tC(r,t){return r==null||t==null?NaN:t<r?-1:t>r?1:t>=r?0:NaN}function dd(r){let t,e,i;r.length!==2?(t=Na,e=(a,h)=>Na(r(a),h),i=(a,h)=>r(a)-h):(t=r===Na||r===tC?r:eC,e=r,i=r);function n(a,h,l=0,u=a.length){if(l<u){if(t(h,h)!==0)return u;do{const c=l+u>>>1;e(a[c],h)<0?l=c+1:u=c}while(l<u)}return l}function s(a,h,l=0,u=a.length){if(l<u){if(t(h,h)!==0)return u;do{const c=l+u>>>1;e(a[c],h)<=0?l=c+1:u=c}while(l<u)}return l}function o(a,h,l=0,u=a.length){const c=n(a,h,l,u-1);return c>l&&i(a[c-1],h)>-i(a[c],h)?c-1:c}return{left:n,center:o,right:s}}function eC(){return 0}function rC(r){return r===null?NaN:+r}const iC=dd(Na),nC=iC.right;dd(rC).center;const sC=Math.sqrt(50),oC=Math.sqrt(10),aC=Math.sqrt(2);function ch(r,t,e){const i=(t-r)/Math.max(0,e),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),o=s>=sC?10:s>=oC?5:s>=aC?2:1;let a,h,l;return n<0?(l=Math.pow(10,-n)/o,a=Math.round(r*l),h=Math.round(t*l),a/l<r&&++a,h/l>t&&--h,l=-l):(l=Math.pow(10,n)*o,a=Math.round(r/l),h=Math.round(t/l),a*l<r&&++a,h*l>t&&--h),h<a&&.5<=e&&e<2?ch(r,t,e*2):[a,h,l]}function hC(r,t,e){if(t=+t,r=+r,e=+e,!(e>0))return[];if(r===t)return[r];const i=t<r,[n,s,o]=i?ch(t,r,e):ch(r,t,e);if(!(s>=n))return[];const a=s-n+1,h=new Array(a);if(i)if(o<0)for(let l=0;l<a;++l)h[l]=(s-l)/-o;else for(let l=0;l<a;++l)h[l]=(s-l)*o;else if(o<0)for(let l=0;l<a;++l)h[l]=(n+l)/-o;else for(let l=0;l<a;++l)h[l]=(n+l)*o;return h}function xc(r,t,e){return t=+t,r=+r,e=+e,ch(r,t,e)[2]}function wc(r,t,e){t=+t,r=+r,e=+e;const i=t<r,n=i?xc(t,r,e):xc(r,t,e);return(i?-1:1)*(n<0?1/-n:n)}var lC={value:()=>{}};function Pv(){for(var r=0,t=arguments.length,e={},i;r<t;++r){if(!(i=arguments[r]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new Fa(e)}function Fa(r){this._=r}function uC(r,t){return r.trim().split(/^|\s+/).map(function(e){var i="",n=e.indexOf(".");if(n>=0&&(i=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}Fa.prototype=Pv.prototype={constructor:Fa,on:function(r,t){var e=this._,i=uC(r+"",e),n,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((n=(r=i[s]).type)&&(n=cC(e[n],r.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<o;)if(n=(r=i[s]).type)e[n]=Fm(e[n],r.name,t);else if(t==null)for(n in e)e[n]=Fm(e[n],r.name,null);return this},copy:function(){var r={},t=this._;for(var e in t)r[e]=t[e].slice();return new Fa(r)},call:function(r,t){if((n=arguments.length-2)>0)for(var e=new Array(n),i=0,n,s;i<n;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(s=this._[r],i=0,n=s.length;i<n;++i)s[i].value.apply(t,e)},apply:function(r,t,e){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var i=this._[r],n=0,s=i.length;n<s;++n)i[n].value.apply(t,e)}};function cC(r,t){for(var e=0,i=r.length,n;e<i;++e)if((n=r[e]).name===t)return n.value}function Fm(r,t,e){for(var i=0,n=r.length;i<n;++i)if(r[i].name===t){r[i]=lC,r=r.slice(0,i).concat(r.slice(i+1));break}return e!=null&&r.push({name:t,value:e}),r}var bc="http://www.w3.org/1999/xhtml";const Lm={svg:"http://www.w3.org/2000/svg",xhtml:bc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gh(r){var t=r+="",e=t.indexOf(":");return e>=0&&(t=r.slice(0,e))!=="xmlns"&&(r=r.slice(e+1)),Lm.hasOwnProperty(t)?{space:Lm[t],local:r}:r}function dC(r){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===bc&&t.documentElement.namespaceURI===bc?t.createElement(r):t.createElementNS(e,r)}}function fC(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function Iv(r){var t=Gh(r);return(t.local?fC:dC)(t)}function pC(){}function fd(r){return r==null?pC:function(){return this.querySelector(r)}}function mC(r){typeof r!="function"&&(r=fd(r));for(var t=this._groups,e=t.length,i=new Array(e),n=0;n<e;++n)for(var s=t[n],o=s.length,a=i[n]=new Array(o),h,l,u=0;u<o;++u)(h=s[u])&&(l=r.call(h,h.__data__,u,s))&&("__data__"in h&&(l.__data__=h.__data__),a[u]=l);return new gr(i,this._parents)}function gC(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function yC(){return[]}function Dv(r){return r==null?yC:function(){return this.querySelectorAll(r)}}function vC(r){return function(){return gC(r.apply(this,arguments))}}function _C(r){typeof r=="function"?r=vC(r):r=Dv(r);for(var t=this._groups,e=t.length,i=[],n=[],s=0;s<e;++s)for(var o=t[s],a=o.length,h,l=0;l<a;++l)(h=o[l])&&(i.push(r.call(h,h.__data__,l,o)),n.push(h));return new gr(i,n)}function Ov(r){return function(){return this.matches(r)}}function kv(r){return function(t){return t.matches(r)}}var xC=Array.prototype.find;function wC(r){return function(){return xC.call(this.children,r)}}function bC(){return this.firstElementChild}function TC(r){return this.select(r==null?bC:wC(typeof r=="function"?r:kv(r)))}var EC=Array.prototype.filter;function AC(){return Array.from(this.children)}function SC(r){return function(){return EC.call(this.children,r)}}function CC(r){return this.selectAll(r==null?AC:SC(typeof r=="function"?r:kv(r)))}function MC(r){typeof r!="function"&&(r=Ov(r));for(var t=this._groups,e=t.length,i=new Array(e),n=0;n<e;++n)for(var s=t[n],o=s.length,a=i[n]=[],h,l=0;l<o;++l)(h=s[l])&&r.call(h,h.__data__,l,s)&&a.push(h);return new gr(i,this._parents)}function Nv(r){return new Array(r.length)}function RC(){return new gr(this._enter||this._groups.map(Nv),this._parents)}function dh(r,t){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=t}dh.prototype={constructor:dh,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,t){return this._parent.insertBefore(r,t)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function PC(r){return function(){return r}}function IC(r,t,e,i,n,s){for(var o=0,a,h=t.length,l=s.length;o<l;++o)(a=t[o])?(a.__data__=s[o],i[o]=a):e[o]=new dh(r,s[o]);for(;o<h;++o)(a=t[o])&&(n[o]=a)}function DC(r,t,e,i,n,s,o){var a,h,l=new Map,u=t.length,c=s.length,d=new Array(u),f;for(a=0;a<u;++a)(h=t[a])&&(d[a]=f=o.call(h,h.__data__,a,t)+"",l.has(f)?n[a]=h:l.set(f,h));for(a=0;a<c;++a)f=o.call(r,s[a],a,s)+"",(h=l.get(f))?(i[a]=h,h.__data__=s[a],l.delete(f)):e[a]=new dh(r,s[a]);for(a=0;a<u;++a)(h=t[a])&&l.get(d[a])===h&&(n[a]=h)}function OC(r){return r.__data__}function kC(r,t){if(!arguments.length)return Array.from(this,OC);var e=t?DC:IC,i=this._parents,n=this._groups;typeof r!="function"&&(r=PC(r));for(var s=n.length,o=new Array(s),a=new Array(s),h=new Array(s),l=0;l<s;++l){var u=i[l],c=n[l],d=c.length,f=NC(r.call(u,u&&u.__data__,l,i)),p=f.length,m=a[l]=new Array(p),g=o[l]=new Array(p),v=h[l]=new Array(d);e(u,c,m,g,v,f,t);for(var w=0,_=0,T,b;w<p;++w)if(T=m[w]){for(w>=_&&(_=w+1);!(b=g[_])&&++_<p;);T._next=b||null}}return o=new gr(o,i),o._enter=a,o._exit=h,o}function NC(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function FC(){return new gr(this._exit||this._groups.map(Nv),this._parents)}function LC(r,t,e){var i=this.enter(),n=this,s=this.exit();return typeof r=="function"?(i=r(i),i&&(i=i.selection())):i=i.append(r+""),t!=null&&(n=t(n),n&&(n=n.selection())),e==null?s.remove():e(s),i&&n?i.merge(n).order():n}function BC(r){for(var t=r.selection?r.selection():r,e=this._groups,i=t._groups,n=e.length,s=i.length,o=Math.min(n,s),a=new Array(n),h=0;h<o;++h)for(var l=e[h],u=i[h],c=l.length,d=a[h]=new Array(c),f,p=0;p<c;++p)(f=l[p]||u[p])&&(d[p]=f);for(;h<n;++h)a[h]=e[h];return new gr(a,this._parents)}function UC(){for(var r=this._groups,t=-1,e=r.length;++t<e;)for(var i=r[t],n=i.length-1,s=i[n],o;--n>=0;)(o=i[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function HC(r){r||(r=GC);function t(c,d){return c&&d?r(c.__data__,d.__data__):!c-!d}for(var e=this._groups,i=e.length,n=new Array(i),s=0;s<i;++s){for(var o=e[s],a=o.length,h=n[s]=new Array(a),l,u=0;u<a;++u)(l=o[u])&&(h[u]=l);h.sort(t)}return new gr(n,this._parents).order()}function GC(r,t){return r<t?-1:r>t?1:r>=t?0:NaN}function zC(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function jC(){return Array.from(this)}function WC(){for(var r=this._groups,t=0,e=r.length;t<e;++t)for(var i=r[t],n=0,s=i.length;n<s;++n){var o=i[n];if(o)return o}return null}function XC(){let r=0;for(const t of this)++r;return r}function VC(){return!this.node()}function $C(r){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n=t[e],s=0,o=n.length,a;s<o;++s)(a=n[s])&&r.call(a,a.__data__,s,n);return this}function YC(r){return function(){this.removeAttribute(r)}}function qC(r){return function(){this.removeAttributeNS(r.space,r.local)}}function ZC(r,t){return function(){this.setAttribute(r,t)}}function KC(r,t){return function(){this.setAttributeNS(r.space,r.local,t)}}function QC(r,t){return function(){var e=t.apply(this,arguments);e==null?this.removeAttribute(r):this.setAttribute(r,e)}}function JC(r,t){return function(){var e=t.apply(this,arguments);e==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,e)}}function tM(r,t){var e=Gh(r);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((t==null?e.local?qC:YC:typeof t=="function"?e.local?JC:QC:e.local?KC:ZC)(e,t))}function Fv(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function eM(r){return function(){this.style.removeProperty(r)}}function rM(r,t,e){return function(){this.style.setProperty(r,t,e)}}function iM(r,t,e){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(r):this.style.setProperty(r,i,e)}}function nM(r,t,e){return arguments.length>1?this.each((t==null?eM:typeof t=="function"?iM:rM)(r,t,e??"")):fs(this.node(),r)}function fs(r,t){return r.style.getPropertyValue(t)||Fv(r).getComputedStyle(r,null).getPropertyValue(t)}function sM(r){return function(){delete this[r]}}function oM(r,t){return function(){this[r]=t}}function aM(r,t){return function(){var e=t.apply(this,arguments);e==null?delete this[r]:this[r]=e}}function hM(r,t){return arguments.length>1?this.each((t==null?sM:typeof t=="function"?aM:oM)(r,t)):this.node()[r]}function Lv(r){return r.trim().split(/^|\s+/)}function pd(r){return r.classList||new Bv(r)}function Bv(r){this._node=r,this._names=Lv(r.getAttribute("class")||"")}Bv.prototype={add:function(r){var t=this._names.indexOf(r);t<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var t=this._names.indexOf(r);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Uv(r,t){for(var e=pd(r),i=-1,n=t.length;++i<n;)e.add(t[i])}function Hv(r,t){for(var e=pd(r),i=-1,n=t.length;++i<n;)e.remove(t[i])}function lM(r){return function(){Uv(this,r)}}function uM(r){return function(){Hv(this,r)}}function cM(r,t){return function(){(t.apply(this,arguments)?Uv:Hv)(this,r)}}function dM(r,t){var e=Lv(r+"");if(arguments.length<2){for(var i=pd(this.node()),n=-1,s=e.length;++n<s;)if(!i.contains(e[n]))return!1;return!0}return this.each((typeof t=="function"?cM:t?lM:uM)(e,t))}function fM(){this.textContent=""}function pM(r){return function(){this.textContent=r}}function mM(r){return function(){var t=r.apply(this,arguments);this.textContent=t??""}}function gM(r){return arguments.length?this.each(r==null?fM:(typeof r=="function"?mM:pM)(r)):this.node().textContent}function yM(){this.innerHTML=""}function vM(r){return function(){this.innerHTML=r}}function _M(r){return function(){var t=r.apply(this,arguments);this.innerHTML=t??""}}function xM(r){return arguments.length?this.each(r==null?yM:(typeof r=="function"?_M:vM)(r)):this.node().innerHTML}function wM(){this.nextSibling&&this.parentNode.appendChild(this)}function bM(){return this.each(wM)}function TM(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function EM(){return this.each(TM)}function AM(r){var t=typeof r=="function"?r:Iv(r);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function SM(){return null}function CM(r,t){var e=typeof r=="function"?r:Iv(r),i=t==null?SM:typeof t=="function"?t:fd(t);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})}function MM(){var r=this.parentNode;r&&r.removeChild(this)}function RM(){return this.each(MM)}function PM(){var r=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function IM(){var r=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function DM(r){return this.select(r?IM:PM)}function OM(r){return arguments.length?this.property("__data__",r):this.node().__data__}function kM(r){return function(t){r.call(this,t,this.__data__)}}function NM(r){return r.trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}})}function FM(r){return function(){var t=this.__on;if(t){for(var e=0,i=-1,n=t.length,s;e<n;++e)s=t[e],(!r.type||s.type===r.type)&&s.name===r.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function LM(r,t,e){return function(){var i=this.__on,n,s=kM(t);if(i){for(var o=0,a=i.length;o<a;++o)if((n=i[o]).type===r.type&&n.name===r.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=e),n.value=t;return}}this.addEventListener(r.type,s,e),n={type:r.type,name:r.name,value:t,listener:s,options:e},i?i.push(n):this.__on=[n]}}function BM(r,t,e){var i=NM(r+""),n,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var h=0,l=a.length,u;h<l;++h)for(n=0,u=a[h];n<s;++n)if((o=i[n]).type===u.type&&o.name===u.name)return u.value}return}for(a=t?LM:FM,n=0;n<s;++n)this.each(a(i[n],t,e));return this}function Gv(r,t,e){var i=Fv(r),n=i.CustomEvent;typeof n=="function"?n=new n(t,e):(n=i.document.createEvent("Event"),e?(n.initEvent(t,e.bubbles,e.cancelable),n.detail=e.detail):n.initEvent(t,!1,!1)),r.dispatchEvent(n)}function UM(r,t){return function(){return Gv(this,r,t)}}function HM(r,t){return function(){return Gv(this,r,t.apply(this,arguments))}}function GM(r,t){return this.each((typeof t=="function"?HM:UM)(r,t))}function*zM(){for(var r=this._groups,t=0,e=r.length;t<e;++t)for(var i=r[t],n=0,s=i.length,o;n<s;++n)(o=i[n])&&(yield o)}var jM=[null];function gr(r,t){this._groups=r,this._parents=t}function Mo(){return new gr([[document.documentElement]],jM)}function WM(){return this}gr.prototype=Mo.prototype={constructor:gr,select:mC,selectAll:_C,selectChild:TC,selectChildren:CC,filter:MC,data:kC,enter:RC,exit:FC,join:LC,merge:BC,selection:WM,order:UC,sort:HC,call:zC,nodes:jC,node:WC,size:XC,empty:VC,each:$C,attr:tM,style:nM,property:hM,classed:dM,text:gM,html:xM,raise:bM,lower:EM,append:AM,insert:CM,remove:RM,clone:DM,datum:OM,on:BM,dispatch:GM,[Symbol.iterator]:zM};function md(r,t,e){r.prototype=t.prototype=e,e.constructor=r}function zv(r,t){var e=Object.create(r.prototype);for(var i in t)e[i]=t[i];return e}function Ro(){}var yo=.7,fh=1/yo,ss="\\s*([+-]?\\d+)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",XM=/^#([0-9a-f]{3,8})$/,VM=new RegExp(`^rgb\\(${ss},${ss},${ss}\\)$`),$M=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),YM=new RegExp(`^rgba\\(${ss},${ss},${ss},${vo}\\)$`),qM=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${vo}\\)$`),ZM=new RegExp(`^hsl\\(${vo},${Nr},${Nr}\\)$`),KM=new RegExp(`^hsla\\(${vo},${Nr},${Nr},${vo}\\)$`),Bm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};md(Ro,En,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Um,formatHex:Um,formatHex8:QM,formatHsl:JM,formatRgb:Hm,toString:Hm});function Um(){return this.rgb().formatHex()}function QM(){return this.rgb().formatHex8()}function JM(){return jv(this).formatHsl()}function Hm(){return this.rgb().formatRgb()}function En(r){var t,e;return r=(r+"").trim().toLowerCase(),(t=XM.exec(r))?(e=t[1].length,t=parseInt(t[1],16),e===6?Gm(t):e===3?new Te(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):e===8?pa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):e===4?pa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=VM.exec(r))?new Te(t[1],t[2],t[3],1):(t=$M.exec(r))?new Te(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YM.exec(r))?pa(t[1],t[2],t[3],t[4]):(t=qM.exec(r))?pa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZM.exec(r))?Wm(t[1],t[2]/100,t[3]/100,1):(t=KM.exec(r))?Wm(t[1],t[2]/100,t[3]/100,t[4]):Bm.hasOwnProperty(r)?Gm(Bm[r]):r==="transparent"?new Te(NaN,NaN,NaN,0):null}function Gm(r){return new Te(r>>16&255,r>>8&255,r&255,1)}function pa(r,t,e,i){return i<=0&&(r=t=e=NaN),new Te(r,t,e,i)}function t3(r){return r instanceof Ro||(r=En(r)),r?(r=r.rgb(),new Te(r.r,r.g,r.b,r.opacity)):new Te}function Tc(r,t,e,i){return arguments.length===1?t3(r):new Te(r,t,e,i??1)}function Te(r,t,e,i){this.r=+r,this.g=+t,this.b=+e,this.opacity=+i}md(Te,Tc,zv(Ro,{brighter(r){return r=r==null?fh:Math.pow(fh,r),new Te(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?yo:Math.pow(yo,r),new Te(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Te(vn(this.r),vn(this.g),vn(this.b),ph(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zm,formatHex:zm,formatHex8:e3,formatRgb:jm,toString:jm}));function zm(){return`#${un(this.r)}${un(this.g)}${un(this.b)}`}function e3(){return`#${un(this.r)}${un(this.g)}${un(this.b)}${un((isNaN(this.opacity)?1:this.opacity)*255)}`}function jm(){const r=ph(this.opacity);return`${r===1?"rgb(":"rgba("}${vn(this.r)}, ${vn(this.g)}, ${vn(this.b)}${r===1?")":`, ${r})`}`}function ph(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function vn(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function un(r){return r=vn(r),(r<16?"0":"")+r.toString(16)}function Wm(r,t,e,i){return i<=0?r=t=e=NaN:e<=0||e>=1?r=t=NaN:t<=0&&(r=NaN),new fr(r,t,e,i)}function jv(r){if(r instanceof fr)return new fr(r.h,r.s,r.l,r.opacity);if(r instanceof Ro||(r=En(r)),!r)return new fr;if(r instanceof fr)return r;r=r.rgb();var t=r.r/255,e=r.g/255,i=r.b/255,n=Math.min(t,e,i),s=Math.max(t,e,i),o=NaN,a=s-n,h=(s+n)/2;return a?(t===s?o=(e-i)/a+(e<i)*6:e===s?o=(i-t)/a+2:o=(t-e)/a+4,a/=h<.5?s+n:2-s-n,o*=60):a=h>0&&h<1?0:o,new fr(o,a,h,r.opacity)}function r3(r,t,e,i){return arguments.length===1?jv(r):new fr(r,t,e,i??1)}function fr(r,t,e,i){this.h=+r,this.s=+t,this.l=+e,this.opacity=+i}md(fr,r3,zv(Ro,{brighter(r){return r=r==null?fh:Math.pow(fh,r),new fr(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?yo:Math.pow(yo,r),new fr(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,t=isNaN(r)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*t,n=2*e-i;return new Te(lu(r>=240?r-240:r+120,n,i),lu(r,n,i),lu(r<120?r+240:r-120,n,i),this.opacity)},clamp(){return new fr(Xm(this.h),ma(this.s),ma(this.l),ph(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=ph(this.opacity);return`${r===1?"hsl(":"hsla("}${Xm(this.h)}, ${ma(this.s)*100}%, ${ma(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Xm(r){return r=(r||0)%360,r<0?r+360:r}function ma(r){return Math.max(0,Math.min(1,r||0))}function lu(r,t,e){return(r<60?t+(e-t)*r/60:r<180?e:r<240?t+(e-t)*(240-r)/60:t)*255}const gd=r=>()=>r;function i3(r,t){return function(e){return r+e*t}}function n3(r,t,e){return r=Math.pow(r,e),t=Math.pow(t,e)-r,e=1/e,function(i){return Math.pow(r+i*t,e)}}function s3(r){return(r=+r)==1?Wv:function(t,e){return e-t?n3(t,e,r):gd(isNaN(t)?e:t)}}function Wv(r,t){var e=t-r;return e?i3(r,e):gd(isNaN(r)?t:r)}const mh=(function r(t){var e=s3(t);function i(n,s){var o=e((n=Tc(n)).r,(s=Tc(s)).r),a=e(n.g,s.g),h=e(n.b,s.b),l=Wv(n.opacity,s.opacity);return function(u){return n.r=o(u),n.g=a(u),n.b=h(u),n.opacity=l(u),n+""}}return i.gamma=r,i})(1);function o3(r,t){t||(t=[]);var e=r?Math.min(t.length,r.length):0,i=t.slice(),n;return function(s){for(n=0;n<e;++n)i[n]=r[n]*(1-s)+t[n]*s;return i}}function a3(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function h3(r,t){var e=t?t.length:0,i=r?Math.min(e,r.length):0,n=new Array(i),s=new Array(e),o;for(o=0;o<i;++o)n[o]=yd(r[o],t[o]);for(;o<e;++o)s[o]=t[o];return function(a){for(o=0;o<i;++o)s[o]=n[o](a);return s}}function l3(r,t){var e=new Date;return r=+r,t=+t,function(i){return e.setTime(r*(1-i)+t*i),e}}function cr(r,t){return r=+r,t=+t,function(e){return r*(1-e)+t*e}}function u3(r,t){var e={},i={},n;(r===null||typeof r!="object")&&(r={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in r?e[n]=yd(r[n],t[n]):i[n]=t[n];return function(s){for(n in e)i[n]=e[n](s);return i}}var Ec=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uu=new RegExp(Ec.source,"g");function c3(r){return function(){return r}}function d3(r){return function(t){return r(t)+""}}function Xv(r,t){var e=Ec.lastIndex=uu.lastIndex=0,i,n,s,o=-1,a=[],h=[];for(r=r+"",t=t+"";(i=Ec.exec(r))&&(n=uu.exec(t));)(s=n.index)>e&&(s=t.slice(e,s),a[o]?a[o]+=s:a[++o]=s),(i=i[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,h.push({i:o,x:cr(i,n)})),e=uu.lastIndex;return e<t.length&&(s=t.slice(e),a[o]?a[o]+=s:a[++o]=s),a.length<2?h[0]?d3(h[0].x):c3(t):(t=h.length,function(l){for(var u=0,c;u<t;++u)a[(c=h[u]).i]=c.x(l);return a.join("")})}function yd(r,t){var e=typeof t,i;return t==null||e==="boolean"?gd(t):(e==="number"?cr:e==="string"?(i=En(t))?(t=i,mh):Xv:t instanceof En?mh:t instanceof Date?l3:a3(t)?o3:Array.isArray(t)?h3:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?u3:cr)(r,t)}function f3(r,t){return r=+r,t=+t,function(e){return Math.round(r*(1-e)+t*e)}}var Vm=180/Math.PI,Vv={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $v(r,t,e,i,n,s){var o,a,h;return(o=Math.sqrt(r*r+t*t))&&(r/=o,t/=o),(h=r*e+t*i)&&(e-=r*h,i-=t*h),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,h/=a),r*i<t*e&&(r=-r,t=-t,h=-h,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(t,r)*Vm,skewX:Math.atan(h)*Vm,scaleX:o,scaleY:a}}var ga;function p3(r){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return t.isIdentity?Vv:$v(t.a,t.b,t.c,t.d,t.e,t.f)}function m3(r){return r==null||(ga||(ga=document.createElementNS("http://www.w3.org/2000/svg","g")),ga.setAttribute("transform",r),!(r=ga.transform.baseVal.consolidate()))?Vv:(r=r.matrix,$v(r.a,r.b,r.c,r.d,r.e,r.f))}function Yv(r,t,e,i){function n(l){return l.length?l.pop()+" ":""}function s(l,u,c,d,f,p){if(l!==c||u!==d){var m=f.push("translate(",null,t,null,e);p.push({i:m-4,x:cr(l,c)},{i:m-2,x:cr(u,d)})}else(c||d)&&f.push("translate("+c+t+d+e)}function o(l,u,c,d){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),d.push({i:c.push(n(c)+"rotate(",null,i)-2,x:cr(l,u)})):u&&c.push(n(c)+"rotate("+u+i)}function a(l,u,c,d){l!==u?d.push({i:c.push(n(c)+"skewX(",null,i)-2,x:cr(l,u)}):u&&c.push(n(c)+"skewX("+u+i)}function h(l,u,c,d,f,p){if(l!==c||u!==d){var m=f.push(n(f)+"scale(",null,",",null,")");p.push({i:m-4,x:cr(l,c)},{i:m-2,x:cr(u,d)})}else(c!==1||d!==1)&&f.push(n(f)+"scale("+c+","+d+")")}return function(l,u){var c=[],d=[];return l=r(l),u=r(u),s(l.translateX,l.translateY,u.translateX,u.translateY,c,d),o(l.rotate,u.rotate,c,d),a(l.skewX,u.skewX,c,d),h(l.scaleX,l.scaleY,u.scaleX,u.scaleY,c,d),l=u=null,function(f){for(var p=-1,m=d.length,g;++p<m;)c[(g=d[p]).i]=g.x(f);return c.join("")}}}var g3=Yv(p3,"px, ","px)","deg)"),y3=Yv(m3,", ",")",")"),ps=0,Ks=0,Fs=0,qv=1e3,gh,Qs,yh=0,An=0,zh=0,_o=typeof performance=="object"&&performance.now?performance:Date,Zv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function vd(){return An||(Zv(v3),An=_o.now()+zh)}function v3(){An=0}function vh(){this._call=this._time=this._next=null}vh.prototype=Kv.prototype={constructor:vh,restart:function(r,t,e){if(typeof r!="function")throw new TypeError("callback is not a function");e=(e==null?vd():+e)+(t==null?0:+t),!this._next&&Qs!==this&&(Qs?Qs._next=this:gh=this,Qs=this),this._call=r,this._time=e,Ac()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ac())}};function Kv(r,t,e){var i=new vh;return i.restart(r,t,e),i}function _3(){vd(),++ps;for(var r=gh,t;r;)(t=An-r._time)>=0&&r._call.call(void 0,t),r=r._next;--ps}function $m(){An=(yh=_o.now())+zh,ps=Ks=0;try{_3()}finally{ps=0,w3(),An=0}}function x3(){var r=_o.now(),t=r-yh;t>qv&&(zh-=t,yh=r)}function w3(){for(var r,t=gh,e,i=1/0;t;)t._call?(i>t._time&&(i=t._time),r=t,t=t._next):(e=t._next,t._next=null,t=r?r._next=e:gh=e);Qs=r,Ac(i)}function Ac(r){if(!ps){Ks&&(Ks=clearTimeout(Ks));var t=r-An;t>24?(r<1/0&&(Ks=setTimeout($m,r-_o.now()-zh)),Fs&&(Fs=clearInterval(Fs))):(Fs||(yh=_o.now(),Fs=setInterval(x3,qv)),ps=1,Zv($m))}}function Ym(r,t,e){var i=new vh;return t=t==null?0:+t,i.restart(n=>{i.stop(),r(n+t)},t,e),i}var b3=Pv("start","end","cancel","interrupt"),T3=[],Qv=0,qm=1,Sc=2,La=3,Zm=4,Cc=5,Ba=6;function jh(r,t,e,i,n,s){var o=r.__transition;if(!o)r.__transition={};else if(e in o)return;E3(r,e,{name:t,index:i,group:n,on:b3,tween:T3,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Qv})}function _d(r,t){var e=vr(r,t);if(e.state>Qv)throw new Error("too late; already scheduled");return e}function Ur(r,t){var e=vr(r,t);if(e.state>La)throw new Error("too late; already running");return e}function vr(r,t){var e=r.__transition;if(!e||!(e=e[t]))throw new Error("transition not found");return e}function E3(r,t,e){var i=r.__transition,n;i[t]=e,e.timer=Kv(s,0,e.time);function s(l){e.state=qm,e.timer.restart(o,e.delay,e.time),e.delay<=l&&o(l-e.delay)}function o(l){var u,c,d,f;if(e.state!==qm)return h();for(u in i)if(f=i[u],f.name===e.name){if(f.state===La)return Ym(o);f.state===Zm?(f.state=Ba,f.timer.stop(),f.on.call("interrupt",r,r.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=Ba,f.timer.stop(),f.on.call("cancel",r,r.__data__,f.index,f.group),delete i[u])}if(Ym(function(){e.state===La&&(e.state=Zm,e.timer.restart(a,e.delay,e.time),a(l))}),e.state=Sc,e.on.call("start",r,r.__data__,e.index,e.group),e.state===Sc){for(e.state=La,n=new Array(d=e.tween.length),u=0,c=-1;u<d;++u)(f=e.tween[u].value.call(r,r.__data__,e.index,e.group))&&(n[++c]=f);n.length=c+1}}function a(l){for(var u=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(h),e.state=Cc,1),c=-1,d=n.length;++c<d;)n[c].call(r,u);e.state===Cc&&(e.on.call("end",r,r.__data__,e.index,e.group),h())}function h(){e.state=Ba,e.timer.stop(),delete i[t];for(var l in i)return;delete r.__transition}}function A3(r,t){var e=r.__transition,i,n,s=!0,o;if(e){t=t==null?null:t+"";for(o in e){if((i=e[o]).name!==t){s=!1;continue}n=i.state>Sc&&i.state<Cc,i.state=Ba,i.timer.stop(),i.on.call(n?"interrupt":"cancel",r,r.__data__,i.index,i.group),delete e[o]}s&&delete r.__transition}}function S3(r){return this.each(function(){A3(this,r)})}function C3(r,t){var e,i;return function(){var n=Ur(this,r),s=n.tween;if(s!==e){i=e=s;for(var o=0,a=i.length;o<a;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function M3(r,t,e){var i,n;if(typeof e!="function")throw new Error;return function(){var s=Ur(this,r),o=s.tween;if(o!==i){n=(i=o).slice();for(var a={name:t,value:e},h=0,l=n.length;h<l;++h)if(n[h].name===t){n[h]=a;break}h===l&&n.push(a)}s.tween=n}}function R3(r,t){var e=this._id;if(r+="",arguments.length<2){for(var i=vr(this.node(),e).tween,n=0,s=i.length,o;n<s;++n)if((o=i[n]).name===r)return o.value;return null}return this.each((t==null?C3:M3)(e,r,t))}function xd(r,t,e){var i=r._id;return r.each(function(){var n=Ur(this,i);(n.value||(n.value={}))[t]=e.apply(this,arguments)}),function(n){return vr(n,i).value[t]}}function Jv(r,t){var e;return(typeof t=="number"?cr:t instanceof En?mh:(e=En(t))?(t=e,mh):Xv)(r,t)}function P3(r){return function(){this.removeAttribute(r)}}function I3(r){return function(){this.removeAttributeNS(r.space,r.local)}}function D3(r,t,e){var i,n=e+"",s;return function(){var o=this.getAttribute(r);return o===n?null:o===i?s:s=t(i=o,e)}}function O3(r,t,e){var i,n=e+"",s;return function(){var o=this.getAttributeNS(r.space,r.local);return o===n?null:o===i?s:s=t(i=o,e)}}function k3(r,t,e){var i,n,s;return function(){var o,a=e(this),h;return a==null?void this.removeAttribute(r):(o=this.getAttribute(r),h=a+"",o===h?null:o===i&&h===n?s:(n=h,s=t(i=o,a)))}}function N3(r,t,e){var i,n,s;return function(){var o,a=e(this),h;return a==null?void this.removeAttributeNS(r.space,r.local):(o=this.getAttributeNS(r.space,r.local),h=a+"",o===h?null:o===i&&h===n?s:(n=h,s=t(i=o,a)))}}function F3(r,t){var e=Gh(r),i=e==="transform"?y3:Jv;return this.attrTween(r,typeof t=="function"?(e.local?N3:k3)(e,i,xd(this,"attr."+r,t)):t==null?(e.local?I3:P3)(e):(e.local?O3:D3)(e,i,t))}function L3(r,t){return function(e){this.setAttribute(r,t.call(this,e))}}function B3(r,t){return function(e){this.setAttributeNS(r.space,r.local,t.call(this,e))}}function U3(r,t){var e,i;function n(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&B3(r,s)),e}return n._value=t,n}function H3(r,t){var e,i;function n(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&L3(r,s)),e}return n._value=t,n}function G3(r,t){var e="attr."+r;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;var i=Gh(r);return this.tween(e,(i.local?U3:H3)(i,t))}function z3(r,t){return function(){_d(this,r).delay=+t.apply(this,arguments)}}function j3(r,t){return t=+t,function(){_d(this,r).delay=t}}function W3(r){var t=this._id;return arguments.length?this.each((typeof r=="function"?z3:j3)(t,r)):vr(this.node(),t).delay}function X3(r,t){return function(){Ur(this,r).duration=+t.apply(this,arguments)}}function V3(r,t){return t=+t,function(){Ur(this,r).duration=t}}function $3(r){var t=this._id;return arguments.length?this.each((typeof r=="function"?X3:V3)(t,r)):vr(this.node(),t).duration}function Y3(r,t){if(typeof t!="function")throw new Error;return function(){Ur(this,r).ease=t}}function q3(r){var t=this._id;return arguments.length?this.each(Y3(t,r)):vr(this.node(),t).ease}function Z3(r,t){return function(){var e=t.apply(this,arguments);if(typeof e!="function")throw new Error;Ur(this,r).ease=e}}function K3(r){if(typeof r!="function")throw new Error;return this.each(Z3(this._id,r))}function Q3(r){typeof r!="function"&&(r=Ov(r));for(var t=this._groups,e=t.length,i=new Array(e),n=0;n<e;++n)for(var s=t[n],o=s.length,a=i[n]=[],h,l=0;l<o;++l)(h=s[l])&&r.call(h,h.__data__,l,s)&&a.push(h);return new oi(i,this._parents,this._name,this._id)}function J3(r){if(r._id!==this._id)throw new Error;for(var t=this._groups,e=r._groups,i=t.length,n=e.length,s=Math.min(i,n),o=new Array(i),a=0;a<s;++a)for(var h=t[a],l=e[a],u=h.length,c=o[a]=new Array(u),d,f=0;f<u;++f)(d=h[f]||l[f])&&(c[f]=d);for(;a<i;++a)o[a]=t[a];return new oi(o,this._parents,this._name,this._id)}function tR(r){return(r+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||t==="start"})}function eR(r,t,e){var i,n,s=tR(t)?_d:Ur;return function(){var o=s(this,r),a=o.on;a!==i&&(n=(i=a).copy()).on(t,e),o.on=n}}function rR(r,t){var e=this._id;return arguments.length<2?vr(this.node(),e).on.on(r):this.each(eR(e,r,t))}function iR(r){return function(){var t=this.parentNode;for(var e in this.__transition)if(+e!==r)return;t&&t.removeChild(this)}}function nR(){return this.on("end.remove",iR(this._id))}function sR(r){var t=this._name,e=this._id;typeof r!="function"&&(r=fd(r));for(var i=this._groups,n=i.length,s=new Array(n),o=0;o<n;++o)for(var a=i[o],h=a.length,l=s[o]=new Array(h),u,c,d=0;d<h;++d)(u=a[d])&&(c=r.call(u,u.__data__,d,a))&&("__data__"in u&&(c.__data__=u.__data__),l[d]=c,jh(l[d],t,e,d,l,vr(u,e)));return new oi(s,this._parents,t,e)}function oR(r){var t=this._name,e=this._id;typeof r!="function"&&(r=Dv(r));for(var i=this._groups,n=i.length,s=[],o=[],a=0;a<n;++a)for(var h=i[a],l=h.length,u,c=0;c<l;++c)if(u=h[c]){for(var d=r.call(u,u.__data__,c,h),f,p=vr(u,e),m=0,g=d.length;m<g;++m)(f=d[m])&&jh(f,t,e,m,d,p);s.push(d),o.push(u)}return new oi(s,o,t,e)}var aR=Mo.prototype.constructor;function hR(){return new aR(this._groups,this._parents)}function lR(r,t){var e,i,n;return function(){var s=fs(this,r),o=(this.style.removeProperty(r),fs(this,r));return s===o?null:s===e&&o===i?n:n=t(e=s,i=o)}}function t_(r){return function(){this.style.removeProperty(r)}}function uR(r,t,e){var i,n=e+"",s;return function(){var o=fs(this,r);return o===n?null:o===i?s:s=t(i=o,e)}}function cR(r,t,e){var i,n,s;return function(){var o=fs(this,r),a=e(this),h=a+"";return a==null&&(h=a=(this.style.removeProperty(r),fs(this,r))),o===h?null:o===i&&h===n?s:(n=h,s=t(i=o,a))}}function dR(r,t){var e,i,n,s="style."+t,o="end."+s,a;return function(){var h=Ur(this,r),l=h.on,u=h.value[s]==null?a||(a=t_(t)):void 0;(l!==e||n!==u)&&(i=(e=l).copy()).on(o,n=u),h.on=i}}function fR(r,t,e){var i=(r+="")=="transform"?g3:Jv;return t==null?this.styleTween(r,lR(r,i)).on("end.style."+r,t_(r)):typeof t=="function"?this.styleTween(r,cR(r,i,xd(this,"style."+r,t))).each(dR(this._id,r)):this.styleTween(r,uR(r,i,t),e).on("end.style."+r,null)}function pR(r,t,e){return function(i){this.style.setProperty(r,t.call(this,i),e)}}function mR(r,t,e){var i,n;function s(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&pR(r,o,e)),i}return s._value=t,s}function gR(r,t,e){var i="style."+(r+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,mR(r,t,e??""))}function yR(r){return function(){this.textContent=r}}function vR(r){return function(){var t=r(this);this.textContent=t??""}}function _R(r){return this.tween("text",typeof r=="function"?vR(xd(this,"text",r)):yR(r==null?"":r+""))}function xR(r){return function(t){this.textContent=r.call(this,t)}}function wR(r){var t,e;function i(){var n=r.apply(this,arguments);return n!==e&&(t=(e=n)&&xR(n)),t}return i._value=r,i}function bR(r){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(r==null)return this.tween(t,null);if(typeof r!="function")throw new Error;return this.tween(t,wR(r))}function TR(){for(var r=this._name,t=this._id,e=e_(),i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],a=o.length,h,l=0;l<a;++l)if(h=o[l]){var u=vr(h,t);jh(h,r,e,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new oi(i,this._parents,r,e)}function ER(){var r,t,e=this,i=e._id,n=e.size();return new Promise(function(s,o){var a={value:o},h={value:function(){--n===0&&s()}};e.each(function(){var l=Ur(this,i),u=l.on;u!==r&&(t=(r=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(h)),l.on=t}),n===0&&s()})}var AR=0;function oi(r,t,e,i){this._groups=r,this._parents=t,this._name=e,this._id=i}function e_(){return++AR}var Xr=Mo.prototype;oi.prototype={constructor:oi,select:sR,selectAll:oR,selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:Q3,merge:J3,selection:hR,transition:TR,call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:rR,attr:F3,attrTween:G3,style:fR,styleTween:gR,text:_R,textTween:bR,remove:nR,tween:R3,delay:W3,duration:$3,ease:q3,easeVarying:K3,end:ER,[Symbol.iterator]:Xr[Symbol.iterator]};function SR(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var CR={time:null,delay:0,duration:250,ease:SR};function MR(r,t){for(var e;!(e=r.__transition)||!(e=e[t]);)if(!(r=r.parentNode))throw new Error(`transition ${t} not found`);return e}function RR(r){var t,e;r instanceof oi?(t=r._id,r=r._name):(t=e_(),(e=CR).time=vd(),r=r==null?null:r+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],a=o.length,h,l=0;l<a;++l)(h=o[l])&&jh(h,r,t,l,o,e||MR(h,t));return new oi(i,this._parents,r,t)}Mo.prototype.interrupt=S3;Mo.prototype.transition=RR;function PR(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function _h(r,t){if((e=(r=t?r.toExponential(t-1):r.toExponential()).indexOf("e"))<0)return null;var e,i=r.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+r.slice(e+1)]}function ms(r){return r=_h(Math.abs(r)),r?r[1]:NaN}function IR(r,t){return function(e,i){for(var n=e.length,s=[],o=0,a=r[0],h=0;n>0&&a>0&&(h+a+1>i&&(a=Math.max(1,i-h)),s.push(e.substring(n-=a,n+a)),!((h+=a+1)>i));)a=r[o=(o+1)%r.length];return s.reverse().join(t)}}function DR(r){return function(t){return t.replace(/[0-9]/g,function(e){return r[+e]})}}var OR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xh(r){if(!(t=OR.exec(r)))throw new Error("invalid format: "+r);var t;return new wd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}xh.prototype=wd.prototype;function wd(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}wd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kR(r){t:for(var t=r.length,e=1,i=-1,n;e<t;++e)switch(r[e]){case".":i=n=e;break;case"0":i===0&&(i=e),n=e;break;default:if(!+r[e])break t;i>0&&(i=0);break}return i>0?r.slice(0,i)+r.slice(n+1):r}var r_;function NR(r,t){var e=_h(r,t);if(!e)return r+"";var i=e[0],n=e[1],s=n-(r_=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+_h(r,Math.max(0,t+s-1))[0]}function Km(r,t){var e=_h(r,t);if(!e)return r+"";var i=e[0],n=e[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const Qm={"%":(r,t)=>(r*100).toFixed(t),b:r=>Math.round(r).toString(2),c:r=>r+"",d:PR,e:(r,t)=>r.toExponential(t),f:(r,t)=>r.toFixed(t),g:(r,t)=>r.toPrecision(t),o:r=>Math.round(r).toString(8),p:(r,t)=>Km(r*100,t),r:Km,s:NR,X:r=>Math.round(r).toString(16).toUpperCase(),x:r=>Math.round(r).toString(16)};function Jm(r){return r}var tg=Array.prototype.map,eg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function FR(r){var t=r.grouping===void 0||r.thousands===void 0?Jm:IR(tg.call(r.grouping,Number),r.thousands+""),e=r.currency===void 0?"":r.currency[0]+"",i=r.currency===void 0?"":r.currency[1]+"",n=r.decimal===void 0?".":r.decimal+"",s=r.numerals===void 0?Jm:DR(tg.call(r.numerals,String)),o=r.percent===void 0?"%":r.percent+"",a=r.minus===void 0?"−":r.minus+"",h=r.nan===void 0?"NaN":r.nan+"";function l(c){c=xh(c);var d=c.fill,f=c.align,p=c.sign,m=c.symbol,g=c.zero,v=c.width,w=c.comma,_=c.precision,T=c.trim,b=c.type;b==="n"?(w=!0,b="g"):Qm[b]||(_===void 0&&(_=12),T=!0,b="g"),(g||d==="0"&&f==="=")&&(g=!0,d="0",f="=");var x=m==="$"?e:m==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y=m==="$"?i:/[%p]/.test(b)?o:"",S=Qm[b],D=/[defgprs%]/.test(b);_=_===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function G(O){var N=x,P=y,F,j,E;if(b==="c")P=S(O)+P,O="";else{O=+O;var A=O<0||1/O<0;if(O=isNaN(O)?h:S(Math.abs(O),_),T&&(O=kR(O)),A&&+O==0&&p!=="+"&&(A=!1),N=(A?p==="("?p:a:p==="-"||p==="("?"":p)+N,P=(b==="s"?eg[8+r_/3]:"")+P+(A&&p==="("?")":""),D){for(F=-1,j=O.length;++F<j;)if(E=O.charCodeAt(F),48>E||E>57){P=(E===46?n+O.slice(F+1):O.slice(F))+P,O=O.slice(0,F);break}}}w&&!g&&(O=t(O,1/0));var C=N.length+O.length+P.length,B=C<v?new Array(v-C+1).join(d):"";switch(w&&g&&(O=t(B+O,B.length?v-P.length:1/0),B=""),f){case"<":O=N+O+P+B;break;case"=":O=N+B+O+P;break;case"^":O=B.slice(0,C=B.length>>1)+N+O+P+B.slice(C);break;default:O=B+N+O+P;break}return s(O)}return G.toString=function(){return c+""},G}function u(c,d){var f=l((c=xh(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(ms(d)/3)))*3,m=Math.pow(10,-p),g=eg[8+p/3];return function(v){return f(m*v)+g}}return{format:l,formatPrefix:u}}var ya,i_,n_;LR({thousands:",",grouping:[3],currency:["$",""]});function LR(r){return ya=FR(r),i_=ya.format,n_=ya.formatPrefix,ya}function BR(r){return Math.max(0,-ms(Math.abs(r)))}function UR(r,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ms(t)/3)))*3-ms(Math.abs(r)))}function HR(r,t){return r=Math.abs(r),t=Math.abs(t)-r,Math.max(0,ms(t)-ms(r))+1}function s_(r,t){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(t).domain(r);break}return this}function GR(r){return function(){return r}}function zR(r){return+r}var rg=[0,1];function Zn(r){return r}function Mc(r,t){return(t-=r=+r)?function(e){return(e-r)/t}:GR(isNaN(t)?NaN:.5)}function jR(r,t){var e;return r>t&&(e=r,r=t,t=e),function(i){return Math.max(r,Math.min(t,i))}}function WR(r,t,e){var i=r[0],n=r[1],s=t[0],o=t[1];return n<i?(i=Mc(n,i),s=e(o,s)):(i=Mc(i,n),s=e(s,o)),function(a){return s(i(a))}}function XR(r,t,e){var i=Math.min(r.length,t.length)-1,n=new Array(i),s=new Array(i),o=-1;for(r[i]<r[0]&&(r=r.slice().reverse(),t=t.slice().reverse());++o<i;)n[o]=Mc(r[o],r[o+1]),s[o]=e(t[o],t[o+1]);return function(a){var h=nC(r,a,1,i)-1;return s[h](n[h](a))}}function o_(r,t){return t.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())}function VR(){var r=rg,t=rg,e=yd,i,n,s,o=Zn,a,h,l;function u(){var d=Math.min(r.length,t.length);return o!==Zn&&(o=jR(r[0],r[d-1])),a=d>2?XR:WR,h=l=null,c}function c(d){return d==null||isNaN(d=+d)?s:(h||(h=a(r.map(i),t,e)))(i(o(d)))}return c.invert=function(d){return o(n((l||(l=a(t,r.map(i),cr)))(d)))},c.domain=function(d){return arguments.length?(r=Array.from(d,zR),u()):r.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),e=f3,u()},c.clamp=function(d){return arguments.length?(o=d?!0:Zn,u()):o!==Zn},c.interpolate=function(d){return arguments.length?(e=d,u()):e},c.unknown=function(d){return arguments.length?(s=d,c):s},function(d,f){return i=d,n=f,u()}}function a_(){return VR()(Zn,Zn)}function $R(r,t,e,i){var n=wc(r,t,e),s;switch(i=xh(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(r),Math.abs(t));return i.precision==null&&!isNaN(s=UR(n,o))&&(i.precision=s),n_(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=HR(n,Math.max(Math.abs(r),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=BR(n))&&(i.precision=s-(i.type==="%")*2);break}}return i_(i)}function YR(r){var t=r.domain;return r.ticks=function(e){var i=t();return hC(i[0],i[i.length-1],e??10)},r.tickFormat=function(e,i){var n=t();return $R(n[0],n[n.length-1],e??10,i)},r.nice=function(e){e==null&&(e=10);var i=t(),n=0,s=i.length-1,o=i[n],a=i[s],h,l,u=10;for(a<o&&(l=o,o=a,a=l,l=n,n=s,s=l);u-- >0;){if(l=xc(o,a,e),l===h)return i[n]=o,i[s]=a,t(i);if(l>0)o=Math.floor(o/l)*l,a=Math.ceil(a/l)*l;else if(l<0)o=Math.ceil(o*l)/l,a=Math.floor(a*l)/l;else break;h=l}return r},r}function h_(){var r=a_();return r.copy=function(){return o_(r,h_())},s_.apply(r,arguments),YR(r)}function qR(r,t){r=r.slice();var e=0,i=r.length-1,n=r[e],s=r[i],o;return s<n&&(o=e,e=i,i=o,o=n,n=s,s=o),r[e]=t.floor(n),r[i]=t.ceil(s),r}const cu=new Date,du=new Date;function ne(r,t,e,i){function n(s){return r(s=arguments.length===0?new Date:new Date(+s)),s}return n.floor=s=>(r(s=new Date(+s)),s),n.ceil=s=>(r(s=new Date(s-1)),t(s,1),r(s),s),n.round=s=>{const o=n(s),a=n.ceil(s);return s-o<a-s?o:a},n.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),n.range=(s,o,a)=>{const h=[];if(s=n.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return h;let l;do h.push(l=new Date(+s)),t(s,a),r(s);while(l<s&&s<o);return h},n.filter=s=>ne(o=>{if(o>=o)for(;r(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!s(o););else for(;--a>=0;)for(;t(o,1),!s(o););}),e&&(n.count=(s,o)=>(cu.setTime(+s),du.setTime(+o),r(cu),r(du),Math.floor(e(cu,du))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(i?o=>i(o)%s===0:o=>n.count(0,o)%s===0):n)),n}const wh=ne(()=>{},(r,t)=>{r.setTime(+r+t)},(r,t)=>t-r);wh.every=r=>(r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?ne(t=>{t.setTime(Math.floor(t/r)*r)},(t,e)=>{t.setTime(+t+e*r)},(t,e)=>(e-t)/r):wh);wh.range;const Jr=1e3,Je=Jr*60,ti=Je*60,ai=ti*24,bd=ai*7,ig=ai*30,fu=ai*365,Kn=ne(r=>{r.setTime(r-r.getMilliseconds())},(r,t)=>{r.setTime(+r+t*Jr)},(r,t)=>(t-r)/Jr,r=>r.getUTCSeconds());Kn.range;const Td=ne(r=>{r.setTime(r-r.getMilliseconds()-r.getSeconds()*Jr)},(r,t)=>{r.setTime(+r+t*Je)},(r,t)=>(t-r)/Je,r=>r.getMinutes());Td.range;const ZR=ne(r=>{r.setUTCSeconds(0,0)},(r,t)=>{r.setTime(+r+t*Je)},(r,t)=>(t-r)/Je,r=>r.getUTCMinutes());ZR.range;const Ed=ne(r=>{r.setTime(r-r.getMilliseconds()-r.getSeconds()*Jr-r.getMinutes()*Je)},(r,t)=>{r.setTime(+r+t*ti)},(r,t)=>(t-r)/ti,r=>r.getHours());Ed.range;const KR=ne(r=>{r.setUTCMinutes(0,0,0)},(r,t)=>{r.setTime(+r+t*ti)},(r,t)=>(t-r)/ti,r=>r.getUTCHours());KR.range;const Po=ne(r=>r.setHours(0,0,0,0),(r,t)=>r.setDate(r.getDate()+t),(r,t)=>(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*Je)/ai,r=>r.getDate()-1);Po.range;const Ad=ne(r=>{r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t)},(r,t)=>(t-r)/ai,r=>r.getUTCDate()-1);Ad.range;const QR=ne(r=>{r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t)},(r,t)=>(t-r)/ai,r=>Math.floor(r/ai));QR.range;function In(r){return ne(t=>{t.setDate(t.getDate()-(t.getDay()+7-r)%7),t.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+e*7)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Je)/bd)}const Wh=In(0),bh=In(1),JR=In(2),tP=In(3),gs=In(4),eP=In(5),rP=In(6);Wh.range;bh.range;JR.range;tP.range;gs.range;eP.range;rP.range;function Dn(r){return ne(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-r)%7),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e*7)},(t,e)=>(e-t)/bd)}const l_=Dn(0),Th=Dn(1),iP=Dn(2),nP=Dn(3),ys=Dn(4),sP=Dn(5),oP=Dn(6);l_.range;Th.range;iP.range;nP.range;ys.range;sP.range;oP.range;const Sd=ne(r=>{r.setDate(1),r.setHours(0,0,0,0)},(r,t)=>{r.setMonth(r.getMonth()+t)},(r,t)=>t.getMonth()-r.getMonth()+(t.getFullYear()-r.getFullYear())*12,r=>r.getMonth());Sd.range;const aP=ne(r=>{r.setUTCDate(1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCMonth(r.getUTCMonth()+t)},(r,t)=>t.getUTCMonth()-r.getUTCMonth()+(t.getUTCFullYear()-r.getUTCFullYear())*12,r=>r.getUTCMonth());aP.range;const hi=ne(r=>{r.setMonth(0,1),r.setHours(0,0,0,0)},(r,t)=>{r.setFullYear(r.getFullYear()+t)},(r,t)=>t.getFullYear()-r.getFullYear(),r=>r.getFullYear());hi.every=r=>!isFinite(r=Math.floor(r))||!(r>0)?null:ne(t=>{t.setFullYear(Math.floor(t.getFullYear()/r)*r),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e*r)});hi.range;const Sn=ne(r=>{r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCFullYear(r.getUTCFullYear()+t)},(r,t)=>t.getUTCFullYear()-r.getUTCFullYear(),r=>r.getUTCFullYear());Sn.every=r=>!isFinite(r=Math.floor(r))||!(r>0)?null:ne(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/r)*r),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e*r)});Sn.range;function hP(r,t,e,i,n,s){const o=[[Kn,1,Jr],[Kn,5,5*Jr],[Kn,15,15*Jr],[Kn,30,30*Jr],[s,1,Je],[s,5,5*Je],[s,15,15*Je],[s,30,30*Je],[n,1,ti],[n,3,3*ti],[n,6,6*ti],[n,12,12*ti],[i,1,ai],[i,2,2*ai],[e,1,bd],[t,1,ig],[t,3,3*ig],[r,1,fu]];function a(l,u,c){const d=u<l;d&&([l,u]=[u,l]);const f=c&&typeof c.range=="function"?c:h(l,u,c),p=f?f.range(l,+u+1):[];return d?p.reverse():p}function h(l,u,c){const d=Math.abs(u-l)/c,f=dd(([,,g])=>g).right(o,d);if(f===o.length)return r.every(wc(l/fu,u/fu,c));if(f===0)return wh.every(Math.max(wc(l,u,c),1));const[p,m]=o[d/o[f-1][2]<o[f][2]/d?f-1:f];return p.every(m)}return[a,h]}const[lP,uP]=hP(hi,Sd,Wh,Po,Ed,Td);function pu(r){if(0<=r.y&&r.y<100){var t=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return t.setFullYear(r.y),t}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function mu(r){if(0<=r.y&&r.y<100){var t=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return t.setUTCFullYear(r.y),t}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function Ls(r,t,e){return{y:r,m:t,d:e,H:0,M:0,S:0,L:0}}function cP(r){var t=r.dateTime,e=r.date,i=r.time,n=r.periods,s=r.days,o=r.shortDays,a=r.months,h=r.shortMonths,l=Bs(n),u=Us(n),c=Bs(s),d=Us(s),f=Bs(o),p=Us(o),m=Bs(a),g=Us(a),v=Bs(h),w=Us(h),_={a:A,A:C,b:B,B:I,c:null,d:lg,e:lg,f:kP,g:WP,G:VP,H:IP,I:DP,j:OP,L:u_,m:NP,M:FP,p:M,q:k,Q:dg,s:fg,S:LP,u:BP,U:UP,V:HP,w:GP,W:zP,x:null,X:null,y:jP,Y:XP,Z:$P,"%":cg},T={a:L,A:V,b:$,B:tt,c:null,d:ug,e:ug,f:KP,g:aI,G:lI,H:YP,I:qP,j:ZP,L:d_,m:QP,M:JP,p:et,q:K,Q:dg,s:fg,S:tI,u:eI,U:rI,V:iI,w:nI,W:sI,x:null,X:null,y:oI,Y:hI,Z:uI,"%":cg},b={a:G,A:O,b:N,B:P,c:F,d:ag,e:ag,f:CP,g:og,G:sg,H:hg,I:hg,j:TP,L:SP,m:bP,M:EP,p:D,q:wP,Q:RP,s:PP,S:AP,u:gP,U:yP,V:vP,w:mP,W:_P,x:j,X:E,y:og,Y:sg,Z:xP,"%":MP};_.x=x(e,_),_.X=x(i,_),_.c=x(t,_),T.x=x(e,T),T.X=x(i,T),T.c=x(t,T);function x(U,X){return function(q){var z=[],at=-1,nt=0,J=U.length,ht,Ct,Pt;for(q instanceof Date||(q=new Date(+q));++at<J;)U.charCodeAt(at)===37&&(z.push(U.slice(nt,at)),(Ct=ng[ht=U.charAt(++at)])!=null?ht=U.charAt(++at):Ct=ht==="e"?" ":"0",(Pt=X[ht])&&(ht=Pt(q,Ct)),z.push(ht),nt=at+1);return z.push(U.slice(nt,at)),z.join("")}}function y(U,X){return function(q){var z=Ls(1900,void 0,1),at=S(z,U,q+="",0),nt,J;if(at!=q.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(X&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(nt=mu(Ls(z.y,0,1)),J=nt.getUTCDay(),nt=J>4||J===0?Th.ceil(nt):Th(nt),nt=Ad.offset(nt,(z.V-1)*7),z.y=nt.getUTCFullYear(),z.m=nt.getUTCMonth(),z.d=nt.getUTCDate()+(z.w+6)%7):(nt=pu(Ls(z.y,0,1)),J=nt.getDay(),nt=J>4||J===0?bh.ceil(nt):bh(nt),nt=Po.offset(nt,(z.V-1)*7),z.y=nt.getFullYear(),z.m=nt.getMonth(),z.d=nt.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),J="Z"in z?mu(Ls(z.y,0,1)).getUTCDay():pu(Ls(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(J+5)%7:z.w+z.U*7-(J+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,mu(z)):pu(z)}}function S(U,X,q,z){for(var at=0,nt=X.length,J=q.length,ht,Ct;at<nt;){if(z>=J)return-1;if(ht=X.charCodeAt(at++),ht===37){if(ht=X.charAt(at++),Ct=b[ht in ng?X.charAt(at++):ht],!Ct||(z=Ct(U,q,z))<0)return-1}else if(ht!=q.charCodeAt(z++))return-1}return z}function D(U,X,q){var z=l.exec(X.slice(q));return z?(U.p=u.get(z[0].toLowerCase()),q+z[0].length):-1}function G(U,X,q){var z=f.exec(X.slice(q));return z?(U.w=p.get(z[0].toLowerCase()),q+z[0].length):-1}function O(U,X,q){var z=c.exec(X.slice(q));return z?(U.w=d.get(z[0].toLowerCase()),q+z[0].length):-1}function N(U,X,q){var z=v.exec(X.slice(q));return z?(U.m=w.get(z[0].toLowerCase()),q+z[0].length):-1}function P(U,X,q){var z=m.exec(X.slice(q));return z?(U.m=g.get(z[0].toLowerCase()),q+z[0].length):-1}function F(U,X,q){return S(U,t,X,q)}function j(U,X,q){return S(U,e,X,q)}function E(U,X,q){return S(U,i,X,q)}function A(U){return o[U.getDay()]}function C(U){return s[U.getDay()]}function B(U){return h[U.getMonth()]}function I(U){return a[U.getMonth()]}function M(U){return n[+(U.getHours()>=12)]}function k(U){return 1+~~(U.getMonth()/3)}function L(U){return o[U.getUTCDay()]}function V(U){return s[U.getUTCDay()]}function $(U){return h[U.getUTCMonth()]}function tt(U){return a[U.getUTCMonth()]}function et(U){return n[+(U.getUTCHours()>=12)]}function K(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var X=x(U+="",_);return X.toString=function(){return U},X},parse:function(U){var X=y(U+="",!1);return X.toString=function(){return U},X},utcFormat:function(U){var X=x(U+="",T);return X.toString=function(){return U},X},utcParse:function(U){var X=y(U+="",!0);return X.toString=function(){return U},X}}}var ng={"-":"",_:" ",0:"0"},le=/^\s*\d+/,dP=/^%/,fP=/[\\^$*+?|[\]().{}]/g;function Mt(r,t,e){var i=r<0?"-":"",n=(i?-r:r)+"",s=n.length;return i+(s<e?new Array(e-s+1).join(t)+n:n)}function pP(r){return r.replace(fP,"\\$&")}function Bs(r){return new RegExp("^(?:"+r.map(pP).join("|")+")","i")}function Us(r){return new Map(r.map((t,e)=>[t.toLowerCase(),e]))}function mP(r,t,e){var i=le.exec(t.slice(e,e+1));return i?(r.w=+i[0],e+i[0].length):-1}function gP(r,t,e){var i=le.exec(t.slice(e,e+1));return i?(r.u=+i[0],e+i[0].length):-1}function yP(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.U=+i[0],e+i[0].length):-1}function vP(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.V=+i[0],e+i[0].length):-1}function _P(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.W=+i[0],e+i[0].length):-1}function sg(r,t,e){var i=le.exec(t.slice(e,e+4));return i?(r.y=+i[0],e+i[0].length):-1}function og(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function xP(r,t,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return i?(r.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function wP(r,t,e){var i=le.exec(t.slice(e,e+1));return i?(r.q=i[0]*3-3,e+i[0].length):-1}function bP(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.m=i[0]-1,e+i[0].length):-1}function ag(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.d=+i[0],e+i[0].length):-1}function TP(r,t,e){var i=le.exec(t.slice(e,e+3));return i?(r.m=0,r.d=+i[0],e+i[0].length):-1}function hg(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.H=+i[0],e+i[0].length):-1}function EP(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.M=+i[0],e+i[0].length):-1}function AP(r,t,e){var i=le.exec(t.slice(e,e+2));return i?(r.S=+i[0],e+i[0].length):-1}function SP(r,t,e){var i=le.exec(t.slice(e,e+3));return i?(r.L=+i[0],e+i[0].length):-1}function CP(r,t,e){var i=le.exec(t.slice(e,e+6));return i?(r.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function MP(r,t,e){var i=dP.exec(t.slice(e,e+1));return i?e+i[0].length:-1}function RP(r,t,e){var i=le.exec(t.slice(e));return i?(r.Q=+i[0],e+i[0].length):-1}function PP(r,t,e){var i=le.exec(t.slice(e));return i?(r.s=+i[0],e+i[0].length):-1}function lg(r,t){return Mt(r.getDate(),t,2)}function IP(r,t){return Mt(r.getHours(),t,2)}function DP(r,t){return Mt(r.getHours()%12||12,t,2)}function OP(r,t){return Mt(1+Po.count(hi(r),r),t,3)}function u_(r,t){return Mt(r.getMilliseconds(),t,3)}function kP(r,t){return u_(r,t)+"000"}function NP(r,t){return Mt(r.getMonth()+1,t,2)}function FP(r,t){return Mt(r.getMinutes(),t,2)}function LP(r,t){return Mt(r.getSeconds(),t,2)}function BP(r){var t=r.getDay();return t===0?7:t}function UP(r,t){return Mt(Wh.count(hi(r)-1,r),t,2)}function c_(r){var t=r.getDay();return t>=4||t===0?gs(r):gs.ceil(r)}function HP(r,t){return r=c_(r),Mt(gs.count(hi(r),r)+(hi(r).getDay()===4),t,2)}function GP(r){return r.getDay()}function zP(r,t){return Mt(bh.count(hi(r)-1,r),t,2)}function jP(r,t){return Mt(r.getFullYear()%100,t,2)}function WP(r,t){return r=c_(r),Mt(r.getFullYear()%100,t,2)}function XP(r,t){return Mt(r.getFullYear()%1e4,t,4)}function VP(r,t){var e=r.getDay();return r=e>=4||e===0?gs(r):gs.ceil(r),Mt(r.getFullYear()%1e4,t,4)}function $P(r){var t=r.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mt(t/60|0,"0",2)+Mt(t%60,"0",2)}function ug(r,t){return Mt(r.getUTCDate(),t,2)}function YP(r,t){return Mt(r.getUTCHours(),t,2)}function qP(r,t){return Mt(r.getUTCHours()%12||12,t,2)}function ZP(r,t){return Mt(1+Ad.count(Sn(r),r),t,3)}function d_(r,t){return Mt(r.getUTCMilliseconds(),t,3)}function KP(r,t){return d_(r,t)+"000"}function QP(r,t){return Mt(r.getUTCMonth()+1,t,2)}function JP(r,t){return Mt(r.getUTCMinutes(),t,2)}function tI(r,t){return Mt(r.getUTCSeconds(),t,2)}function eI(r){var t=r.getUTCDay();return t===0?7:t}function rI(r,t){return Mt(l_.count(Sn(r)-1,r),t,2)}function f_(r){var t=r.getUTCDay();return t>=4||t===0?ys(r):ys.ceil(r)}function iI(r,t){return r=f_(r),Mt(ys.count(Sn(r),r)+(Sn(r).getUTCDay()===4),t,2)}function nI(r){return r.getUTCDay()}function sI(r,t){return Mt(Th.count(Sn(r)-1,r),t,2)}function oI(r,t){return Mt(r.getUTCFullYear()%100,t,2)}function aI(r,t){return r=f_(r),Mt(r.getUTCFullYear()%100,t,2)}function hI(r,t){return Mt(r.getUTCFullYear()%1e4,t,4)}function lI(r,t){var e=r.getUTCDay();return r=e>=4||e===0?ys(r):ys.ceil(r),Mt(r.getUTCFullYear()%1e4,t,4)}function uI(){return"+0000"}function cg(){return"%"}function dg(r){return+r}function fg(r){return Math.floor(+r/1e3)}var Un,p_;cI({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function cI(r){return Un=cP(r),p_=Un.format,Un.parse,Un.utcFormat,Un.utcParse,Un}function dI(r){return new Date(r)}function fI(r){return r instanceof Date?+r:+new Date(+r)}function m_(r,t,e,i,n,s,o,a,h,l){var u=a_(),c=u.invert,d=u.domain,f=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),v=l("%a %d"),w=l("%b %d"),_=l("%B"),T=l("%Y");function b(x){return(h(x)<x?f:a(x)<x?p:o(x)<x?m:s(x)<x?g:i(x)<x?n(x)<x?v:w:e(x)<x?_:T)(x)}return u.invert=function(x){return new Date(c(x))},u.domain=function(x){return arguments.length?d(Array.from(x,fI)):d().map(dI)},u.ticks=function(x){var y=d();return r(y[0],y[y.length-1],x??10)},u.tickFormat=function(x,y){return y==null?b:l(y)},u.nice=function(x){var y=d();return(!x||typeof x.range!="function")&&(x=t(y[0],y[y.length-1],x??10)),x?d(qR(y,x)):u},u.copy=function(){return o_(u,m_(r,t,e,i,n,s,o,a,h,l))},u}function pI(){return s_.apply(m_(lP,uP,hi,Sd,Wh,Po,Ed,Td,Kn,p_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Js(r,t,e){this.k=r,this.x=t,this.y=e}Js.prototype={constructor:Js,scale:function(r){return r===1?this:new Js(this.k*r,this.x,this.y)},translate:function(r,t){return r===0&t===0?this:new Js(this.k,this.x+this.k*r,this.y+this.k*t)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Js.prototype;function g_(r){return r.mode==="temporal"||r.mode==="left-aligned"?mI(r):gI(r)}function mI({domain:r,range:t}){return pI().domain(r).range(t)}function gI({domain:r,range:t}){return h_().domain(r).range(t)}function Rc(r){return{mode:ut.horizontal,range:dS(),domain:fS(r)}}function yI(){return{mode:ut.vertical}}let so=null;async function vI(){const r=await Hr();pg(r.start_time),rt.on("layoutSettingsUpdated",()=>pg(r.start_time))}function _I(){so=null}async function rr(){return so||await Re("scaleCreated")}async function pg(r){await Kt();const t=so?"scaleUpdated":"scaleCreated",e=Rc(r);so=g_(e),rt.emit(t,so)}function Ri(r){return"getIds"in r}async function y_({items:r,createCluster:t}){const e=[...r.values()].sort((o,a)=>o.element.x-a.element.x);async function i(o){let a,h=null,l=null;for(let u=o??0;u<e.length;u++){const c=e[u],d=c.element.x;if(c.element.visible=!0,h!==null&&a&&d<a){l=u;break}h=u,a=d+c.element.width}if(l!==null&&h!==null){const u=e[h],c=e[l];u.element.visible=!1,c.element.visible=!1;const d=await n(u,c);d&&(e.splice(h,1,d),e.splice(l,1)),i(h)}}async function n(o,a){const h=o.getDate(),l=a.getDate(),u=Ri(o)?o.getIds():[o.getId()],c=Ri(a)?a.getIds():[a.getId()];if(!h||!l)return console.error("flowRunArtifacts: visible item is missing date"),null;let d;Ri(o)?d=o:Ri(a)?d=a:d=await t();const f=[...u,...c],p=s(f);return await d.render({ids:f,date:p}),d}function s(o){const a=o.reduce((u,c)=>{const d=r.get(c)?.getDate();return d&&u.push(d.getTime()),u},[]),h=Math.min(...a),l=Math.max(...a);return new Date((h+l)/2)}await i()}async function mg(r){const t=await Qt(),e=await Jt(),i=await jt(),n=await Kt();let s=await rr();const o=await h();o.element.on("click",u=>{u.stopPropagation();const{element:c}=o,d={x:c.position.x,y:c.position.y,width:c.width,height:c.height},f=Ri(o)?{kind:"events",ids:o.getIds(),occurred:o.getDate(),position:d}:{kind:"event",id:o.getId(),occurred:o.getDate(),position:d};li(f)}),rt.on("scaleUpdated",u=>{s=u,l()}),rt.on("viewportMoved",()=>l());async function a(u){await o.render(u),l()}async function h(){return r.type==="event"?await Mv(r.event):await Rv()}function l(){const u=o.getDate();if(!u||n.disableEvents||!ut.isTemporal())return;const{element:c}=o,d=s(u)*e.scale._x+e.worldTransform.tx-c.width/2,f=t.screen.height-c.height-i.eventBottomMargin;c.position.set(d,f)}return{...o,render:a}}async function gg(r){const t=await Jt(),e=await Kt();let i=await rr();const n=await o();n.element.on("click",h=>{h.stopPropagation();const{element:l}=n,u=l.getGlobalPosition(),c={x:u.x,y:u.y,width:l.width*t.scale.x,height:l.height*t.scale.y},d=Ri(n)?{kind:"events",ids:n.getIds(),occurred:n.getDate(),position:c}:{kind:"event",id:n.getId(),occurred:n.getDate(),position:c};li(d)}),rt.on("scaleUpdated",h=>{i=h,a()});async function s(h){await n.render(h),a()}async function o(){return r.type==="event"?await Mv(r.event):await Rv()}function a(){const h=n.getDate(),{parentStartDate:l}=r;if(!h||e.disableEvents||!ut.isTemporal()||!l)return;const{element:u}=n,c=i(h)-i(l)-u.width/2,d=-u.height;u.position.set(c,d)}return{...n,render:s}}async function v_({isRoot:r,parentStartDate:t}={}){const e=await Kt(),i=new Map,n=new Map,s=[];let o=[];const a=new bt;let h=null;rt.on("scaleUpdated",()=>c());async function l(p){if(p&&(h=p),!h)return;const m=[];for(const g of h)m.push(u(g));await Promise.all(m),c()}async function u(p){if(i.has(p.id))return i.get(p.id).render();if(n.has(p.id))return await n.get(p.id);const m=(async()=>{const g=r?await mg({type:"event",event:p}):await gg({type:"event",event:p,parentStartDate:t});i.set(p.id,g),a.addChild(g.element)})();return n.set(p.id,m),await m,n.delete(p.id),i.get(p.id).render()}function c(){e.disableEvents||!ut.isTemporal()||d()}const d=Av(async()=>{o=[...s],await y_({items:i,createCluster:f});for(const p of o)p.render()},Rg);async function f(){if(o.length>0)return o.pop();const p=r?await mg({type:"cluster"}):await gg({type:"cluster",parentStartDate:t});return a.addChild(p.element),s.push(p),p}return{element:a,render:l,update:c}}let Pc=null,oo=null;async function xI(){const r=await Qt(),t=await Ue(),e=await Kt(),i=await Hr(),{element:n,render:s,update:o}=await v_({isRoot:!0});n.zIndex=Ax;async function a(l){if(!ut.isTemporal()||e.disableEvents){r.stage.removeChild(n);return}r.stage.addChild(n),await s(l)}const h=await bv(()=>({nodeId:t.runId,since:i.start_time,until:i.end_time??new Date}),l=>{const u=oo?"eventDataUpdated":"eventDataCreated";oo=l,rt.emit(u,oo),a(l)});rt.on("configUpdated",()=>a()),rt.on("viewportMoved",()=>o()),rt.on("layoutSettingsUpdated",()=>a()),Pc=h.stop,h.start()}function wI(){Pc?.(),Pc=null,oo=null}async function bI(){return oo||await Re("eventDataCreated")}async function yg(r){const t=await Qt(),e=await Jt(),i=await jt(),n=await Kt(),s=await bI();let o=await rr(),a=s&&s.length>0;const h=await u();h.element.on("click",d=>{d.stopPropagation();const{element:f}=h,p=f.getGlobalPosition(),m={x:p.x,y:p.y,width:f.width,height:f.height},g=Ri(h)?{kind:"artifacts",ids:h.getIds(),position:m}:{kind:"artifact",id:h.getId()};li(g)}),rt.on("scaleUpdated",d=>{o=d,c()}),rt.on("viewportMoved",()=>c()),rt.on("eventDataCreated",d=>{a=d.length>0,c()}),rt.on("eventDataUpdated",d=>{a=d.length>0,c()});async function l(d){if(wv(h)){if(r.type!=="artifact")throw new Error(`ArtifactFactory attempted to render a ${r.type}`);await h.render(r.artifact)}else await h.render(d);c()}async function u(){return r.type==="artifact"?await cd(r.artifact,{cullAtZoomThreshold:!1}):await Sv()}function c(){const d=h.getDate();if(!d||!ut.isTemporal()||n.disableArtifacts)return;const f=h.getSelected(),{element:p}=h,{eventTargetSize:m,flowStateSelectedBarHeight:g}=i;let v=0;if(f){const{selectedBorderOffset:b,selectedBorderWidth:x}=i;v=b+x*2}const w=o(d)*e.scale._x+e.worldTransform.tx-(p.width-v)/2,_=a&&!n.disableEvents?m:g,T=t.screen.height-(p.height-v)-_;p.position.set(w,T)}return{...h,render:l}}async function vg(r){const t=await Jt(),e=await jt(),i=await Kt();let n=await rr();const s=await a();s.element.on("click",l=>{l.stopPropagation();const{element:u}=s,c=u.getGlobalPosition(),d={x:c.x,y:c.y,width:u.width*t.scale.x,height:u.height*t.scale.y},f=Ri(s)?{kind:"artifacts",ids:s.getIds(),position:d}:{kind:"artifact",id:s.getId()};li(f)}),rt.on("scaleUpdated",l=>{n=l,h()});async function o(l){if(wv(s)){if(r.type!=="artifact")throw new Error(`ArtifactFactory attempted to render a ${r.type}`);await s.render(r.artifact)}else await s.render(l);h()}async function a(){return r.type==="artifact"?await cd(r.artifact):await Sv()}function h(){const l=s.getDate(),{parentStartDate:u}=r;if(!l||!ut.isTemporal()||i.disableArtifacts||!u)return;const c=s.getSelected(),{element:d}=s;let f=0;if(c){const{selectedBorderOffset:g,selectedBorderWidth:v}=e;f=g+v*2}const p=n(l)-n(u)-(d.width-f)/2,m=-(d.height-f);d.position.set(p,m)}return{...s,render:o}}async function __({isRoot:r,parentStartDate:t}={}){const e=await Kt(),i=new Map,n=new Map,s=[];let o=[];const a=new bt;let h=null;async function l(p){if(p&&(h=p),!h)return;const m=[];for(const g of h)m.push(u(g));await Promise.all(m),c()}async function u(p){if(i.has(p.id))return i.get(p.id).render(p);n.has(p.id)&&await n.get(p.id);const m=(async()=>{const g=r?await yg({type:"artifact",artifact:p}):await vg({type:"artifact",artifact:p,parentStartDate:t});i.set(p.id,g),a.addChild(g.element)})();return n.set(p.id,m),await m,n.delete(p.id),i.get(p.id).render(p)}function c(){if(!(e.disableArtifacts||!ut.isTemporal())){if(!ut.isTemporal()){a.visible=!1;return}a.visible=!0,a.position.x=0,d()}}const d=Av(async()=>{o=[...s],await y_({items:i,createCluster:f});for(const p of o)p.render()},Rg);async function f(){if(o.length>0)return o.pop();const p=r?await yg({type:"cluster"}):await vg({type:"cluster",parentStartDate:t});return a.addChild(p.element),s.push(p),p}return{element:a,render:l,update:c}}async function TI(r){const t=await Qt(),e=await Jt(),i=await jt(),n=await Hr();let s=await rr();const o=new bt,a=await si(),h=await si();let l=null,u=!1,c=!1;t.stage.addChild(h),o.addChild(a),a.eventMode="static",a.cursor="pointer",a.on("mouseover",()=>{u=!0,d()}),a.on("mouseleave",()=>{u=!1,d()}),a.on("click",()=>{const _={x:a.position.x,y:a.position.y,width:a.width,height:a.height};li({...r,kind:"state",position:_})}),rt.on("viewportMoved",()=>d()),rt.on("scaleUpdated",_=>{s=_,d()}),rt.on("itemSelected",()=>{const _=ui({kind:"state",...r});_!==c&&(c=_,u=!1,d())}),r.type==="RUNNING"&&!n.end_time&&g();function d(_){const{end:T}=_??{};if(T&&(l=T),n.end_time&&v(),!ut.isTemporal()){h.visible=!1,o.visible=!1;return}const b=f();p(b),m(b),h.visible=!0,o.visible=!0}function f(){const{background:_="#fff"}=i.state(r),T=Math.max(s(r.timestamp)*e.scale._x+e.worldTransform.tx,0);let b=0;return r.type==="RUNNING"&&!n.end_time?b=s(new Date)*e.scale._x+e.worldTransform.tx-T:l?b=s(l)*e.scale._x+e.worldTransform.tx-T:b=t.screen.width-T,{x:T,width:Math.max(b,0),background:_}}function p({x:_,width:T,background:b}){const{flowStateBarHeight:x,flowStateSelectedBarHeight:y}=i,S=u||c?y:x;a.x=_,a.y=t.screen.height-S,a.width=T,a.height=S,a.tint=b}function m({x:_,width:T,background:b}){if(r.type==="RUNNING"){h.visible=!1;return}const{flowStateBarHeight:x,flowStateAreaAlpha:y}=i;h.x=_,h.y=0,h.width=T,h.height=t.screen.height-x,h.tint=b,h.alpha=y}function g(){t.ticker.add(w)}function v(){t.ticker.remove(w)}function w(){d()}return{element:o,render:d}}function EI(r){return"isNodesFlowRunStateFactory"in r}async function AI(r){const t=await Qt(),e=await Jt(),i=await jt(),n=await Hr();let s=await rr();const o=new bt,a=await si(),h=await si();let l=null,u=null,c=0,d=0,f=!1,p=!1;o.visible=!1,o.addChild(h),o.addChild(a),a.eventMode="static",a.cursor="pointer",a.on("mouseover",()=>{f=!0,m()}),a.on("mouseleave",()=>{f=!1,m()}),a.on("click",x=>{x.stopPropagation();const y=a.getGlobalPosition(),S={x:y.x,y:y.y,width:a.width*e.scale.x,height:a.height*e.scale.y};li({...r,kind:"state",position:S})}),h.eventMode="none",h.cursor="default",rt.on("scaleUpdated",x=>{s=x,m()}),rt.on("itemSelected",()=>{const x=ui({kind:"state",...r});x!==p&&(p=x,f=!1,m())}),r.type==="RUNNING"&&!n.end_time&&_();function m(x){const{end:y,parentStartDate:S,width:D,height:G}=x??{};if(y&&(l=y),S&&(u=S),D&&(c=D),G&&(d=G),n.end_time&&T(),!ut.isTemporal()){o.visible=!1;return}if(!u||c<=0){o.visible=!1;return}const O=g();if(O.width<=0){o.visible=!1;return}v(O),w(O),o.visible=!0}function g(){const{background:x="#fff"}=i.state(r);if(!u)return{x:0,width:0,background:x};const y=s(u);let S=s(r.timestamp)-y;if(S>=c)return{x:c,width:0,background:x};S<0&&(S=0);let D=s(l??new Date)-y;D>c&&(D=c);const G=Math.max(D-S,0);return{x:S,width:G,background:x}}function v({x,width:y,background:S}){const{flowStateBarHeight:D,flowStateSelectedBarHeight:G}=i,O=f||p?G:D;a.x=x,a.y=d-O,a.width=y,a.height=O,a.tint=S}function w({x,width:y,background:S}){const{flowStateBarHeight:D,flowStateAreaAlpha:G,nodeHeight:O}=i,N=O/2;h.x=x,h.y=N,h.width=y,h.height=d-D-N,h.tint=S,h.alpha=G}function _(){t.ticker.add(b)}function T(){t.ticker.remove(b)}function b(){m()}return{element:o,render:m,isNodesFlowRunStateFactory:!0}}function x_({isRoot:r}={}){const t=new bt,e=new Map,i=new Map;let n=null;async function s(a,h){if(a&&(n=a),!n)return;const l=[];for(let u=0;u<n.length;u++)l.push(o(n[u],u,h));await Promise.all(l)}async function o(a,h,l){const u=n&&n.length>=h+1&&n[h+1],c=u?u.timestamp:void 0;let d;if(i.has(a.id)&&await i.get(a.id),e.has(a.id))d=e.get(a.id);else{const f=(async()=>{const p=r?await TI(a):await AI(a);e.set(a.id,p),t.addChild(p.element)})();i.set(a.id,f),await f,i.delete(a.id),d=e.get(a.id)}EI(d)?await d.render({end:c,...l}):await d.render(c?{end:c}:void 0)}return{element:t,render:s}}class w_ extends bt{updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let t=0,e=this.children.length;t<e;++t)this.children[t].updateTransform()}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(const t of this.children)if(t.calculateBounds(),t._mask){const e=t._mask.isMaskData?t._mask.maskObject:t._mask;e?(e.calculateBounds(),this._bounds.addBoundsMask(t._bounds,e._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds);this._bounds.updateID=this._boundsID}}async function SI(r){const t=new w_,e=await Ue(),i=await jt(),n=await Kt(),{element:s,render:o}=await Ev(),{element:a,render:h}=await Hh(),{element:l,render:u}=await Tv(),{element:c,render:d}=await Bh(),{element:f,render:p,getSize:m,stopWorker:g}=await Cd(),{element:v,render:w}=await x_(),{element:_,render:T,update:b}=await v_({parentStartDate:r.start_time}),{element:x,render:y,update:S}=await __({parentStartDate:r.start_time});let D=!1,G=!1,O=r,N=!1;t.sortableChildren=!0,c.zIndex=Pg,s.zIndex=Dg,a.zIndex=Ha,l.zIndex=Ha,f.zIndex=Ig,_.zIndex=Mx,v.zIndex=Rx,x.zIndex=Px,c.eventMode="none",c.cursor="default";const{start:P,stop:F}=await fy(O.id,U=>{G=!!U.artifacts&&U.artifacts.length>0,p(U),I(U.states),k(U.artifacts),B()}),{start:j,stop:E}=await bv(()=>({nodeId:O.id,since:O.start_time,until:O.end_time??new Date}),U=>{D=U.length>0,M(U)});t.addChild(s),t.addChild(a),t.addChild(l),l.on("click",U=>{U.stopPropagation(),C()}),f.position={x:0,y:i.nodeHeight+i.nodesPadding},f.on("rendered",()=>{Io(),et()});async function A(U){return O=U,await o(U),await $(),await tt(),N&&(await I(),await M(),await k(),await B()),t}async function C(){N?await V():await L()}async function B(){const{background:U="#fff"}=i.node(O),{width:X,height:q}=m(),{height:z}=K(),{nodeBorderRadius:at}=i,nt=2;c.position={x:-nt,y:-nt};const J=ut.isTemporal()?z+nt*2:q+nt*2;await d({width:X+nt*2,height:J,stroke:nt,radius:[at,at,0,0],color:U})}async function I(U){const{height:X}=K(),{width:q}=s;await w(U??void 0,{parentStartDate:O.start_time,width:q,height:X})}async function M(U){if(!N||!ut.isTemporal()||n.disableEvents){t.removeChild(_);return}t.addChild(_);const{height:X}=K();if(_.position={x:0,y:X-i.eventBottomMargin},U){await T(U);return}await b()}async function k(U){if(!N||!ut.isTemporal()||n.disableArtifacts){t.removeChild(x);return}t.addChild(x);const{eventTargetSize:X,flowStateSelectedBarHeight:q}=i,{height:z}=K(),at=z-(D&&!n.disableEvents?X:q);if(x.position={x:0,y:at},U){await y(U);return}await S()}async function L(){N=!0,t.addChild(v),t.addChild(f),t.addChild(c),await Promise.all([P(),j(),A(O)]),et()}async function V(){N=!1,t.removeChild(v),t.removeChild(f),t.removeChild(c),t.removeChild(_),t.removeChild(x),g(),await Promise.all([F(),E(),A(O)]),et()}async function $(){const U=i.nodeToggleSize,X=i.nodeHeight-U,q=s.width>U,z=await u({inside:q,isOpen:N});return z.x=q?X/2:s.width+i.nodePadding,z.y=X/2,z}async function tt(){const U=await h(O.label),X=e.theme==="dark"?i.textDefault:i.textInverse,q=i.nodePadding,z=l.x+l.width+q,at=s.width+q,nt=s.width>z+U.width+q,J=i.nodeHeight/2-U.height/2,ht=nt?z:Math.max(at,z);return U.position={x:ht,y:J},U.tint=nt?X:i.textDefault,U}function et(){N&&(I(),M(),k(),B());const U=K();t.emit("resized",U)}function K(){const U=m(),{nodeHeight:X,nodesPadding:q,eventTargetSize:z,eventBottomMargin:at,artifactPaddingY:nt,artifactIconSize:J}=i,ht=G&&ut.isTemporal()&&!n.disableArtifacts?J+nt*2:0,Ct=D&&ut.isTemporal()&&!n.disableEvents?z+at:0,Pt=N?U.height+ht+Ct+q*2:0,ir=N?U.width:0;return{height:X+Pt,width:Math.max(ir,t.width)}}return{kind:"flow-run",element:t,bar:s,render:A}}async function CI(r,t){const e=await Ue(),i=await jt(),n=new w_,{element:s,render:o}=await Hh(),{element:a,render:h}=await Bh(),{element:l,render:u}=await Ev(),{element:c,render:d}=await Tv(),{element:f,render:p,getSize:m,stopWorker:g}=await Cd();n.addChild(l),n.addChild(s);let v=!1,w=r,_=t;n.sortableChildren=!0,a.zIndex=Pg,l.zIndex=Dg,s.zIndex=Ha,c.zIndex=Ha,f.zIndex=Ig,a.eventMode="none",a.cursor="default",f.position={x:0,y:i.nodeHeight+i.nodesPadding},f.on("rendered",()=>{Io(),N()}),c.on("click",P=>{P.stopPropagation(),S()});async function T(P,F){return w=P,_=F,F&&n.addChild(c),await u(P),F&&await b(),v&&(F&&p(F),await y()),await x(),n}async function b(){const P=i.nodeToggleSize,F=i.nodeHeight-P,j=l.width>P,E=await d({inside:j,isOpen:v});return E.x=j?F/2:l.width+i.nodePadding,E.y=F/2,E}async function x(){const P=await o(w.label),F=e.theme==="dark"?i.textDefault:i.textInverse,j=i.nodePadding,E=c.x+c.width+j,A=l.width+j,C=l.width>E+P.width+j,B=i.nodeHeight/2-P.height/2,I=C?E:Math.max(A,E);return P.position={x:I,y:B},P.tint=C?F:i.textDefault,P}async function y(){const{background:P="#fff"}=i.node(w),{width:F,height:j}=m(),{height:E}=O(),{nodeBorderRadius:A}=i,C=2;a.position={x:-C,y:-C};const B=ut.isTemporal()?E+C*2:j+C*2;await h({width:F+C*2,height:B,stroke:C,radius:[A,A,0,0],color:P})}async function S(){v?await G():await D()}async function D(){if(v=!0,n.addChild(f),n.addChild(a),!_)throw new Error("Attempted to open without nested graph data");await Promise.all([p(_),T(w,_)]),N()}async function G(){v=!1,n.removeChild(f),n.removeChild(a),g(),await T(w,_),N()}function O(){const P=m(),{nodeHeight:F,nodesPadding:j}=i,E=v?P.height+j*2:0,A=v?P.width:0;return{height:F+E,width:Math.max(A,n.width)}}function N(){v&&y();const P=O();n.emit("resized",P)}return{kind:"task-run",element:n,render:T,bar:l}}async function MI(r,t){const e=await Ue(),i=await jt(),n=await Qt(),s=await S_(),o=await Kt();let a=null;const h=new Map,{animate:l}=await yv(),{element:u,render:c,bar:d}=await G(r,t);let f=r,p=t,m=null,g=!1,v=!1;s.add(u),u.eventMode="static",u.cursor="pointer",u.name=mx,u.on("click",P=>{P.stopPropagation(),li({kind:f.kind,id:f.id})}),f.end_time||y(),rt.on("itemSelected",()=>{const P=ui({kind:f.kind,id:f.id});P!==g&&(g=P,c(f,p))});async function w(P,F){f=P,p=F;const j=O(P);return j===m||(m=j,await Promise.all([c(P,F),_(P.artifacts)]),P.end_time&&S()),u}async function _(P){if(!P||(b(),o.disableArtifacts||!ut.isTemporal()))return;const F=[];for(const j of P)F.push(T(j));await Promise.all(F),x()}async function T(P){if(h.has(P.id))return h.get(P.id).render(P);const F=await cd(P,{enableLocalClickHandling:!0});return h.set(P.id,F),a.addChild(F.element),F.render(P)}function b(){if(ut.isTemporal()&&!o.disableArtifacts){a||(a=new bt),u.addChild(a);return}a&&u.removeChild(a)}function x(){if(!a)return;const{artifactsGap:P,artifactsNodeOverlap:F}=i;let j=0;for(const E of h.values())E.element.position.x=j,j+=E.element.width+P;a.position.y=-a.height+F,a.width<d.width&&(a.position.x=d.width-a.width)}function y(){n.ticker.add(D)}function S(){n.ticker.remove(D)}function D(){w(f,p)}async function G(P,F){const{kind:j}=P;switch(j){case"task-run":return await CI(P,F);case"flow-run":return await SI(P);default:const E=j;throw new Error(`switch does not have case for value: ${E}`)}}function O(P){const F=P.end_time??new Date,j=P.artifacts?.map(A=>A.type==="progress"?`${A.id}-${A.data}`:A.id).join("|"),E=!!p;return[P.state_type,F.getTime(),ut.horizontal,ut.horizontalScaleMultiplier,e.theme,o.disableArtifacts||j,E].join("-")}function N({x:P,y:F}){l(u,{x:P,y:F},!v),v=!0}return{element:u,render:w,bar:d,setPosition:N}}function _g({gap:r=0,minimum:t=0}={}){const e=new Map;function i(u){const c=e.get(u)??[];return Math.max(...c.values(),ka(t))+ka(r)}function n(u){let c=0;for(let d=0;d<u;d++)c+=i(d);return c}function s(u){return n(u+1)-ka(r)}function o({axis:u,nodeId:c,offset:d}){const f=e.get(u)??new Map;f.set(c,d),e.set(u,f)}function a({axis:u,nodeId:c}){let d,f;for(const[p,m]of e.entries())if(m.has(c)){d=p,f=m.get(c);break}d===u||d===void 0||f===void 0||(h({axis:d,nodeId:c}),o({axis:u,nodeId:c,offset:f}))}function h({axis:u,nodeId:c}){e.get(u)?.delete(c)}function l(){e.clear()}return{getOffset:i,getTotalOffset:n,getTotalValue:s,setOffset:o,updateNodeAxis:a,removeOffset:h,clear:l}}function RI(r){throw new Error(`switch does not have case for value: ${r}`)}const b_='(function(){"use strict";function sr(t){throw new Error(`switch does not have case for value: ${t}`)}function Ht(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function cr(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function cn(t){let n,e,r;t.length!==2?(n=Ht,e=(u,c)=>Ht(t(u),c),r=(u,c)=>t(u)-c):(n=t===Ht||t===cr?t:fr,e=t,r=t);function i(u,c,s=0,f=u.length){if(s<f){if(n(c,c)!==0)return f;do{const l=s+f>>>1;e(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){if(s<f){if(n(c,c)!==0)return f;do{const l=s+f>>>1;e(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&r(u[l-1],c)>-r(u[l],c)?l-1:l}return{left:i,center:a,right:o}}function fr(){return 0}function lr(t){return t===null?NaN:+t}const hr=cn(Ht).right;cn(lr).center;const gr=Math.sqrt(50),dr=Math.sqrt(10),mr=Math.sqrt(2);function Yt(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=gr?10:o>=dr?5:o>=mr?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(t*s),c=Math.round(n*s),u/s<t&&++u,c/s>n&&--c,s=-s):(s=Math.pow(10,i)*a,u=Math.round(t/s),c=Math.round(n/s),u*s<t&&++u,c*s>n&&--c),c<u&&.5<=e&&e<2?Yt(t,n,e*2):[u,c,s]}function pr(t,n,e){if(n=+n,t=+t,e=+e,!(e>0))return[];if(t===n)return[t];const r=n<t,[i,o,a]=r?Yt(n,t,e):Yt(t,n,e);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(r)if(a<0)for(let s=0;s<u;++s)c[s]=(o-s)/-a;else for(let s=0;s<u;++s)c[s]=(o-s)*a;else if(a<0)for(let s=0;s<u;++s)c[s]=(i+s)/-a;else for(let s=0;s<u;++s)c[s]=(i+s)*a;return c}function fn(t,n,e){return n=+n,t=+t,e=+e,Yt(t,n,e)[2]}function ln(t,n,e){n=+n,t=+t,e=+e;const r=n<t,i=r?fn(n,t,e):fn(t,n,e);return(r?-1:1)*(i<0?1/-i:i)}var yr={value:()=>{}};function zn(){for(var t=0,n=arguments.length,e={},r;t<n;++t){if(!(r=arguments[t]+"")||r in e||/[\\s.]/.test(r))throw new Error("illegal type: "+r);e[r]=[]}return new Rt(e)}function Rt(t){this._=t}function wr(t,n){return t.trim().split(/^|\\s+/).map(function(e){var r="",i=e.indexOf(".");if(i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}Rt.prototype=zn.prototype={constructor:Rt,on:function(t,n){var e=this._,r=wr(t+"",e),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=vr(e[i],t.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<a;)if(i=(t=r[o]).type)e[i]=Xn(e[i],t.name,n);else if(n==null)for(i in e)e[i]=Xn(e[i],t.name,null);return this},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Rt(t)},call:function(t,n){if((i=arguments.length-2)>0)for(var e=new Array(i),r=0,i,o;r<i;++r)e[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};function vr(t,n){for(var e=0,r=t.length,i;e<r;++e)if((i=t[e]).name===n)return i.value}function Xn(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=yr,t=t.slice(0,r).concat(t.slice(r+1));break}return e!=null&&t.push({name:n,value:e}),t}var hn="http://www.w3.org/1999/xhtml",qn={svg:"http://www.w3.org/2000/svg",xhtml:hn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function It(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),qn.hasOwnProperty(n)?{space:qn[n],local:t}:t}function xr(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===hn&&n.documentElement.namespaceURI===hn?n.createElement(t):n.createElementNS(e,t)}}function _r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vn(t){var n=It(t);return(n.local?_r:xr)(n)}function Mr(){}function gn(t){return t==null?Mr:function(){return this.querySelector(t)}}function Tr(t){typeof t!="function"&&(t=gn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=new Array(a),c,s,f=0;f<a;++f)(c=o[f])&&(s=t.call(c,c.__data__,f,o))&&("__data__"in c&&(s.__data__=c.__data__),u[f]=s);return new X(r,this._parents)}function Nr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Cr(){return[]}function Bn(t){return t==null?Cr:function(){return this.querySelectorAll(t)}}function br(t){return function(){return Nr(t.apply(this,arguments))}}function Sr(t){typeof t=="function"?t=br(t):t=Bn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a=n[o],u=a.length,c,s=0;s<u;++s)(c=a[s])&&(r.push(t.call(c,c.__data__,s,a)),i.push(c));return new X(r,i)}function Zn(t){return function(){return this.matches(t)}}function Gn(t){return function(n){return n.matches(t)}}var Dr=Array.prototype.find;function kr(t){return function(){return Dr.call(this.children,t)}}function Ar(){return this.firstElementChild}function Ur(t){return this.select(t==null?Ar:kr(typeof t=="function"?t:Gn(t)))}var Fr=Array.prototype.filter;function $r(){return Array.from(this.children)}function Lr(t){return function(){return Fr.call(this.children,t)}}function Pr(t){return this.selectAll(t==null?$r:Lr(typeof t=="function"?t:Gn(t)))}function Er(t){typeof t!="function"&&(t=Zn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],c,s=0;s<a;++s)(c=o[s])&&t.call(c,c.__data__,s,o)&&u.push(c);return new X(r,this._parents)}function Qn(t){return new Array(t.length)}function Hr(){return new X(this._enter||this._groups.map(Qn),this._parents)}function Ot(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Ot.prototype={constructor:Ot,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Yr(t){return function(){return t}}function Rr(t,n,e,r,i,o){for(var a=0,u,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Ot(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function Ir(t,n,e,r,i,o,a){var u,c,s=new Map,f=n.length,l=o.length,h=new Array(f),p;for(u=0;u<f;++u)(c=n[u])&&(h[u]=p=a.call(c,c.__data__,u,n)+"",s.has(p)?i[u]=c:s.set(p,c));for(u=0;u<l;++u)p=a.call(t,o[u],u,o)+"",(c=s.get(p))?(r[u]=c,c.__data__=o[u],s.delete(p)):e[u]=new Ot(t,o[u]);for(u=0;u<f;++u)(c=n[u])&&s.get(h[u])===c&&(i[u]=c)}function Or(t){return t.__data__}function Wr(t,n){if(!arguments.length)return Array.from(this,Or);var e=n?Ir:Rr,r=this._parents,i=this._groups;typeof t!="function"&&(t=Yr(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,p=zr(t.call(f,f&&f.__data__,s,r)),x=p.length,b=u[s]=new Array(x),U=a[s]=new Array(x),I=c[s]=new Array(h);e(f,l,b,U,I,p,n);for(var E=0,k=0,H,m;E<x;++E)if(H=b[E]){for(E>=k&&(k=E+1);!(m=U[k])&&++k<x;);H._next=m||null}}return a=new X(a,r),a._enter=u,a._exit=c,a}function zr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Xr(){return new X(this._exit||this._groups.map(Qn),this._parents)}function qr(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function Vr(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s=e[c],f=r[c],l=s.length,h=u[c]=new Array(l),p,x=0;x<l;++x)(p=s[x]||f[x])&&(h[x]=p);for(;c<i;++c)u[c]=e[c];return new X(u,this._parents)}function Br(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Zr(t){t||(t=Gr);function n(l,h){return l&&h?t(l.__data__,h.__data__):!l-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a=e[o],u=a.length,c=i[o]=new Array(u),s,f=0;f<u;++f)(s=a[f])&&(c[f]=s);c.sort(n)}return new X(i,this._parents).order()}function Gr(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Qr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Jr(){return Array.from(this)}function Kr(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function jr(){let t=0;for(const n of this)++t;return t}function ti(){return!this.node()}function ni(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,a=i.length,u;o<a;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}function ei(t){return function(){this.removeAttribute(t)}}function ri(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ii(t,n){return function(){this.setAttribute(t,n)}}function oi(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ai(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function ui(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function si(t,n){var e=It(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?ri:ei:typeof n=="function"?e.local?ui:ai:e.local?oi:ii)(e,n))}function Jn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ci(t){return function(){this.style.removeProperty(t)}}function fi(t,n,e){return function(){this.style.setProperty(t,n,e)}}function li(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function hi(t,n,e){return arguments.length>1?this.each((n==null?ci:typeof n=="function"?li:fi)(t,n,e??"")):lt(this.node(),t)}function lt(t,n){return t.style.getPropertyValue(n)||Jn(t).getComputedStyle(t,null).getPropertyValue(n)}function gi(t){return function(){delete this[t]}}function di(t,n){return function(){this[t]=n}}function mi(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function pi(t,n){return arguments.length>1?this.each((n==null?gi:typeof n=="function"?mi:di)(t,n)):this.node()[t]}function Kn(t){return t.trim().split(/^|\\s+/)}function dn(t){return t.classList||new jn(t)}function jn(t){this._node=t,this._names=Kn(t.getAttribute("class")||"")}jn.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function te(t,n){for(var e=dn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function ne(t,n){for(var e=dn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function yi(t){return function(){te(this,t)}}function wi(t){return function(){ne(this,t)}}function vi(t,n){return function(){(n.apply(this,arguments)?te:ne)(this,t)}}function xi(t,n){var e=Kn(t+"");if(arguments.length<2){for(var r=dn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?vi:n?yi:wi)(e,n))}function _i(){this.textContent=""}function Mi(t){return function(){this.textContent=t}}function Ti(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Ni(t){return arguments.length?this.each(t==null?_i:(typeof t=="function"?Ti:Mi)(t)):this.node().textContent}function Ci(){this.innerHTML=""}function bi(t){return function(){this.innerHTML=t}}function Si(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Di(t){return arguments.length?this.each(t==null?Ci:(typeof t=="function"?Si:bi)(t)):this.node().innerHTML}function ki(){this.nextSibling&&this.parentNode.appendChild(this)}function Ai(){return this.each(ki)}function Ui(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fi(){return this.each(Ui)}function $i(t){var n=typeof t=="function"?t:Vn(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Li(){return null}function Pi(t,n){var e=typeof t=="function"?t:Vn(t),r=n==null?Li:typeof n=="function"?n:gn(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Ei(){var t=this.parentNode;t&&t.removeChild(this)}function Hi(){return this.each(Ei)}function Yi(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ri(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ii(t){return this.select(t?Ri:Yi)}function Oi(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Wi(t){return function(n){t.call(this,n,this.__data__)}}function zi(t){return t.trim().split(/^|\\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Xi(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function qi(t,n,e){return function(){var r=this.__on,i,o=Wi(n);if(r){for(var a=0,u=r.length;a<u;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function Vi(t,n,e){var r=zi(t+""),i,o=r.length,a;if(arguments.length<2){var u=this.node().__on;if(u){for(var c=0,s=u.length,f;c<s;++c)for(i=0,f=u[c];i<o;++i)if((a=r[i]).type===f.type&&a.name===f.name)return f.value}return}for(u=n?qi:Xi,i=0;i<o;++i)this.each(u(r[i],n,e));return this}function ee(t,n,e){var r=Jn(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Bi(t,n){return function(){return ee(this,t,n)}}function Zi(t,n){return function(){return ee(this,t,n.apply(this,arguments))}}function Gi(t,n){return this.each((typeof n=="function"?Zi:Bi)(t,n))}function*Qi(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var Ji=[null];function X(t,n){this._groups=t,this._parents=n}function Nt(){return new X([[document.documentElement]],Ji)}function Ki(){return this}X.prototype=Nt.prototype={constructor:X,select:Tr,selectAll:Sr,selectChild:Ur,selectChildren:Pr,filter:Er,data:Wr,enter:Hr,exit:Xr,join:qr,merge:Vr,selection:Ki,order:Br,sort:Zr,call:Qr,nodes:Jr,node:Kr,size:jr,empty:ti,each:ni,attr:si,style:hi,property:pi,classed:xi,text:Ni,html:Di,raise:Ai,lower:Fi,append:$i,insert:Pi,remove:Hi,clone:Ii,datum:Oi,on:Vi,dispatch:Gi,[Symbol.iterator]:Qi};function mn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function re(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Ct(){}var bt=.7,Wt=1/bt,ht="\\\\s*([+-]?\\\\d+)\\\\s*",St="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*",G="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*",ji=/^#([0-9a-f]{3,8})$/,to=new RegExp(`^rgb\\\\(${ht},${ht},${ht}\\\\)$`),no=new RegExp(`^rgb\\\\(${G},${G},${G}\\\\)$`),eo=new RegExp(`^rgba\\\\(${ht},${ht},${ht},${St}\\\\)$`),ro=new RegExp(`^rgba\\\\(${G},${G},${G},${St}\\\\)$`),io=new RegExp(`^hsl\\\\(${St},${G},${G}\\\\)$`),oo=new RegExp(`^hsla\\\\(${St},${G},${G},${St}\\\\)$`),ie={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};mn(Ct,rt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:oe,formatHex:oe,formatHex8:ao,formatHsl:uo,formatRgb:ae,toString:ae});function oe(){return this.rgb().formatHex()}function ao(){return this.rgb().formatHex8()}function uo(){return le(this).formatHsl()}function ae(){return this.rgb().formatRgb()}function rt(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=ji.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?ue(n):e===3?new Y(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?zt(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?zt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=to.exec(t))?new Y(n[1],n[2],n[3],1):(n=no.exec(t))?new Y(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=eo.exec(t))?zt(n[1],n[2],n[3],n[4]):(n=ro.exec(t))?zt(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=io.exec(t))?fe(n[1],n[2]/100,n[3]/100,1):(n=oo.exec(t))?fe(n[1],n[2]/100,n[3]/100,n[4]):ie.hasOwnProperty(t)?ue(ie[t]):t==="transparent"?new Y(NaN,NaN,NaN,0):null}function ue(t){return new Y(t>>16&255,t>>8&255,t&255,1)}function zt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Y(t,n,e,r)}function so(t){return t instanceof Ct||(t=rt(t)),t?(t=t.rgb(),new Y(t.r,t.g,t.b,t.opacity)):new Y}function pn(t,n,e,r){return arguments.length===1?so(t):new Y(t,n,e,r??1)}function Y(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}mn(Y,pn,re(Ct,{brighter(t){return t=t==null?Wt:Math.pow(Wt,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?bt:Math.pow(bt,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Y(it(this.r),it(this.g),it(this.b),Xt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:se,formatHex:se,formatHex8:co,formatRgb:ce,toString:ce}));function se(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}`}function co(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}${ot((isNaN(this.opacity)?1:this.opacity)*255)}`}function ce(){const t=Xt(this.opacity);return`${t===1?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${t===1?")":`, ${t})`}`}function Xt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function it(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ot(t){return t=it(t),(t<16?"0":"")+t.toString(16)}function fe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new q(t,n,e,r)}function le(t){if(t instanceof q)return new q(t.h,t.s,t.l,t.opacity);if(t instanceof Ct||(t=rt(t)),!t)return new q;if(t instanceof q)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(n===o?a=(e-r)/u+(e<r)*6:e===o?a=(r-n)/u+2:a=(n-e)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new q(a,u,c,t.opacity)}function fo(t,n,e,r){return arguments.length===1?le(t):new q(t,n,e,r??1)}function q(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}mn(q,fo,re(Ct,{brighter(t){return t=t==null?Wt:Math.pow(Wt,t),new q(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?bt:Math.pow(bt,t),new q(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Y(yn(t>=240?t-240:t+120,i,r),yn(t,i,r),yn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new q(he(this.h),qt(this.s),qt(this.l),Xt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Xt(this.opacity);return`${t===1?"hsl(":"hsla("}${he(this.h)}, ${qt(this.s)*100}%, ${qt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function he(t){return t=(t||0)%360,t<0?t+360:t}function qt(t){return Math.max(0,Math.min(1,t||0))}function yn(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}var wn=t=>()=>t;function lo(t,n){return function(e){return t+e*n}}function ho(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function go(t){return(t=+t)==1?ge:function(n,e){return e-n?ho(n,e,t):wn(isNaN(n)?e:n)}}function ge(t,n){var e=n-t;return e?lo(t,e):wn(isNaN(t)?n:t)}var Vt=(function t(n){var e=go(n);function r(i,o){var a=e((i=pn(i)).r,(o=pn(o)).r),u=e(i.g,o.g),c=e(i.b,o.b),s=ge(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return r.gamma=t,r})(1);function mo(t,n){n||(n=[]);var e=t?Math.min(n.length,t.length):0,r=n.slice(),i;return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function po(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function yo(t,n){var e=n?n.length:0,r=t?Math.min(e,t.length):0,i=new Array(r),o=new Array(e),a;for(a=0;a<r;++a)i[a]=_n(t[a],n[a]);for(;a<e;++a)o[a]=n[a];return function(u){for(a=0;a<r;++a)o[a]=i[a](u);return o}}function wo(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function V(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function vo(t,n){var e={},r={},i;(t===null||typeof t!="object")&&(t={}),(n===null||typeof n!="object")&&(n={});for(i in n)i in t?e[i]=_n(t[i],n[i]):r[i]=n[i];return function(o){for(i in e)r[i]=e[i](o);return r}}var vn=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,xn=new RegExp(vn.source,"g");function xo(t){return function(){return t}}function _o(t){return function(n){return t(n)+""}}function de(t,n){var e=vn.lastIndex=xn.lastIndex=0,r,i,o,a=-1,u=[],c=[];for(t=t+"",n=n+"";(r=vn.exec(t))&&(i=xn.exec(n));)(o=i.index)>e&&(o=n.slice(e,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,c.push({i:a,x:V(r,i)})),e=xn.lastIndex;return e<n.length&&(o=n.slice(e),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?_o(c[0].x):xo(n):(n=c.length,function(s){for(var f=0,l;f<n;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function _n(t,n){var e=typeof n,r;return n==null||e==="boolean"?wn(n):(e==="number"?V:e==="string"?(r=rt(n))?(n=r,Vt):de:n instanceof rt?Vt:n instanceof Date?wo:po(n)?mo:Array.isArray(n)?yo:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?vo:V)(t,n)}function Mo(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}var me=180/Math.PI,Mn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pe(t,n,e,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*me,skewX:Math.atan(c)*me,scaleX:a,scaleY:u}}var Bt;function To(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Mn:pe(n.a,n.b,n.c,n.d,n.e,n.f)}function No(t){return t==null||(Bt||(Bt=document.createElementNS("http://www.w3.org/2000/svg","g")),Bt.setAttribute("transform",t),!(t=Bt.transform.baseVal.consolidate()))?Mn:(t=t.matrix,pe(t.a,t.b,t.c,t.d,t.e,t.f))}function ye(t,n,e,r){function i(s){return s.length?s.pop()+" ":""}function o(s,f,l,h,p,x){if(s!==l||f!==h){var b=p.push("translate(",null,n,null,e);x.push({i:b-4,x:V(s,l)},{i:b-2,x:V(f,h)})}else(l||h)&&p.push("translate("+l+n+h+e)}function a(s,f,l,h){s!==f?(s-f>180?f+=360:f-s>180&&(s+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:V(s,f)})):f&&l.push(i(l)+"rotate("+f+r)}function u(s,f,l,h){s!==f?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:V(s,f)}):f&&l.push(i(l)+"skewX("+f+r)}function c(s,f,l,h,p,x){if(s!==l||f!==h){var b=p.push(i(p)+"scale(",null,",",null,")");x.push({i:b-4,x:V(s,l)},{i:b-2,x:V(f,h)})}else(l!==1||h!==1)&&p.push(i(p)+"scale("+l+","+h+")")}return function(s,f){var l=[],h=[];return s=t(s),f=t(f),o(s.translateX,s.translateY,f.translateX,f.translateY,l,h),a(s.rotate,f.rotate,l,h),u(s.skewX,f.skewX,l,h),c(s.scaleX,s.scaleY,f.scaleX,f.scaleY,l,h),s=f=null,function(p){for(var x=-1,b=h.length,U;++x<b;)l[(U=h[x]).i]=U.x(p);return l.join("")}}}var Co=ye(To,"px, ","px)","deg)"),bo=ye(No,", ",")",")"),gt=0,Dt=0,kt=0,we=1e3,Zt,At,Gt=0,at=0,Qt=0,Ut=typeof performance=="object"&&performance.now?performance:Date,ve=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Tn(){return at||(ve(So),at=Ut.now()+Qt)}function So(){at=0}function Jt(){this._call=this._time=this._next=null}Jt.prototype=xe.prototype={constructor:Jt,restart:function(t,n,e){if(typeof t!="function")throw new TypeError("callback is not a function");e=(e==null?Tn():+e)+(n==null?0:+n),!this._next&&At!==this&&(At?At._next=this:Zt=this,At=this),this._call=t,this._time=e,Nn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Nn())}};function xe(t,n,e){var r=new Jt;return r.restart(t,n,e),r}function Do(){Tn(),++gt;for(var t=Zt,n;t;)(n=at-t._time)>=0&&t._call.call(void 0,n),t=t._next;--gt}function _e(){at=(Gt=Ut.now())+Qt,gt=Dt=0;try{Do()}finally{gt=0,Ao(),at=0}}function ko(){var t=Ut.now(),n=t-Gt;n>we&&(Qt-=n,Gt=t)}function Ao(){for(var t,n=Zt,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Zt=e);At=t,Nn(r)}function Nn(t){if(!gt){Dt&&(Dt=clearTimeout(Dt));var n=t-at;n>24?(t<1/0&&(Dt=setTimeout(_e,t-Ut.now()-Qt)),kt&&(kt=clearInterval(kt))):(kt||(Gt=Ut.now(),kt=setInterval(ko,we)),gt=1,ve(_e))}}function Me(t,n,e){var r=new Jt;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Uo=zn("start","end","cancel","interrupt"),Fo=[],Te=0,Ne=1,Cn=2,Kt=3,Ce=4,bn=5,jt=6;function tn(t,n,e,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(e in a)return;$o(t,e,{name:n,index:r,group:i,on:Uo,tween:Fo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Te})}function Sn(t,n){var e=B(t,n);if(e.state>Te)throw new Error("too late; already scheduled");return e}function Q(t,n){var e=B(t,n);if(e.state>Kt)throw new Error("too late; already running");return e}function B(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function $o(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=xe(o,0,e.time);function o(s){e.state=Ne,e.timer.restart(a,e.delay,e.time),e.delay<=s&&a(s-e.delay)}function a(s){var f,l,h,p;if(e.state!==Ne)return c();for(f in r)if(p=r[f],p.name===e.name){if(p.state===Kt)return Me(a);p.state===Ce?(p.state=jt,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<n&&(p.state=jt,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(Me(function(){e.state===Kt&&(e.state=Ce,e.timer.restart(u,e.delay,e.time),u(s))}),e.state=Cn,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Cn){for(e.state=Kt,i=new Array(h=e.tween.length),f=0,l=-1;f<h;++f)(p=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(i[++l]=p);i.length=l+1}}function u(s){for(var f=s<e.duration?e.ease.call(null,s/e.duration):(e.timer.restart(c),e.state=bn,1),l=-1,h=i.length;++l<h;)i[l].call(t,f);e.state===bn&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){e.state=jt,e.timer.stop(),delete r[n];for(var s in r)return;delete t.__transition}}function Lo(t,n){var e=t.__transition,r,i,o=!0,a;if(e){n=n==null?null:n+"";for(a in e){if((r=e[a]).name!==n){o=!1;continue}i=r.state>Cn&&r.state<bn,r.state=jt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[a]}o&&delete t.__transition}}function Po(t){return this.each(function(){Lo(this,t)})}function Eo(t,n){var e,r;return function(){var i=Q(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Ho(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var o=Q(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function Yo(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=B(this.node(),e).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((n==null?Eo:Ho)(e,t,n))}function Dn(t,n,e){var r=t._id;return t.each(function(){var i=Q(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return B(i,r).value[n]}}function be(t,n){var e;return(typeof n=="number"?V:n instanceof rt?Vt:(e=rt(n))?(n=e,Vt):de)(t,n)}function Ro(t){return function(){this.removeAttribute(t)}}function Io(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oo(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=n(r=a,e)}}function Wo(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=n(r=a,e)}}function zo(t,n,e){var r,i,o;return function(){var a,u=e(this),c;return u==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=u+"",a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u)))}}function Xo(t,n,e){var r,i,o;return function(){var a,u=e(this),c;return u==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=u+"",a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u)))}}function qo(t,n){var e=It(t),r=e==="transform"?bo:be;return this.attrTween(t,typeof n=="function"?(e.local?Xo:zo)(e,r,Dn(this,"attr."+t,n)):n==null?(e.local?Io:Ro)(e):(e.local?Wo:Oo)(e,r,n))}function Vo(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Bo(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Zo(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Bo(t,o)),e}return i._value=n,i}function Go(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Vo(t,o)),e}return i._value=n,i}function Qo(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=It(t);return this.tween(e,(r.local?Zo:Go)(r,n))}function Jo(t,n){return function(){Sn(this,t).delay=+n.apply(this,arguments)}}function Ko(t,n){return n=+n,function(){Sn(this,t).delay=n}}function jo(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Jo:Ko)(n,t)):B(this.node(),n).delay}function ta(t,n){return function(){Q(this,t).duration=+n.apply(this,arguments)}}function na(t,n){return n=+n,function(){Q(this,t).duration=n}}function ea(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?ta:na)(n,t)):B(this.node(),n).duration}function ra(t,n){if(typeof n!="function")throw new Error;return function(){Q(this,t).ease=n}}function ia(t){var n=this._id;return arguments.length?this.each(ra(n,t)):B(this.node(),n).ease}function oa(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw new Error;Q(this,t).ease=e}}function aa(t){if(typeof t!="function")throw new Error;return this.each(oa(this._id,t))}function ua(t){typeof t!="function"&&(t=Zn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],c,s=0;s<a;++s)(c=o[s])&&t.call(c,c.__data__,s,o)&&u.push(c);return new J(r,this._parents,this._name,this._id)}function sa(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c=n[u],s=e[u],f=c.length,l=a[u]=new Array(f),h,p=0;p<f;++p)(h=c[p]||s[p])&&(l[p]=h);for(;u<r;++u)a[u]=n[u];return new J(a,this._parents,this._name,this._id)}function ca(t){return(t+"").trim().split(/^|\\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function fa(t,n,e){var r,i,o=ca(n)?Sn:Q;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function la(t,n){var e=this._id;return arguments.length<2?B(this.node(),e).on.on(t):this.each(fa(e,t,n))}function ha(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ga(){return this.on("end.remove",ha(this._id))}function da(t){var n=this._name,e=this._id;typeof t!="function"&&(t=gn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u=r[a],c=u.length,s=o[a]=new Array(c),f,l,h=0;h<c;++h)(f=u[h])&&(l=t.call(f,f.__data__,h,u))&&("__data__"in f&&(l.__data__=f.__data__),s[h]=l,tn(s[h],n,e,h,s,B(f,e)));return new J(o,this._parents,n,e)}function ma(t){var n=this._name,e=this._id;typeof t!="function"&&(t=Bn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c=r[u],s=c.length,f,l=0;l<s;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),p,x=B(f,e),b=0,U=h.length;b<U;++b)(p=h[b])&&tn(p,n,e,b,h,x);o.push(h),a.push(f)}return new J(o,a,n,e)}var pa=Nt.prototype.constructor;function ya(){return new pa(this._groups,this._parents)}function wa(t,n){var e,r,i;return function(){var o=lt(this,t),a=(this.style.removeProperty(t),lt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}function Se(t){return function(){this.style.removeProperty(t)}}function va(t,n,e){var r,i=e+"",o;return function(){var a=lt(this,t);return a===i?null:a===r?o:o=n(r=a,e)}}function xa(t,n,e){var r,i,o;return function(){var a=lt(this,t),u=e(this),c=u+"";return u==null&&(c=u=(this.style.removeProperty(t),lt(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}function _a(t,n){var e,r,i,o="style."+n,a="end."+o,u;return function(){var c=Q(this,t),s=c.on,f=c.value[o]==null?u||(u=Se(n)):void 0;(s!==e||i!==f)&&(r=(e=s).copy()).on(a,i=f),c.on=r}}function Ma(t,n,e){var r=(t+="")=="transform"?Co:be;return n==null?this.styleTween(t,wa(t,r)).on("end.style."+t,Se(t)):typeof n=="function"?this.styleTween(t,xa(t,r,Dn(this,"style."+t,n))).each(_a(this._id,t)):this.styleTween(t,va(t,r,n),e).on("end.style."+t,null)}function Ta(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Na(t,n,e){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&Ta(t,a,e)),r}return o._value=n,o}function Ca(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,Na(t,n,e??""))}function ba(t){return function(){this.textContent=t}}function Sa(t){return function(){var n=t(this);this.textContent=n??""}}function Da(t){return this.tween("text",typeof t=="function"?Sa(Dn(this,"text",t)):ba(t==null?"":t+""))}function ka(t){return function(n){this.textContent=t.call(this,n)}}function Aa(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&ka(i)),n}return r._value=t,r}function Ua(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Aa(t))}function Fa(){for(var t=this._name,n=this._id,e=De(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,c,s=0;s<u;++s)if(c=a[s]){var f=B(c,n);tn(c,t,e,s,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new J(r,this._parents,t,e)}function $a(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,a){var u={value:a},c={value:function(){--i===0&&o()}};e.each(function(){var s=Q(this,r),f=s.on;f!==t&&(n=(t=f).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),s.on=n}),i===0&&o()})}var La=0;function J(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function De(){return++La}var K=Nt.prototype;J.prototype={constructor:J,select:da,selectAll:ma,selectChild:K.selectChild,selectChildren:K.selectChildren,filter:ua,merge:sa,selection:ya,transition:Fa,call:K.call,nodes:K.nodes,node:K.node,size:K.size,empty:K.empty,each:K.each,on:la,attr:qo,attrTween:Qo,style:Ma,styleTween:Ca,text:Da,textTween:Ua,remove:ga,tween:Yo,delay:jo,duration:ea,ease:ia,easeVarying:aa,end:$a,[Symbol.iterator]:K[Symbol.iterator]};function Pa(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ea={time:null,delay:0,duration:250,ease:Pa};function Ha(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function Ya(t){var n,e;t instanceof J?(n=t._id,t=t._name):(n=De(),(e=Ea).time=Tn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,c,s=0;s<u;++s)(c=a[s])&&tn(c,t,n,s,a,e||Ha(c,n));return new J(r,this._parents,t,n)}Nt.prototype.interrupt=Po,Nt.prototype.transition=Ya;function Ra(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function nn(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function dt(t){return t=nn(Math.abs(t)),t?t[1]:NaN}function Ia(t,n){return function(e,r){for(var i=e.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}}function Oa(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}var Wa=/^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;function en(t){if(!(n=Wa.exec(t)))throw new Error("invalid format: "+t);var n;return new kn({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}en.prototype=kn.prototype;function kn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}kn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function za(t){t:for(var n=t.length,e=1,r=-1,i;e<n;++e)switch(t[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+t[e])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var ke;function Xa(t,n){var e=nn(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ke=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+nn(t,Math.max(0,n+o-1))[0]}function Ae(t,n){var e=nn(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Ue={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ra,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ae(t*100,n),r:Ae,s:Xa,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Fe(t){return t}var $e=Array.prototype.map,Le=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qa(t){var n=t.grouping===void 0||t.thousands===void 0?Fe:Ia($e.call(t.grouping,Number),t.thousands+""),e=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Fe:Oa($e.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function s(l){l=en(l);var h=l.fill,p=l.align,x=l.sign,b=l.symbol,U=l.zero,I=l.width,E=l.comma,k=l.precision,H=l.trim,m=l.type;m==="n"?(E=!0,m="g"):Ue[m]||(k===void 0&&(k=12),H=!0,m="g"),(U||h==="0"&&p==="=")&&(U=!0,h="0",p="=");var g=b==="$"?e:b==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v=b==="$"?r:/[%p]/.test(m)?a:"",_=Ue[m],A=/[defgprs%]/.test(m);k=k===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function N(w){var S=g,F=v,$,xt,_t;if(m==="c")F=_(w)+F,w="";else{w=+w;var Mt=w<0||1/w<0;if(w=isNaN(w)?c:_(Math.abs(w),k),H&&(w=za(w)),Mt&&+w==0&&x!=="+"&&(Mt=!1),S=(Mt?x==="("?x:u:x==="-"||x==="("?"":x)+S,F=(m==="s"?Le[8+ke/3]:"")+F+(Mt&&x==="("?")":""),A){for($=-1,xt=w.length;++$<xt;)if(_t=w.charCodeAt($),48>_t||_t>57){F=(_t===46?i+w.slice($+1):w.slice($))+F,w=w.slice(0,$);break}}}E&&!U&&(w=n(w,1/0));var Tt=S.length+w.length+F.length,Z=Tt<I?new Array(I-Tt+1).join(h):"";switch(E&&U&&(w=n(Z+w,Z.length?I-F.length:1/0),Z=""),p){case"<":w=S+w+F+Z;break;case"=":w=S+Z+w+F;break;case"^":w=Z.slice(0,Tt=Z.length>>1)+S+w+F+Z.slice(Tt);break;default:w=Z+S+w+F;break}return o(w)}return N.toString=function(){return l+""},N}function f(l,h){var p=s((l=en(l),l.type="f",l)),x=Math.max(-8,Math.min(8,Math.floor(dt(h)/3)))*3,b=Math.pow(10,-x),U=Le[8+x/3];return function(I){return p(b*I)+U}}return{format:s,formatPrefix:f}}var rn,Pe,Ee;Va({thousands:",",grouping:[3],currency:["$",""]});function Va(t){return rn=qa(t),Pe=rn.format,Ee=rn.formatPrefix,rn}function Ba(t){return Math.max(0,-dt(Math.abs(t)))}function Za(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(dt(n)/3)))*3-dt(Math.abs(t)))}function Ga(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,dt(n)-dt(t))+1}function He(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function Qa(t){return function(){return t}}function Ja(t){return+t}var Ye=[0,1];function mt(t){return t}function An(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Qa(isNaN(n)?NaN:.5)}function Ka(t,n){var e;return t>n&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}function ja(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=An(i,r),o=e(a,o)):(r=An(r,i),o=e(o,a)),function(u){return o(r(u))}}function tu(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=An(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(u){var c=hr(t,u,1,r)-1;return o[c](i[c](u))}}function Re(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function nu(){var t=Ye,n=Ye,e=_n,r,i,o,a=mt,u,c,s;function f(){var h=Math.min(t.length,n.length);return a!==mt&&(a=Ka(t[0],t[h-1])),u=h>2?tu:ja,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?o:(c||(c=u(t.map(r),n,e)))(r(a(h)))}return l.invert=function(h){return a(i((s||(s=u(n,t.map(r),V)))(h)))},l.domain=function(h){return arguments.length?(t=Array.from(h,Ja),f()):t.slice()},l.range=function(h){return arguments.length?(n=Array.from(h),f()):n.slice()},l.rangeRound=function(h){return n=Array.from(h),e=Mo,f()},l.clamp=function(h){return arguments.length?(a=h?!0:mt,f()):a!==mt},l.interpolate=function(h){return arguments.length?(e=h,f()):e},l.unknown=function(h){return arguments.length?(o=h,l):o},function(h,p){return r=h,i=p,f()}}function Ie(){return nu()(mt,mt)}function eu(t,n,e,r){var i=ln(t,n,e),o;switch(r=en(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(n));return r.precision==null&&!isNaN(o=Za(i,a))&&(r.precision=o),Ee(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Ga(i,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Ba(i))&&(r.precision=o-(r.type==="%")*2);break}}return Pe(r)}function ru(t){var n=t.domain;return t.ticks=function(e){var r=n();return pr(r[0],r[r.length-1],e??10)},t.tickFormat=function(e,r){var i=n();return eu(i[0],i[i.length-1],e??10,r)},t.nice=function(e){e==null&&(e=10);var r=n(),i=0,o=r.length-1,a=r[i],u=r[o],c,s,f=10;for(u<a&&(s=a,a=u,u=s,s=i,i=o,o=s);f-- >0;){if(s=fn(a,u,e),s===c)return r[i]=a,r[o]=u,n(r);if(s>0)a=Math.floor(a/s)*s,u=Math.ceil(u/s)*s;else if(s<0)a=Math.ceil(a*s)/s,u=Math.floor(u*s)/s;else break;c=s}return t},t}function Oe(){var t=Ie();return t.copy=function(){return Re(t,Oe())},He.apply(t,arguments),ru(t)}function iu(t,n){t=t.slice();var e=0,r=t.length-1,i=t[e],o=t[r],a;return o<i&&(a=e,e=r,r=a,a=i,i=o,o=a),t[e]=n.floor(i),t[r]=n.ceil(o),t}const Un=new Date,Fn=new Date;function L(t,n,e,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),n(o,1),t(o),o),i.round=o=>{const a=i(o),u=i.ceil(o);return o-a<u-o?a:u},i.offset=(o,a)=>(n(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,u)=>{const c=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<a)||!(u>0))return c;let s;do c.push(s=new Date(+o)),n(o,u),t(o);while(s<o&&o<a);return c},i.filter=o=>L(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,u)=>{if(a>=a)if(u<0)for(;++u<=0;)for(;n(a,-1),!o(a););else for(;--u>=0;)for(;n(a,1),!o(a););}),e&&(i.count=(o,a)=>(Un.setTime(+o),Fn.setTime(+a),t(Un),t(Fn),Math.floor(e(Un,Fn))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const on=L(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);on.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?L(n=>{n.setTime(Math.floor(n/t)*t)},(n,e)=>{n.setTime(+n+e*t)},(n,e)=>(e-n)/t):on),on.range;const j=1e3,z=j*60,tt=z*60,nt=tt*24,$n=nt*7,We=nt*30,Ln=nt*365,pt=L(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*j)},(t,n)=>(n-t)/j,t=>t.getUTCSeconds());pt.range;const Pn=L(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*j)},(t,n)=>{t.setTime(+t+n*z)},(t,n)=>(n-t)/z,t=>t.getMinutes());Pn.range,L(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*z)},(t,n)=>(n-t)/z,t=>t.getUTCMinutes()).range;const En=L(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*j-t.getMinutes()*z)},(t,n)=>{t.setTime(+t+n*tt)},(t,n)=>(n-t)/tt,t=>t.getHours());En.range,L(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*tt)},(t,n)=>(n-t)/tt,t=>t.getUTCHours()).range;const Ft=L(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*z)/nt,t=>t.getDate()-1);Ft.range;const Hn=L(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/nt,t=>t.getUTCDate()-1);Hn.range,L(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/nt,t=>Math.floor(t/nt)).range;function ut(t){return L(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,e)=>{n.setDate(n.getDate()+e*7)},(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*z)/$n)}const an=ut(0),un=ut(1),ou=ut(2),au=ut(3),yt=ut(4),uu=ut(5),su=ut(6);an.range,un.range,ou.range,au.range,yt.range,uu.range,su.range;function st(t){return L(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e*7)},(n,e)=>(e-n)/$n)}const ze=st(0),sn=st(1),cu=st(2),fu=st(3),wt=st(4),lu=st(5),hu=st(6);ze.range,sn.range,cu.range,fu.range,wt.range,lu.range,hu.range;const Yn=L(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Yn.range,L(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()).range;const et=L(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());et.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e*t)}),et.range;const ct=L(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)}),ct.range;function gu(t,n,e,r,i,o){const a=[[pt,1,j],[pt,5,5*j],[pt,15,15*j],[pt,30,30*j],[o,1,z],[o,5,5*z],[o,15,15*z],[o,30,30*z],[i,1,tt],[i,3,3*tt],[i,6,6*tt],[i,12,12*tt],[r,1,nt],[r,2,2*nt],[e,1,$n],[n,1,We],[n,3,3*We],[t,1,Ln]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const p=l&&typeof l.range=="function"?l:c(s,f,l),x=p?p.range(s,+f+1):[];return h?x.reverse():x}function c(s,f,l){const h=Math.abs(f-s)/l,p=cn(([,,U])=>U).right(a,h);if(p===a.length)return t.every(ln(s/Ln,f/Ln,l));if(p===0)return on.every(Math.max(ln(s,f,l),1));const[x,b]=a[h/a[p-1][2]<a[p][2]/h?p-1:p];return x.every(b)}return[u,c]}const[du,mu]=gu(et,Yn,an,Ft,En,Pn);function Rn(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function In(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $t(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function pu(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=Lt(i),f=Pt(i),l=Lt(o),h=Pt(o),p=Lt(a),x=Pt(a),b=Lt(u),U=Pt(u),I=Lt(c),E=Pt(c),k={a:Mt,A:Tt,b:Z,B:Ps,c:null,d:Ge,e:Ge,f:Ru,g:Gu,G:Ju,H:Eu,I:Hu,j:Yu,L:Qe,m:Iu,M:Ou,p:Es,q:Hs,Q:er,s:rr,S:Wu,u:zu,U:Xu,V:qu,w:Vu,W:Bu,x:null,X:null,y:Zu,Y:Qu,Z:Ku,"%":nr},H={a:Ys,A:Rs,b:Is,B:Os,c:null,d:Ke,e:Ke,f:es,g:hs,G:ds,H:ju,I:ts,j:ns,L:je,m:rs,M:is,p:Ws,q:zs,Q:er,s:rr,S:os,u:as,U:us,V:ss,w:cs,W:fs,x:null,X:null,y:ls,Y:gs,Z:ms,"%":nr},m={a:N,A:w,b:S,B:F,c:$,d:Be,e:Be,f:Fu,g:Ve,G:qe,H:Ze,I:Ze,j:Du,L:Uu,m:Su,M:ku,p:A,q:bu,Q:Lu,s:Pu,S:Au,u:_u,U:Mu,V:Tu,w:xu,W:Nu,x:xt,X:_t,y:Ve,Y:qe,Z:Cu,"%":$u};k.x=g(e,k),k.X=g(r,k),k.c=g(n,k),H.x=g(e,H),H.X=g(r,H),H.c=g(n,H);function g(y,M){return function(C){var d=[],R=-1,D=0,O=y.length,W,ft,ur;for(C instanceof Date||(C=new Date(+C));++R<O;)y.charCodeAt(R)===37&&(d.push(y.slice(D,R)),(ft=Xe[W=y.charAt(++R)])!=null?W=y.charAt(++R):ft=W==="e"?" ":"0",(ur=M[W])&&(W=ur(C,ft)),d.push(W),D=R+1);return d.push(y.slice(D,R)),d.join("")}}function v(y,M){return function(C){var d=$t(1900,void 0,1),R=_(d,y,C+="",0),D,O;if(R!=C.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(M&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(D=In($t(d.y,0,1)),O=D.getUTCDay(),D=O>4||O===0?sn.ceil(D):sn(D),D=Hn.offset(D,(d.V-1)*7),d.y=D.getUTCFullYear(),d.m=D.getUTCMonth(),d.d=D.getUTCDate()+(d.w+6)%7):(D=Rn($t(d.y,0,1)),O=D.getDay(),D=O>4||O===0?un.ceil(D):un(D),D=Ft.offset(D,(d.V-1)*7),d.y=D.getFullYear(),d.m=D.getMonth(),d.d=D.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),O="Z"in d?In($t(d.y,0,1)).getUTCDay():Rn($t(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(O+5)%7:d.w+d.U*7-(O+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,In(d)):Rn(d)}}function _(y,M,C,d){for(var R=0,D=M.length,O=C.length,W,ft;R<D;){if(d>=O)return-1;if(W=M.charCodeAt(R++),W===37){if(W=M.charAt(R++),ft=m[W in Xe?M.charAt(R++):W],!ft||(d=ft(y,C,d))<0)return-1}else if(W!=C.charCodeAt(d++))return-1}return d}function A(y,M,C){var d=s.exec(M.slice(C));return d?(y.p=f.get(d[0].toLowerCase()),C+d[0].length):-1}function N(y,M,C){var d=p.exec(M.slice(C));return d?(y.w=x.get(d[0].toLowerCase()),C+d[0].length):-1}function w(y,M,C){var d=l.exec(M.slice(C));return d?(y.w=h.get(d[0].toLowerCase()),C+d[0].length):-1}function S(y,M,C){var d=I.exec(M.slice(C));return d?(y.m=E.get(d[0].toLowerCase()),C+d[0].length):-1}function F(y,M,C){var d=b.exec(M.slice(C));return d?(y.m=U.get(d[0].toLowerCase()),C+d[0].length):-1}function $(y,M,C){return _(y,n,M,C)}function xt(y,M,C){return _(y,e,M,C)}function _t(y,M,C){return _(y,r,M,C)}function Mt(y){return a[y.getDay()]}function Tt(y){return o[y.getDay()]}function Z(y){return c[y.getMonth()]}function Ps(y){return u[y.getMonth()]}function Es(y){return i[+(y.getHours()>=12)]}function Hs(y){return 1+~~(y.getMonth()/3)}function Ys(y){return a[y.getUTCDay()]}function Rs(y){return o[y.getUTCDay()]}function Is(y){return c[y.getUTCMonth()]}function Os(y){return u[y.getUTCMonth()]}function Ws(y){return i[+(y.getUTCHours()>=12)]}function zs(y){return 1+~~(y.getUTCMonth()/3)}return{format:function(y){var M=g(y+="",k);return M.toString=function(){return y},M},parse:function(y){var M=v(y+="",!1);return M.toString=function(){return y},M},utcFormat:function(y){var M=g(y+="",H);return M.toString=function(){return y},M},utcParse:function(y){var M=v(y+="",!0);return M.toString=function(){return y},M}}}var Xe={"-":"",_:" ",0:"0"},P=/^\\s*\\d+/,yu=/^%/,wu=/[\\\\^$*+?|[\\]().{}]/g;function T(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function vu(t){return t.replace(wu,"\\\\$&")}function Lt(t){return new RegExp("^(?:"+t.map(vu).join("|")+")","i")}function Pt(t){return new Map(t.map((n,e)=>[n.toLowerCase(),e]))}function xu(t,n,e){var r=P.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function _u(t,n,e){var r=P.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Mu(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Tu(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Nu(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function qe(t,n,e){var r=P.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ve(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Cu(t,n,e){var r=/^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function bu(t,n,e){var r=P.exec(n.slice(e,e+1));return r?(t.q=r[0]*3-3,e+r[0].length):-1}function Su(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Be(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Du(t,n,e){var r=P.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ze(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ku(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Au(t,n,e){var r=P.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Uu(t,n,e){var r=P.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Fu(t,n,e){var r=P.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function $u(t,n,e){var r=yu.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Lu(t,n,e){var r=P.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Pu(t,n,e){var r=P.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ge(t,n){return T(t.getDate(),n,2)}function Eu(t,n){return T(t.getHours(),n,2)}function Hu(t,n){return T(t.getHours()%12||12,n,2)}function Yu(t,n){return T(1+Ft.count(et(t),t),n,3)}function Qe(t,n){return T(t.getMilliseconds(),n,3)}function Ru(t,n){return Qe(t,n)+"000"}function Iu(t,n){return T(t.getMonth()+1,n,2)}function Ou(t,n){return T(t.getMinutes(),n,2)}function Wu(t,n){return T(t.getSeconds(),n,2)}function zu(t){var n=t.getDay();return n===0?7:n}function Xu(t,n){return T(an.count(et(t)-1,t),n,2)}function Je(t){var n=t.getDay();return n>=4||n===0?yt(t):yt.ceil(t)}function qu(t,n){return t=Je(t),T(yt.count(et(t),t)+(et(t).getDay()===4),n,2)}function Vu(t){return t.getDay()}function Bu(t,n){return T(un.count(et(t)-1,t),n,2)}function Zu(t,n){return T(t.getFullYear()%100,n,2)}function Gu(t,n){return t=Je(t),T(t.getFullYear()%100,n,2)}function Qu(t,n){return T(t.getFullYear()%1e4,n,4)}function Ju(t,n){var e=t.getDay();return t=e>=4||e===0?yt(t):yt.ceil(t),T(t.getFullYear()%1e4,n,4)}function Ku(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+T(n/60|0,"0",2)+T(n%60,"0",2)}function Ke(t,n){return T(t.getUTCDate(),n,2)}function ju(t,n){return T(t.getUTCHours(),n,2)}function ts(t,n){return T(t.getUTCHours()%12||12,n,2)}function ns(t,n){return T(1+Hn.count(ct(t),t),n,3)}function je(t,n){return T(t.getUTCMilliseconds(),n,3)}function es(t,n){return je(t,n)+"000"}function rs(t,n){return T(t.getUTCMonth()+1,n,2)}function is(t,n){return T(t.getUTCMinutes(),n,2)}function os(t,n){return T(t.getUTCSeconds(),n,2)}function as(t){var n=t.getUTCDay();return n===0?7:n}function us(t,n){return T(ze.count(ct(t)-1,t),n,2)}function tr(t){var n=t.getUTCDay();return n>=4||n===0?wt(t):wt.ceil(t)}function ss(t,n){return t=tr(t),T(wt.count(ct(t),t)+(ct(t).getUTCDay()===4),n,2)}function cs(t){return t.getUTCDay()}function fs(t,n){return T(sn.count(ct(t)-1,t),n,2)}function ls(t,n){return T(t.getUTCFullYear()%100,n,2)}function hs(t,n){return t=tr(t),T(t.getUTCFullYear()%100,n,2)}function gs(t,n){return T(t.getUTCFullYear()%1e4,n,4)}function ds(t,n){var e=t.getUTCDay();return t=e>=4||e===0?wt(t):wt.ceil(t),T(t.getUTCFullYear()%1e4,n,4)}function ms(){return"+0000"}function nr(){return"%"}function er(t){return+t}function rr(t){return Math.floor(+t/1e3)}var vt,ir;ps({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ps(t){return vt=pu(t),ir=vt.format,vt.parse,vt.utcFormat,vt.utcParse,vt}function ys(t){return new Date(t)}function ws(t){return t instanceof Date?+t:+new Date(+t)}function or(t,n,e,r,i,o,a,u,c,s){var f=Ie(),l=f.invert,h=f.domain,p=s(".%L"),x=s(":%S"),b=s("%I:%M"),U=s("%I %p"),I=s("%a %d"),E=s("%b %d"),k=s("%B"),H=s("%Y");function m(g){return(c(g)<g?p:u(g)<g?x:a(g)<g?b:o(g)<g?U:r(g)<g?i(g)<g?I:E:e(g)<g?k:H)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,ws)):h().map(ys)},f.ticks=function(g){var v=h();return t(v[0],v[v.length-1],g??10)},f.tickFormat=function(g,v){return v==null?m:s(v)},f.nice=function(g){var v=h();return(!g||typeof g.range!="function")&&(g=n(v[0],v[v.length-1],g??10)),g?h(iu(v,g)):f},f.copy=function(){return Re(f,or(t,n,e,r,i,o,a,u,c,s))},f}function vs(){return He.apply(or(du,mu,et,Yn,an,Ft,En,Pn,pt,ir).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Et(t,n,e){this.k=t,this.x=n,this.y=e}Et.prototype={constructor:Et,scale:function(t){return t===1?this:new Et(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Et(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Et.prototype;function On(t){return t.mode==="temporal"||t.mode==="left-aligned"?xs(t):_s(t)}function xs({domain:t,range:n}){return vs().domain(t).range(n)}function _s({domain:t,range:n}){return Oe().domain(t).range(n)}function Ms({root_node_ids:t,nodes:n}){try{return Ts(t,n)}catch(e){return console.error(e),ar(t,n)}}function Ts(t,n){const e=new Map,r=[];for(const i of t){e.set(i,0);const o=n.get(i);for(const{id:a}of o.children)r.push(a)}return Wn(r,n,e)}function Wn(t,n,e){for(const r of t){if(e.has(r))continue;const i=n.get(r);if(!i)throw new Error("Node id not found in nodes");const o=[];for(const c of i.parents){const s=e.get(c.id);if(s!==void 0){o.push(s);continue}Wn([c.id],n,e);const f=e.get(c.id);if(f===void 0)throw new Error("Could not determine parent column");o.push(f)}const a=Math.max(...o);e.set(r,a+1);const u=i.children.map(({id:c})=>c);u.length&&Wn(u,n,e)}return e}function ar(t,n,e=0,r=new Map){for(const i of t){const o=r.get(i);(!o||o<e)&&r.set(i,e);const a=n.get(i);for(const{id:u}of a.children)ar([u],n,e+1,r)}return r}function Ns(t){return t.horizontalSettings.mode==="dependency"?Cs(t):t.horizontalSettings.mode==="left-aligned"?Ss(t):bs(t)}function Cs({data:t,horizontalSettings:n}){const e=Ms(t),r=On(n),i=new Map;for(const[o]of t.nodes){const a=e.get(o);if(a===void 0){console.warn(`Node not found in columns: Skipping ${o}`);continue}i.set(o,{x:r(a),column:a})}return i}function bs({data:t,horizontalSettings:n}){const e=On(n),r=new Map;for(const[i,o]of t.nodes){const a=e(o.start_time);r.set(i,{column:a,x:a})}return r}function Ss({data:t,horizontalSettings:n}){const e=On(n),r=new Map;for(const[i]of t.nodes)r.set(i,{column:0,x:e(t.start_time)});return r}async function Ds(t,n){const i=new Map,o=new Map;let a=0;const u=new Map;for await(const[m]of t.data.nodes){const g=t.data.nodes.get(m);if(!g){console.warn("NearestParentLayout: Node was not found in the data",m);continue}const v=await c(g);k(m,v)}return H(),u;async function c(m){const{x:g}=n.get(m.id)??{};if(g===void 0)return console.warn("NearestParentLayout: Node was not found in the horizontal layout",m.id),0;if(m.parents.length===1)return u.has(m.parents[0].id)?await f(m.parents[0].id,g):(console.warn("NearestParentLayout: Parent node not found in layout",m.parents[0].id),0);if(m.parents.length>0){const v=m.parents.map(({id:w})=>{const S=u.get(w);return S===void 0?(console.warn("NearestParentLayout: Parent node not found in layout",w),0):S}),A=v.reduce((w,S)=>w+S,0)/v.length,N=Math.round(A);if(l(g,N)){const w=x(g,N),S=m.parents.map(({id:$})=>$),F=w.filter($=>S.includes($));if(F.length>0||w.length>1){const[$]=F.length>0?F:w,xt=b(v,N,i.get($));return i.set($,xt),await f($,g)}return await U({competingNodeId:w[0],upstreamRows:v,nodeStartX:g,desiredRow:N})}}return s(g,0)}function s(m,g){return l(m,g)?s(m,g+1):g}async function f(m,g){const v=u.get(m);if(v===void 0)return console.warn("NearestParentLayout: Upstream node not found in layout",m),0;i.get(m)||i.set(m,1);const _=i.get(m);return l(g,v)?_===1&&!l(g,v+1)?(i.set(m,-1),v+1):l(g,v-1)?(await h({direction:_,nodeStartX:g,desiredRow:v+_}),i.set(m,_===1?-1:1),v+_):(i.set(m,1),v-1):v}function l(m,g){if(u.size===0)return!1;let v=!1;const _=o.get(g)??[];for(const A of _){const N=u.get(A),w=E(A);if(p({firstNodeEndX:w,firstNodeRow:N,lastNodeStartX:m,lastNodeRow:g})){v=!0;break}}return v}async function h({direction:m,nodeStartX:g,desiredRow:v}){const _=x(g,v);if(_)for await(const A of _){const N=u.get(A),{x:w}=n.get(A)??{};if(N===void 0||w===void 0){console.warn("NearestParentLayout - shove: Node was not found in the vertical or horizontal layout",A);continue}const S=N+m;await h({direction:m,nodeStartX:w,desiredRow:S}),k(A,S)}}function p({firstNodeEndX:m,firstNodeRow:g,lastNodeStartX:v,lastNodeRow:_}){return g===_&&m+16>=v}function x(m,g){const v=[],_=o.get(g)??[];for(const A of _){const N=E(A),w=u.get(A);if(w===void 0){console.warn("NearestParentLayout - getOverlappingNodeIds: Node was not found in the layout",A);continue}p({firstNodeEndX:N,firstNodeRow:w,lastNodeStartX:m,lastNodeRow:g})&&v.push(A)}if(v.length!==0)return v.sort((A,N)=>{const w=E(A),S=E(N);return w<S?1:w>S?-1:0}),v}function b(m,g,v){const _=m.filter(N=>N<g).length,A=m.filter(N=>N>g).length;return _>A?-1:v??1}async function U({desiredRow:m,nodeStartX:g,upstreamRows:v,competingNodeId:_}){if(u.get(_)===void 0)return console.warn("NearestParentLayout - argueWithCompetingUpstreamPlacement: Competitor node was not found in the layout",_),m;const[N,w]=I(_),S=v.filter($=>$<m).length,F=v.filter($=>$>m).length;if(S>F){if(N>w&&N>S)return await h({direction:-1,nodeStartX:g,desiredRow:m}),m;if(w>N)return await h({direction:1,nodeStartX:g,desiredRow:m}),m;i.set(_,-1)}if(F>S){if(w>N&&w>F)return await h({direction:1,nodeStartX:g,desiredRow:m}),m;if(N>w)return await h({direction:-1,nodeStartX:g,desiredRow:m}),m;i.set(_,1)}return await f(_,g)}function I(m){const g=t.data.nodes.get(m),v=u.get(m);return!g||v===void 0?(console.warn("NearestParentLayout: Node was not found in either the data or layout",m),[0,0]):g.parents.reduce((_,A)=>{const N=u.get(A.id);return N===void 0?(console.warn("NearestParentLayout - getNodeParentDirectionCounts: Parent node not found on layout data",m),_):(N<v&&(_[0]+=1),N>v&&(_[1]+=1),_)},[0,0])}function E(m){const{x:g}=n.get(m)??{},v=t.widths.get(m);return g===void 0||v===void 0?(console.warn("NearestParentLayout: Node was not found in the horizontal layout and/or widths",m),0):g+v}function k(m,g){if(g<a&&(a=g),u.has(m)){const v=u.get(m);o.get(v)?.delete(m)}o.has(g)||o.set(g,new Set),o.get(g)?.add(m),u.set(m,g)}function H(){if(a<0)for(const[m]of u){const g=u.get(m);u.set(m,g+Math.abs(a))}}}async function ks(t,n){return t.verticalSettings.mode==="nearest-parent"?await Ds(t,n):t.verticalSettings.mode==="duration-sorted"?Us(t):As(t)}function As(t){const n=new Map;let e=0;for(const[r]of t.data.nodes)n.set(r,e++);return n}function Us(t){const n=new Map,e=[...t.data.nodes.values()].sort((i,o)=>{const a=(i.end_time?i.end_time.getTime():new Date().getTime())-i.start_time.getTime();return(o.end_time?o.end_time.getTime():new Date().getTime())-o.start_time.getTime()-a});let r=0;for(const i of e)n.set(i.id,r++);return n}onmessage=Fs;function Fs({data:t}){const{type:n}=t;if(n==="layout"){Ls(t);return}else sr(n)}function $s(t){postMessage(t)}async function Ls(t){const{data:n}=t,e=Ns(t),r=await ks(t,e),i=new Map;let o=0,a=0;for(const[u,c]of n.nodes){const s=e.get(u),f=r.get(u);if(s===void 0){console.warn(`NodeId not found in horizontal layout: Skipping ${c.label}`);continue}if(f===void 0){console.warn(`NodeId not found in vertical layout: Skipping ${c.label}`);continue}o=Math.max(o,f),a=Math.max(a,s.column),i.set(u,{...s,y:f,row:f})}$s({type:"layout",layout:{maxRow:o,maxColumn:a,positions:i}})}})();\n//# sourceMappingURL=runGraph.worker-ChmCiswU.js.map\n',xg=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",b_],{type:"text/javascript;charset=utf-8"});function PI(r){let t;try{if(t=xg&&(self.URL||self.webkitURL).createObjectURL(xg),!t)throw"";const e=new Worker(t,{name:r?.name});return e.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),e}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(b_),{name:r?.name})}}function II(r){const t=new PI;return t.onmessage=r,t}async function Cd(){const r=new Map,t=new Map,e=new Map,i=new bt,n=new bt,s=await jt();let o=null;const a=_g({gap:()=>s.rowGap,minimum:()=>s.nodeHeight}),h=_g({gap:()=>s.columnGap,minimum:()=>hd()});let l=null,u=null;i.name=Eg,rt.on("layoutUpdated",()=>{a.clear(),h.clear()}),rt.on("layoutSettingsUpdated",()=>{u&&i.parent&&c(u),j()}),rt.on("itemSelected",()=>{j()});async function c(M){d(),u=M,l=null,await Promise.all([p(M),g(M)]),w(M)}function d(){o||(o=II(P))}function f(){o&&(o.terminate(),o=null)}async function p(M){const k=[];for(const L of M.nodes.values())k.push(m(L));await Promise.all(k)}async function m(M){const{render:k}=await b(M),L=y(M.id);return await k(M,L)}async function g(M){if((await Kt()).disableEdges){i.removeChild(n);return}i.addChildAt(n,0);const k=[];for(const[L,{children:V}]of M.nodes)for(const{id:$}of V)k.push(v(L,$));await Promise.all(k)}async function v(M,k){const L=`${M}_${k}`;if(e.has(L))return;const V=await vS();e.has(L)||(e.set(L,V),n.addChild(V.element))}function w(M){if(!o)throw new Error("Layout worker not initialized");const k=new Map;for(const[L,{element:V}]of t)k.set(L,V.width);o.postMessage({type:"layout",data:M,widths:k,horizontalSettings:Rc(M.start_time),verticalSettings:yI()})}function _(){if(l)for(const[M,k]of e){const[L,V]=M.split("_"),$=l.positions.get(L),tt=l.positions.get(V),et=t.get(L);if(!$||!tt){console.warn(`Could not find edge in layout: Skipping ${M}`);continue}if(!et){console.warn(`Could not find parent node in nodes: Skipping ${L}`);continue}const K=et.bar.width,U=S($),X={x:U.x+K,y:U.y+s.nodeHeight/2},q=S(tt),z={x:q.x-X.x,y:q.y-X.y+s.nodeHeight/2};k.setPosition(X,z)}}function T(){if(l){for(const[M,k]of t){const L=l.positions.get(M);if(!L){console.warn(`Could not find node in layout: Skipping ${M}`);continue}const V=S(L);k.setPosition(V),a.updateNodeAxis({nodeId:M,axis:L.y}),h.updateNodeAxis({nodeId:M,axis:L.column})}_(),i.emit("rendered"),i.emit("resized",N())}}async function b(M){const k=r.get(M.id);if(k)return k;const L=y(M.id),V=MI(M,L);r.set(M.id,V);const $=await V;return $.element.on("resized",tt=>x(M.id,tt)),i.addChild($.element),t.set(M.id,$),$}function x(M,k){if(!l)return;const L=t.get(M),V=l.positions.get(M);!L||!V||(a.setOffset({nodeId:M,axis:V.y,offset:k.height}),h.setOffset({nodeId:M,axis:V.column,offset:k.width}),T())}function y(M){return u?.nested_task_run_graphs?.get(M)}function S(M){const k=a.getTotalOffset(M.y);return{x:D(M),y:k}}function D(M){return ut.isDependency()?h.getTotalOffset(M.column):M.x}function G(){return l?a.getTotalValue(l.maxRow):0}function O(){if(!l||!u)return 0;if(ut.isDependency())return h.getTotalValue(l.maxColumn);const M=Rc(u.start_time),k=g_(M),L=k(u.end_time??new Date),V=k(u.start_time);return L-V}function N(){return{width:O(),height:G()}}function P({data:M}){const{type:k}=M;if(k==="layout"){F(M);return}else RI(k)}function F(M){l=M.layout,T()}async function j(){const M=await Kt(),k=YS();if(M.disableEdges||!k||!u?.nodes.has(k.id)){E([]);return}const L=B(k.id);E(L)}function E(M){A(M),C(M)}function A(M){for(const[k,{element:L}]of t){if(M.length===0||M.includes(k)){L.alpha=1;continue}L.alpha=s.nodeUnselectedAlpha}}function C(M){for(const[k,{element:L}]of e){const[V,$]=k.split("_");if(M.length===0||M.includes(V)&&M.includes($)){L.alpha=1;continue}L.alpha=s.nodeUnselectedAlpha}}function B(M){const k=I(M,"parents"),L=I(M,"children");return[M,...k,...L]}function I(M,k){const L=u?.nodes.get(M);if(!L)return[];const V=[];for(const{id:$}of L[k])V.push($),V.push(...I($,k));return V}return{element:i,stopWorker:f,getSize:N,render:c}}let Ic=null,hn=null,Cn=null;async function DI(){const r=await Jt(),t=await Ue(),{element:e,render:i}=await Cd();r.addChild(e),e.alpha=0;const n=await fy(t.runId,async s=>{const o=hn?"runDataUpdated":"runDataCreated";hn=s,rt.emit(o,hn),await Kt(),i(s)});rt.on("configUpdated",()=>{hn&&i(hn)}),Cn=e,Ic=n.stop,Cn.once("rendered",()=>kI()),rt.on("layoutUpdated",()=>NI()),n.start()}function OI(){Ic?.(),Ic=null,Cn=null,hn=null}async function Hr(){return hn||await Re("runDataCreated")}function kI(){T_(),_e.shared.addOnce(()=>{Cn&&(Cn.alpha=1)})}async function NI(){if(!Cn)return;const r=await Ue();Cn.once("rendered",()=>{setTimeout(()=>{T_({animate:!0})},r.animationDuration)})}let ke=null,Dc=null;async function FI(){const r=await Qt(),t=await Wc();ke=new UE({screenHeight:t.clientHeight,screenWidth:t.clientWidth,events:r.renderer.events,passiveWheel:!1}),ke.zIndex=Ex,ke.drag().pinch().wheel({trackpadPinch:!0}).decelerate({friction:.9}).clampZoom({minWidth:t.clientWidth/2}),ke.on("moved",()=>{rt.emit("viewportMoved",null)}).on("moved-end",()=>{rt.emit("viewportMoved",null)}),r.stage.addChild(ke),rt.emit("viewportCreated",ke),rt.on("applicationResized",zI),rt.on("scaleUpdated",()=>xo()),GI()}function LI(){ke=null,Dc=null}async function T_({animate:r}={}){const t=(await Jt()).getChildByName(Eg);if(!t)throw new Error("Nodes container not found");XI();const{x:e,y:i,width:n,height:s}=t.getLocalBounds();if(!n||!s){UI({animate:r});return}BI({x:e,y:i,width:n,height:s,animate:r})}async function BI({x:r,y:t,width:e,height:i,animate:n}){const s=await Ue(),o=await jt(),a=await Jt(),{guideTextSize:h,guideTextTopPadding:l,columnGap:u,rowGap:c,eventTargetSize:d}=o,f=h+l,p=e+u*2,m=i+c*4+f+d,g=a.findFit(p,m);a.animate({position:{x:r+e/2,y:t+i/2+f},scale:Math.min(g,1),time:n?s.animationDuration:0,ease:"easeInOutQuad",removeOnInterrupt:!0,callbackOnComplete:()=>{Io(),xo()}})}async function UI({animate:r}){const t=await Hr(),e=await Ue(),i=await jt(),n=await Jt(),s=await rr();let o=s(t.start_time)-i.columnGap,a=s(t.end_time??new Date)+i.columnGap;if(o>a){const c=o;o=a,a=c}const h=a-o,l=o+h/2,u=n.findFit(h,0);n.animate({position:{x:l,y:0},scale:u,time:r?e.animationDuration:0,ease:"easeInOutQuad",removeOnInterrupt:!0,callbackOnComplete:()=>{Io(),xo()}})}async function Jt(){return ke||await Re("viewportCreated")}function E_(r){cy(Dc,r)||(Dc=r,rt.emit("viewportDateRangeUpdated",r))}function HI({xOffset:r,yOffset:t}){if(!ke)return;const{x:e,y:i}=ke.transform.position;ke.setTransform(e+r,i+t,ke.transform.scale.x,ke.transform.scale.y)}async function GI(){const r=await Jt();xo(),r.on("moved",()=>xo())}async function xo(){const r=await A_();r&&E_(r)}async function A_(){const r=await Jt(),t=await rr(),e=t.invert(r.left),i=t.invert(r.right);return e instanceof Date&&i instanceof Date?[e,i]:null}async function pD(r){const t=await A_(),e=await Kt();if(r===void 0||e.isDependency()||cy(r,t))return;const i=await Jt(),n=await rr(),[s,o]=r,a=n(s),h=n(o),l=a+(h-a)/2;E_(r),i.fitWidth(h-a,!0),i.moveCenter(l,i.center.y)}async function zI(){const r=await Qt(),t=await Jt(),e=await Wc(),i=t.screenWidth,n=t.screenHeight,s=e.clientWidth,o=e.clientHeight,a=(s-i)/2,h=(o-n)/2;t.resize(r.screen.width,r.screen.height),HI({xOffset:a,yOffset:h})}class va{status="visible";labels=new Set;get visible(){return this.status==="visible"}get hidden(){return this.status==="hidden"}show(){if(this.status!=="visible"){for(const t of this.labels)t.visible=!0;this.status="visible"}}hide(){if(this.status!=="hidden"){for(const t of this.labels)t.visible=!1;this.status="hidden"}}toggle(t){t?this.show():this.hide()}add(t){this.labels.add(t),t.visible=this.visible}clear(){this.labels.clear()}}let _n=null,cn=null,wo=null,ao=null,os=null;async function jI(){const r=await Jt(),t=await Qt();_n=new oE({toggle:"renderable"}),cn=new va,wo=new va,os=new va,ao=new va,t.ticker.add(()=>{if(r.dirty){const e=r.scale.x>bx,i=r.scale.x>_x,n=r.scale.x>xx,s=r.scale.x>wx;os?.toggle(e),cn?.toggle(i),wo?.toggle(n),ao?.toggle(s),_n?.cull(t.renderer.screen),r.dirty=!1}}),rt.emit("cullCreated",_n),rt.emit("labelCullCreated",cn),rt.emit("iconCullCreated",cn),rt.emit("edgeCullCreated",os),rt.emit("toggleCullCreated",ao)}function WI(){_n=null,cn?.clear(),cn=null,wo?.clear(),wo=null,os?.clear(),os=null,ao?.clear(),ao=null}async function Io(){const r=await Jt();r.dirty=!0}function XI(){_n&&_n.uncull()}async function S_(){return _n||await Re("cullCreated")}async function VI(){return os||await Re("edgeCullCreated")}async function C_(){return cn||await Re("labelCullCreated")}async function M_(){return wo||await Re("iconCullCreated")}async function $I(){const r=await Qt(),t=await Hr(),e=await Kt(),{element:i,render:n,update:s}=await __({isRoot:!0});i.zIndex=Cx;function o(a){if(ut.isTemporal()&&!e.disableArtifacts){r.stage.addChild(i),n(a?.artifacts);return}r.stage.removeChild(i)}t.artifacts&&o(t),rt.on("viewportMoved",()=>s()),rt.on("runDataCreated",a=>o(a)),rt.on("runDataUpdated",a=>o(a)),rt.on("configUpdated",()=>o()),rt.on("layoutSettingsUpdated",()=>o())}async function YI(){const r=await Qt(),t=await Hr(),{element:e,render:i}=await x_({isRoot:!0});e.zIndex=Sx,r.stage.addChild(e);function n(s){i(s?.states)}t.states&&n(t),rt.on("runDataUpdated",s=>n(s)),rt.on("configUpdated",()=>n()),rt.on("layoutSettingsUpdated",()=>n())}async function qI(){const r=await Qt(),t=await Jt(),e=await Kt(),i=await jt(),n=await _v(),s=new bt,o=await si();s.addChild(o);const a=n("");s.addChild(a);let h=await rr(),l,u;rt.on("scaleUpdated",m=>{h=m,p()}),rt.on("viewportMoved",()=>{e.disableGuides||(p(),s.height!==r.screen.height&&d())});function c(m,g){l=m,u=g,d(),f(m)}function d(){o.width=i.guideLineWidth,o.height=r.screen.height,o.tint=i.guideLineColor}function f(m){a.text=u(m),a.fontSize=i.guideTextSize,a.tint=i.guideTextColor,a.position.set(i.guideTextLeftPadding,i.guideTextTopPadding)}function p(){l!==void 0&&(s.position.x=h(l)*t.scale._x+t.worldTransform.tx)}return{element:s,render:c}}class wg extends Error{constructor(){super("Layout is not temporal")}}function ZI(r){return r.toLocaleTimeString()}function bg(r){const t=navigator.language;return new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(r)}function KI(r){const t=navigator.language;return new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(r)}function QI(r){return r.getHours()===0&&r.getMinutes()===0?`${Ua.date(r)}
1160
- ${bg(r)}`:bg(r)}const Ua={timeBySeconds:ZI,timeByMinutesWithDates:QI,date:KI},ee={seconds:"seconds",minutes:"minutes",date:"date"},Hs={day:r=>{const t=new Date(r.getTime());return t.setHours(0,0,0,0),t.getTime()},week:r=>{const t=new Date(r.getTime());return t.setHours(0,0,0,0),t.setDate(r.getDate()-r.getDay()+1),t.getTime()}},St={second:1e3,minute:1e3*60,hour:1e3*60*60,day:1e3*60*60*24,week:1e3*60*60*24*7},Tg=[{ceiling:St.second*4,increment:St.second,labelFormat:ee.seconds},{ceiling:St.second*8,increment:St.second*5,labelFormat:ee.seconds},{ceiling:St.second*13,increment:St.second*10,labelFormat:ee.seconds},{ceiling:St.second*20,increment:St.second*15,labelFormat:ee.seconds},{ceiling:St.second*45,increment:St.second*30,labelFormat:ee.seconds},{ceiling:St.minute*4,increment:St.minute,labelFormat:ee.minutes},{ceiling:St.minute*8,increment:St.minute*5,labelFormat:ee.minutes},{ceiling:St.minute*13,increment:St.minute*10,labelFormat:ee.minutes},{ceiling:St.minute*28,increment:St.minute*15,labelFormat:ee.minutes},{ceiling:St.hour*1.24,increment:St.minute*30,labelFormat:ee.minutes},{ceiling:St.hour*3,increment:St.hour,labelFormat:ee.minutes},{ceiling:St.hour*8,increment:St.hour*2,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.hour*13,increment:St.hour*6,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.hour*22,increment:St.hour*12,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.day*4,increment:St.day,getAnchor:Hs.day,labelFormat:ee.date},{ceiling:St.week*2,increment:St.week,getAnchor:Hs.week,labelFormat:ee.date},{ceiling:1/0,increment:St.week*4,labelFormat:ee.date}],JI=300;async function tD(){const r=await Jt(),t=await Kt(),e=new bt,i=new Map;let n=await rr();rt.on("scaleUpdated",d=>n=d),await o();function s(){if(e.visible=!t.disableGuides,!t.disableGuides)try{const{anchor:d,increment:f,labelFormat:p}=a(),m=c(d,f);u(m,p)}catch(d){if(d instanceof wg)return;console.error(d)}}async function o(){const d=[];_c(Ud,async f=>{const p=qI();d.push(p);const m=await p;e.addChild(m.element),i.set(f,m)}),await Promise.all(d)}function a(){const d=r.left-JI,f=n.invert(d),p=n.invert(d+Tx/r.scale.x);if(!(f instanceof Date)||!(p instanceof Date))throw new wg;const m=p.getTime()-f.getTime(),{increment:g,getAnchor:v,labelFormat:w}=h(m);return{anchor:v(f),increment:g,labelFormat:l(w)}}function h(d){const f=Tg.find(p=>p.ceiling>d)??Tg[0];return f.getAnchor||(f.getAnchor=p=>Math.floor(p.getTime()/f.increment)*f.increment),f}function l(d){switch(d){case ee.minutes:return Ua.timeByMinutesWithDates;case ee.date:return Ua.date;default:return Ua.timeBySeconds}}function u(d,f){const p=new Map(i.entries()),m=Array.from(p.keys()).filter(g=>!d.includes(g));i.clear();for(const g of d){if(p.has(g)){const w=p.get(g);i.set(g,w),w.render(new Date(g),f);continue}const v=p.get(m.pop()??-1);if(v===void 0){console.warn("Guides: No unused guides available to render.");continue}v.render(new Date(g),f),i.set(g,v)}}function c(d,f){return _c(Ud,p=>d+f*p)}return{element:e,render:s}}async function eD(){const r=await Qt(),{element:t,render:e}=await tD();r.stage.addChild(t),e(),rt.on("viewportDateRangeUpdated",()=>e()),rt.on("layoutSettingsUpdated",()=>e()),rt.on("configUpdated",()=>e())}const rD=80;async function iD(){const r=await Qt(),t=await Jt(),e=await Kt(),i=await jt(),n=await si();let s=await rr();rt.on("scaleUpdated",h=>s=h);function o(){if(!e.isTemporal()){n.visible=!1;return}n.width=i.playheadWidth,n.height=r.stage.height,n.tint=i.playheadColor,n.position.x=s(new Date)*t.scale.x+t.worldTransform.tx,a()}function a(){if(t.moving||!(n.position.x>0&&n.position.x<r.screen.width)||!(n.position.x>r.screen.width-rD))return;const h=t.left;t.zoomPercent(-.1,!0),t.left=h}return{element:n,render:o}}async function nD(){const r=await Qt(),t=await Hr(),{element:e,render:i}=await iD();t.end_time||(r.stage.addChild(e),r.ticker.add(i)),rt.on("runDataUpdated",({end_time:n})=>{n&&(r.ticker.remove(i),r.stage.removeChild(e))})}function mD({stage:r,config:t}){ZT(),FI(),vI(),eD(),DI(),$I(),xI(),YI(),nD(),zS(),YT(r),iE(t),oS(),jI(),uS(),VS()}function gD(){rt.clear();try{KT(),LI(),_I(),qT(),OI(),wI(),sE(),aS(),WS(),WI(),cS(),$S(),tE()}catch(r){console.error(r)}}export{T_ as A,gu as U,gv as _,aD as a,li as b,pD as c,hD as d,rt as e,lD as f,dD as g,sD as h,nE as i,oD as l,cD as m,uD as p,ut as u,mD as v,gD as x,fD as y};
1161
- //# sourceMappingURL=vendor-graphs-R8z6S3Jg.js.map
1160
+ ${bg(r)}`:bg(r)}const Ua={timeBySeconds:ZI,timeByMinutesWithDates:QI,date:KI},ee={seconds:"seconds",minutes:"minutes",date:"date"},Hs={day:r=>{const t=new Date(r.getTime());return t.setHours(0,0,0,0),t.getTime()},week:r=>{const t=new Date(r.getTime());return t.setHours(0,0,0,0),t.setDate(r.getDate()-r.getDay()+1),t.getTime()}},St={second:1e3,minute:1e3*60,hour:1e3*60*60,day:1e3*60*60*24,week:1e3*60*60*24*7},Tg=[{ceiling:St.second*4,increment:St.second,labelFormat:ee.seconds},{ceiling:St.second*8,increment:St.second*5,labelFormat:ee.seconds},{ceiling:St.second*13,increment:St.second*10,labelFormat:ee.seconds},{ceiling:St.second*20,increment:St.second*15,labelFormat:ee.seconds},{ceiling:St.second*45,increment:St.second*30,labelFormat:ee.seconds},{ceiling:St.minute*4,increment:St.minute,labelFormat:ee.minutes},{ceiling:St.minute*8,increment:St.minute*5,labelFormat:ee.minutes},{ceiling:St.minute*13,increment:St.minute*10,labelFormat:ee.minutes},{ceiling:St.minute*28,increment:St.minute*15,labelFormat:ee.minutes},{ceiling:St.hour*1.24,increment:St.minute*30,labelFormat:ee.minutes},{ceiling:St.hour*3,increment:St.hour,labelFormat:ee.minutes},{ceiling:St.hour*8,increment:St.hour*2,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.hour*13,increment:St.hour*6,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.hour*22,increment:St.hour*12,getAnchor:Hs.day,labelFormat:ee.minutes},{ceiling:St.day*4,increment:St.day,getAnchor:Hs.day,labelFormat:ee.date},{ceiling:St.week*2,increment:St.week,getAnchor:Hs.week,labelFormat:ee.date},{ceiling:1/0,increment:St.week*4,labelFormat:ee.date}],JI=300;async function tD(){const r=await Jt(),t=await Kt(),e=new bt,i=new Map;let n=await rr();rt.on("scaleUpdated",d=>n=d),await o();function s(){if(e.visible=!t.disableGuides,!t.disableGuides)try{const{anchor:d,increment:f,labelFormat:p}=a(),m=c(d,f);u(m,p)}catch(d){if(d instanceof wg)return;console.error(d)}}async function o(){const d=[];_c(Ud,async f=>{const p=qI();d.push(p);const m=await p;e.addChild(m.element),i.set(f,m)}),await Promise.all(d)}function a(){const d=r.left-JI,f=n.invert(d),p=n.invert(d+Tx/r.scale.x);if(!(f instanceof Date)||!(p instanceof Date))throw new wg;const m=p.getTime()-f.getTime(),{increment:g,getAnchor:v,labelFormat:w}=h(m);return{anchor:v(f),increment:g,labelFormat:l(w)}}function h(d){const f=Tg.find(p=>p.ceiling>d)??Tg[0];return f.getAnchor||(f.getAnchor=p=>Math.floor(p.getTime()/f.increment)*f.increment),f}function l(d){switch(d){case ee.minutes:return Ua.timeByMinutesWithDates;case ee.date:return Ua.date;default:return Ua.timeBySeconds}}function u(d,f){const p=new Map(i.entries()),m=Array.from(p.keys()).filter(g=>!d.includes(g));i.clear();for(const g of d){if(p.has(g)){const w=p.get(g);i.set(g,w),w.render(new Date(g),f);continue}const v=p.get(m.pop()??-1);if(v===void 0){console.warn("Guides: No unused guides available to render.");continue}v.render(new Date(g),f),i.set(g,v)}}function c(d,f){return _c(Ud,p=>d+f*p)}return{element:e,render:s}}async function eD(){const r=await Qt(),{element:t,render:e}=await tD();r.stage.addChild(t),e(),rt.on("viewportDateRangeUpdated",()=>e()),rt.on("layoutSettingsUpdated",()=>e()),rt.on("configUpdated",()=>e())}const rD=80;async function iD(){const r=await Qt(),t=await Jt(),e=await Kt(),i=await jt(),n=await si();let s=await rr();rt.on("scaleUpdated",h=>s=h);function o(){if(!e.isTemporal()){n.visible=!1;return}n.width=i.playheadWidth,n.height=r.stage.height,n.tint=i.playheadColor,n.position.x=s(new Date)*t.scale.x+t.worldTransform.tx,a()}function a(){if(t.moving||!(n.position.x>0&&n.position.x<r.screen.width)||!(n.position.x>r.screen.width-rD))return;const h=t.left;t.zoomPercent(-.1,!0),t.left=h}return{element:n,render:o}}async function nD(){const r=await Qt(),t=await Hr(),{element:e,render:i}=await iD();t.end_time||(r.stage.addChild(e),r.ticker.add(i)),rt.on("runDataUpdated",({end_time:n})=>{n&&(r.ticker.remove(i),r.stage.removeChild(e))})}function mD({stage:r,config:t}){ZT(),FI(),vI(),eD(),DI(),$I(),xI(),YI(),nD(),zS(),YT(r),iE(t),oS(),jI(),uS(),VS()}function gD(){rt.clear();try{KT(),LI(),_I(),qT(),OI(),wI(),sE(),aS(),WS(),WI(),cS(),$S(),tE()}catch(r){console.error(r)}}export{T_ as A,gu as U,gv as _,aD as a,li as b,pD as c,hD as d,rt as e,lD as f,dD as g,sD as h,nE as i,dx as j,fx as k,oD as l,cD as m,cx as n,uD as p,ut as u,mD as v,gD as x,fD as y};
1161
+ //# sourceMappingURL=vendor-graphs-BRVnayIy.js.map