dorkos 0.123.0 → 0.124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/dist/bin/cli.js +1688 -837
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-BmtoPqP9.js → AboutPage-DHaZvsJE.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-CEzdFJiR.js → ActivityErrorState-BP-qFk2S.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-mFYgTr3e.js → ActivityPage-Bme3TzdQ.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-Bkc0kkim.js → ActivityRow-BRZyW9MA.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-DVgTrgnM.js → AdapterIcon-BcfquTja.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-I03EluU5.js → AdapterSetupWizard-B4I23pBg.js} +2 -2
  10. package/dist/client/assets/{AgentOptionRow-DI1TzLaR.js → AgentOptionRow-Cb34LtmH.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-CBYeBzjf.js → AgentPicker-ouNRFSDh.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-DQ6GYoeE.js → AgentRequestCard-B6MHIsxa.js} +3 -3
  13. package/dist/client/assets/{AppearancePage-62xIPNPn.js → AppearancePage-CutehigK.js} +1 -1
  14. package/dist/client/assets/ApplyToOverridesDialog-B-wIUI27.js +1 -0
  15. package/dist/client/assets/{AttentionSignalRow-Coe5pYX6.js → AttentionSignalRow-B1aMjgX_.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-D07cg75s.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-CdWF4WLz.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-DVyxVXZM.js → BindingDialog-BAdueON5.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-BmfkiUQJ.js → BlintzCanvas-b30dG4gx.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent-CRTr-AI7.js → CanvasCsvContent-DGHgSikG.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-rOmY1s3T.js → CanvasFileContent-D1bFaUeh.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-D7oRT6ey.js → CanvasModel3dContent-dST7g1v2.js} +2 -2
  22. package/dist/client/assets/{ChatAppsOff-BmuOTq83.js → ChatAppsOff-DiObvmJS.js} +1 -1
  23. package/dist/client/assets/{CodeMirrorDiff-DidSWwYJ.js → CodeMirrorDiff-BncI1OY1.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorEditor-BUAWGbRo.js → CodeMirrorEditor-DV6psv19.js} +1 -1
  25. package/dist/client/assets/{CommitmentList-uK4CKaz0.js → CommitmentList-Dx_Ek_Gl.js} +1 -1
  26. package/dist/client/assets/{CommitmentsPage-BWITH1r2.js → CommitmentsPage-Bca8NMUa.js} +1 -1
  27. package/dist/client/assets/{ComputerResourceView-adgF_EZU.js → ComputerResourceView-DNVNFTdn.js} +1 -1
  28. package/dist/client/assets/{ComputerViewer-D87LhxwL.js → ComputerViewer-D8SxJdMm.js} +1 -1
  29. package/dist/client/assets/{ConnectionAccessLists-BFEFqcSZ.js → ConnectionAccessLists-Bhj1YT15.js} +1 -1
  30. package/dist/client/assets/{ConnectionsPage-Cd_cLoSY.js → ConnectionsPage-B20JZxoK.js} +2 -2
  31. package/dist/client/assets/{ConventionPage-BSztD-gU.js → ConventionPage-De645wxU.js} +1 -1
  32. package/dist/client/assets/{ExtensionPageRoute-BSge6XRv.js → ExtensionPageRoute-nTeiOBRQ.js} +2 -2
  33. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-TO2CUPG0.js → FloatingTanStackRouterDevtools-CqogiFob-DM79UITv.js} +1 -1
  34. package/dist/client/assets/HandlePage-B08V-om7.js +1 -0
  35. package/dist/client/assets/{HeartbeatPage-DIJzdOhj.js → HeartbeatPage-CBoUxz6t.js} +1 -1
  36. package/dist/client/assets/{KeyEntry-DJnzW3Mu.js → KeyEntry-Cug8ocpX.js} +1 -1
  37. package/dist/client/assets/{LexicalField-BxzNvIjJ.js → LexicalField-Bv_ogmAq.js} +1 -1
  38. package/dist/client/assets/{ManagesPage-BQj8KbYA.js → ManagesPage-DfJBQKK3.js} +1 -1
  39. package/dist/client/assets/{Marketplace-CIG5_a_H.js → Marketplace-swCVUbdY.js} +2 -2
  40. package/dist/client/assets/{MarketplaceSourcesView-16HKvFK-.js → MarketplaceSourcesView-CDZDChpV.js} +1 -1
  41. package/dist/client/assets/{McpAppFrame-5xlga1jD.js → McpAppFrame-BM9cNPPd.js} +1 -1
  42. package/dist/client/assets/McpSigninBody-DKyUKrEE.js +1 -0
  43. package/dist/client/assets/{Model3dViewer-CQ0sA_kr.js → Model3dViewer-rXSL5y2P.js} +1 -1
  44. package/dist/client/assets/NamePage-JwMDK1JD.js +1 -0
  45. package/dist/client/assets/{NewDirectMessageMenu-D092y0K9.js → NewDirectMessageMenu-GCEMS5oV.js} +1 -1
  46. package/dist/client/assets/{NotificationsPage-CskOPdhh.js → NotificationsPage-DSWsOVLa.js} +1 -1
  47. package/dist/client/assets/{OpenMeshSwitch-BHRm328L.js → OpenMeshSwitch-BTuctDj4.js} +2 -2
  48. package/dist/client/assets/OperatorIdentityForm-ODDMd2YN.js +1 -0
  49. package/dist/client/assets/PermissionHistory-41a58Se7.js +1 -0
  50. package/dist/client/assets/{PermissionsPage-XuPOSYll.js → PermissionsPage-DefmymZ6.js} +1 -1
  51. package/dist/client/assets/{PersonalityPopover-BrZjxakx.js → PersonalityPopover-7zPVBI1I.js} +1 -1
  52. package/dist/client/assets/PhotoPage-DlOVhkW9.js +1 -0
  53. package/dist/client/assets/{PreviewRefusedNotice-BANdpT9O.js → PreviewRefusedNotice-CwGlBJ7U.js} +1 -1
  54. package/dist/client/assets/{ProfileFields-Dp68ebW9.js → ProfileFields-DVMkpJSb.js} +1 -1
  55. package/dist/client/assets/{ProfilePanelContainer-BKwGdI90.js → ProfilePanelContainer-RrhoPD3T.js} +1 -1
  56. package/dist/client/assets/{ProfileRolePicker-ClOdfLda.js → ProfileRolePicker-CXRVBCAu.js} +1 -1
  57. package/dist/client/assets/{PromptSuggestionChips-zcW4UJ_O.js → PromptSuggestionChips-bBroJdTi.js} +1 -1
  58. package/dist/client/assets/{ReportsToPopover-BwDVGqFg.js → ReportsToPopover-CfPatsWM.js} +1 -1
  59. package/dist/client/assets/{RoomSurface-CSKIvyHH.js → RoomSurface-CdgCdV6h.js} +10 -10
  60. package/dist/client/assets/{RoomsPage-CAvrRbPk.js → RoomsPage-C3dDp1Mb.js} +1 -1
  61. package/dist/client/assets/{RunsOnPopover-CQ4t9EZ-.js → RunsOnPopover-BcKjfQi-.js} +1 -1
  62. package/dist/client/assets/{RuntimeConnectFlow--fVpIf0B.js → RuntimeConnectFlow-DCIRnvOH.js} +1 -1
  63. package/dist/client/assets/{RuntimeSetupDialog-COpyPrqL.js → RuntimeSetupDialog-Bg-0b-LC.js} +1 -1
  64. package/dist/client/assets/SeenDevices-nMsGUQTv.js +19 -0
  65. package/dist/client/assets/{SessionsPage-FDyYzuXs.js → SessionsPage-Cqfx4FGW.js} +1 -1
  66. package/dist/client/assets/SettingsDialog-C8r2igJ_.js +12 -0
  67. package/dist/client/assets/{SkillsPage-PLXEY0LB.js → SkillsPage-BleHQavF.js} +1 -1
  68. package/dist/client/assets/TaskDialogWrapper-BhTEvf-u.js +1 -0
  69. package/dist/client/assets/{TasksEmptyState-8RZxhRh6.js → TasksEmptyState-Bprx1k8M.js} +2 -2
  70. package/dist/client/assets/{TasksPage-C-EtQXKb.js → TasksPage-Dub39yEJ.js} +1 -1
  71. package/dist/client/assets/{TeamComputerEntry-qx_19Htj.js → TeamComputerEntry-CJ-NG0u5.js} +1 -1
  72. package/dist/client/assets/ToolsPage-IsD6M-ZW.js +2 -0
  73. package/dist/client/assets/{TopologyGraph-1wtG1BE9.js → TopologyGraph-CwyasvFI.js} +2 -2
  74. package/dist/client/assets/{TourHost-C664E8OY.js → TourHost-BYfztuPb.js} +1 -1
  75. package/dist/client/assets/{UnlinkDialog-Di1oBFA_.js → UnlinkDialog-BKhgxVdF.js} +1 -1
  76. package/dist/client/assets/{WidgetErrorCard-BfgGzyqg.js → WidgetErrorCard-1NyzIJBj.js} +7 -7
  77. package/dist/client/assets/_shell-Ct2Bz7D0.js +80 -0
  78. package/dist/client/assets/{_shell._home-Hz78BY6-.js → _shell._home-xWj7wO5z.js} +1 -1
  79. package/dist/client/assets/{_shell._home.activity-BxvI0gkw.js → _shell._home.activity-BqcLoaB1.js} +1 -1
  80. package/dist/client/assets/{_shell._home.index-Cqq81f3P.js → _shell._home.index-D4sQsKKk.js} +1 -1
  81. package/dist/client/assets/{_shell._home.tasks-Cth56CwC.js → _shell._home.tasks--UhQB6h3.js} +1 -1
  82. package/dist/client/assets/{_shell._home.workspaces-DkoOJSWz.js → _shell._home.workspaces-BPFD8Of2.js} +1 -1
  83. package/dist/client/assets/_shell.channels-CnFdvRzc.js +10 -0
  84. package/dist/client/assets/_shell.connections-Ik01wS5M.js +1 -0
  85. package/dist/client/assets/{_shell.feedback-requests-BTxHdsfb.js → _shell.feedback-requests-Czu42kzo.js} +2 -2
  86. package/dist/client/assets/_shell.marketplace-Cezv-i16.js +1 -0
  87. package/dist/client/assets/_shell.marketplace_.sources-BTENmr4W.js +1 -0
  88. package/dist/client/assets/_shell.session-BjevHF_O.js +63 -0
  89. package/dist/client/assets/{_shell.team-ZxGwa39m.js → _shell.team-UfaJqohh.js} +4 -4
  90. package/dist/client/assets/_shell.x._extensionId-0OO_Xr72.js +1 -0
  91. package/dist/client/assets/_shell.x._extensionId_._-0OO_Xr72.js +1 -0
  92. package/dist/client/assets/{abnfDiagram-WEYOIA3C-CzqPVMdw.js → abnfDiagram-WEYOIA3C-oxkfGyl6.js} +1 -1
  93. package/dist/client/assets/{access-copy-Dj09Xk4b.js → access-copy-Dggxx2cX.js} +1 -1
  94. package/dist/client/assets/{arc-Bgy7ExYl.js → arc-CqQdP0Qe.js} +1 -1
  95. package/dist/client/assets/{architectureDiagram-ZHVYKT53-DYfb2p9r.js → architectureDiagram-ZHVYKT53-89xM7zJD.js} +1 -1
  96. package/dist/client/assets/{banner-dlsHTWSf.js → banner-DqJ2pM0Y.js} +1 -1
  97. package/dist/client/assets/{blockDiagram-RJAE7QA3-BkOzLL8s.js → blockDiagram-RJAE7QA3-CcxwDmZC.js} +1 -1
  98. package/dist/client/assets/{c4Diagram-XDPPPE54-CsZm4qpD.js → c4Diagram-XDPPPE54-DCIhIyXa.js} +1 -1
  99. package/dist/client/assets/{card-Dj6ZfRgu.js → card-DT-vFAns.js} +1 -1
  100. package/dist/client/assets/channel-Ngk70nQZ.js +1 -0
  101. package/dist/client/assets/{chunk-2E7WHVMD-GA96Jfps.js → chunk-2E7WHVMD-BfWEXcCj.js} +1 -1
  102. package/dist/client/assets/{chunk-2Q5K7J3B-CW2i0IkT.js → chunk-2Q5K7J3B-KLXLZXlR.js} +1 -1
  103. package/dist/client/assets/{chunk-4EMNKR2T-BwFvnPZg.js → chunk-4EMNKR2T-CL5Gttmj.js} +1 -1
  104. package/dist/client/assets/{chunk-55XCU76K-MOezzAAB.js → chunk-55XCU76K-cfAl84Mv.js} +1 -1
  105. package/dist/client/assets/{chunk-5VM5RSS4-woru6zOC.js → chunk-5VM5RSS4-BqUyGgoH.js} +1 -1
  106. package/dist/client/assets/{chunk-JWPE2WC7-CUrKlP2M.js → chunk-JWPE2WC7-BWr2ST9i.js} +1 -1
  107. package/dist/client/assets/{chunk-VQ5W62QI-CqZ2cdEu.js → chunk-VQ5W62QI-V5zYx50O.js} +1 -1
  108. package/dist/client/assets/{chunk-XXDRQBXY-ByAcvWaE.js → chunk-XXDRQBXY-gnvheN_J.js} +1 -1
  109. package/dist/client/assets/{chunk-ZCHMQSOR-3nkba9kj.js → chunk-ZCHMQSOR-ClGxxZvV.js} +2 -2
  110. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-B-zZKAmI.js → classDiagram-v2-4MYWR3UA-DvmHzDb5.js} +1 -1
  111. package/dist/client/assets/{command-BAOEURY7.js → command-CNx4L11m.js} +1 -1
  112. package/dist/client/assets/{cose-bilkent-JH36ORCC-sCKxRv1H.js → cose-bilkent-JH36ORCC-Df8nXBRj.js} +1 -1
  113. package/dist/client/assets/{cpu-TtYQqONc.js → cpu-D8KJEkdh.js} +1 -1
  114. package/dist/client/assets/{cynefin-EF2NZ3EQ-CXzvL5Cg.js → cynefin-EF2NZ3EQ-CAn6ufHs.js} +1 -1
  115. package/dist/client/assets/{cynefinDiagram-WF24UDRP-C0wjhu9X.js → cynefinDiagram-WF24UDRP-Cep_NrRw.js} +1 -1
  116. package/dist/client/assets/{dagre-NK4GIZVX-Doi2IPkY.js → dagre-NK4GIZVX-sWD3z9wf.js} +1 -1
  117. package/dist/client/assets/{diagram-CBK3MWTC-11TVuPel.js → diagram-CBK3MWTC-CUpaBATr.js} +1 -1
  118. package/dist/client/assets/{diagram-I5XIIV2D-CJq7fHFM.js → diagram-I5XIIV2D-BejWB2ry.js} +1 -1
  119. package/dist/client/assets/{diagram-ODIL2UCW-2Ae6unuU.js → diagram-ODIL2UCW-BGKJfNk9.js} +1 -1
  120. package/dist/client/assets/{diagram-PFBEJUXE-BXza6_iz.js → diagram-PFBEJUXE-V0dP8H8k.js} +1 -1
  121. package/dist/client/assets/{diagram-RJA3I4VV-Z0i3uBW9.js → diagram-RJA3I4VV-Bf5dVsFX.js} +1 -1
  122. package/dist/client/assets/{diagram-TYUNFSNR-Dq_-g1oP.js → diagram-TYUNFSNR-CLrMSqb4.js} +1 -1
  123. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-vxzIvg-W.js → ebnfDiagram-V4P3TTPT-BGG4CWA0.js} +1 -1
  124. package/dist/client/assets/{elk-QONTBCTQ-BBIXXtg_.js → elk-QONTBCTQ-bf9D6f0w.js} +1 -1
  125. package/dist/client/assets/{empty-state-kISAAp0z.js → empty-state-CDoXnrKn.js} +1 -1
  126. package/dist/client/assets/{erDiagram-KYQIGQAA-Bk2MeLBx.js → erDiagram-KYQIGQAA-fEUv-33P.js} +1 -1
  127. package/dist/client/assets/{execution-config-DYFe-VNC.js → execution-config-Ca9MDOtV.js} +1 -1
  128. package/dist/client/assets/{file-DEt4KgZG.js → file-CiyVL55_.js} +1 -1
  129. package/dist/client/assets/{file-exclamation-point-QqXJhXD9.js → file-exclamation-point-DaFRIKco.js} +1 -1
  130. package/dist/client/assets/{file-text-CRw31ZWd.js → file-text-DsnD-A8g.js} +1 -1
  131. package/dist/client/assets/{find-latest-widget-fence-B3aaiBNI.js → find-latest-widget-fence-CNsnCgbB.js} +1 -1
  132. package/dist/client/assets/{flowDiagram-IUGLLWBU-B53m4r8u.js → flowDiagram-IUGLLWBU-CRbeSDod.js} +1 -1
  133. package/dist/client/assets/{form-Bjhk9zOn.js → form-Cru78aT-.js} +1 -1
  134. package/dist/client/assets/{format-cron-9tmNIcgl.js → format-cron-9K38-tn1.js} +1 -1
  135. package/dist/client/assets/{ganttDiagram-R7GPNTJY-CS6TN3R1.js → ganttDiagram-R7GPNTJY-Mkk7zgs_.js} +1 -1
  136. package/dist/client/assets/{git-branch-DWerghmw.js → git-branch-CONwEYiR.js} +1 -1
  137. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-D096ZtqE.js → gitGraphDiagram-PDYL7XHY-Drre0vyA.js} +1 -1
  138. package/dist/client/assets/{graph-DQpTuPmX.js → graph-BJlnKWgo.js} +1 -1
  139. package/dist/client/assets/{heart-CRkjVW7-.js → heart-CqwUlIUG.js} +1 -1
  140. package/dist/client/assets/{highlighted-body-KPVGNVTW-DoVCXOMU.js → highlighted-body-KPVGNVTW-e4LXC_pS.js} +1 -1
  141. package/dist/client/assets/image-lightbox-DHDtzoja.js +1 -0
  142. package/dist/client/assets/{image-off-VyMBVwgK.js → image-off-DZuLkaRJ.js} +2 -2
  143. package/dist/client/assets/{index-DN2sTT2U.js → index-1yEXEZiH.js} +1 -1
  144. package/dist/client/assets/{index-BBcAekWE.js → index-A41zxoWk.js} +1 -1
  145. package/dist/client/assets/{index-CEVwhauU.js → index-B25gvCK_.js} +1 -1
  146. package/dist/client/assets/index-B9bZYNKR.js +1 -0
  147. package/dist/client/assets/{index-TnoaFCrj.js → index-BBmkfbXd.js} +1 -1
  148. package/dist/client/assets/{index-CvhR1oZB.js → index-BDD2EyoW.js} +1 -1
  149. package/dist/client/assets/{index-BcFMs7lK.js → index-BFNy-Yp3.js} +1 -1
  150. package/dist/client/assets/{index-CyGRWyhV.js → index-BIB-maE5.js} +1 -1
  151. package/dist/client/assets/{index-DBo2XfNv.js → index-BKp2B9JS.js} +1 -1
  152. package/dist/client/assets/index-BLP5O7X9.js +1 -0
  153. package/dist/client/assets/{index-2EaVZrJe.js → index-BTjZIgFn.js} +1 -1
  154. package/dist/client/assets/{index-DKWpwwxo.js → index-BV2Ezdxv.js} +1 -1
  155. package/dist/client/assets/{index-igLqtuoO.js → index-B_0LYi32.js} +1 -1
  156. package/dist/client/assets/{index-BpjEclkM.js → index-Bd7vUYhr.js} +1 -1
  157. package/dist/client/assets/{index-_emDKzsu.js → index-Bo7x9IkO.js} +1 -1
  158. package/dist/client/assets/{index-C3sW6rkN.js → index-BtDxwJsM.js} +22 -20
  159. package/dist/client/assets/{index-C6Fo2htT.js → index-By58MgcZ.js} +1 -1
  160. package/dist/client/assets/index-C3cvP8Fo.js +1033 -0
  161. package/dist/client/assets/{index-Cs3WB8yn.js → index-CVuEUzi5.js} +1 -1
  162. package/dist/client/assets/{index-n3-zWcH-.js → index-CoWJD3Jg.js} +2 -2
  163. package/dist/client/assets/{index-Ctqe81qr.js → index-CyVH876g.js} +1 -1
  164. package/dist/client/assets/index-D67Kfy-M.js +1 -0
  165. package/dist/client/assets/{index-C6udJCgz.js → index-DAlpmAIA.js} +1 -1
  166. package/dist/client/assets/{index-setKr4xl.js → index-DDNwNOHF.js} +1 -1
  167. package/dist/client/assets/{index-COMRALJO.js → index-DL8ISRMH.js} +1 -1
  168. package/dist/client/assets/{index-Czm6C7FZ.js → index-DabU6r9W.js} +3 -3
  169. package/dist/client/assets/{index-CDuYKaGY.js → index-DdJBZE0H.js} +1 -1
  170. package/dist/client/assets/{index-CiVeycsn.js → index-DijWcSDZ.js} +5 -5
  171. package/dist/client/assets/index-DyRGZyur.css +1 -0
  172. package/dist/client/assets/{index-DmFNztTX.js → index-DzwZJuO1.js} +1 -1
  173. package/dist/client/assets/{index-Csr_C1sk.js → index-HR8BYVRQ.js} +1 -1
  174. package/dist/client/assets/{index-BLkXoquZ.js → index-LEcodwyW.js} +1 -1
  175. package/dist/client/assets/index-UPF8suf2.js +1 -0
  176. package/dist/client/assets/{index-rCvQat0D.js → index-Vz7VUm9l.js} +1 -1
  177. package/dist/client/assets/index-YW-v746p.js +1 -0
  178. package/dist/client/assets/{index-DgyhdQnI.js → index-cI2u8WZS.js} +1 -1
  179. package/dist/client/assets/{index-DNzk9m1D.js → index-iTQUa_b2.js} +3 -3
  180. package/dist/client/assets/{index-b9p_y2Ql.js → index-mZqojApH.js} +1 -1
  181. package/dist/client/assets/{index-gIQ7FrL9.js → index-pVFjKNjX.js} +1 -1
  182. package/dist/client/assets/{index-t3eRSGcT.js → index-skAhJyIF.js} +1 -1
  183. package/dist/client/assets/{index-BiFJIg4n.js → index-vJy88bwb.js} +1 -1
  184. package/dist/client/assets/index-wY5OcS4a.js +43 -0
  185. package/dist/client/assets/{index-B2rBVMNl.js → index-x1yAu9zJ.js} +1 -1
  186. package/dist/client/assets/index-xAgihCJ7.js +1 -0
  187. package/dist/client/assets/{index.esm-bLeQzVWT.js → index.esm-BUPoRUaG.js} +1 -1
  188. package/dist/client/assets/{infoDiagram-MVDRKAX5-nN_N76Fn.js → infoDiagram-MVDRKAX5-B_Wyzufh.js} +1 -1
  189. package/dist/client/assets/{inline-code-D9bLKHjY.js → inline-code-BIzGDx6z.js} +1 -1
  190. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-CiLFbWXd.js → ishikawaDiagram-HPEHV2GE-BDk2-6Pd.js} +1 -1
  191. package/dist/client/assets/{journeyDiagram-BOSHW7O7-Dn3yOv96.js → journeyDiagram-BOSHW7O7-7qf9KWEQ.js} +1 -1
  192. package/dist/client/assets/{kanban-definition-FNSA4HC5-JxiBdBQC.js → kanban-definition-FNSA4HC5-CFYDQmXn.js} +1 -1
  193. package/dist/client/assets/{layers-DTnLoRvE.js → layers-C9tVVcXg.js} +1 -1
  194. package/dist/client/assets/{lightbulb-CRKLr5q3.js → lightbulb-f4jtsAh0.js} +1 -1
  195. package/dist/client/assets/{link-2-hgHg-lyw.js → link-2-ZNlK1BG1.js} +1 -1
  196. package/dist/client/assets/{list-runtime-types-Bb33QiMC.js → list-runtime-types-CqO-QFYD.js} +1 -1
  197. package/dist/client/assets/{markdown-content-D0FpU2cz.js → markdown-content-DaEVxezf.js} +1 -1
  198. package/dist/client/assets/{mention-pill-uuaUvwSW.js → mention-pill-BiCPflY-.js} +1 -1
  199. package/dist/client/assets/{mermaid.core-x3Hh6iut.js → mermaid.core-SX8SzrsU.js} +4 -4
  200. package/dist/client/assets/{message-square-off-B8N6YF9R.js → message-square-off-_qbedNGF.js} +1 -1
  201. package/dist/client/assets/{mindmap-definition-6OY57UG3-D0SEv5Re.js → mindmap-definition-6OY57UG3-BloJIArH.js} +1 -1
  202. package/dist/client/assets/{more-details-CadxnGyH.js → more-details-CdJT0Ehl.js} +1 -1
  203. package/dist/client/assets/{owner-notice-CJHyha58.js → owner-notice-BDafFD_I.js} +1 -1
  204. package/dist/client/assets/{package-B8G7jQm-.js → package-Cb7lEm7t.js} +1 -1
  205. package/dist/client/assets/{page-container-Bb-_N7lw.js → page-container-DsRgIMAL.js} +1 -1
  206. package/dist/client/assets/{paperclip-BDeYGKqh.js → paperclip-DNu1VtoX.js} +1 -1
  207. package/dist/client/assets/{path-input-BIfexEKz.js → path-input-D3O71b-X.js} +1 -1
  208. package/dist/client/assets/{pegDiagram-ECIUJNBX-7ivMd0-b.js → pegDiagram-ECIUJNBX-Di48kPNu.js} +1 -1
  209. package/dist/client/assets/{pieDiagram-GNMPY74T-DGDkbFvu.js → pieDiagram-GNMPY74T-DY8B_SPD.js} +1 -1
  210. package/dist/client/assets/{plug-wP1d6OUX.js → plug-IIS_cL9-.js} +1 -1
  211. package/dist/client/assets/{primer-trigger-CEli_z4n.js → primer-trigger-DurKYe8C.js} +2 -2
  212. package/dist/client/assets/{profile-errors-C1qSJkiG.js → profile-errors-BdhZfdvZ.js} +1 -1
  213. package/dist/client/assets/{progress-DmUieXLn.js → progress-g5kkqvlR.js} +1 -1
  214. package/dist/client/assets/{quadrantDiagram-D57K4MC3-AFQRVSsK.js → quadrantDiagram-D57K4MC3-Depv_dON.js} +1 -1
  215. package/dist/client/assets/{query-error-state--8AnWSSn.js → query-error-state-PuLGD7Jp.js} +1 -1
  216. package/dist/client/assets/{radio-mkA-Sqe0.js → radio-QOLZSBz1.js} +1 -1
  217. package/dist/client/assets/{railroadDiagram-Y72NRBL7-3QBa2d3j.js → railroadDiagram-Y72NRBL7-BfD2AiZM.js} +1 -1
  218. package/dist/client/assets/registry-Ck8p6n1T.js +1 -0
  219. package/dist/client/assets/{relay-trace-schemas-fScydQ3A.js → relay-trace-schemas-DF_DfZ7s.js} +2 -2
  220. package/dist/client/assets/{requirementDiagram-EQYSW5RA-BVBqcASy.js → requirementDiagram-EQYSW5RA-B1iTjrkD.js} +1 -1
  221. package/dist/client/assets/{room-files-source-BhkPUTiP.js → room-files-source-g1th8mWs.js} +2 -2
  222. package/dist/client/assets/{rotate-ccw-clock-DiuTseKz.js → rotate-ccw-clock-BGwYMaGL.js} +1 -1
  223. package/dist/client/assets/{rotate-cw-DvoxWwSx.js → rotate-cw-B4Y0q4GY.js} +1 -1
  224. package/dist/client/assets/{sankeyDiagram-SY24JHO5-DFjfOD38.js → sankeyDiagram-SY24JHO5-D5TzVJrQ.js} +1 -1
  225. package/dist/client/assets/{scroll-area-DYyyRqW_.js → scroll-area-BvScZKSa.js} +1 -1
  226. package/dist/client/assets/{search-x-CA-FzEqZ.js → search-x-CqN5twBj.js} +1 -1
  227. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-Cr9LzoSF.js → sequenceDiagram-BLEHNHQU-BhUahaNf.js} +1 -1
  228. package/dist/client/assets/{shield-x-B0W_7qwR.js → shield-x-DHJrwtKp.js} +1 -1
  229. package/dist/client/assets/{signed-in-X2utDqQS.js → signed-in-BmywDpR5.js} +1 -1
  230. package/dist/client/assets/{sizeCapture-INFHLROL-Do_jfNyT.js → sizeCapture-INFHLROL-D2Vi1Kq9.js} +1 -1
  231. package/dist/client/assets/{soul-file-DgfhKQIK.js → soul-file-BMpVFN7U.js} +1 -1
  232. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BCi9yk_0.js → stateDiagram-v2-A6IESKWZ-b9gSbZnF.js} +1 -1
  233. package/dist/client/assets/{swimlanes-B3ENRKFQ-3SSAw2av.js → swimlanes-B3ENRKFQ-i47jxLY6.js} +1 -1
  234. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CA9gW19w.js +8 -0
  235. package/dist/client/assets/{table-DvU_oS4E.js → table-CN2HCi4p.js} +1 -1
  236. package/dist/client/assets/{terminal-Dw2QZ7Dh.js → terminal-BORQniao.js} +1 -1
  237. package/dist/client/assets/{timeline-definition-JXYKGLGB-DTLPXTMA.js → timeline-definition-JXYKGLGB-eY5gj0js.js} +1 -1
  238. package/dist/client/assets/{trust-posture-2MR0ap9o.js → trust-posture-Bcyy5Fub.js} +1 -1
  239. package/dist/client/assets/{unplug-CAVOLB2R.js → unplug-lkD35Rwp.js} +1 -1
  240. package/dist/client/assets/{unverified-catalog-notice-u4ikVg8J.js → unverified-catalog-notice-DiCIrrhU.js} +1 -1
  241. package/dist/client/assets/{use-adapter-catalog-BQKfRxXC.js → use-adapter-catalog-BrqVd-47.js} +1 -1
  242. package/dist/client/assets/{use-bindings-BV6HA0MD.js → use-bindings-CU2RSXOy.js} +1 -1
  243. package/dist/client/assets/{use-composer-prefs-DCSzOnEO.js → use-composer-prefs-Dy2oTM8Y.js} +1 -1
  244. package/dist/client/assets/{use-connector-management-fr1tx-GZ.js → use-connector-management-5oRqzydY.js} +1 -1
  245. package/dist/client/assets/{use-deep-link-scroll-v02TbidQ.js → use-deep-link-scroll-Bg5nW8qq.js} +1 -1
  246. package/dist/client/assets/{use-delete-binding-CnziYpXo.js → use-delete-binding-qeyRkvR1.js} +1 -1
  247. package/dist/client/assets/{use-dev-links-k4YWFO1v.js → use-dev-links-FY4J_PjA.js} +1 -1
  248. package/dist/client/assets/{use-external-adapter-catalog-DoGUfa2F.js → use-external-adapter-catalog-HiWFZZrW.js} +1 -1
  249. package/dist/client/assets/{use-full-activity-feed-CQNxgxnw.js → use-full-activity-feed-K1uk9Wya.js} +1 -1
  250. package/dist/client/assets/use-is-below-desktop-Cu_jKnft.js +1 -0
  251. package/dist/client/assets/use-is-hub-BX7ypNRJ.js +1 -0
  252. package/dist/client/assets/{use-jump-back-in-BuO6A0P7.js → use-jump-back-in-BjZ8EswV.js} +3 -3
  253. package/dist/client/assets/{use-local-browser-BNzN5O1P.js → use-local-browser-CTFiF0wf.js} +1 -1
  254. package/dist/client/assets/{use-mesh-topology-CpIDE8lD.js → use-mesh-topology-CafidaIH.js} +1 -1
  255. package/dist/client/assets/{use-mounted-ref-BAO3qunF.js → use-mounted-ref-B38uSLCx.js} +1 -1
  256. package/dist/client/assets/{use-notification-prefs-CtqeH5Pk.js → use-notification-prefs-m9XSNB6W.js} +1 -1
  257. package/dist/client/assets/{use-panel-tab-placements-DFobGBRm.js → use-panel-tab-placements-D9n6rNJ1.js} +1 -1
  258. package/dist/client/assets/use-pending-read-BoV-UI1E.js +1 -0
  259. package/dist/client/assets/{use-personality-commit-BvqCwzAC.js → use-personality-commit-ChLQfLrK.js} +1 -1
  260. package/dist/client/assets/{use-promo-activation-Dz5cYm-X.js → use-promo-activation-DbJDgp4_.js} +3 -3
  261. package/dist/client/assets/{use-promo-dismissals-CuOsnqnZ.js → use-promo-dismissals-Csw0j0N0.js} +1 -1
  262. package/dist/client/assets/{use-pulse-freshness-qcTH6PM7.js → use-pulse-freshness-BIZ7daHW.js} +1 -1
  263. package/dist/client/assets/{use-relay-config-1mAMDNbc.js → use-relay-config-hUB3lVFv.js} +1 -1
  264. package/dist/client/assets/{use-room-follow-claim-CCGhsyH3.js → use-room-follow-claim-BpKzhniV.js} +1 -1
  265. package/dist/client/assets/{use-roving-tab-list-Bsg2dfUx.js → use-roving-tab-list-BtM0bZL7.js} +1 -1
  266. package/dist/client/assets/{use-session-canvas-awPngMKg.js → use-session-canvas-DRrkNRcL.js} +3 -3
  267. package/dist/client/assets/use-session-diagnostics-BTNgouum.js +16 -0
  268. package/dist/client/assets/{use-unclaimed-chats-Db_wuzt0.js → use-unclaimed-chats-BbMZtNG9.js} +1 -1
  269. package/dist/client/assets/use-update-config-CkWwKNkY.js +1 -0
  270. package/dist/client/assets/{useMutationState-BvwBDXKc.js → useMutationState-CVpvw27W.js} +1 -1
  271. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-1zKygEKR.js → usecaseDiagram-WPOLBNNX-CHcpeLg4.js} +1 -1
  272. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BR2EbgGY.js → vennDiagram-Q3Y3IDCW-gQbZL_A6.js} +1 -1
  273. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-D0OwouJc.js → wardleyDiagram-IVAIDKWA-BFH_WHzZ.js} +1 -1
  274. package/dist/client/assets/{xychartDiagram-4URNHDU4-BM-7_FQQ.js → xychartDiagram-4URNHDU4-B0QpyqeZ.js} +1 -1
  275. package/dist/client/index.html +2 -2
  276. package/dist/drizzle/20261018210140_remote_command_agent_computer_kind.sql +21 -0
  277. package/dist/drizzle/20261019142317_turn_marks.sql +3 -0
  278. package/dist/drizzle/20261019185620_dor3037_wifi_holds.sql +8 -0
  279. package/dist/drizzle/meta/20261018210140_snapshot.json +14027 -0
  280. package/dist/drizzle/meta/20261019142317_snapshot.json +14048 -0
  281. package/dist/drizzle/meta/20261019185620_snapshot.json +14079 -0
  282. package/dist/drizzle/meta/_journal.json +21 -0
  283. package/dist/server/extension-child.cjs +18 -2
  284. package/dist/server/index.js +64322 -32299
  285. package/dist/server/index.js.map +2 -2
  286. package/package.json +4 -4
  287. package/dist/client/assets/ApplyToOverridesDialog-CrqkeHQb.js +0 -1
  288. package/dist/client/assets/HandlePage-BKiqymRF.js +0 -1
  289. package/dist/client/assets/McpSigninBody-COIHpHq_.js +0 -1
  290. package/dist/client/assets/NamePage-D7W6VMYd.js +0 -1
  291. package/dist/client/assets/OperatorIdentityForm-C3op6BIC.js +0 -1
  292. package/dist/client/assets/PermissionHistory-CKebTVkq.js +0 -1
  293. package/dist/client/assets/PhotoPage-Ch1at4A6.js +0 -1
  294. package/dist/client/assets/SeenDevices-BPw3UgjX.js +0 -19
  295. package/dist/client/assets/SettingsDialog-Bdws5dbS.js +0 -12
  296. package/dist/client/assets/TaskDialogWrapper-CTcW70s8.js +0 -1
  297. package/dist/client/assets/ToolsPage-D5-fx1EA.js +0 -2
  298. package/dist/client/assets/_shell-BLTSXXDw.js +0 -80
  299. package/dist/client/assets/_shell.channels-D_GQU4RB.js +0 -10
  300. package/dist/client/assets/_shell.connections-DZrlxs4G.js +0 -1
  301. package/dist/client/assets/_shell.marketplace-CZxkAmFz.js +0 -1
  302. package/dist/client/assets/_shell.marketplace_.sources-Q0BTQIuE.js +0 -1
  303. package/dist/client/assets/_shell.session-DvGL0DoX.js +0 -63
  304. package/dist/client/assets/_shell.x._extensionId-B6Tm5KuT.js +0 -1
  305. package/dist/client/assets/_shell.x._extensionId_._-B6Tm5KuT.js +0 -1
  306. package/dist/client/assets/channel-CGffcDRq.js +0 -1
  307. package/dist/client/assets/image-lightbox-BXzbN27o.js +0 -1
  308. package/dist/client/assets/index-1qv8ldHx.js +0 -1
  309. package/dist/client/assets/index-8-iQ6PnT.js +0 -1028
  310. package/dist/client/assets/index-BFitbVs4.js +0 -1
  311. package/dist/client/assets/index-C24HfJir.js +0 -1
  312. package/dist/client/assets/index-CI84yP-g.js +0 -1
  313. package/dist/client/assets/index-D5zUdnZM.js +0 -1
  314. package/dist/client/assets/index-DUZrTFYD.css +0 -1
  315. package/dist/client/assets/index-DX_2Mxwv.js +0 -1
  316. package/dist/client/assets/index-Dgrk2udV.js +0 -38
  317. package/dist/client/assets/registry-Bnd-HFt3.js +0 -1
  318. package/dist/client/assets/shield-check-CpUB_Ju1.js +0 -6
  319. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-jpZCGfva.js +0 -8
  320. package/dist/client/assets/use-is-below-desktop-DR8FEbRW.js +0 -1
  321. package/dist/client/assets/use-is-hub-BmpgFnFp.js +0 -1
  322. package/dist/client/assets/use-pending-read-Do0_vZ2I.js +0 -1
  323. package/dist/client/assets/use-session-diagnostics-D5g8Mc52.js +0 -16
  324. package/dist/client/assets/use-update-config-DwtH_H9Z.js +0 -1
@@ -1,4 +1,4 @@
1
- import{l2 as JFn,R as GFn,r as sn,j as ae,e3 as Ihn,iI as HFn,jU as qFn,hF as zFn,l3 as UFn,ar as cN,bx as Tge,B as Phn,aj as Ohn,G as n2,aO as Sge,b7 as Ige,b6 as XFn,_ as iN,f as KFn,iB as WFn,X as VFn,en as Lln,em as QFn,ai as YFn,ap as ZFn,l4 as eBn,hL as nBn,bW as AX,fq as tBn,x as $ln,hJ as iBn,hu as rBn,g9 as cBn,ga as uBn,gb as oBn,gc as sBn,gd as fBn,ge as lBn,gf as hBn,gg as aBn,h0 as dBn}from"./index-8-iQ6PnT.js";import{s as $0,g as Nhn,j as Pge,T as fge,k as lge,t as bBn}from"./transform-BqqRT-Iy.js";import{i as hge}from"./value-wA6veExk.js";import{H as $X}from"./_shell.team-ZxGwa39m.js";import{H as wBn}from"./heart-CRkjVW7-.js";import{a as age,A as gBn}from"./AdapterIcon-DVgTrgnM.js";import"./relay-trace-schemas-fScydQ3A.js";import{d as pBn,c as mBn,a as vBn,B as yBn}from"./BindingDialog-DVyxVXZM.js";import{s as kBn}from"./session-strategy-labels-C7Wduch3.js";import{c as MX}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{u as jBn}from"./use-mesh-topology-CpIDE8lD.js";import{E as EBn}from"./empty-state-kISAAp0z.js";import{Q as ABn}from"./query-error-state--8AnWSSn.js";import{u as MBn}from"./use-bindings-BV6HA0MD.js";import{u as CBn}from"./use-delete-binding-CnziYpXo.js";import{u as xBn}from"./use-relay-config-1mAMDNbc.js";import"./use-pending-read-Do0_vZ2I.js";import"./search-x-CA-FzEqZ.js";import"./scroll-area-DYyyRqW_.js";import"./OpenMeshSwitch-BHRm328L.js";import"./table-DvU_oS4E.js";import"./use-is-hub-BmpgFnFp.js";import"./shield-check-CpUB_Ju1.js";import"./page-container-Bb-_N7lw.js";import"./profile-errors-C1qSJkiG.js";import"./CommitmentList-uK4CKaz0.js";import"./TeamComputerEntry-qx_19Htj.js";import"./ComputerViewer-D87LhxwL.js";import"./form-Bjhk9zOn.js";import"./use-adapter-catalog-BQKfRxXC.js";import"./trust-posture-2MR0ap9o.js";function Kf(p){if(typeof p=="string"||typeof p=="number")return""+p;let E="";if(Array.isArray(p))for(let P=0,N;P<p.length;P++)(N=Kf(p[P]))!==""&&(E+=(E&&" ")+N);else for(let P in p)p[P]&&(E+=(E&&" ")+P);return E}function TBn(p){let E;for(;E=p.sourceEvent;)p=E;return p}function Yg(p,E){if(p=TBn(p),E===void 0&&(E=p.currentTarget),E){var P=E.ownerSVGElement||E;if(P.createSVGPoint){var N=P.createSVGPoint();return N.x=p.clientX,N.y=p.clientY,N=N.matrixTransform(E.getScreenCTM().inverse()),[N.x,N.y]}if(E.getBoundingClientRect){var D=E.getBoundingClientRect();return[p.clientX-D.left-E.clientLeft,p.clientY-D.top-E.clientTop]}}return[p.pageX,p.pageY]}const SBn={passive:!1},uN={capture:!0,passive:!1};function dge(p){p.stopImmediatePropagation()}function CA(p){p.preventDefault(),p.stopImmediatePropagation()}function Dhn(p){var E=p.document.documentElement,P=$0(p).on("dragstart.drag",CA,uN);"onselectstart"in E?P.on("selectstart.drag",CA,uN):(E.__noselect=E.style.MozUserSelect,E.style.MozUserSelect="none")}function Lhn(p,E){var P=p.document.documentElement,N=$0(p).on("dragstart.drag",null);E&&(N.on("click.drag",CA,uN),setTimeout(function(){N.on("click.drag",null)},0)),"onselectstart"in P?N.on("selectstart.drag",null):(P.style.MozUserSelect=P.__noselect,delete P.__noselect)}const CX=p=>()=>p;function kge(p,{sourceEvent:E,subject:P,target:N,identifier:D,active:F,x:v,y:q,dx:te,dy:ie,dispatch:pe}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},subject:{value:P,enumerable:!0,configurable:!0},target:{value:N,enumerable:!0,configurable:!0},identifier:{value:D,enumerable:!0,configurable:!0},active:{value:F,enumerable:!0,configurable:!0},x:{value:v,enumerable:!0,configurable:!0},y:{value:q,enumerable:!0,configurable:!0},dx:{value:te,enumerable:!0,configurable:!0},dy:{value:ie,enumerable:!0,configurable:!0},_:{value:pe}})}kge.prototype.on=function(){var p=this._.on.apply(this._,arguments);return p===this._?this:p};function IBn(p){return!p.ctrlKey&&!p.button}function PBn(){return this.parentNode}function OBn(p,E){return E??{x:p.x,y:p.y}}function NBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function $hn(){var p=IBn,E=PBn,P=OBn,N=NBn,D={},F=Nhn("start","drag","end"),v=0,q,te,ie,pe,oe=0;function z(Me){Me.on("mousedown.drag",Z).filter(N).on("touchstart.drag",xe).on("touchmove.drag",ce,SBn).on("touchend.drag touchcancel.drag",ge).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(Me,Ke){if(!(pe||!p.call(this,Me,Ke))){var Xe=ee(this,E.call(this,Me,Ke),Me,Ke,"mouse");Xe&&($0(Me.view).on("mousemove.drag",ne,uN).on("mouseup.drag",U,uN),Dhn(Me.view),dge(Me),ie=!1,q=Me.clientX,te=Me.clientY,Xe("start",Me))}}function ne(Me){if(CA(Me),!ie){var Ke=Me.clientX-q,Xe=Me.clientY-te;ie=Ke*Ke+Xe*Xe>oe}D.mouse("drag",Me)}function U(Me){$0(Me.view).on("mousemove.drag mouseup.drag",null),Lhn(Me.view,ie),CA(Me),D.mouse("end",Me)}function xe(Me,Ke){if(p.call(this,Me,Ke)){var Xe=Me.changedTouches,Ye=E.call(this,Me,Ke),kn=Xe.length,jn,Zn;for(jn=0;jn<kn;++jn)(Zn=ee(this,Ye,Me,Ke,Xe[jn].identifier,Xe[jn]))&&(dge(Me),Zn("start",Me,Xe[jn]))}}function ce(Me){var Ke=Me.changedTouches,Xe=Ke.length,Ye,kn;for(Ye=0;Ye<Xe;++Ye)(kn=D[Ke[Ye].identifier])&&(CA(Me),kn("drag",Me,Ke[Ye]))}function ge(Me){var Ke=Me.changedTouches,Xe=Ke.length,Ye,kn;for(pe&&clearTimeout(pe),pe=setTimeout(function(){pe=null},500),Ye=0;Ye<Xe;++Ye)(kn=D[Ke[Ye].identifier])&&(dge(Me),kn("end",Me,Ke[Ye]))}function ee(Me,Ke,Xe,Ye,kn,jn){var Zn=F.copy(),$n=Yg(jn||Xe,Ke),Vn,_,je;if((je=P.call(Me,new kge("beforestart",{sourceEvent:Xe,target:z,identifier:kn,active:v,x:$n[0],y:$n[1],dx:0,dy:0,dispatch:Zn}),Ye))!=null)return Vn=je.x-$n[0]||0,_=je.y-$n[1]||0,function on(rn,Sn,Bn){var dn=$n,Gn;switch(rn){case"start":D[kn]=on,Gn=v++;break;case"end":delete D[kn],--v;case"drag":$n=Yg(Bn||Sn,Ke),Gn=v;break}Zn.call(rn,Me,new kge(rn,{sourceEvent:Sn,subject:je,target:z,identifier:kn,active:Gn,x:$n[0]+Vn,y:$n[1]+_,dx:$n[0]-dn[0],dy:$n[1]-dn[1],dispatch:Zn}),Ye)}}return z.filter=function(Me){return arguments.length?(p=typeof Me=="function"?Me:CX(!!Me),z):p},z.container=function(Me){return arguments.length?(E=typeof Me=="function"?Me:CX(Me),z):E},z.subject=function(Me){return arguments.length?(P=typeof Me=="function"?Me:CX(Me),z):P},z.touchable=function(Me){return arguments.length?(N=typeof Me=="function"?Me:CX(!!Me),z):N},z.on=function(){var Me=F.on.apply(F,arguments);return Me===F?z:Me},z.clickDistance=function(Me){return arguments.length?(oe=(Me=+Me)*Me,z):Math.sqrt(oe)},z}var DBn=1e-12;function Fln(p){return((p=Math.exp(p))+1/p)/2}function LBn(p){return((p=Math.exp(p))-1/p)/2}function $Bn(p){return((p=Math.exp(2*p))-1)/(p+1)}const NX=(function p(E,P,N){function D(F,v){var q=F[0],te=F[1],ie=F[2],pe=v[0],oe=v[1],z=v[2],Z=pe-q,ne=oe-te,U=Z*Z+ne*ne,xe,ce;if(U<DBn)ce=Math.log(z/ie)/E,xe=function(Ye){return[q+Ye*Z,te+Ye*ne,ie*Math.exp(E*Ye*ce)]};else{var ge=Math.sqrt(U),ee=(z*z-ie*ie+N*U)/(2*ie*P*ge),Me=(z*z-ie*ie-N*U)/(2*z*P*ge),Ke=Math.log(Math.sqrt(ee*ee+1)-ee),Xe=Math.log(Math.sqrt(Me*Me+1)-Me);ce=(Xe-Ke)/E,xe=function(Ye){var kn=Ye*ce,jn=Fln(Ke),Zn=ie/(P*ge)*(jn*$Bn(E*kn+Ke)-LBn(Ke));return[q+Zn*Z,te+Zn*ne,ie*jn/Fln(E*kn+Ke)]}}return xe.duration=ce*1e3*E/Math.SQRT2,xe}return D.rho=function(F){var v=Math.max(.001,+F),q=v*v,te=q*q;return p(v,q,te)},D})(Math.SQRT2,2,4),xX=p=>()=>p;function FBn(p,{sourceEvent:E,target:P,transform:N,dispatch:D}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:P,enumerable:!0,configurable:!0},transform:{value:N,enumerable:!0,configurable:!0},_:{value:D}})}function bge(p){p.stopImmediatePropagation()}function tN(p){p.preventDefault(),p.stopImmediatePropagation()}function BBn(p){return(!p.ctrlKey||p.type==="wheel")&&!p.button}function RBn(){var p=this;return p instanceof SVGElement?(p=p.ownerSVGElement||p,p.hasAttribute("viewBox")?(p=p.viewBox.baseVal,[[p.x,p.y],[p.x+p.width,p.y+p.height]]):[[0,0],[p.width.baseVal.value,p.height.baseVal.value]]):[[0,0],[p.clientWidth,p.clientHeight]]}function Bln(){return this.__zoom||Pge}function _Bn(p){return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*(p.ctrlKey?10:1)}function JBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function GBn(p,E,P){var N=p.invertX(E[0][0])-P[0][0],D=p.invertX(E[1][0])-P[1][0],F=p.invertY(E[0][1])-P[0][1],v=p.invertY(E[1][1])-P[1][1];return p.translate(D>N?(N+D)/2:Math.min(0,N)||Math.max(0,D),v>F?(F+v)/2:Math.min(0,F)||Math.max(0,v))}function Fhn(){var p=BBn,E=RBn,P=GBn,N=_Bn,D=JBn,F=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],q=250,te=NX,ie=Nhn("start","zoom","end"),pe,oe,z,Z=500,ne=150,U=0,xe=10;function ce(je){je.property("__zoom",Bln).on("wheel.zoom",kn,{passive:!1}).on("mousedown.zoom",jn).on("dblclick.zoom",Zn).filter(D).on("touchstart.zoom",$n).on("touchmove.zoom",Vn).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}ce.transform=function(je,on,rn,Sn){var Bn=je.selection?je.selection():je;Bn.property("__zoom",Bln),je!==Bn?Ke(je,on,rn,Sn):Bn.interrupt().each(function(){Xe(this,arguments).event(Sn).start().zoom(null,typeof on=="function"?on.apply(this,arguments):on).end()})},ce.scaleBy=function(je,on,rn,Sn){ce.scaleTo(je,function(){var Bn=this.__zoom.k,dn=typeof on=="function"?on.apply(this,arguments):on;return Bn*dn},rn,Sn)},ce.scaleTo=function(je,on,rn,Sn){ce.transform(je,function(){var Bn=E.apply(this,arguments),dn=this.__zoom,Gn=rn==null?Me(Bn):typeof rn=="function"?rn.apply(this,arguments):rn,Nn=dn.invert(Gn),qn=typeof on=="function"?on.apply(this,arguments):on;return P(ee(ge(dn,qn),Gn,Nn),Bn,v)},rn,Sn)},ce.translateBy=function(je,on,rn,Sn){ce.transform(je,function(){return P(this.__zoom.translate(typeof on=="function"?on.apply(this,arguments):on,typeof rn=="function"?rn.apply(this,arguments):rn),E.apply(this,arguments),v)},null,Sn)},ce.translateTo=function(je,on,rn,Sn,Bn){ce.transform(je,function(){var dn=E.apply(this,arguments),Gn=this.__zoom,Nn=Sn==null?Me(dn):typeof Sn=="function"?Sn.apply(this,arguments):Sn;return P(Pge.translate(Nn[0],Nn[1]).scale(Gn.k).translate(typeof on=="function"?-on.apply(this,arguments):-on,typeof rn=="function"?-rn.apply(this,arguments):-rn),dn,v)},Sn,Bn)};function ge(je,on){return on=Math.max(F[0],Math.min(F[1],on)),on===je.k?je:new fge(on,je.x,je.y)}function ee(je,on,rn){var Sn=on[0]-rn[0]*je.k,Bn=on[1]-rn[1]*je.k;return Sn===je.x&&Bn===je.y?je:new fge(je.k,Sn,Bn)}function Me(je){return[(+je[0][0]+ +je[1][0])/2,(+je[0][1]+ +je[1][1])/2]}function Ke(je,on,rn,Sn){je.on("start.zoom",function(){Xe(this,arguments).event(Sn).start()}).on("interrupt.zoom end.zoom",function(){Xe(this,arguments).event(Sn).end()}).tween("zoom",function(){var Bn=this,dn=arguments,Gn=Xe(Bn,dn).event(Sn),Nn=E.apply(Bn,dn),qn=rn==null?Me(Nn):typeof rn=="function"?rn.apply(Bn,dn):rn,Jt=Math.max(Nn[1][0]-Nn[0][0],Nn[1][1]-Nn[0][1]),Kt=Bn.__zoom,Oi=typeof on=="function"?on.apply(Bn,dn):on,gr=te(Kt.invert(qn).concat(Jt/Kt.k),Oi.invert(qn).concat(Jt/Oi.k));return function(Ki){if(Ki===1)Ki=Oi;else{var Kn=gr(Ki),ei=Jt/Kn[2];Ki=new fge(ei,qn[0]-Kn[0]*ei,qn[1]-Kn[1]*ei)}Gn.zoom(null,Ki)}})}function Xe(je,on,rn){return!rn&&je.__zooming||new Ye(je,on)}function Ye(je,on){this.that=je,this.args=on,this.active=0,this.sourceEvent=null,this.extent=E.apply(je,on),this.taps=0}Ye.prototype={event:function(je){return je&&(this.sourceEvent=je),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(je,on){return this.mouse&&je!=="mouse"&&(this.mouse[1]=on.invert(this.mouse[0])),this.touch0&&je!=="touch"&&(this.touch0[1]=on.invert(this.touch0[0])),this.touch1&&je!=="touch"&&(this.touch1[1]=on.invert(this.touch1[0])),this.that.__zoom=on,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(je){var on=$0(this.that).datum();ie.call(je,this.that,new FBn(je,{sourceEvent:this.sourceEvent,target:ce,transform:this.that.__zoom,dispatch:ie}),on)}};function kn(je,...on){if(!p.apply(this,arguments))return;var rn=Xe(this,on).event(je),Sn=this.__zoom,Bn=Math.max(F[0],Math.min(F[1],Sn.k*Math.pow(2,N.apply(this,arguments)))),dn=Yg(je);if(rn.wheel)(rn.mouse[0][0]!==dn[0]||rn.mouse[0][1]!==dn[1])&&(rn.mouse[1]=Sn.invert(rn.mouse[0]=dn)),clearTimeout(rn.wheel);else{if(Sn.k===Bn)return;rn.mouse=[dn,Sn.invert(dn)],lge(this),rn.start()}tN(je),rn.wheel=setTimeout(Gn,ne),rn.zoom("mouse",P(ee(ge(Sn,Bn),rn.mouse[0],rn.mouse[1]),rn.extent,v));function Gn(){rn.wheel=null,rn.end()}}function jn(je,...on){if(z||!p.apply(this,arguments))return;var rn=je.currentTarget,Sn=Xe(this,on,!0).event(je),Bn=$0(je.view).on("mousemove.zoom",qn,!0).on("mouseup.zoom",Jt,!0),dn=Yg(je,rn),Gn=je.clientX,Nn=je.clientY;Dhn(je.view),bge(je),Sn.mouse=[dn,this.__zoom.invert(dn)],lge(this),Sn.start();function qn(Kt){if(tN(Kt),!Sn.moved){var Oi=Kt.clientX-Gn,gr=Kt.clientY-Nn;Sn.moved=Oi*Oi+gr*gr>U}Sn.event(Kt).zoom("mouse",P(ee(Sn.that.__zoom,Sn.mouse[0]=Yg(Kt,rn),Sn.mouse[1]),Sn.extent,v))}function Jt(Kt){Bn.on("mousemove.zoom mouseup.zoom",null),Lhn(Kt.view,Sn.moved),tN(Kt),Sn.event(Kt).end()}}function Zn(je,...on){if(p.apply(this,arguments)){var rn=this.__zoom,Sn=Yg(je.changedTouches?je.changedTouches[0]:je,this),Bn=rn.invert(Sn),dn=rn.k*(je.shiftKey?.5:2),Gn=P(ee(ge(rn,dn),Sn,Bn),E.apply(this,on),v);tN(je),q>0?$0(this).transition().duration(q).call(Ke,Gn,Sn,je):$0(this).call(ce.transform,Gn,Sn,je)}}function $n(je,...on){if(p.apply(this,arguments)){var rn=je.touches,Sn=rn.length,Bn=Xe(this,on,je.changedTouches.length===Sn).event(je),dn,Gn,Nn,qn;for(bge(je),Gn=0;Gn<Sn;++Gn)Nn=rn[Gn],qn=Yg(Nn,this),qn=[qn,this.__zoom.invert(qn),Nn.identifier],Bn.touch0?!Bn.touch1&&Bn.touch0[2]!==qn[2]&&(Bn.touch1=qn,Bn.taps=0):(Bn.touch0=qn,dn=!0,Bn.taps=1+!!pe);pe&&(pe=clearTimeout(pe)),dn&&(Bn.taps<2&&(oe=qn[0],pe=setTimeout(function(){pe=null},Z)),lge(this),Bn.start())}}function Vn(je,...on){if(this.__zooming){var rn=Xe(this,on).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Gn,Nn,qn;for(tN(je),dn=0;dn<Bn;++dn)Gn=Sn[dn],Nn=Yg(Gn,this),rn.touch0&&rn.touch0[2]===Gn.identifier?rn.touch0[0]=Nn:rn.touch1&&rn.touch1[2]===Gn.identifier&&(rn.touch1[0]=Nn);if(Gn=rn.that.__zoom,rn.touch1){var Jt=rn.touch0[0],Kt=rn.touch0[1],Oi=rn.touch1[0],gr=rn.touch1[1],Ki=(Ki=Oi[0]-Jt[0])*Ki+(Ki=Oi[1]-Jt[1])*Ki,Kn=(Kn=gr[0]-Kt[0])*Kn+(Kn=gr[1]-Kt[1])*Kn;Gn=ge(Gn,Math.sqrt(Ki/Kn)),Nn=[(Jt[0]+Oi[0])/2,(Jt[1]+Oi[1])/2],qn=[(Kt[0]+gr[0])/2,(Kt[1]+gr[1])/2]}else if(rn.touch0)Nn=rn.touch0[0],qn=rn.touch0[1];else return;rn.zoom("touch",P(ee(Gn,Nn,qn),rn.extent,v))}}function _(je,...on){if(this.__zooming){var rn=Xe(this,on).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Gn;for(bge(je),z&&clearTimeout(z),z=setTimeout(function(){z=null},Z),dn=0;dn<Bn;++dn)Gn=Sn[dn],rn.touch0&&rn.touch0[2]===Gn.identifier?delete rn.touch0:rn.touch1&&rn.touch1[2]===Gn.identifier&&delete rn.touch1;if(rn.touch1&&!rn.touch0&&(rn.touch0=rn.touch1,delete rn.touch1),rn.touch0)rn.touch0[1]=this.__zoom.invert(rn.touch0[0]);else if(rn.end(),rn.taps===2&&(Gn=Yg(Gn,this),Math.hypot(oe[0]-Gn[0],oe[1]-Gn[1])<xe)){var Nn=$0(this).on("dblclick.zoom");Nn&&Nn.apply(this,arguments)}}}return ce.wheelDelta=function(je){return arguments.length?(N=typeof je=="function"?je:xX(+je),ce):N},ce.filter=function(je){return arguments.length?(p=typeof je=="function"?je:xX(!!je),ce):p},ce.touchable=function(je){return arguments.length?(D=typeof je=="function"?je:xX(!!je),ce):D},ce.extent=function(je){return arguments.length?(E=typeof je=="function"?je:xX([[+je[0][0],+je[0][1]],[+je[1][0],+je[1][1]]]),ce):E},ce.scaleExtent=function(je){return arguments.length?(F[0]=+je[0],F[1]=+je[1],ce):[F[0],F[1]]},ce.translateExtent=function(je){return arguments.length?(v[0][0]=+je[0][0],v[1][0]=+je[1][0],v[0][1]=+je[0][1],v[1][1]=+je[1][1],ce):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},ce.constrain=function(je){return arguments.length?(P=je,ce):P},ce.duration=function(je){return arguments.length?(q=+je,ce):q},ce.interpolate=function(je){return arguments.length?(te=je,ce):te},ce.on=function(){var je=ie.on.apply(ie,arguments);return je===ie?ce:je},ce.clickDistance=function(je){return arguments.length?(U=(je=+je)*je,ce):Math.sqrt(U)},ce.tapDistance=function(je){return arguments.length?(xe=+je,ce):xe},ce}const t2={error001:(p="react")=>`Seems like you have not used ${p==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${p}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:p=>`Node type "${p}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:p=>`The old edge with id=${p} does not exist.`,error009:p=>`Marker type "${p}" doesn't exist.`,error008:(p,{id:E,sourceHandle:P,targetHandle:N})=>`Couldn't create edge for ${p} handle id: "${p==="source"?P:N}", edge id: ${E}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:p=>`Edge type "${p}" not found. Using fallback type "default".`,error012:p=>`Node with id "${p}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(p="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${p}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:p=>`Edge with id "${p}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},oN=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Bhn=["Enter"," ","Escape"],Rhn={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:p,x:E,y:P})=>`Moved selected node ${p}. New position, x: ${E}, y: ${P}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var xA;(function(p){p.Strict="strict",p.Loose="loose"})(xA||(xA={}));var V8;(function(p){p.Free="free",p.Vertical="vertical",p.Horizontal="horizontal"})(V8||(V8={}));var sN;(function(p){p.Partial="partial",p.Full="full"})(sN||(sN={}));const _hn={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var J5;(function(p){p.Bezier="default",p.Straight="straight",p.Step="step",p.SmoothStep="smoothstep",p.SimpleBezier="simplebezier"})(J5||(J5={}));var fN;(function(p){p.Arrow="arrow",p.ArrowClosed="arrowclosed"})(fN||(fN={}));var ji;(function(p){p.Left="left",p.Top="top",p.Right="right",p.Bottom="bottom"})(ji||(ji={}));const Rln={[ji.Left]:ji.Right,[ji.Right]:ji.Left,[ji.Top]:ji.Bottom,[ji.Bottom]:ji.Top},Jhn=p=>!!p&&typeof p=="object"&&"id"in p&&"source"in p&&"target"in p,HBn=p=>!!p&&typeof p=="object"&&"id"in p&&"position"in p&&!("source"in p)&&!("target"in p),Oge=p=>!!p&&typeof p=="object"&&"id"in p&&"internals"in p&&!("source"in p)&&!("target"in p),dN=(p,E=[0,0])=>{const{width:P,height:N}=i2(p),D=p.origin??E,F=P*D[0],v=N*D[1];return{x:p.position.x-F,y:p.position.y-v}},qBn=(p,E={nodeOrigin:[0,0]})=>{if(p.length===0)return{x:0,y:0,width:0,height:0};let P=!1;const N=p.reduce((D,F)=>{const v=typeof F=="string";let q=!E.nodeLookup&&!v?F:void 0;return E.nodeLookup&&(q=v?E.nodeLookup.get(F):Oge(F)?F:E.nodeLookup.get(F.id)),q?(P=!0,JX(D,FX(q,E.nodeOrigin))):D},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return P?GX(N):{x:0,y:0,width:0,height:0}},PA=(p,E={})=>{let P={x:1/0,y:1/0,x2:-1/0,y2:-1/0},N=!1;return p.forEach(D=>{(E.filter===void 0||E.filter(D))&&(P=JX(P,FX(D)),N=!0)}),N?GX(P):{x:0,y:0,width:0,height:0}},Nge=(p,E,[P,N,D]=[0,0,1],F=!1,v=!1)=>{const q=(E.x-P)/D,te=(E.y-N)/D,ie=E.width/D,pe=E.height/D,oe=[];for(const z of p.values()){const{measured:Z,selectable:ne=!0,hidden:U=!1}=z;if(v&&!ne||U)continue;const xe=Z.width??z.width??z.initialWidth??0,ce=Z.height??z.height??z.initialHeight??0,{x:ge,y:ee}=z.internals.positionAbsolute,Me=zhn(q,te,ie,pe,ge,ee,xe,ce),Ke=xe*ce,Xe=F&&Me>0;(!z.internals.handleBounds||Xe||Me>=Ke||z.dragging)&&oe.push(z)}return oe},zBn=(p,E)=>{const P=new Set;return p.forEach(N=>{P.add(N.id)}),E.filter(N=>P.has(N.source)||P.has(N.target))};function UBn(p,E){const P=new Map,N=E!=null&&E.nodes?new Set(E.nodes.map(D=>D.id)):null;return p.forEach(D=>{let F;if(E!=null&&E.includeHiddenNodes){const{width:v,height:q}=i2(D);F=v>0&&q>0}else F=!!(D.measured.width&&D.measured.height&&!D.hidden);F&&(!N||N.has(D.id))&&P.set(D.id,D)}),P}async function XBn({nodes:p,width:E,height:P,panZoom:N,minZoom:D,maxZoom:F},v){if(p.size===0)return!0;const q=UBn(p,v),te=PA(q),ie=Lge(te,E,P,(v==null?void 0:v.minZoom)??D,(v==null?void 0:v.maxZoom)??F,(v==null?void 0:v.padding)??.1);return await N.setViewport(ie,{duration:v==null?void 0:v.duration,ease:v==null?void 0:v.ease,interpolate:v==null?void 0:v.interpolate}),!0}function Ghn({nodeId:p,nextPosition:E,nodeLookup:P,nodeOrigin:N=[0,0],nodeExtent:D,onError:F}){const v=P.get(p),q=v.parentId?P.get(v.parentId):void 0,{x:te,y:ie}=q?q.internals.positionAbsolute:{x:0,y:0},pe=v.origin??N;let oe=v.extent||D;if(v.extent==="parent"&&!v.expandParent)if(!q)F==null||F("005",t2.error005());else{const{width:Z,height:ne}=i2(q);Z&&ne&&(oe=[[te,ie],[te+Z,ie+ne]])}else q&&Y8(v.extent)&&(oe=[[v.extent[0][0]+te,v.extent[0][1]+ie],[v.extent[1][0]+te,v.extent[1][1]+ie]]);const z=Y8(oe)?Q8(E,oe,v.measured):E;return(v.measured.width===void 0||v.measured.height===void 0)&&(F==null||F("015",t2.error015())),{position:{x:z.x-te+(v.measured.width??0)*pe[0],y:z.y-ie+(v.measured.height??0)*pe[1]},positionAbsolute:z}}async function KBn({nodesToRemove:p=[],edgesToRemove:E=[],nodes:P,edges:N,onBeforeDelete:D}){const F=new Set(p.map(z=>z.id)),v=[];for(const z of P){if(z.deletable===!1)continue;const Z=F.has(z.id),ne=!Z&&z.parentId&&v.find(U=>U.id===z.parentId);(Z||ne)&&v.push(z)}const q=new Set(E.map(z=>z.id)),te=N.filter(z=>z.deletable!==!1),pe=zBn(v,te);for(const z of te)q.has(z.id)&&!pe.find(ne=>ne.id===z.id)&&pe.push(z);if(!D)return{edges:pe,nodes:v};const oe=await D({nodes:v,edges:pe});return typeof oe=="boolean"?oe?{edges:pe,nodes:v}:{edges:[],nodes:[]}:oe}const TA=(p,E=0,P=1)=>Math.min(Math.max(p,E),P),Q8=(p={x:0,y:0},E,P)=>({x:TA(p.x,E[0][0],E[1][0]-((P==null?void 0:P.width)??0)),y:TA(p.y,E[0][1],E[1][1]-((P==null?void 0:P.height)??0))});function Hhn(p,E,P){const{width:N,height:D}=i2(P),{x:F,y:v}=P.internals.positionAbsolute;return Q8(p,[[F,v],[F+N,v+D]],E)}const _ln=(p,E,P)=>p<E?TA(Math.abs(p-E),1,E)/E:p>P?-TA(Math.abs(p-P),1,E)/E:0,Dge=(p,E,P=15,N=40)=>{const D=_ln(p.x,N,E.width-N)*P,F=_ln(p.y,N,E.height-N)*P;return[D,F]},JX=(p,E)=>({x:Math.min(p.x,E.x),y:Math.min(p.y,E.y),x2:Math.max(p.x2,E.x2),y2:Math.max(p.y2,E.y2)}),jge=({x:p,y:E,width:P,height:N})=>({x:p,y:E,x2:p+P,y2:E+N}),GX=({x:p,y:E,x2:P,y2:N})=>({x:p,y:E,width:P-p,height:N-E}),lN=(p,E=[0,0])=>{var D,F;const{x:P,y:N}=Oge(p)?p.internals.positionAbsolute:dN(p,E);return{x:P,y:N,width:((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0,height:((F=p.measured)==null?void 0:F.height)??p.height??p.initialHeight??0}},FX=(p,E=[0,0])=>{var D,F;const{x:P,y:N}=Oge(p)?p.internals.positionAbsolute:dN(p,E);return{x:P,y:N,x2:P+(((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0),y2:N+(((F=p.measured)==null?void 0:F.height)??p.height??p.initialHeight??0)}},qhn=(p,E)=>GX(JX(jge(p),jge(E))),zhn=(p,E,P,N,D,F,v,q)=>{const te=Math.max(0,Math.min(p+P,D+v)-Math.max(p,D)),ie=Math.max(0,Math.min(E+N,F+q)-Math.max(E,F));return Math.ceil(te*ie)},BX=(p,E)=>zhn(p.x,p.y,p.width,p.height,E.x,E.y,E.width,E.height),Jln=p=>Zg(p.width)&&Zg(p.height)&&Zg(p.x)&&Zg(p.y),Zg=p=>!isNaN(p)&&isFinite(p),Uhn=(p,E)=>(P,N)=>{},bN=(p,E=[1,1])=>({x:E[0]*Math.round(p.x/E[0]),y:E[1]*Math.round(p.y/E[1])}),wN=({x:p,y:E},[P,N,D],F=!1,v=[1,1])=>{const q={x:(p-P)/D,y:(E-N)/D};return F?bN(q,v):q},SA=({x:p,y:E},[P,N,D])=>({x:p*D+P,y:E*D+N});function AA(p,E){if(typeof p=="number")return Math.floor((E-E/(1+p))*.5);if(typeof p=="string"&&p.endsWith("px")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(P)}if(typeof p=="string"&&p.endsWith("%")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(E*P*.01)}return console.error(`The padding value "${p}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function WBn(p,E,P){if(typeof p=="string"||typeof p=="number"){const N=AA(p,P),D=AA(p,E);return{top:N,right:D,bottom:N,left:D,x:D*2,y:N*2}}if(typeof p=="object"){const N=AA(p.top??p.y??0,P),D=AA(p.bottom??p.y??0,P),F=AA(p.left??p.x??0,E),v=AA(p.right??p.x??0,E);return{top:N,right:v,bottom:D,left:F,x:F+v,y:N+D}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function VBn(p,E,P,N,D,F){const{x:v,y:q}=SA(p,[E,P,N]),{x:te,y:ie}=SA({x:p.x+p.width,y:p.y+p.height},[E,P,N]),pe=D-te,oe=F-ie;return{left:Math.floor(v),top:Math.floor(q),right:Math.floor(pe),bottom:Math.floor(oe)}}const Lge=(p,E,P,N,D,F)=>{const v=WBn(F,E,P),q=(E-v.x)/p.width,te=(P-v.y)/p.height,ie=Math.min(q,te),pe=TA(ie,N,D),oe=p.x+p.width/2,z=p.y+p.height/2,Z=E/2-oe*pe,ne=P/2-z*pe,U=VBn(p,Z,ne,pe,E,P),xe={left:Math.min(U.left-v.left,0),top:Math.min(U.top-v.top,0),right:Math.min(U.right-v.right,0),bottom:Math.min(U.bottom-v.bottom,0)};return{x:Z-xe.left+xe.right,y:ne-xe.top+xe.bottom,zoom:pe}},hN=()=>{var p;return typeof navigator<"u"&&((p=navigator==null?void 0:navigator.userAgent)==null?void 0:p.indexOf("Mac"))>=0};function Y8(p){return p!=null&&p!=="parent"}function i2(p){var E,P;return{width:((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth??0,height:((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight??0}}function Xhn(p){var E,P;return(((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth)!==void 0&&(((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight)!==void 0}function Khn(p,E={width:0,height:0},P,N,D){const F={...p},v=N.get(P);if(v){const q=v.origin||D;F.x+=v.internals.positionAbsolute.x-(E.width??0)*q[0],F.y+=v.internals.positionAbsolute.y-(E.height??0)*q[1]}return F}function Gln(p,E){if(p.size!==E.size)return!1;for(const P of p)if(!E.has(P))return!1;return!0}function QBn(){let p,E;return{promise:new Promise((N,D)=>{p=N,E=D}),resolve:p,reject:E}}function YBn(p){return{...Rhn,...p||{}}}function Whn(p){return p===null?null:p?"valid":"invalid"}function rN(p,{snapGrid:E=[0,0],snapToGrid:P=!1,transform:N,containerBounds:D}){const{x:F,y:v}=e2(p),q=wN({x:F-((D==null?void 0:D.left)??0),y:v-((D==null?void 0:D.top)??0)},N),{x:te,y:ie}=P?bN(q,E):q;return{xSnapped:te,ySnapped:ie,...q}}const $ge=p=>({width:p.offsetWidth,height:p.offsetHeight}),Vhn=p=>{var E;return((E=p==null?void 0:p.getRootNode)==null?void 0:E.call(p))||(window==null?void 0:window.document)},ZBn=["INPUT","SELECT","TEXTAREA"];function Qhn(p){var N,D;const E=((D=(N=p.composedPath)==null?void 0:N.call(p))==null?void 0:D[0])||p.target;return(E==null?void 0:E.nodeType)!==1?!1:ZBn.includes(E.nodeName)||E.hasAttribute("contenteditable")||!!E.closest(".nokey")}const Yhn=p=>"clientX"in p,e2=(p,E)=>{var F,v;const P=Yhn(p),N=P?p.clientX:(F=p.touches)==null?void 0:F[0].clientX,D=P?p.clientY:(v=p.touches)==null?void 0:v[0].clientY;return{x:N-((E==null?void 0:E.left)??0),y:D-((E==null?void 0:E.top)??0)}},Hln=(p,E,P,N,D)=>{const F=E.querySelectorAll(`.${p}`);return!F||!F.length?null:Array.from(F).map(v=>{const q=v.getBoundingClientRect();return{id:v.getAttribute("data-handleid"),type:p,nodeId:D,position:v.getAttribute("data-handlepos"),x:(q.left-P.left)/N,y:(q.top-P.top)/N,...$ge(v)}})};function Zhn({sourceX:p,sourceY:E,targetX:P,targetY:N,sourceControlX:D,sourceControlY:F,targetControlX:v,targetControlY:q}){const te=p*.125+D*.375+v*.375+P*.125,ie=E*.125+F*.375+q*.375+N*.125,pe=Math.abs(te-p),oe=Math.abs(ie-E);return[te,ie,pe,oe]}function TX(p,E){return p>=0?.5*p:E*25*Math.sqrt(-p)}function qln({pos:p,x1:E,y1:P,x2:N,y2:D,c:F}){switch(p){case ji.Left:return[E-TX(E-N,F),P];case ji.Right:return[E+TX(N-E,F),P];case ji.Top:return[E,P-TX(P-D,F)];case ji.Bottom:return[E,P+TX(D-P,F)]}}function gN({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:F=ji.Top,curvature:v=.25}){const[q,te]=qln({pos:P,x1:p,y1:E,x2:N,y2:D,c:v}),[ie,pe]=qln({pos:F,x1:N,y1:D,x2:p,y2:E,c:v}),[oe,z,Z,ne]=Zhn({sourceX:p,sourceY:E,targetX:N,targetY:D,sourceControlX:q,sourceControlY:te,targetControlX:ie,targetControlY:pe});return[`M${p},${E} C${q},${te} ${ie},${pe} ${N},${D}`,oe,z,Z,ne]}function ean({sourceX:p,sourceY:E,targetX:P,targetY:N}){const D=Math.abs(P-p)/2,F=P<p?P+D:P-D,v=Math.abs(N-E)/2,q=N<E?N+v:N-v;return[F,q,D,v]}function eRn({sourceNode:p,targetNode:E,selected:P=!1,zIndex:N=0,elevateOnSelect:D=!1,zIndexMode:F="basic"}){if(F==="manual")return N;const v=D&&P?N+1e3:N,q=Math.max(p.parentId||D&&p.selected?p.internals.z:0,E.parentId||D&&E.selected?E.internals.z:0);return v+q}function nRn({sourceNode:p,targetNode:E,width:P,height:N,transform:D}){const F=JX(FX(p),FX(E));F.x===F.x2&&(F.x2+=1),F.y===F.y2&&(F.y2+=1);const v={x:-D[0]/D[2],y:-D[1]/D[2],width:P/D[2],height:N/D[2]};return BX(v,GX(F))>0}const tRn=({source:p,sourceHandle:E,target:P,targetHandle:N})=>`xy-edge__${p}${E||""}-${P}${N||""}`,iRn=(p,E)=>E.some(P=>P.source===p.source&&P.target===p.target&&(P.sourceHandle===p.sourceHandle||!P.sourceHandle&&!p.sourceHandle)&&(P.targetHandle===p.targetHandle||!P.targetHandle&&!p.targetHandle)),rRn=(p,E,P={})=>{var F;if(!p.source||!p.target)return(F=P.onError)==null||F.call(P,"006",t2.error006()),E;const N=P.getEdgeId||tRn;let D;return Jhn(p)?D={...p}:D={...p,id:N(p)},iRn(D,E)?E:(D.sourceHandle===null&&delete D.sourceHandle,D.targetHandle===null&&delete D.targetHandle,E.concat(D))};function nan({sourceX:p,sourceY:E,targetX:P,targetY:N}){const[D,F,v,q]=ean({sourceX:p,sourceY:E,targetX:P,targetY:N});return[`M ${p},${E}L ${P},${N}`,D,F,v,q]}const zln={[ji.Left]:{x:-1,y:0},[ji.Right]:{x:1,y:0},[ji.Top]:{x:0,y:-1},[ji.Bottom]:{x:0,y:1}},cRn=({source:p,sourcePosition:E=ji.Bottom,target:P})=>E===ji.Left||E===ji.Right?p.x<P.x?{x:1,y:0}:{x:-1,y:0}:p.y<P.y?{x:0,y:1}:{x:0,y:-1},Uln=(p,E)=>Math.sqrt(Math.pow(E.x-p.x,2)+Math.pow(E.y-p.y,2));function uRn({source:p,sourcePosition:E=ji.Bottom,target:P,targetPosition:N=ji.Top,center:D,offset:F,stepPosition:v}){const q=zln[E],te=zln[N],ie={x:p.x+q.x*F,y:p.y+q.y*F},pe={x:P.x+te.x*F,y:P.y+te.y*F},oe=cRn({source:ie,sourcePosition:E,target:pe}),z=oe.x!==0?"x":"y",Z=oe[z];let ne=[],U,xe;const ce={x:0,y:0},ge={x:0,y:0},[,,ee,Me]=ean({sourceX:p.x,sourceY:p.y,targetX:P.x,targetY:P.y});if(q[z]*te[z]===-1){z==="x"?(U=D.x??ie.x+(pe.x-ie.x)*v,xe=D.y??(ie.y+pe.y)/2):(U=D.x??(ie.x+pe.x)/2,xe=D.y??ie.y+(pe.y-ie.y)*v);const kn=[{x:U,y:ie.y},{x:U,y:pe.y}],jn=[{x:ie.x,y:xe},{x:pe.x,y:xe}];q[z]===Z?ne=z==="x"?kn:jn:ne=z==="x"?jn:kn}else{const kn=[{x:ie.x,y:pe.y}],jn=[{x:pe.x,y:ie.y}];if(z==="x"?ne=q.x===Z?jn:kn:ne=q.y===Z?kn:jn,E===N){const je=Math.abs(p[z]-P[z]);if(je<=F){const on=Math.min(F-1,F-je);q[z]===Z?ce[z]=(ie[z]>p[z]?-1:1)*on:ge[z]=(pe[z]>P[z]?-1:1)*on}}if(E!==N){const je=z==="x"?"y":"x",on=q[z]===te[je],rn=ie[je]>pe[je],Sn=ie[je]<pe[je];(q[z]===1&&(!on&&rn||on&&Sn)||q[z]!==1&&(!on&&Sn||on&&rn))&&(ne=z==="x"?kn:jn)}const Zn={x:ie.x+ce.x,y:ie.y+ce.y},$n={x:pe.x+ge.x,y:pe.y+ge.y},Vn=Math.max(Math.abs(Zn.x-ne[0].x),Math.abs($n.x-ne[0].x)),_=Math.max(Math.abs(Zn.y-ne[0].y),Math.abs($n.y-ne[0].y));Vn>=_?(U=(Zn.x+$n.x)/2,xe=ne[0].y):(U=ne[0].x,xe=(Zn.y+$n.y)/2)}const Ke={x:ie.x+ce.x,y:ie.y+ce.y},Xe={x:pe.x+ge.x,y:pe.y+ge.y};return[[p,...Ke.x!==ne[0].x||Ke.y!==ne[0].y?[Ke]:[],...ne,...Xe.x!==ne[ne.length-1].x||Xe.y!==ne[ne.length-1].y?[Xe]:[],P],U,xe,ee,Me]}function oRn(p,E,P,N){const D=Math.min(Uln(p,E)/2,Uln(E,P)/2,N),{x:F,y:v}=E;if(p.x===F&&F===P.x||p.y===v&&v===P.y)return`L${F} ${v}`;if(p.y===v){const ie=p.x<P.x?-1:1,pe=p.y<P.y?1:-1;return`L ${F+D*ie},${v}Q ${F},${v} ${F},${v+D*pe}`}const q=p.x<P.x?1:-1,te=p.y<P.y?-1:1;return`L ${F},${v+D*te}Q ${F},${v} ${F+D*q},${v}`}function Ege({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:F=ji.Top,borderRadius:v=5,centerX:q,centerY:te,offset:ie=20,stepPosition:pe=.5}){const[oe,z,Z,ne,U]=uRn({source:{x:p,y:E},sourcePosition:P,target:{x:N,y:D},targetPosition:F,center:{x:q,y:te},offset:ie,stepPosition:pe});let xe=`M${oe[0].x} ${oe[0].y}`;for(let ce=1;ce<oe.length-1;ce++)xe+=oRn(oe[ce-1],oe[ce],oe[ce+1],v);return xe+=`L${oe[oe.length-1].x} ${oe[oe.length-1].y}`,[xe,z,Z,ne,U]}function Xln(p){var E;return p&&!!(p.internals.handleBounds||(E=p.handles)!=null&&E.length)&&!!(p.measured.width||p.width||p.initialWidth)}function sRn(p){var oe;const{sourceNode:E,targetNode:P}=p;if(!Xln(E)||!Xln(P))return null;const N=E.internals.handleBounds||Kln(E.handles),D=P.internals.handleBounds||Kln(P.handles),F=Wln((N==null?void 0:N.source)??[],p.sourceHandle),v=Wln(p.connectionMode===xA.Strict?(D==null?void 0:D.target)??[]:((D==null?void 0:D.target)??[]).concat((D==null?void 0:D.source)??[]),p.targetHandle);if(!F||!v)return(oe=p.onError)==null||oe.call(p,"008",t2.error008(F?"target":"source",{id:p.id,sourceHandle:p.sourceHandle,targetHandle:p.targetHandle})),null;const q=(F==null?void 0:F.position)||ji.Bottom,te=(v==null?void 0:v.position)||ji.Top,ie=Z8(E,F,q),pe=Z8(P,v,te);return{sourceX:ie.x,sourceY:ie.y,targetX:pe.x,targetY:pe.y,sourcePosition:q,targetPosition:te}}function Kln(p){if(!p)return null;const E=[],P=[];for(const N of p)N.width=N.width??1,N.height=N.height??1,N.type==="source"?E.push(N):N.type==="target"&&P.push(N);return{source:E,target:P}}function Z8(p,E,P=ji.Left,N=!1){const D=((E==null?void 0:E.x)??0)+p.internals.positionAbsolute.x,F=((E==null?void 0:E.y)??0)+p.internals.positionAbsolute.y,{width:v,height:q}=E??i2(p);if(N)return{x:D+v/2,y:F+q/2};switch((E==null?void 0:E.position)??P){case ji.Top:return{x:D+v/2,y:F};case ji.Right:return{x:D+v,y:F+q/2};case ji.Bottom:return{x:D+v/2,y:F+q};case ji.Left:return{x:D,y:F+q/2}}}function Wln(p,E){return p&&(E?p.find(P=>P.id===E):p[0])||null}function Age(p,E){return p?typeof p=="string"?p:`${E?`${E}__`:""}${Object.keys(p).sort().map(N=>`${N}=${p[N]}`).join("&")}`:""}function fRn(p,{id:E,defaultColor:P,defaultMarkerStart:N,defaultMarkerEnd:D}){const F=new Set;return p.reduce((v,q)=>([q.markerStart||N,q.markerEnd||D].forEach(te=>{if(te&&typeof te=="object"){const ie=Age(te,E);F.has(ie)||(v.push({id:ie,color:te.color||P,...te}),F.add(ie))}}),v),[]).sort((v,q)=>v.id.localeCompare(q.id))}function lRn(p,E,P,N,D){let F=.5;D==="start"?F=0:D==="end"&&(F=1);let v=[(p.x+p.width*F)*E.zoom+E.x,p.y*E.zoom+E.y-N],q=[-100*F,-100];switch(P){case ji.Right:v=[(p.x+p.width)*E.zoom+E.x+N,(p.y+p.height*F)*E.zoom+E.y],q=[0,-100*F];break;case ji.Bottom:v[1]=(p.y+p.height)*E.zoom+E.y+N,q[1]=0;break;case ji.Left:v=[p.x*E.zoom+E.x-N,(p.y+p.height*F)*E.zoom+E.y],q=[-100,-100*F];break}return`translate(${v[0]}px, ${v[1]}px) translate(${q[0]}%, ${q[1]}%)`}const tan=1e3,hRn=10,Fge={nodeOrigin:[0,0],nodeExtent:oN,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},aRn={...Fge,checkEquality:!0};function Bge(p,E){const P={...p};for(const N in E)E[N]!==void 0&&(P[N]=E[N]);return P}function dRn(p,E,P){const N=Bge(Fge,P);for(const D of p.values())if(D.parentId)_ge(D,p,E,N);else{const F=dN(D,N.nodeOrigin),v=Y8(D.extent)?D.extent:N.nodeExtent,q=Q8(F,v,i2(D));D.internals.positionAbsolute=q}}function bRn(p,E){if(!p.handles)return p.measured?E==null?void 0:E.internals.handleBounds:void 0;const P=[],N=[];for(const D of p.handles){const F={id:D.id,width:D.width??1,height:D.height??1,nodeId:p.id,x:D.x,y:D.y,position:D.position,type:D.type};D.type==="source"?P.push(F):D.type==="target"&&N.push(F)}return{source:P,target:N}}function Rge(p){return p==="manual"}function Mge(p,E,P,N={}){var pe,oe;const D=Bge(aRn,N),F={i:0},v=new Map(E),q=D!=null&&D.elevateNodesOnSelect&&!Rge(D.zIndexMode)?tan:0;let te=p.length>0,ie=!1;E.clear(),P.clear();for(const z of p){let Z=v.get(z.id);if(D.checkEquality&&z===(Z==null?void 0:Z.internals.userNode))E.set(z.id,Z);else{const ne=dN(z,D.nodeOrigin),U=Y8(z.extent)?z.extent:D.nodeExtent,xe=Q8(ne,U,i2(z));Z={...D.defaults,...z,measured:{width:(pe=z.measured)==null?void 0:pe.width,height:(oe=z.measured)==null?void 0:oe.height},internals:{positionAbsolute:xe,handleBounds:bRn(z,Z),z:ian(z,q,D.zIndexMode),userNode:z}},E.set(z.id,Z)}(Z.measured===void 0||Z.measured.width===void 0||Z.measured.height===void 0)&&!Z.hidden&&(te=!1),z.parentId&&_ge(Z,E,P,N,F),ie||(ie=z.selected??!1)}return{nodesInitialized:te,hasSelectedNodes:ie}}function wRn(p,E){if(!p.parentId)return;const P=E.get(p.parentId);P?P.set(p.id,p):E.set(p.parentId,new Map([[p.id,p]]))}function _ge(p,E,P,N,D){const{elevateNodesOnSelect:F,nodeOrigin:v,nodeExtent:q,zIndexMode:te}=Bge(Fge,N),ie=p.parentId,pe=E.get(ie);if(!pe){console.warn(`Parent node ${ie} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}wRn(p,P),D&&!pe.parentId&&pe.internals.rootParentIndex===void 0&&te==="auto"&&(pe.internals.rootParentIndex=++D.i,pe.internals.z=pe.internals.z+D.i*hRn),D&&pe.internals.rootParentIndex!==void 0&&(D.i=pe.internals.rootParentIndex);const oe=F&&!Rge(te)?tan:0,{x:z,y:Z,z:ne}=gRn(p,pe,v,q,oe,te),{positionAbsolute:U}=p.internals,xe=z!==U.x||Z!==U.y;(xe||ne!==p.internals.z)&&E.set(p.id,{...p,internals:{...p.internals,positionAbsolute:xe?{x:z,y:Z}:U,z:ne}})}function ian(p,E,P){const N=Zg(p.zIndex)?p.zIndex:0;return Rge(P)?N:N+(p.selected?E:0)}function gRn(p,E,P,N,D,F){const{x:v,y:q}=E.internals.positionAbsolute,te=i2(p),ie=dN(p,P),pe=Y8(p.extent)?Q8(ie,p.extent,te):ie;let oe=Q8({x:v+pe.x,y:q+pe.y},N,te);p.extent==="parent"&&(oe=Hhn(oe,te,E));const z=ian(p,D,F),Z=E.internals.z??0;return{x:oe.x,y:oe.y,z:Z>=z?Z+1:z}}function Jge(p,E,P,N=[0,0]){var v;const D=[],F=new Map;for(const q of p){const te=E.get(q.parentId);if(!te)continue;const ie=((v=F.get(q.parentId))==null?void 0:v.expandedRect)??lN(te),pe=qhn(ie,q.rect);F.set(q.parentId,{expandedRect:pe,parent:te})}return F.size>0&&F.forEach(({expandedRect:q,parent:te},ie)=>{var ee;const pe=te.internals.positionAbsolute,oe=i2(te),z=te.origin??N,Z=q.x<pe.x?Math.round(Math.abs(pe.x-q.x)):0,ne=q.y<pe.y?Math.round(Math.abs(pe.y-q.y)):0,U=Math.max(oe.width,Math.round(q.width)),xe=Math.max(oe.height,Math.round(q.height)),ce=(U-oe.width)*z[0],ge=(xe-oe.height)*z[1];(Z>0||ne>0||ce||ge)&&(D.push({id:ie,type:"position",position:{x:te.position.x-Z+ce,y:te.position.y-ne+ge}}),(ee=P.get(ie))==null||ee.forEach(Me=>{p.some(Ke=>Ke.id===Me.id)||D.push({id:Me.id,type:"position",position:{x:Me.position.x+Z,y:Me.position.y+ne}})})),(oe.width<q.width||oe.height<q.height||Z||ne)&&D.push({id:ie,type:"dimensions",setAttributes:!0,dimensions:{width:U+(Z?z[0]*Z-ce:0),height:xe+(ne?z[1]*ne-ge:0)}})}),D}function pRn(p,E,P,N,D,F,v){const q=N==null?void 0:N.querySelector(".xyflow__viewport");let te=!1;if(!q)return{changes:[],updatedInternals:te};const ie=[],pe=window.getComputedStyle(q),{m22:oe}=new window.DOMMatrixReadOnly(pe.transform),z=[];for(const Z of p.values()){const ne=E.get(Z.id);if(!ne)continue;if(ne.hidden){E.set(ne.id,{...ne,internals:{...ne.internals,handleBounds:void 0}}),te=!0;continue}const U=$ge(Z.nodeElement),xe=ne.measured.width!==U.width||ne.measured.height!==U.height;if(!!(U.width&&U.height&&(xe||!ne.internals.handleBounds||Z.force))){const ge=Z.nodeElement.getBoundingClientRect(),ee=Y8(ne.extent)?ne.extent:F;let{positionAbsolute:Me}=ne.internals;if(ne.parentId&&ne.extent==="parent"){const Xe=E.get(ne.parentId);Xe&&(Me=Hhn(Me,U,Xe))}else ee&&(Me=Q8(Me,ee,U));const Ke={...ne,measured:U,internals:{...ne.internals,positionAbsolute:Me,handleBounds:{source:Hln("source",Z.nodeElement,ge,oe,ne.id),target:Hln("target",Z.nodeElement,ge,oe,ne.id)}}};E.set(ne.id,Ke),ne.parentId&&_ge(Ke,E,P,{nodeOrigin:D,zIndexMode:v}),te=!0,xe&&(ie.push({id:ne.id,type:"dimensions",dimensions:U}),ne.expandParent&&ne.parentId&&z.push({id:ne.id,parentId:ne.parentId,rect:lN(Ke,D)}))}}if(z.length>0){const Z=Jge(z,E,P,D);ie.push(...Z)}return{changes:ie,updatedInternals:te}}async function mRn({delta:p,panZoom:E,transform:P,translateExtent:N,width:D,height:F}){if(!E||!p.x&&!p.y)return!1;const v=await E.setViewportConstrained({x:P[0]+p.x,y:P[1]+p.y,zoom:P[2]},[[0,0],[D,F]],N);return!!v&&(v.x!==P[0]||v.y!==P[1]||v.k!==P[2])}function Vln(p,E,P,N,D,F){let v=D;const q=N.get(v)||new Map;N.set(v,q.set(P,E)),v=`${D}-${p}`;const te=N.get(v)||new Map;if(N.set(v,te.set(P,E)),F){v=`${D}-${p}-${F}`;const ie=N.get(v)||new Map;N.set(v,ie.set(P,E))}}function ran(p,E,P){p.clear(),E.clear();for(const N of P){const{source:D,target:F,sourceHandle:v=null,targetHandle:q=null}=N,te={edgeId:N.id,source:D,target:F,sourceHandle:v,targetHandle:q},ie=`${D}-${v}--${F}-${q}`,pe=`${F}-${q}--${D}-${v}`;Vln("source",te,pe,p,D,v),Vln("target",te,ie,p,F,q),E.set(N.id,N)}}function can(p,E){if(!p.parentId)return!1;const P=E.get(p.parentId);return P?P.selected?!0:can(P,E):!1}function Qln(p,E,P){var D;let N=p;do{if((D=N==null?void 0:N.matches)!=null&&D.call(N,E))return!0;if(N===P)return!1;N=N==null?void 0:N.parentElement}while(N);return!1}function vRn(p,E,P,N){const D=new Map;for(const[F,v]of p)if((v.selected||v.id===N)&&(!v.parentId||!can(v,p))&&(v.draggable||E&&typeof v.draggable>"u")){const q=p.get(F);q&&D.set(F,{id:F,position:q.position||{x:0,y:0},distance:{x:P.x-q.internals.positionAbsolute.x,y:P.y-q.internals.positionAbsolute.y},extent:q.extent,parentId:q.parentId,origin:q.origin,expandParent:q.expandParent,internals:{positionAbsolute:q.internals.positionAbsolute||{x:0,y:0}},measured:{width:q.measured.width??0,height:q.measured.height??0}})}return D}function wge({nodeId:p,dragItems:E,nodeLookup:P,dragging:N=!0}){var v,q,te;const D=[];for(const[ie,pe]of E){const oe=(v=P.get(ie))==null?void 0:v.internals.userNode;oe&&D.push({...oe,position:pe.position,dragging:N})}if(!p)return[D[0],D];const F=(q=P.get(p))==null?void 0:q.internals.userNode;return[F?{...F,position:((te=E.get(p))==null?void 0:te.position)||F.position,dragging:N}:D[0],D]}function yRn({dragItems:p,snapGrid:E,x:P,y:N}){const D=p.values().next().value;if(!D)return null;const F={x:P-D.distance.x,y:N-D.distance.y},v=bN(F,E);return{x:v.x-F.x,y:v.y-F.y}}function kRn({onNodeMouseDown:p,getStoreItems:E,onDragStart:P,onDrag:N,onDragStop:D}){let F={x:null,y:null},v=0,q=new Map,te=!1,ie={x:0,y:0},pe=null,oe=!1,z=null,Z=!1,ne=!1,U=null;function xe({noDragClassName:ge,handleSelector:ee,domNode:Me,isSelectable:Ke,nodeId:Xe,nodeClickDistance:Ye=0}){z=$0(Me);function kn({x:Vn,y:_}){const{nodeLookup:je,nodeExtent:on,snapGrid:rn,snapToGrid:Sn,nodeOrigin:Bn,onNodeDrag:dn,onSelectionDrag:Gn,onError:Nn,updateNodePositions:qn}=E();F={x:Vn,y:_};let Jt=!1;const Kt=q.size>1,Oi=Kt&&on?jge(PA(q)):null,gr=Kt&&Sn?yRn({dragItems:q,snapGrid:rn,x:Vn,y:_}):null;for(const[Ki,Kn]of q){if(!je.has(Ki))continue;let ei={x:Vn-Kn.distance.x,y:_-Kn.distance.y};Sn&&(ei=gr?{x:Math.round(ei.x+gr.x),y:Math.round(ei.y+gr.y)}:bN(ei,rn));let rr=null;if(Kt&&on&&!Kn.extent&&Oi){const{positionAbsolute:sr}=Kn.internals,ri=sr.x-Oi.x+on[0][0],bi=sr.x+Kn.measured.width-Oi.x2+on[1][0],Mc=sr.y-Oi.y+on[0][1],ku=sr.y+Kn.measured.height-Oi.y2+on[1][1];rr=[[ri,Mc],[bi,ku]]}const{position:cr,positionAbsolute:_i}=Ghn({nodeId:Ki,nextPosition:ei,nodeLookup:je,nodeExtent:rr||on,nodeOrigin:Bn,onError:Nn});Jt=Jt||Kn.position.x!==cr.x||Kn.position.y!==cr.y,Kn.position=cr,Kn.internals.positionAbsolute=_i}if(ne=ne||Jt,!!Jt&&(qn(q,!0),U&&(N||dn||!Xe&&Gn))){const[Ki,Kn]=wge({nodeId:Xe,dragItems:q,nodeLookup:je});N==null||N(U,q,Ki,Kn),dn==null||dn(U,Ki,Kn),Xe||Gn==null||Gn(U,Kn)}}async function jn(){if(!pe)return;const{transform:Vn,panBy:_,autoPanSpeed:je,autoPanOnNodeDrag:on}=E();if(!on){te=!1,cancelAnimationFrame(v);return}const[rn,Sn]=Dge(ie,pe,je);(rn!==0||Sn!==0)&&(F.x=(F.x??0)-rn/Vn[2],F.y=(F.y??0)-Sn/Vn[2],await _({x:rn,y:Sn})&&kn(F)),v=requestAnimationFrame(jn)}function Zn(Vn){var Kt;const{nodeLookup:_,multiSelectionActive:je,nodesDraggable:on,transform:rn,snapGrid:Sn,snapToGrid:Bn,selectNodesOnDrag:dn,onNodeDragStart:Gn,onSelectionDragStart:Nn,unselectNodesAndEdges:qn}=E();oe=!0,(!dn||!Ke)&&!je&&Xe&&((Kt=_.get(Xe))!=null&&Kt.selected||qn()),Ke&&dn&&Xe&&(p==null||p(Xe));const Jt=rN(Vn.sourceEvent,{transform:rn,snapGrid:Sn,snapToGrid:Bn,containerBounds:pe});if(F=Jt,q=vRn(_,on,Jt,Xe),q.size>0&&(P||Gn||!Xe&&Nn)){const[Oi,gr]=wge({nodeId:Xe,dragItems:q,nodeLookup:_});P==null||P(Vn.sourceEvent,q,Oi,gr),Gn==null||Gn(Vn.sourceEvent,Oi,gr),Xe||Nn==null||Nn(Vn.sourceEvent,gr)}}const $n=$hn().clickDistance(Ye).on("start",Vn=>{const{domNode:_,nodeDragThreshold:je,transform:on,snapGrid:rn,snapToGrid:Sn}=E();pe=(_==null?void 0:_.getBoundingClientRect())||null,Z=!1,ne=!1,U=Vn.sourceEvent,je===0&&Zn(Vn),F=rN(Vn.sourceEvent,{transform:on,snapGrid:rn,snapToGrid:Sn,containerBounds:pe}),ie=e2(Vn.sourceEvent,pe)}).on("drag",Vn=>{const{autoPanOnNodeDrag:_,transform:je,snapGrid:on,snapToGrid:rn,nodeDragThreshold:Sn,nodeLookup:Bn}=E(),dn=rN(Vn.sourceEvent,{transform:je,snapGrid:on,snapToGrid:rn,containerBounds:pe});if(U=Vn.sourceEvent,(Vn.sourceEvent.type==="touchmove"&&Vn.sourceEvent.touches.length>1||Xe&&!Bn.has(Xe))&&(Z=!0),!Z){if(!te&&_&&oe&&(te=!0,jn()),!oe){const Gn=e2(Vn.sourceEvent,pe),Nn=Gn.x-ie.x,qn=Gn.y-ie.y;Math.sqrt(Nn*Nn+qn*qn)>Sn&&Zn(Vn)}(F.x!==dn.xSnapped||F.y!==dn.ySnapped)&&q&&oe&&(ie=e2(Vn.sourceEvent,pe),kn(dn))}}).on("end",Vn=>{if(!oe||Z){Z&&q.size>0&&E().updateNodePositions(q,!1);return}if(te=!1,oe=!1,cancelAnimationFrame(v),q.size>0){const{nodeLookup:_,updateNodePositions:je,onNodeDragStop:on,onSelectionDragStop:rn}=E();if(ne&&(je(q,!1),ne=!1),D||on||!Xe&&rn){const[Sn,Bn]=wge({nodeId:Xe,dragItems:q,nodeLookup:_,dragging:!1});D==null||D(Vn.sourceEvent,q,Sn,Bn),on==null||on(Vn.sourceEvent,Sn,Bn),Xe||rn==null||rn(Vn.sourceEvent,Bn)}}}).filter(Vn=>{const _=Vn.target;return!Vn.button&&(!ge||!Qln(_,`.${ge}`,Me))&&(!ee||Qln(_,ee,Me))});z.call($n)}function ce(){z==null||z.on(".drag",null)}return{update:xe,destroy:ce}}function jRn(p,E,P){const N=[],D={x:p.x-P,y:p.y-P,width:P*2,height:P*2};for(const F of E.values())BX(D,lN(F))>0&&N.push(F);return N}const ERn=250;function ARn(p,E,P,N){var q,te;let D=[],F=1/0;const v=jRn(p,P,E+ERn);for(const ie of v){const pe=[...((q=ie.internals.handleBounds)==null?void 0:q.source)??[],...((te=ie.internals.handleBounds)==null?void 0:te.target)??[]];for(const oe of pe){if(N.nodeId===oe.nodeId&&N.type===oe.type&&N.id===oe.id)continue;const{x:z,y:Z}=Z8(ie,oe,oe.position,!0),ne=Math.sqrt(Math.pow(z-p.x,2)+Math.pow(Z-p.y,2));ne>E||(ne<F?(D=[{...oe,x:z,y:Z}],F=ne):ne===F&&D.push({...oe,x:z,y:Z}))}}if(!D.length)return null;if(D.length>1){const ie=N.type==="source"?"target":"source";return D.find(pe=>pe.type===ie)??D[0]}return D[0]}function uan(p,E,P,N,D,F=!1){var ie,pe,oe;const v=N.get(p);if(!v)return null;const q=D==="strict"?(ie=v.internals.handleBounds)==null?void 0:ie[E]:[...((pe=v.internals.handleBounds)==null?void 0:pe.source)??[],...((oe=v.internals.handleBounds)==null?void 0:oe.target)??[]],te=(P?q==null?void 0:q.find(z=>z.id===P):q==null?void 0:q[0])??null;return te&&F?{...te,...Z8(v,te,te.position,!0)}:te}function oan(p,E){return p||(E!=null&&E.classList.contains("target")?"target":E!=null&&E.classList.contains("source")?"source":null)}function MRn(p,E){let P=null;return E?P=!0:p&&!E&&(P=!1),P}const san=()=>!0;function CRn(p,{connectionMode:E,connectionRadius:P,handleId:N,nodeId:D,edgeUpdaterType:F,isTarget:v,domNode:q,nodeLookup:te,lib:ie,autoPanOnConnect:pe,flowId:oe,panBy:z,cancelConnection:Z,onConnectStart:ne,onConnect:U,onConnectEnd:xe,isValidConnection:ce=san,onReconnectEnd:ge,updateConnection:ee,getTransform:Me,getFromHandle:Ke,autoPanSpeed:Xe,dragThreshold:Ye=1,handleDomNode:kn}){const jn=Vhn(p.target);let Zn=0,$n;const{x:Vn,y:_}=e2(p),je=oan(F,kn),on=q==null?void 0:q.getBoundingClientRect();let rn=!1;if(!on||!je)return;const Sn=uan(D,je,N,te,E);if(!Sn)return;let Bn=e2(p,on),dn=!1,Gn=null,Nn=!1,qn=null;function Jt(){if(!pe||!on)return;const[cr,_i]=Dge(Bn,on,Xe);z({x:cr,y:_i}),Zn=requestAnimationFrame(Jt)}const Kt={...Sn,nodeId:D,type:je,position:Sn.position},Oi=te.get(D);let Ki={inProgress:!0,isValid:null,from:Z8(Oi,Kt,ji.Left,!0),fromHandle:Kt,fromPosition:Kt.position,fromNode:Oi,to:Bn,toHandle:null,toPosition:Rln[Kt.position],toNode:null,pointer:Bn};function Kn(){rn=!0,ee(Ki),ne==null||ne(p,{nodeId:D,handleId:N,handleType:je})}Ye===0&&Kn();function ei(cr){if(!rn){const{x:ku,y:Pr}=e2(cr),xa=ku-Vn,zl=Pr-_;if(!(xa*xa+zl*zl>Ye*Ye))return;Kn()}if(!Ke()||!Kt){rr(cr);return}const _i=Me();Bn=e2(cr,on),$n=ARn(wN(Bn,_i,!1,[1,1]),P,te,Kt),dn||(Jt(),dn=!0);const sr=fan(cr,{handle:$n,connectionMode:E,fromNodeId:D,fromHandleId:N,fromType:v?"target":"source",isValidConnection:ce,doc:jn,lib:ie,flowId:oe,nodeLookup:te});qn=sr.handleDomNode,Gn=sr.connection,Nn=MRn(!!$n,sr.isValid);const ri=te.get(D),bi=ri?Z8(ri,Kt,ji.Left,!0):Ki.from,Mc={...Ki,from:bi,isValid:Nn,to:sr.toHandle&&Nn?SA({x:sr.toHandle.x,y:sr.toHandle.y},_i):Bn,toHandle:sr.toHandle,toPosition:Nn&&sr.toHandle?sr.toHandle.position:Rln[Kt.position],toNode:sr.toHandle?te.get(sr.toHandle.nodeId):null,pointer:Bn};ee(Mc),Ki=Mc}function rr(cr){if(!("touches"in cr&&cr.touches.length>0)){if(rn){($n||qn)&&Gn&&Nn&&(U==null||U(Gn));const{inProgress:_i,...sr}=Ki,ri={...sr,toPosition:Ki.toHandle?Ki.toPosition:null};xe==null||xe(cr,ri),F&&(ge==null||ge(cr,ri))}Z(),cancelAnimationFrame(Zn),dn=!1,Nn=!1,Gn=null,qn=null,jn.removeEventListener("mousemove",ei),jn.removeEventListener("mouseup",rr),jn.removeEventListener("touchmove",ei),jn.removeEventListener("touchend",rr)}}jn.addEventListener("mousemove",ei),jn.addEventListener("mouseup",rr),jn.addEventListener("touchmove",ei),jn.addEventListener("touchend",rr)}function fan(p,{handle:E,connectionMode:P,fromNodeId:N,fromHandleId:D,fromType:F,doc:v,lib:q,flowId:te,isValidConnection:ie=san,nodeLookup:pe}){const oe=F==="target",z=E?v.querySelector(`.${q}-flow__handle[data-id="${te}-${E==null?void 0:E.nodeId}-${E==null?void 0:E.id}-${E==null?void 0:E.type}"]`):null,{x:Z,y:ne}=e2(p),U=v.elementFromPoint(Z,ne),xe=U!=null&&U.classList.contains(`${q}-flow__handle`)?U:z,ce={handleDomNode:xe,isValid:!1,connection:null,toHandle:null};if(xe){const ge=oan(void 0,xe),ee=xe.getAttribute("data-nodeid"),Me=xe.getAttribute("data-handleid"),Ke=xe.classList.contains("connectable"),Xe=xe.classList.contains("connectableend");if(!ee||!ge)return ce;const Ye={source:oe?ee:N,sourceHandle:oe?Me:D,target:oe?N:ee,targetHandle:oe?D:Me};ce.connection=Ye;const jn=Ke&&Xe&&(P===xA.Strict?oe&&ge==="source"||!oe&&ge==="target":ee!==N||Me!==D);ce.isValid=jn&&ie(Ye),ce.toHandle=uan(ee,ge,Me,pe,P,!0)}return ce}const Cge={onPointerDown:CRn,isValid:fan};function xRn({domNode:p,panZoom:E,getTransform:P,getViewScale:N}){const D=$0(p);function F({translateExtent:q,width:te,height:ie,zoomStep:pe=1,pannable:oe=!0,zoomable:z=!0,inversePan:Z=!1}){const ne=ee=>{if(ee.sourceEvent.type!=="wheel"||!E)return;const Me=P(),Ke=ee.sourceEvent.ctrlKey&&hN()?10:1,Xe=-ee.sourceEvent.deltaY*(ee.sourceEvent.deltaMode===1?.05:ee.sourceEvent.deltaMode?1:.002)*pe,Ye=Me[2]*Math.pow(2,Xe*Ke);E.scaleTo(Ye)};let U=[0,0];const xe=ee=>{(ee.sourceEvent.type==="mousedown"||ee.sourceEvent.type==="touchstart")&&(U=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY])},ce=ee=>{const Me=P();if(ee.sourceEvent.type!=="mousemove"&&ee.sourceEvent.type!=="touchmove"||!E)return;const Ke=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY],Xe=[Ke[0]-U[0],Ke[1]-U[1]];U=Ke;const Ye=N()*Math.max(Me[2],Math.log(Me[2]))*(Z?-1:1),kn={x:Me[0]-Xe[0]*Ye,y:Me[1]-Xe[1]*Ye},jn=[[0,0],[te,ie]];E.setViewportConstrained({x:kn.x,y:kn.y,zoom:Me[2]},jn,q)},ge=Fhn().on("start",xe).on("zoom",oe?ce:null).on("zoom.wheel",z?ne:null);D.call(ge,{})}function v(){D.on("zoom",null)}return{update:F,destroy:v,pointer:Yg}}const HX=p=>({x:p.x,y:p.y,zoom:p.k}),gge=({x:p,y:E,zoom:P})=>Pge.translate(p,E).scale(P),_5=(p,E)=>p.target.closest(`.${E}`),lan=(p,E)=>E===2&&Array.isArray(p)&&p.includes(2),TRn=p=>((p*=2)<=1?p*p*p:(p-=2)*p*p+2)/2,pge=(p,E=0,P=TRn,N=()=>{})=>{const D=typeof E=="number"&&E>0;return D||N(),D?p.transition().duration(E).ease(P).on("end",N):p},han=p=>{const E=p.ctrlKey&&hN()?10:1;return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*E};function SRn({zoomPanValues:p,noWheelClassName:E,d3Selection:P,d3Zoom:N,panOnScrollMode:D,panOnScrollSpeed:F,zoomOnPinch:v,onPanZoomStart:q,onPanZoom:te,onPanZoomEnd:ie}){return pe=>{if(_5(pe,E))return pe.ctrlKey&&pe.preventDefault(),!1;pe.preventDefault(),pe.stopImmediatePropagation();const oe=P.property("__zoom").k||1;if(pe.ctrlKey&&v){const xe=Yg(pe),ce=han(pe),ge=oe*Math.pow(2,ce);N.scaleTo(P,ge,xe,pe);return}const z=pe.deltaMode===1?20:1;let Z=D===V8.Vertical?0:pe.deltaX*z,ne=D===V8.Horizontal?0:pe.deltaY*z;!hN()&&pe.shiftKey&&D!==V8.Vertical&&(Z=pe.deltaY*z,ne=0),N.translateBy(P,-(Z/oe)*F,-(ne/oe)*F,{internal:!0});const U=HX(P.property("__zoom"));clearTimeout(p.panScrollTimeout),p.isPanScrolling?te==null||te(pe,U):(p.isPanScrolling=!0,q==null||q(pe,U)),p.panScrollTimeout=setTimeout(()=>{ie==null||ie(pe,U),p.isPanScrolling=!1},150)}}function IRn({noWheelClassName:p,preventScrolling:E,d3ZoomHandler:P}){return function(N,D){const F=N.type==="wheel",v=!E&&F&&!N.ctrlKey,q=_5(N,p);if(N.ctrlKey&&F&&q&&N.preventDefault(),v||q)return null;N.preventDefault(),P.call(this,N,D)}}function PRn({zoomPanValues:p,onDraggingChange:E,onPanZoomStart:P}){return N=>{var F,v,q;if((F=N.sourceEvent)!=null&&F.internal)return;const D=HX(N.transform);p.mouseButton=((v=N.sourceEvent)==null?void 0:v.button)||0,p.isZoomingOrPanning=!0,p.prevViewport=D,((q=N.sourceEvent)==null?void 0:q.type)==="mousedown"&&E(!0),P&&(P==null||P(N.sourceEvent,D))}}function ORn({zoomPanValues:p,panOnDrag:E,onPaneContextMenu:P,onTransformChange:N,onPanZoom:D}){return F=>{var v,q;p.usedRightMouseButton=!!(P&&lan(E,p.mouseButton??0)),(v=F.sourceEvent)!=null&&v.sync||N([F.transform.x,F.transform.y,F.transform.k]),D&&!((q=F.sourceEvent)!=null&&q.internal)&&(D==null||D(F.sourceEvent,HX(F.transform)))}}function NRn({zoomPanValues:p,panOnDrag:E,panOnScroll:P,onDraggingChange:N,onPanZoomEnd:D,onPaneContextMenu:F}){return v=>{var q;if(!((q=v.sourceEvent)!=null&&q.internal)&&(p.isZoomingOrPanning=!1,F&&lan(E,p.mouseButton??0)&&!p.usedRightMouseButton&&v.sourceEvent&&F(v.sourceEvent),p.usedRightMouseButton=!1,N(!1),D)){const te=HX(v.transform);p.prevViewport=te,clearTimeout(p.timerId),p.timerId=setTimeout(()=>{D==null||D(v.sourceEvent,te)},P?150:0)}}}function DRn({panActivationKeyPressed:p,zoomActivationKeyPressed:E,zoomOnScroll:P,zoomOnPinch:N,panOnDrag:D,panOnScroll:F,zoomOnDoubleClick:v,userSelectionActive:q,noWheelClassName:te,noPanClassName:ie,lib:pe,connectionInProgress:oe}){return z=>{var ce;const Z=E||P,ne=N&&z.ctrlKey,U=z.type==="wheel";if(z.button===1&&z.type==="mousedown"&&(_5(z,`${pe}-flow__node`)||_5(z,`${pe}-flow__edge`)||_5(z,`${pe}-flow__selection`)||_5(z,`${pe}-flow__nodesselection`)))return!0;if(!D&&!Z&&!F&&!v&&!N||q||oe&&!U||_5(z,te)&&U||_5(z,ie)&&(!U||F&&U&&!E)||!N&&z.ctrlKey&&U)return!1;if(!N&&z.type==="touchstart"&&((ce=z.touches)==null?void 0:ce.length)>1)return z.preventDefault(),!1;if(!Z&&!F&&!ne&&U||!D&&(z.type==="mousedown"||z.type==="touchstart")||Array.isArray(D)&&!D.includes(z.button)&&z.type==="mousedown")return!1;const xe=Array.isArray(D)&&D.includes(z.button)||!z.button||z.button<=1;return(!z.ctrlKey||U||p)&&xe}}function LRn({domNode:p,minZoom:E,maxZoom:P,translateExtent:N,viewport:D,onPanZoom:F,onPanZoomStart:v,onPanZoomEnd:q,onDraggingChange:te}){const ie={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},pe=p.getBoundingClientRect();let oe=[[0,0],[pe.width,pe.height]];const z=typeof ResizeObserver<"u"?new ResizeObserver(_=>{const je=_[0];je&&(oe=[[0,0],[je.contentRect.width,je.contentRect.height]])}):null;z==null||z.observe(p);const Z=Fhn().extent(()=>oe).scaleExtent([E,P]).translateExtent(N),ne=$0(p).call(Z);Me({x:D.x,y:D.y,zoom:TA(D.zoom,E,P)},[[0,0],[pe.width,pe.height]],N);const U=ne.on("wheel.zoom"),xe=ne.on("dblclick.zoom");Z.wheelDelta(han);async function ce(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).transform(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}function ge({noWheelClassName:_,noPanClassName:je,onPaneContextMenu:on,userSelectionActive:rn,panOnScroll:Sn,panOnDrag:Bn,panOnScrollMode:dn,panOnScrollSpeed:Gn,preventScrolling:Nn,zoomOnPinch:qn,zoomOnScroll:Jt,zoomOnDoubleClick:Kt,panActivationKeyPressed:Oi=!1,zoomActivationKeyPressed:gr,lib:Ki,onTransformChange:Kn,connectionInProgress:ei,paneClickDistance:rr,selectionOnDrag:cr}){rn&&!ie.isZoomingOrPanning&&ee();const _i=Sn&&!gr&&!rn;Z.clickDistance(cr?1/0:!Zg(rr)||rr<0?0:rr);const sr=_i?SRn({zoomPanValues:ie,noWheelClassName:_,d3Selection:ne,d3Zoom:Z,panOnScrollMode:dn,panOnScrollSpeed:Gn,zoomOnPinch:qn,onPanZoomStart:v,onPanZoom:F,onPanZoomEnd:q}):IRn({noWheelClassName:_,preventScrolling:Nn,d3ZoomHandler:U});ne.on("wheel.zoom",sr,{passive:!1});const ri=PRn({zoomPanValues:ie,onDraggingChange:te,onPanZoomStart:v});Z.on("start",ri);const bi=ORn({zoomPanValues:ie,panOnDrag:Bn,onPaneContextMenu:!!on,onPanZoom:F,onTransformChange:Kn});Z.on("zoom",bi);const Mc=NRn({zoomPanValues:ie,panOnDrag:Bn,panOnScroll:Sn,onPaneContextMenu:on,onPanZoomEnd:q,onDraggingChange:te});Z.on("end",Mc);const ku=DRn({panActivationKeyPressed:Oi,zoomActivationKeyPressed:gr,panOnDrag:Bn,zoomOnScroll:Jt,panOnScroll:Sn,zoomOnDoubleClick:Kt,zoomOnPinch:qn,userSelectionActive:rn,noPanClassName:je,noWheelClassName:_,lib:Ki,connectionInProgress:ei});Z.filter(ku),Kt?ne.on("dblclick.zoom",xe):ne.on("dblclick.zoom",null)}function ee(){Z.on("zoom",null)}async function Me(_,je,on){const rn=gge(_),Sn=Z==null?void 0:Z.constrain()(rn,je,on);return Sn&&await ce(Sn),Sn}async function Ke(_,je){const on=gge(_);return await ce(on,je),on}function Xe(_){if(ne){const je=gge(_),on=ne.property("__zoom");(on.k!==_.zoom||on.x!==_.x||on.y!==_.y)&&(Z==null||Z.transform(ne,je,null,{sync:!0}))}}function Ye(){const _=ne?bBn(ne.node()):{x:0,y:0,k:1};return{x:_.x,y:_.y,zoom:_.k}}async function kn(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleTo(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}async function jn(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleBy(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}function Zn(_){Z==null||Z.scaleExtent(_)}function $n(_){Z==null||Z.translateExtent(_)}function Vn(_){const je=!Zg(_)||_<0?0:_;Z==null||Z.clickDistance(je)}return{update:ge,destroy:ee,setViewport:Ke,setViewportConstrained:Me,getViewport:Ye,scaleTo:kn,scaleBy:jn,setScaleExtent:Zn,setTranslateExtent:$n,syncViewport:Xe,setClickDistance:Vn}}var IA;(function(p){p.Line="line",p.Handle="handle"})(IA||(IA={}));function $Rn({width:p,prevWidth:E,height:P,prevHeight:N,affectsX:D,affectsY:F}){const v=p-E,q=P-N,te=[v>0?1:v<0?-1:0,q>0?1:q<0?-1:0];return v&&D&&(te[0]=te[0]*-1),q&&F&&(te[1]=te[1]*-1),te}function Yln(p){const E=p.includes("right")||p.includes("left"),P=p.includes("bottom")||p.includes("top"),N=p.includes("left"),D=p.includes("top");return{isHorizontal:E,isVertical:P,affectsX:N,affectsY:D}}function B5(p,E){return Math.max(0,E-p)}function R5(p,E){return Math.max(0,p-E)}function SX(p,E,P){return Math.max(0,E-p,p-P)}function Zln(p,E){return p?!E:E}function FRn(p,E,P,N,D,F,v,q){let{affectsX:te,affectsY:ie}=E;const{isHorizontal:pe,isVertical:oe}=E,z=pe&&oe,{xSnapped:Z,ySnapped:ne}=P,{minWidth:U,maxWidth:xe,minHeight:ce,maxHeight:ge}=N,{x:ee,y:Me,width:Ke,height:Xe,aspectRatio:Ye}=p;let kn=Math.floor(pe?Z-p.pointerX:0),jn=Math.floor(oe?ne-p.pointerY:0);const Zn=Ke+(te?-kn:kn),$n=Xe+(ie?-jn:jn),Vn=-F[0]*Ke,_=-F[1]*Xe;let je=SX(Zn,U,xe),on=SX($n,ce,ge);if(v){let Bn=0,dn=0;te&&kn<0?Bn=B5(ee+kn+Vn,v[0][0]):!te&&kn>0&&(Bn=R5(ee+Zn+Vn,v[1][0])),ie&&jn<0?dn=B5(Me+jn+_,v[0][1]):!ie&&jn>0&&(dn=R5(Me+$n+_,v[1][1])),je=Math.max(je,Bn),on=Math.max(on,dn)}if(q){let Bn=0,dn=0;te&&kn>0?Bn=R5(ee+kn,q[0][0]):!te&&kn<0&&(Bn=B5(ee+Zn,q[1][0])),ie&&jn>0?dn=R5(Me+jn,q[0][1]):!ie&&jn<0&&(dn=B5(Me+$n,q[1][1])),je=Math.max(je,Bn),on=Math.max(on,dn)}if(D){if(pe){const Bn=SX(Zn/Ye,ce,ge)*Ye;if(je=Math.max(je,Bn),v){let dn=0;!te&&!ie||te&&!ie&&z?dn=R5(Me+_+Zn/Ye,v[1][1])*Ye:dn=B5(Me+_+(te?kn:-kn)/Ye,v[0][1])*Ye,je=Math.max(je,dn)}if(q){let dn=0;!te&&!ie||te&&!ie&&z?dn=B5(Me+Zn/Ye,q[1][1])*Ye:dn=R5(Me+(te?kn:-kn)/Ye,q[0][1])*Ye,je=Math.max(je,dn)}}if(oe){const Bn=SX($n*Ye,U,xe)/Ye;if(on=Math.max(on,Bn),v){let dn=0;!te&&!ie||ie&&!te&&z?dn=R5(ee+$n*Ye+Vn,v[1][0])/Ye:dn=B5(ee+(ie?jn:-jn)*Ye+Vn,v[0][0])/Ye,on=Math.max(on,dn)}if(q){let dn=0;!te&&!ie||ie&&!te&&z?dn=B5(ee+$n*Ye,q[1][0])/Ye:dn=R5(ee+(ie?jn:-jn)*Ye,q[0][0])/Ye,on=Math.max(on,dn)}}}jn=jn+(jn<0?on:-on),kn=kn+(kn<0?je:-je),D&&(z?Zn>$n*Ye?jn=(Zln(te,ie)?-kn:kn)/Ye:kn=(Zln(te,ie)?-jn:jn)*Ye:pe?(jn=kn/Ye,ie=te):(kn=jn*Ye,te=ie));const rn=te?ee+kn:ee,Sn=ie?Me+jn:Me;return{width:Ke+(te?-kn:kn),height:Xe+(ie?-jn:jn),x:F[0]*kn*(te?-1:1)+rn,y:F[1]*jn*(ie?-1:1)+Sn}}const aan={width:0,height:0,x:0,y:0},BRn={...aan,pointerX:0,pointerY:0,aspectRatio:1};function RRn(p,E,P){const N=E.position.x+p.position.x,D=E.position.y+p.position.y,F=p.measured.width??0,v=p.measured.height??0,q=P[0]*F,te=P[1]*v;return[[N-q,D-te],[N+F-q,D+v-te]]}function _Rn({domNode:p,nodeId:E,getStoreItems:P,onChange:N,onEnd:D}){const F=$0(p);let v={controlDirection:Yln("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function q({controlPosition:ie,boundaries:pe,keepAspectRatio:oe,resizeDirection:z,onResizeStart:Z,onResize:ne,onResizeEnd:U,shouldResize:xe}){let ce={...aan},ge={...BRn};v={boundaries:pe,resizeDirection:z,keepAspectRatio:oe,controlDirection:Yln(ie)};let ee,Me=null,Ke=[],Xe,Ye,kn;const jn=$hn().on("start",Zn=>{const{nodeLookup:$n,transform:Vn,snapGrid:_,snapToGrid:je,nodeOrigin:on,paneDomNode:rn}=P();if(ee=$n.get(E),!ee)return;Me=(rn==null?void 0:rn.getBoundingClientRect())??null;const{xSnapped:Sn,ySnapped:Bn}=rN(Zn.sourceEvent,{transform:Vn,snapGrid:_,snapToGrid:je,containerBounds:Me});ce={width:ee.measured.width??0,height:ee.measured.height??0,x:ee.position.x??0,y:ee.position.y??0},ge={...ce,pointerX:Sn,pointerY:Bn,aspectRatio:ce.width/ce.height},Xe=void 0,Ye=Y8(ee.extent)?ee.extent:void 0,ee.parentId&&(ee.extent==="parent"||ee.expandParent)&&(Xe=$n.get(ee.parentId)),Xe&&ee.extent==="parent"&&(Ye=[[0,0],[Xe.measured.width,Xe.measured.height]]),Ke=[],kn=void 0;for(const[dn,Gn]of $n)if(Gn.parentId===E&&(Ke.push({id:dn,position:{...Gn.position},extent:Gn.extent}),Gn.extent==="parent"||Gn.expandParent)){const Nn=RRn(Gn,ee,Gn.origin??on);kn?kn=[[Math.min(Nn[0][0],kn[0][0]),Math.min(Nn[0][1],kn[0][1])],[Math.max(Nn[1][0],kn[1][0]),Math.max(Nn[1][1],kn[1][1])]]:kn=Nn}Z==null||Z(Zn,{...ce})}).on("drag",Zn=>{const{transform:$n,snapGrid:Vn,snapToGrid:_,nodeOrigin:je}=P(),on=rN(Zn.sourceEvent,{transform:$n,snapGrid:Vn,snapToGrid:_,containerBounds:Me}),rn=[];if(!ee)return;const{x:Sn,y:Bn,width:dn,height:Gn}=ce,Nn={},qn=ee.origin??je,{width:Jt,height:Kt,x:Oi,y:gr}=FRn(ge,v.controlDirection,on,v.boundaries,v.keepAspectRatio,qn,Ye,kn),Ki=Jt!==dn,Kn=Kt!==Gn,ei=Oi!==Sn&&Ki,rr=gr!==Bn&&Kn;if(!ei&&!rr&&!Ki&&!Kn)return;const cr={prevValues:{...ce},startX:ge.x,startY:ge.y,childNodes:Ke.map(bi=>({...bi,position:{...bi.position}}))};if((ei||rr||qn[0]===1||qn[1]===1)&&(Nn.x=ei?Oi:ce.x,Nn.y=rr?gr:ce.y,ce.x=Nn.x,ce.y=Nn.y,Ke.length>0)){const bi=Oi-Sn,Mc=gr-Bn;for(const ku of Ke)ku.position={x:ku.position.x-bi+qn[0]*(Jt-dn),y:ku.position.y-Mc+qn[1]*(Kt-Gn)},rn.push(ku)}if((Ki||Kn)&&(Nn.width=Ki&&(!v.resizeDirection||v.resizeDirection==="horizontal")?Jt:ce.width,Nn.height=Kn&&(!v.resizeDirection||v.resizeDirection==="vertical")?Kt:ce.height,ce.width=Nn.width,ce.height=Nn.height),Xe&&ee.expandParent){const bi=qn[0]*(Nn.width??0);Nn.x&&Nn.x<bi&&(ce.x=bi,ge.x=ge.x-(Nn.x-bi));const Mc=qn[1]*(Nn.height??0);Nn.y&&Nn.y<Mc&&(ce.y=Mc,ge.y=ge.y-(Nn.y-Mc))}const _i=$Rn({width:ce.width,prevWidth:dn,height:ce.height,prevHeight:Gn,affectsX:v.controlDirection.affectsX,affectsY:v.controlDirection.affectsY}),sr={...ce,direction:_i};if((xe==null?void 0:xe(Zn,sr))===!1){ce=cr.prevValues,ge.x=cr.startX,ge.y=cr.startY,Ke.forEach((bi,Mc)=>{bi.position=cr.childNodes[Mc].position});return}ne==null||ne(Zn,sr),N(Nn,rn)}).on("end",Zn=>{U==null||U(Zn,{...ce}),D==null||D({...ce})});F.call(jn)}function te(){F.on(".drag",null)}return{update:q,destroy:te}}const JRn={},ehn=p=>{let E;const P=new Set,N=(pe,oe)=>{const z=typeof pe=="function"?pe(E):pe;if(!Object.is(z,E)){const Z=E;E=oe??(typeof z!="object"||z===null)?z:Object.assign({},E,z),P.forEach(ne=>ne(E,Z))}},D=()=>E,te={setState:N,getState:D,getInitialState:()=>ie,subscribe:pe=>(P.add(pe),()=>P.delete(pe)),destroy:()=>{(JRn?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),P.clear()}},ie=E=p(N,D,te);return te},GRn=p=>p?ehn(p):ehn,{useDebugValue:HRn}=GFn,{useSyncExternalStoreWithSelector:qRn}=JFn,zRn=p=>p;function dan(p,E=zRn,P){const N=qRn(p.subscribe,p.getState,p.getServerState||p.getInitialState,E,P);return HRn(N),N}const nhn=(p,E)=>{const P=GRn(p),N=(D,F=E)=>dan(P,D,F);return Object.assign(N,P),N},URn=(p,E)=>p?nhn(p,E):nhn;function Ts(p,E){if(Object.is(p,E))return!0;if(typeof p!="object"||p===null||typeof E!="object"||E===null)return!1;if(p instanceof Map&&E instanceof Map){if(p.size!==E.size)return!1;for(const[N,D]of p)if(!Object.is(D,E.get(N)))return!1;return!0}if(p instanceof Set&&E instanceof Set){if(p.size!==E.size)return!1;for(const N of p)if(!E.has(N))return!1;return!0}const P=Object.keys(p);if(P.length!==Object.keys(E).length)return!1;for(const N of P)if(!Object.prototype.hasOwnProperty.call(E,N)||!Object.is(p[N],E[N]))return!1;return!0}const qX=sn.createContext(null),XRn=qX.Provider,ban=t2.error001("react");function Sc(p,E){const P=sn.useContext(qX);if(P===null)throw new Error(ban);return dan(P,p,E)}function os(){const p=sn.useContext(qX);if(p===null)throw new Error(ban);return sn.useMemo(()=>({getState:p.getState,setState:p.setState,subscribe:p.subscribe}),[p])}const thn={display:"none"},KRn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},wan="react-flow__node-desc",gan="react-flow__edge-desc",WRn="react-flow__aria-live",VRn=p=>p.ariaLiveMessage,QRn=p=>p.ariaLabelConfig;function YRn({rfId:p}){const E=Sc(VRn);return ae.jsx("div",{id:`${WRn}-${p}`,"aria-live":"assertive","aria-atomic":"true",style:KRn,children:E})}function ZRn({rfId:p,disableKeyboardA11y:E}){const P=Sc(QRn);return ae.jsxs(ae.Fragment,{children:[ae.jsx("div",{id:`${wan}-${p}`,style:thn,children:E?P["node.a11yDescription.default"]:P["node.a11yDescription.keyboardDisabled"]}),ae.jsx("div",{id:`${gan}-${p}`,style:thn,children:P["edge.a11yDescription.default"]}),!E&&ae.jsx(YRn,{rfId:p})]})}const pN=sn.forwardRef(({position:p="top-left",children:E,className:P,style:N,...D},F)=>{const v=`${p}`.split("-");return ae.jsx("div",{className:Kf(["react-flow__panel",P,...v]),style:N,ref:F,...D,children:E})});pN.displayName="Panel";const ihn="https://reactflow.dev?utm_source=attribution";function e_n({proOptions:p,position:E="bottom-right"}){return sn.useEffect(()=>{},[]),p!=null&&p.hideAttribution?null:ae.jsx(pN,{position:E,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${ihn}`,children:ae.jsx("a",{href:ihn,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const n_n=p=>{const E=[],P=[];for(const[,N]of p.nodeLookup)N.selected&&E.push(N.internals.userNode);for(const[,N]of p.edgeLookup)N.selected&&P.push(N);return{selectedNodes:E,selectedEdges:P}},IX=p=>p.id;function t_n(p,E){return Ts(p.selectedNodes.map(IX),E.selectedNodes.map(IX))&&Ts(p.selectedEdges.map(IX),E.selectedEdges.map(IX))}function i_n({onSelectionChange:p}){const E=os(),{selectedNodes:P,selectedEdges:N}=Sc(n_n,t_n);return sn.useEffect(()=>{const D={nodes:P,edges:N};p==null||p(D),E.getState().onSelectionChangeHandlers.forEach(F=>F(D))},[P,N,p]),null}const r_n=p=>!!p.onSelectionChangeHandlers;function c_n({onSelectionChange:p}){const E=Sc(r_n);return p||E?ae.jsx(i_n,{onSelectionChange:p}):null}const pan=[0,0],u_n={x:0,y:0,zoom:1},o_n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],rhn=[...o_n,"rfId"],s_n=p=>({setNodes:p.setNodes,setEdges:p.setEdges,setMinZoom:p.setMinZoom,setMaxZoom:p.setMaxZoom,setTranslateExtent:p.setTranslateExtent,setNodeExtent:p.setNodeExtent,reset:p.reset,setDefaultNodesAndEdges:p.setDefaultNodesAndEdges}),chn={translateExtent:oN,nodeOrigin:pan,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function f_n(p){const{setNodes:E,setEdges:P,setMinZoom:N,setMaxZoom:D,setTranslateExtent:F,setNodeExtent:v,reset:q,setDefaultNodesAndEdges:te}=Sc(s_n,Ts),ie=os();sn.useEffect(()=>(te(p.defaultNodes,p.defaultEdges),()=>{pe.current=chn,q()}),[]);const pe=sn.useRef(chn);return sn.useEffect(()=>{for(const oe of rhn){const z=p[oe],Z=pe.current[oe];z!==Z&&(typeof p[oe]>"u"||(oe==="nodes"?E(z):oe==="edges"?P(z):oe==="minZoom"?N(z):oe==="maxZoom"?D(z):oe==="translateExtent"?F(z):oe==="nodeExtent"?v(z):oe==="ariaLabelConfig"?ie.setState({ariaLabelConfig:YBn(z)}):oe==="fitView"?ie.setState({fitViewQueued:z}):oe==="fitViewOptions"?ie.setState({fitViewOptions:z}):ie.setState({[oe]:z})))}pe.current=p},rhn.map(oe=>p[oe])),null}function uhn(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function l_n(p){var N;const[E,P]=sn.useState(p==="system"?null:p);return sn.useEffect(()=>{if(p!=="system"){P(p);return}const D=uhn(),F=()=>P(D!=null&&D.matches?"dark":"light");return F(),D==null||D.addEventListener("change",F),()=>{D==null||D.removeEventListener("change",F)}},[p]),E!==null?E:(N=uhn())!=null&&N.matches?"dark":"light"}const ohn=typeof document<"u"?document:null;function aN(p=null,E={target:ohn,actInsideInputWithModifier:!0}){const[P,N]=sn.useState(!1),D=sn.useRef(!1),F=sn.useRef(new Set([])),[v,q]=sn.useMemo(()=>{if(p!==null){const ie=(Array.isArray(p)?p:[p]).filter(oe=>typeof oe=="string").map(oe=>oe.replace(/\+/g,`
1
+ import{lh as JFn,R as GFn,r as sn,j as ae,e6 as Ihn,iP as HFn,ji as qFn,hL as zFn,li as UFn,ar as cN,bx as Tge,B as Phn,aj as Ohn,G as n2,aO as Sge,b7 as Ige,b6 as XFn,_ as iN,f as KFn,im as WFn,X as VFn,eq as Lln,ep as QFn,ai as YFn,ap as ZFn,lj as eBn,hR as nBn,bW as AX,ft as tBn,x as $ln,hP as iBn,hj as rBn,gc as cBn,gd as uBn,ge as oBn,gf as sBn,gg as fBn,gh as lBn,gi as hBn,gj as aBn,h4 as dBn}from"./index-C3cvP8Fo.js";import{s as $0,g as Nhn,j as Pge,T as fge,k as lge,t as bBn}from"./transform-BqqRT-Iy.js";import{i as hge}from"./value-wA6veExk.js";import{H as $X}from"./_shell.team-UfaJqohh.js";import{H as wBn}from"./heart-CqwUlIUG.js";import{a as age,A as gBn}from"./AdapterIcon-BcfquTja.js";import"./relay-trace-schemas-DF_DfZ7s.js";import{d as pBn,c as mBn,a as vBn,B as yBn}from"./BindingDialog-BAdueON5.js";import{s as kBn}from"./session-strategy-labels-C7Wduch3.js";import{c as MX}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{u as jBn}from"./use-mesh-topology-CafidaIH.js";import{E as EBn}from"./empty-state-CDoXnrKn.js";import{Q as ABn}from"./query-error-state-PuLGD7Jp.js";import{u as MBn}from"./use-bindings-CU2RSXOy.js";import{u as CBn}from"./use-delete-binding-qeyRkvR1.js";import{u as xBn}from"./use-relay-config-hUB3lVFv.js";import"./use-pending-read-BoV-UI1E.js";import"./search-x-CqN5twBj.js";import"./scroll-area-BvScZKSa.js";import"./OpenMeshSwitch-BTuctDj4.js";import"./table-CN2HCi4p.js";import"./use-is-hub-BX7ypNRJ.js";import"./page-container-DsRgIMAL.js";import"./profile-errors-BdhZfdvZ.js";import"./CommitmentList-Dx_Ek_Gl.js";import"./TeamComputerEntry-CJ-NG0u5.js";import"./ComputerViewer-D8SxJdMm.js";import"./form-Cru78aT-.js";import"./use-adapter-catalog-BrqVd-47.js";import"./trust-posture-Bcyy5Fub.js";function Kf(p){if(typeof p=="string"||typeof p=="number")return""+p;let E="";if(Array.isArray(p))for(let P=0,N;P<p.length;P++)(N=Kf(p[P]))!==""&&(E+=(E&&" ")+N);else for(let P in p)p[P]&&(E+=(E&&" ")+P);return E}function TBn(p){let E;for(;E=p.sourceEvent;)p=E;return p}function Yg(p,E){if(p=TBn(p),E===void 0&&(E=p.currentTarget),E){var P=E.ownerSVGElement||E;if(P.createSVGPoint){var N=P.createSVGPoint();return N.x=p.clientX,N.y=p.clientY,N=N.matrixTransform(E.getScreenCTM().inverse()),[N.x,N.y]}if(E.getBoundingClientRect){var D=E.getBoundingClientRect();return[p.clientX-D.left-E.clientLeft,p.clientY-D.top-E.clientTop]}}return[p.pageX,p.pageY]}const SBn={passive:!1},uN={capture:!0,passive:!1};function dge(p){p.stopImmediatePropagation()}function CA(p){p.preventDefault(),p.stopImmediatePropagation()}function Dhn(p){var E=p.document.documentElement,P=$0(p).on("dragstart.drag",CA,uN);"onselectstart"in E?P.on("selectstart.drag",CA,uN):(E.__noselect=E.style.MozUserSelect,E.style.MozUserSelect="none")}function Lhn(p,E){var P=p.document.documentElement,N=$0(p).on("dragstart.drag",null);E&&(N.on("click.drag",CA,uN),setTimeout(function(){N.on("click.drag",null)},0)),"onselectstart"in P?N.on("selectstart.drag",null):(P.style.MozUserSelect=P.__noselect,delete P.__noselect)}const CX=p=>()=>p;function kge(p,{sourceEvent:E,subject:P,target:N,identifier:D,active:F,x:v,y:q,dx:te,dy:ie,dispatch:pe}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},subject:{value:P,enumerable:!0,configurable:!0},target:{value:N,enumerable:!0,configurable:!0},identifier:{value:D,enumerable:!0,configurable:!0},active:{value:F,enumerable:!0,configurable:!0},x:{value:v,enumerable:!0,configurable:!0},y:{value:q,enumerable:!0,configurable:!0},dx:{value:te,enumerable:!0,configurable:!0},dy:{value:ie,enumerable:!0,configurable:!0},_:{value:pe}})}kge.prototype.on=function(){var p=this._.on.apply(this._,arguments);return p===this._?this:p};function IBn(p){return!p.ctrlKey&&!p.button}function PBn(){return this.parentNode}function OBn(p,E){return E??{x:p.x,y:p.y}}function NBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function $hn(){var p=IBn,E=PBn,P=OBn,N=NBn,D={},F=Nhn("start","drag","end"),v=0,q,te,ie,pe,oe=0;function z(Me){Me.on("mousedown.drag",Z).filter(N).on("touchstart.drag",xe).on("touchmove.drag",ce,SBn).on("touchend.drag touchcancel.drag",ge).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(Me,Ke){if(!(pe||!p.call(this,Me,Ke))){var Xe=ee(this,E.call(this,Me,Ke),Me,Ke,"mouse");Xe&&($0(Me.view).on("mousemove.drag",ne,uN).on("mouseup.drag",U,uN),Dhn(Me.view),dge(Me),ie=!1,q=Me.clientX,te=Me.clientY,Xe("start",Me))}}function ne(Me){if(CA(Me),!ie){var Ke=Me.clientX-q,Xe=Me.clientY-te;ie=Ke*Ke+Xe*Xe>oe}D.mouse("drag",Me)}function U(Me){$0(Me.view).on("mousemove.drag mouseup.drag",null),Lhn(Me.view,ie),CA(Me),D.mouse("end",Me)}function xe(Me,Ke){if(p.call(this,Me,Ke)){var Xe=Me.changedTouches,Ye=E.call(this,Me,Ke),kn=Xe.length,jn,Zn;for(jn=0;jn<kn;++jn)(Zn=ee(this,Ye,Me,Ke,Xe[jn].identifier,Xe[jn]))&&(dge(Me),Zn("start",Me,Xe[jn]))}}function ce(Me){var Ke=Me.changedTouches,Xe=Ke.length,Ye,kn;for(Ye=0;Ye<Xe;++Ye)(kn=D[Ke[Ye].identifier])&&(CA(Me),kn("drag",Me,Ke[Ye]))}function ge(Me){var Ke=Me.changedTouches,Xe=Ke.length,Ye,kn;for(pe&&clearTimeout(pe),pe=setTimeout(function(){pe=null},500),Ye=0;Ye<Xe;++Ye)(kn=D[Ke[Ye].identifier])&&(dge(Me),kn("end",Me,Ke[Ye]))}function ee(Me,Ke,Xe,Ye,kn,jn){var Zn=F.copy(),$n=Yg(jn||Xe,Ke),Vn,_,je;if((je=P.call(Me,new kge("beforestart",{sourceEvent:Xe,target:z,identifier:kn,active:v,x:$n[0],y:$n[1],dx:0,dy:0,dispatch:Zn}),Ye))!=null)return Vn=je.x-$n[0]||0,_=je.y-$n[1]||0,function on(rn,Sn,Bn){var dn=$n,Gn;switch(rn){case"start":D[kn]=on,Gn=v++;break;case"end":delete D[kn],--v;case"drag":$n=Yg(Bn||Sn,Ke),Gn=v;break}Zn.call(rn,Me,new kge(rn,{sourceEvent:Sn,subject:je,target:z,identifier:kn,active:Gn,x:$n[0]+Vn,y:$n[1]+_,dx:$n[0]-dn[0],dy:$n[1]-dn[1],dispatch:Zn}),Ye)}}return z.filter=function(Me){return arguments.length?(p=typeof Me=="function"?Me:CX(!!Me),z):p},z.container=function(Me){return arguments.length?(E=typeof Me=="function"?Me:CX(Me),z):E},z.subject=function(Me){return arguments.length?(P=typeof Me=="function"?Me:CX(Me),z):P},z.touchable=function(Me){return arguments.length?(N=typeof Me=="function"?Me:CX(!!Me),z):N},z.on=function(){var Me=F.on.apply(F,arguments);return Me===F?z:Me},z.clickDistance=function(Me){return arguments.length?(oe=(Me=+Me)*Me,z):Math.sqrt(oe)},z}var DBn=1e-12;function Fln(p){return((p=Math.exp(p))+1/p)/2}function LBn(p){return((p=Math.exp(p))-1/p)/2}function $Bn(p){return((p=Math.exp(2*p))-1)/(p+1)}const NX=(function p(E,P,N){function D(F,v){var q=F[0],te=F[1],ie=F[2],pe=v[0],oe=v[1],z=v[2],Z=pe-q,ne=oe-te,U=Z*Z+ne*ne,xe,ce;if(U<DBn)ce=Math.log(z/ie)/E,xe=function(Ye){return[q+Ye*Z,te+Ye*ne,ie*Math.exp(E*Ye*ce)]};else{var ge=Math.sqrt(U),ee=(z*z-ie*ie+N*U)/(2*ie*P*ge),Me=(z*z-ie*ie-N*U)/(2*z*P*ge),Ke=Math.log(Math.sqrt(ee*ee+1)-ee),Xe=Math.log(Math.sqrt(Me*Me+1)-Me);ce=(Xe-Ke)/E,xe=function(Ye){var kn=Ye*ce,jn=Fln(Ke),Zn=ie/(P*ge)*(jn*$Bn(E*kn+Ke)-LBn(Ke));return[q+Zn*Z,te+Zn*ne,ie*jn/Fln(E*kn+Ke)]}}return xe.duration=ce*1e3*E/Math.SQRT2,xe}return D.rho=function(F){var v=Math.max(.001,+F),q=v*v,te=q*q;return p(v,q,te)},D})(Math.SQRT2,2,4),xX=p=>()=>p;function FBn(p,{sourceEvent:E,target:P,transform:N,dispatch:D}){Object.defineProperties(this,{type:{value:p,enumerable:!0,configurable:!0},sourceEvent:{value:E,enumerable:!0,configurable:!0},target:{value:P,enumerable:!0,configurable:!0},transform:{value:N,enumerable:!0,configurable:!0},_:{value:D}})}function bge(p){p.stopImmediatePropagation()}function tN(p){p.preventDefault(),p.stopImmediatePropagation()}function BBn(p){return(!p.ctrlKey||p.type==="wheel")&&!p.button}function RBn(){var p=this;return p instanceof SVGElement?(p=p.ownerSVGElement||p,p.hasAttribute("viewBox")?(p=p.viewBox.baseVal,[[p.x,p.y],[p.x+p.width,p.y+p.height]]):[[0,0],[p.width.baseVal.value,p.height.baseVal.value]]):[[0,0],[p.clientWidth,p.clientHeight]]}function Bln(){return this.__zoom||Pge}function _Bn(p){return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*(p.ctrlKey?10:1)}function JBn(){return navigator.maxTouchPoints||"ontouchstart"in this}function GBn(p,E,P){var N=p.invertX(E[0][0])-P[0][0],D=p.invertX(E[1][0])-P[1][0],F=p.invertY(E[0][1])-P[0][1],v=p.invertY(E[1][1])-P[1][1];return p.translate(D>N?(N+D)/2:Math.min(0,N)||Math.max(0,D),v>F?(F+v)/2:Math.min(0,F)||Math.max(0,v))}function Fhn(){var p=BBn,E=RBn,P=GBn,N=_Bn,D=JBn,F=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],q=250,te=NX,ie=Nhn("start","zoom","end"),pe,oe,z,Z=500,ne=150,U=0,xe=10;function ce(je){je.property("__zoom",Bln).on("wheel.zoom",kn,{passive:!1}).on("mousedown.zoom",jn).on("dblclick.zoom",Zn).filter(D).on("touchstart.zoom",$n).on("touchmove.zoom",Vn).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}ce.transform=function(je,on,rn,Sn){var Bn=je.selection?je.selection():je;Bn.property("__zoom",Bln),je!==Bn?Ke(je,on,rn,Sn):Bn.interrupt().each(function(){Xe(this,arguments).event(Sn).start().zoom(null,typeof on=="function"?on.apply(this,arguments):on).end()})},ce.scaleBy=function(je,on,rn,Sn){ce.scaleTo(je,function(){var Bn=this.__zoom.k,dn=typeof on=="function"?on.apply(this,arguments):on;return Bn*dn},rn,Sn)},ce.scaleTo=function(je,on,rn,Sn){ce.transform(je,function(){var Bn=E.apply(this,arguments),dn=this.__zoom,Gn=rn==null?Me(Bn):typeof rn=="function"?rn.apply(this,arguments):rn,Nn=dn.invert(Gn),qn=typeof on=="function"?on.apply(this,arguments):on;return P(ee(ge(dn,qn),Gn,Nn),Bn,v)},rn,Sn)},ce.translateBy=function(je,on,rn,Sn){ce.transform(je,function(){return P(this.__zoom.translate(typeof on=="function"?on.apply(this,arguments):on,typeof rn=="function"?rn.apply(this,arguments):rn),E.apply(this,arguments),v)},null,Sn)},ce.translateTo=function(je,on,rn,Sn,Bn){ce.transform(je,function(){var dn=E.apply(this,arguments),Gn=this.__zoom,Nn=Sn==null?Me(dn):typeof Sn=="function"?Sn.apply(this,arguments):Sn;return P(Pge.translate(Nn[0],Nn[1]).scale(Gn.k).translate(typeof on=="function"?-on.apply(this,arguments):-on,typeof rn=="function"?-rn.apply(this,arguments):-rn),dn,v)},Sn,Bn)};function ge(je,on){return on=Math.max(F[0],Math.min(F[1],on)),on===je.k?je:new fge(on,je.x,je.y)}function ee(je,on,rn){var Sn=on[0]-rn[0]*je.k,Bn=on[1]-rn[1]*je.k;return Sn===je.x&&Bn===je.y?je:new fge(je.k,Sn,Bn)}function Me(je){return[(+je[0][0]+ +je[1][0])/2,(+je[0][1]+ +je[1][1])/2]}function Ke(je,on,rn,Sn){je.on("start.zoom",function(){Xe(this,arguments).event(Sn).start()}).on("interrupt.zoom end.zoom",function(){Xe(this,arguments).event(Sn).end()}).tween("zoom",function(){var Bn=this,dn=arguments,Gn=Xe(Bn,dn).event(Sn),Nn=E.apply(Bn,dn),qn=rn==null?Me(Nn):typeof rn=="function"?rn.apply(Bn,dn):rn,Jt=Math.max(Nn[1][0]-Nn[0][0],Nn[1][1]-Nn[0][1]),Kt=Bn.__zoom,Oi=typeof on=="function"?on.apply(Bn,dn):on,gr=te(Kt.invert(qn).concat(Jt/Kt.k),Oi.invert(qn).concat(Jt/Oi.k));return function(Ki){if(Ki===1)Ki=Oi;else{var Kn=gr(Ki),ei=Jt/Kn[2];Ki=new fge(ei,qn[0]-Kn[0]*ei,qn[1]-Kn[1]*ei)}Gn.zoom(null,Ki)}})}function Xe(je,on,rn){return!rn&&je.__zooming||new Ye(je,on)}function Ye(je,on){this.that=je,this.args=on,this.active=0,this.sourceEvent=null,this.extent=E.apply(je,on),this.taps=0}Ye.prototype={event:function(je){return je&&(this.sourceEvent=je),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(je,on){return this.mouse&&je!=="mouse"&&(this.mouse[1]=on.invert(this.mouse[0])),this.touch0&&je!=="touch"&&(this.touch0[1]=on.invert(this.touch0[0])),this.touch1&&je!=="touch"&&(this.touch1[1]=on.invert(this.touch1[0])),this.that.__zoom=on,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(je){var on=$0(this.that).datum();ie.call(je,this.that,new FBn(je,{sourceEvent:this.sourceEvent,target:ce,transform:this.that.__zoom,dispatch:ie}),on)}};function kn(je,...on){if(!p.apply(this,arguments))return;var rn=Xe(this,on).event(je),Sn=this.__zoom,Bn=Math.max(F[0],Math.min(F[1],Sn.k*Math.pow(2,N.apply(this,arguments)))),dn=Yg(je);if(rn.wheel)(rn.mouse[0][0]!==dn[0]||rn.mouse[0][1]!==dn[1])&&(rn.mouse[1]=Sn.invert(rn.mouse[0]=dn)),clearTimeout(rn.wheel);else{if(Sn.k===Bn)return;rn.mouse=[dn,Sn.invert(dn)],lge(this),rn.start()}tN(je),rn.wheel=setTimeout(Gn,ne),rn.zoom("mouse",P(ee(ge(Sn,Bn),rn.mouse[0],rn.mouse[1]),rn.extent,v));function Gn(){rn.wheel=null,rn.end()}}function jn(je,...on){if(z||!p.apply(this,arguments))return;var rn=je.currentTarget,Sn=Xe(this,on,!0).event(je),Bn=$0(je.view).on("mousemove.zoom",qn,!0).on("mouseup.zoom",Jt,!0),dn=Yg(je,rn),Gn=je.clientX,Nn=je.clientY;Dhn(je.view),bge(je),Sn.mouse=[dn,this.__zoom.invert(dn)],lge(this),Sn.start();function qn(Kt){if(tN(Kt),!Sn.moved){var Oi=Kt.clientX-Gn,gr=Kt.clientY-Nn;Sn.moved=Oi*Oi+gr*gr>U}Sn.event(Kt).zoom("mouse",P(ee(Sn.that.__zoom,Sn.mouse[0]=Yg(Kt,rn),Sn.mouse[1]),Sn.extent,v))}function Jt(Kt){Bn.on("mousemove.zoom mouseup.zoom",null),Lhn(Kt.view,Sn.moved),tN(Kt),Sn.event(Kt).end()}}function Zn(je,...on){if(p.apply(this,arguments)){var rn=this.__zoom,Sn=Yg(je.changedTouches?je.changedTouches[0]:je,this),Bn=rn.invert(Sn),dn=rn.k*(je.shiftKey?.5:2),Gn=P(ee(ge(rn,dn),Sn,Bn),E.apply(this,on),v);tN(je),q>0?$0(this).transition().duration(q).call(Ke,Gn,Sn,je):$0(this).call(ce.transform,Gn,Sn,je)}}function $n(je,...on){if(p.apply(this,arguments)){var rn=je.touches,Sn=rn.length,Bn=Xe(this,on,je.changedTouches.length===Sn).event(je),dn,Gn,Nn,qn;for(bge(je),Gn=0;Gn<Sn;++Gn)Nn=rn[Gn],qn=Yg(Nn,this),qn=[qn,this.__zoom.invert(qn),Nn.identifier],Bn.touch0?!Bn.touch1&&Bn.touch0[2]!==qn[2]&&(Bn.touch1=qn,Bn.taps=0):(Bn.touch0=qn,dn=!0,Bn.taps=1+!!pe);pe&&(pe=clearTimeout(pe)),dn&&(Bn.taps<2&&(oe=qn[0],pe=setTimeout(function(){pe=null},Z)),lge(this),Bn.start())}}function Vn(je,...on){if(this.__zooming){var rn=Xe(this,on).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Gn,Nn,qn;for(tN(je),dn=0;dn<Bn;++dn)Gn=Sn[dn],Nn=Yg(Gn,this),rn.touch0&&rn.touch0[2]===Gn.identifier?rn.touch0[0]=Nn:rn.touch1&&rn.touch1[2]===Gn.identifier&&(rn.touch1[0]=Nn);if(Gn=rn.that.__zoom,rn.touch1){var Jt=rn.touch0[0],Kt=rn.touch0[1],Oi=rn.touch1[0],gr=rn.touch1[1],Ki=(Ki=Oi[0]-Jt[0])*Ki+(Ki=Oi[1]-Jt[1])*Ki,Kn=(Kn=gr[0]-Kt[0])*Kn+(Kn=gr[1]-Kt[1])*Kn;Gn=ge(Gn,Math.sqrt(Ki/Kn)),Nn=[(Jt[0]+Oi[0])/2,(Jt[1]+Oi[1])/2],qn=[(Kt[0]+gr[0])/2,(Kt[1]+gr[1])/2]}else if(rn.touch0)Nn=rn.touch0[0],qn=rn.touch0[1];else return;rn.zoom("touch",P(ee(Gn,Nn,qn),rn.extent,v))}}function _(je,...on){if(this.__zooming){var rn=Xe(this,on).event(je),Sn=je.changedTouches,Bn=Sn.length,dn,Gn;for(bge(je),z&&clearTimeout(z),z=setTimeout(function(){z=null},Z),dn=0;dn<Bn;++dn)Gn=Sn[dn],rn.touch0&&rn.touch0[2]===Gn.identifier?delete rn.touch0:rn.touch1&&rn.touch1[2]===Gn.identifier&&delete rn.touch1;if(rn.touch1&&!rn.touch0&&(rn.touch0=rn.touch1,delete rn.touch1),rn.touch0)rn.touch0[1]=this.__zoom.invert(rn.touch0[0]);else if(rn.end(),rn.taps===2&&(Gn=Yg(Gn,this),Math.hypot(oe[0]-Gn[0],oe[1]-Gn[1])<xe)){var Nn=$0(this).on("dblclick.zoom");Nn&&Nn.apply(this,arguments)}}}return ce.wheelDelta=function(je){return arguments.length?(N=typeof je=="function"?je:xX(+je),ce):N},ce.filter=function(je){return arguments.length?(p=typeof je=="function"?je:xX(!!je),ce):p},ce.touchable=function(je){return arguments.length?(D=typeof je=="function"?je:xX(!!je),ce):D},ce.extent=function(je){return arguments.length?(E=typeof je=="function"?je:xX([[+je[0][0],+je[0][1]],[+je[1][0],+je[1][1]]]),ce):E},ce.scaleExtent=function(je){return arguments.length?(F[0]=+je[0],F[1]=+je[1],ce):[F[0],F[1]]},ce.translateExtent=function(je){return arguments.length?(v[0][0]=+je[0][0],v[1][0]=+je[1][0],v[0][1]=+je[0][1],v[1][1]=+je[1][1],ce):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},ce.constrain=function(je){return arguments.length?(P=je,ce):P},ce.duration=function(je){return arguments.length?(q=+je,ce):q},ce.interpolate=function(je){return arguments.length?(te=je,ce):te},ce.on=function(){var je=ie.on.apply(ie,arguments);return je===ie?ce:je},ce.clickDistance=function(je){return arguments.length?(U=(je=+je)*je,ce):Math.sqrt(U)},ce.tapDistance=function(je){return arguments.length?(xe=+je,ce):xe},ce}const t2={error001:(p="react")=>`Seems like you have not used ${p==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${p}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:p=>`Node type "${p}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:p=>`The old edge with id=${p} does not exist.`,error009:p=>`Marker type "${p}" doesn't exist.`,error008:(p,{id:E,sourceHandle:P,targetHandle:N})=>`Couldn't create edge for ${p} handle id: "${p==="source"?P:N}", edge id: ${E}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:p=>`Edge type "${p}" not found. Using fallback type "default".`,error012:p=>`Node with id "${p}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(p="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${p}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:p=>`Edge with id "${p}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},oN=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Bhn=["Enter"," ","Escape"],Rhn={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:p,x:E,y:P})=>`Moved selected node ${p}. New position, x: ${E}, y: ${P}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var xA;(function(p){p.Strict="strict",p.Loose="loose"})(xA||(xA={}));var V8;(function(p){p.Free="free",p.Vertical="vertical",p.Horizontal="horizontal"})(V8||(V8={}));var sN;(function(p){p.Partial="partial",p.Full="full"})(sN||(sN={}));const _hn={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var J5;(function(p){p.Bezier="default",p.Straight="straight",p.Step="step",p.SmoothStep="smoothstep",p.SimpleBezier="simplebezier"})(J5||(J5={}));var fN;(function(p){p.Arrow="arrow",p.ArrowClosed="arrowclosed"})(fN||(fN={}));var ji;(function(p){p.Left="left",p.Top="top",p.Right="right",p.Bottom="bottom"})(ji||(ji={}));const Rln={[ji.Left]:ji.Right,[ji.Right]:ji.Left,[ji.Top]:ji.Bottom,[ji.Bottom]:ji.Top},Jhn=p=>!!p&&typeof p=="object"&&"id"in p&&"source"in p&&"target"in p,HBn=p=>!!p&&typeof p=="object"&&"id"in p&&"position"in p&&!("source"in p)&&!("target"in p),Oge=p=>!!p&&typeof p=="object"&&"id"in p&&"internals"in p&&!("source"in p)&&!("target"in p),dN=(p,E=[0,0])=>{const{width:P,height:N}=i2(p),D=p.origin??E,F=P*D[0],v=N*D[1];return{x:p.position.x-F,y:p.position.y-v}},qBn=(p,E={nodeOrigin:[0,0]})=>{if(p.length===0)return{x:0,y:0,width:0,height:0};let P=!1;const N=p.reduce((D,F)=>{const v=typeof F=="string";let q=!E.nodeLookup&&!v?F:void 0;return E.nodeLookup&&(q=v?E.nodeLookup.get(F):Oge(F)?F:E.nodeLookup.get(F.id)),q?(P=!0,JX(D,FX(q,E.nodeOrigin))):D},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return P?GX(N):{x:0,y:0,width:0,height:0}},PA=(p,E={})=>{let P={x:1/0,y:1/0,x2:-1/0,y2:-1/0},N=!1;return p.forEach(D=>{(E.filter===void 0||E.filter(D))&&(P=JX(P,FX(D)),N=!0)}),N?GX(P):{x:0,y:0,width:0,height:0}},Nge=(p,E,[P,N,D]=[0,0,1],F=!1,v=!1)=>{const q=(E.x-P)/D,te=(E.y-N)/D,ie=E.width/D,pe=E.height/D,oe=[];for(const z of p.values()){const{measured:Z,selectable:ne=!0,hidden:U=!1}=z;if(v&&!ne||U)continue;const xe=Z.width??z.width??z.initialWidth??0,ce=Z.height??z.height??z.initialHeight??0,{x:ge,y:ee}=z.internals.positionAbsolute,Me=zhn(q,te,ie,pe,ge,ee,xe,ce),Ke=xe*ce,Xe=F&&Me>0;(!z.internals.handleBounds||Xe||Me>=Ke||z.dragging)&&oe.push(z)}return oe},zBn=(p,E)=>{const P=new Set;return p.forEach(N=>{P.add(N.id)}),E.filter(N=>P.has(N.source)||P.has(N.target))};function UBn(p,E){const P=new Map,N=E!=null&&E.nodes?new Set(E.nodes.map(D=>D.id)):null;return p.forEach(D=>{let F;if(E!=null&&E.includeHiddenNodes){const{width:v,height:q}=i2(D);F=v>0&&q>0}else F=!!(D.measured.width&&D.measured.height&&!D.hidden);F&&(!N||N.has(D.id))&&P.set(D.id,D)}),P}async function XBn({nodes:p,width:E,height:P,panZoom:N,minZoom:D,maxZoom:F},v){if(p.size===0)return!0;const q=UBn(p,v),te=PA(q),ie=Lge(te,E,P,(v==null?void 0:v.minZoom)??D,(v==null?void 0:v.maxZoom)??F,(v==null?void 0:v.padding)??.1);return await N.setViewport(ie,{duration:v==null?void 0:v.duration,ease:v==null?void 0:v.ease,interpolate:v==null?void 0:v.interpolate}),!0}function Ghn({nodeId:p,nextPosition:E,nodeLookup:P,nodeOrigin:N=[0,0],nodeExtent:D,onError:F}){const v=P.get(p),q=v.parentId?P.get(v.parentId):void 0,{x:te,y:ie}=q?q.internals.positionAbsolute:{x:0,y:0},pe=v.origin??N;let oe=v.extent||D;if(v.extent==="parent"&&!v.expandParent)if(!q)F==null||F("005",t2.error005());else{const{width:Z,height:ne}=i2(q);Z&&ne&&(oe=[[te,ie],[te+Z,ie+ne]])}else q&&Y8(v.extent)&&(oe=[[v.extent[0][0]+te,v.extent[0][1]+ie],[v.extent[1][0]+te,v.extent[1][1]+ie]]);const z=Y8(oe)?Q8(E,oe,v.measured):E;return(v.measured.width===void 0||v.measured.height===void 0)&&(F==null||F("015",t2.error015())),{position:{x:z.x-te+(v.measured.width??0)*pe[0],y:z.y-ie+(v.measured.height??0)*pe[1]},positionAbsolute:z}}async function KBn({nodesToRemove:p=[],edgesToRemove:E=[],nodes:P,edges:N,onBeforeDelete:D}){const F=new Set(p.map(z=>z.id)),v=[];for(const z of P){if(z.deletable===!1)continue;const Z=F.has(z.id),ne=!Z&&z.parentId&&v.find(U=>U.id===z.parentId);(Z||ne)&&v.push(z)}const q=new Set(E.map(z=>z.id)),te=N.filter(z=>z.deletable!==!1),pe=zBn(v,te);for(const z of te)q.has(z.id)&&!pe.find(ne=>ne.id===z.id)&&pe.push(z);if(!D)return{edges:pe,nodes:v};const oe=await D({nodes:v,edges:pe});return typeof oe=="boolean"?oe?{edges:pe,nodes:v}:{edges:[],nodes:[]}:oe}const TA=(p,E=0,P=1)=>Math.min(Math.max(p,E),P),Q8=(p={x:0,y:0},E,P)=>({x:TA(p.x,E[0][0],E[1][0]-((P==null?void 0:P.width)??0)),y:TA(p.y,E[0][1],E[1][1]-((P==null?void 0:P.height)??0))});function Hhn(p,E,P){const{width:N,height:D}=i2(P),{x:F,y:v}=P.internals.positionAbsolute;return Q8(p,[[F,v],[F+N,v+D]],E)}const _ln=(p,E,P)=>p<E?TA(Math.abs(p-E),1,E)/E:p>P?-TA(Math.abs(p-P),1,E)/E:0,Dge=(p,E,P=15,N=40)=>{const D=_ln(p.x,N,E.width-N)*P,F=_ln(p.y,N,E.height-N)*P;return[D,F]},JX=(p,E)=>({x:Math.min(p.x,E.x),y:Math.min(p.y,E.y),x2:Math.max(p.x2,E.x2),y2:Math.max(p.y2,E.y2)}),jge=({x:p,y:E,width:P,height:N})=>({x:p,y:E,x2:p+P,y2:E+N}),GX=({x:p,y:E,x2:P,y2:N})=>({x:p,y:E,width:P-p,height:N-E}),lN=(p,E=[0,0])=>{var D,F;const{x:P,y:N}=Oge(p)?p.internals.positionAbsolute:dN(p,E);return{x:P,y:N,width:((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0,height:((F=p.measured)==null?void 0:F.height)??p.height??p.initialHeight??0}},FX=(p,E=[0,0])=>{var D,F;const{x:P,y:N}=Oge(p)?p.internals.positionAbsolute:dN(p,E);return{x:P,y:N,x2:P+(((D=p.measured)==null?void 0:D.width)??p.width??p.initialWidth??0),y2:N+(((F=p.measured)==null?void 0:F.height)??p.height??p.initialHeight??0)}},qhn=(p,E)=>GX(JX(jge(p),jge(E))),zhn=(p,E,P,N,D,F,v,q)=>{const te=Math.max(0,Math.min(p+P,D+v)-Math.max(p,D)),ie=Math.max(0,Math.min(E+N,F+q)-Math.max(E,F));return Math.ceil(te*ie)},BX=(p,E)=>zhn(p.x,p.y,p.width,p.height,E.x,E.y,E.width,E.height),Jln=p=>Zg(p.width)&&Zg(p.height)&&Zg(p.x)&&Zg(p.y),Zg=p=>!isNaN(p)&&isFinite(p),Uhn=(p,E)=>(P,N)=>{},bN=(p,E=[1,1])=>({x:E[0]*Math.round(p.x/E[0]),y:E[1]*Math.round(p.y/E[1])}),wN=({x:p,y:E},[P,N,D],F=!1,v=[1,1])=>{const q={x:(p-P)/D,y:(E-N)/D};return F?bN(q,v):q},SA=({x:p,y:E},[P,N,D])=>({x:p*D+P,y:E*D+N});function AA(p,E){if(typeof p=="number")return Math.floor((E-E/(1+p))*.5);if(typeof p=="string"&&p.endsWith("px")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(P)}if(typeof p=="string"&&p.endsWith("%")){const P=parseFloat(p);if(!Number.isNaN(P))return Math.floor(E*P*.01)}return console.error(`The padding value "${p}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function WBn(p,E,P){if(typeof p=="string"||typeof p=="number"){const N=AA(p,P),D=AA(p,E);return{top:N,right:D,bottom:N,left:D,x:D*2,y:N*2}}if(typeof p=="object"){const N=AA(p.top??p.y??0,P),D=AA(p.bottom??p.y??0,P),F=AA(p.left??p.x??0,E),v=AA(p.right??p.x??0,E);return{top:N,right:v,bottom:D,left:F,x:F+v,y:N+D}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function VBn(p,E,P,N,D,F){const{x:v,y:q}=SA(p,[E,P,N]),{x:te,y:ie}=SA({x:p.x+p.width,y:p.y+p.height},[E,P,N]),pe=D-te,oe=F-ie;return{left:Math.floor(v),top:Math.floor(q),right:Math.floor(pe),bottom:Math.floor(oe)}}const Lge=(p,E,P,N,D,F)=>{const v=WBn(F,E,P),q=(E-v.x)/p.width,te=(P-v.y)/p.height,ie=Math.min(q,te),pe=TA(ie,N,D),oe=p.x+p.width/2,z=p.y+p.height/2,Z=E/2-oe*pe,ne=P/2-z*pe,U=VBn(p,Z,ne,pe,E,P),xe={left:Math.min(U.left-v.left,0),top:Math.min(U.top-v.top,0),right:Math.min(U.right-v.right,0),bottom:Math.min(U.bottom-v.bottom,0)};return{x:Z-xe.left+xe.right,y:ne-xe.top+xe.bottom,zoom:pe}},hN=()=>{var p;return typeof navigator<"u"&&((p=navigator==null?void 0:navigator.userAgent)==null?void 0:p.indexOf("Mac"))>=0};function Y8(p){return p!=null&&p!=="parent"}function i2(p){var E,P;return{width:((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth??0,height:((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight??0}}function Xhn(p){var E,P;return(((E=p.measured)==null?void 0:E.width)??p.width??p.initialWidth)!==void 0&&(((P=p.measured)==null?void 0:P.height)??p.height??p.initialHeight)!==void 0}function Khn(p,E={width:0,height:0},P,N,D){const F={...p},v=N.get(P);if(v){const q=v.origin||D;F.x+=v.internals.positionAbsolute.x-(E.width??0)*q[0],F.y+=v.internals.positionAbsolute.y-(E.height??0)*q[1]}return F}function Gln(p,E){if(p.size!==E.size)return!1;for(const P of p)if(!E.has(P))return!1;return!0}function QBn(){let p,E;return{promise:new Promise((N,D)=>{p=N,E=D}),resolve:p,reject:E}}function YBn(p){return{...Rhn,...p||{}}}function Whn(p){return p===null?null:p?"valid":"invalid"}function rN(p,{snapGrid:E=[0,0],snapToGrid:P=!1,transform:N,containerBounds:D}){const{x:F,y:v}=e2(p),q=wN({x:F-((D==null?void 0:D.left)??0),y:v-((D==null?void 0:D.top)??0)},N),{x:te,y:ie}=P?bN(q,E):q;return{xSnapped:te,ySnapped:ie,...q}}const $ge=p=>({width:p.offsetWidth,height:p.offsetHeight}),Vhn=p=>{var E;return((E=p==null?void 0:p.getRootNode)==null?void 0:E.call(p))||(window==null?void 0:window.document)},ZBn=["INPUT","SELECT","TEXTAREA"];function Qhn(p){var N,D;const E=((D=(N=p.composedPath)==null?void 0:N.call(p))==null?void 0:D[0])||p.target;return(E==null?void 0:E.nodeType)!==1?!1:ZBn.includes(E.nodeName)||E.hasAttribute("contenteditable")||!!E.closest(".nokey")}const Yhn=p=>"clientX"in p,e2=(p,E)=>{var F,v;const P=Yhn(p),N=P?p.clientX:(F=p.touches)==null?void 0:F[0].clientX,D=P?p.clientY:(v=p.touches)==null?void 0:v[0].clientY;return{x:N-((E==null?void 0:E.left)??0),y:D-((E==null?void 0:E.top)??0)}},Hln=(p,E,P,N,D)=>{const F=E.querySelectorAll(`.${p}`);return!F||!F.length?null:Array.from(F).map(v=>{const q=v.getBoundingClientRect();return{id:v.getAttribute("data-handleid"),type:p,nodeId:D,position:v.getAttribute("data-handlepos"),x:(q.left-P.left)/N,y:(q.top-P.top)/N,...$ge(v)}})};function Zhn({sourceX:p,sourceY:E,targetX:P,targetY:N,sourceControlX:D,sourceControlY:F,targetControlX:v,targetControlY:q}){const te=p*.125+D*.375+v*.375+P*.125,ie=E*.125+F*.375+q*.375+N*.125,pe=Math.abs(te-p),oe=Math.abs(ie-E);return[te,ie,pe,oe]}function TX(p,E){return p>=0?.5*p:E*25*Math.sqrt(-p)}function qln({pos:p,x1:E,y1:P,x2:N,y2:D,c:F}){switch(p){case ji.Left:return[E-TX(E-N,F),P];case ji.Right:return[E+TX(N-E,F),P];case ji.Top:return[E,P-TX(P-D,F)];case ji.Bottom:return[E,P+TX(D-P,F)]}}function gN({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:F=ji.Top,curvature:v=.25}){const[q,te]=qln({pos:P,x1:p,y1:E,x2:N,y2:D,c:v}),[ie,pe]=qln({pos:F,x1:N,y1:D,x2:p,y2:E,c:v}),[oe,z,Z,ne]=Zhn({sourceX:p,sourceY:E,targetX:N,targetY:D,sourceControlX:q,sourceControlY:te,targetControlX:ie,targetControlY:pe});return[`M${p},${E} C${q},${te} ${ie},${pe} ${N},${D}`,oe,z,Z,ne]}function ean({sourceX:p,sourceY:E,targetX:P,targetY:N}){const D=Math.abs(P-p)/2,F=P<p?P+D:P-D,v=Math.abs(N-E)/2,q=N<E?N+v:N-v;return[F,q,D,v]}function eRn({sourceNode:p,targetNode:E,selected:P=!1,zIndex:N=0,elevateOnSelect:D=!1,zIndexMode:F="basic"}){if(F==="manual")return N;const v=D&&P?N+1e3:N,q=Math.max(p.parentId||D&&p.selected?p.internals.z:0,E.parentId||D&&E.selected?E.internals.z:0);return v+q}function nRn({sourceNode:p,targetNode:E,width:P,height:N,transform:D}){const F=JX(FX(p),FX(E));F.x===F.x2&&(F.x2+=1),F.y===F.y2&&(F.y2+=1);const v={x:-D[0]/D[2],y:-D[1]/D[2],width:P/D[2],height:N/D[2]};return BX(v,GX(F))>0}const tRn=({source:p,sourceHandle:E,target:P,targetHandle:N})=>`xy-edge__${p}${E||""}-${P}${N||""}`,iRn=(p,E)=>E.some(P=>P.source===p.source&&P.target===p.target&&(P.sourceHandle===p.sourceHandle||!P.sourceHandle&&!p.sourceHandle)&&(P.targetHandle===p.targetHandle||!P.targetHandle&&!p.targetHandle)),rRn=(p,E,P={})=>{var F;if(!p.source||!p.target)return(F=P.onError)==null||F.call(P,"006",t2.error006()),E;const N=P.getEdgeId||tRn;let D;return Jhn(p)?D={...p}:D={...p,id:N(p)},iRn(D,E)?E:(D.sourceHandle===null&&delete D.sourceHandle,D.targetHandle===null&&delete D.targetHandle,E.concat(D))};function nan({sourceX:p,sourceY:E,targetX:P,targetY:N}){const[D,F,v,q]=ean({sourceX:p,sourceY:E,targetX:P,targetY:N});return[`M ${p},${E}L ${P},${N}`,D,F,v,q]}const zln={[ji.Left]:{x:-1,y:0},[ji.Right]:{x:1,y:0},[ji.Top]:{x:0,y:-1},[ji.Bottom]:{x:0,y:1}},cRn=({source:p,sourcePosition:E=ji.Bottom,target:P})=>E===ji.Left||E===ji.Right?p.x<P.x?{x:1,y:0}:{x:-1,y:0}:p.y<P.y?{x:0,y:1}:{x:0,y:-1},Uln=(p,E)=>Math.sqrt(Math.pow(E.x-p.x,2)+Math.pow(E.y-p.y,2));function uRn({source:p,sourcePosition:E=ji.Bottom,target:P,targetPosition:N=ji.Top,center:D,offset:F,stepPosition:v}){const q=zln[E],te=zln[N],ie={x:p.x+q.x*F,y:p.y+q.y*F},pe={x:P.x+te.x*F,y:P.y+te.y*F},oe=cRn({source:ie,sourcePosition:E,target:pe}),z=oe.x!==0?"x":"y",Z=oe[z];let ne=[],U,xe;const ce={x:0,y:0},ge={x:0,y:0},[,,ee,Me]=ean({sourceX:p.x,sourceY:p.y,targetX:P.x,targetY:P.y});if(q[z]*te[z]===-1){z==="x"?(U=D.x??ie.x+(pe.x-ie.x)*v,xe=D.y??(ie.y+pe.y)/2):(U=D.x??(ie.x+pe.x)/2,xe=D.y??ie.y+(pe.y-ie.y)*v);const kn=[{x:U,y:ie.y},{x:U,y:pe.y}],jn=[{x:ie.x,y:xe},{x:pe.x,y:xe}];q[z]===Z?ne=z==="x"?kn:jn:ne=z==="x"?jn:kn}else{const kn=[{x:ie.x,y:pe.y}],jn=[{x:pe.x,y:ie.y}];if(z==="x"?ne=q.x===Z?jn:kn:ne=q.y===Z?kn:jn,E===N){const je=Math.abs(p[z]-P[z]);if(je<=F){const on=Math.min(F-1,F-je);q[z]===Z?ce[z]=(ie[z]>p[z]?-1:1)*on:ge[z]=(pe[z]>P[z]?-1:1)*on}}if(E!==N){const je=z==="x"?"y":"x",on=q[z]===te[je],rn=ie[je]>pe[je],Sn=ie[je]<pe[je];(q[z]===1&&(!on&&rn||on&&Sn)||q[z]!==1&&(!on&&Sn||on&&rn))&&(ne=z==="x"?kn:jn)}const Zn={x:ie.x+ce.x,y:ie.y+ce.y},$n={x:pe.x+ge.x,y:pe.y+ge.y},Vn=Math.max(Math.abs(Zn.x-ne[0].x),Math.abs($n.x-ne[0].x)),_=Math.max(Math.abs(Zn.y-ne[0].y),Math.abs($n.y-ne[0].y));Vn>=_?(U=(Zn.x+$n.x)/2,xe=ne[0].y):(U=ne[0].x,xe=(Zn.y+$n.y)/2)}const Ke={x:ie.x+ce.x,y:ie.y+ce.y},Xe={x:pe.x+ge.x,y:pe.y+ge.y};return[[p,...Ke.x!==ne[0].x||Ke.y!==ne[0].y?[Ke]:[],...ne,...Xe.x!==ne[ne.length-1].x||Xe.y!==ne[ne.length-1].y?[Xe]:[],P],U,xe,ee,Me]}function oRn(p,E,P,N){const D=Math.min(Uln(p,E)/2,Uln(E,P)/2,N),{x:F,y:v}=E;if(p.x===F&&F===P.x||p.y===v&&v===P.y)return`L${F} ${v}`;if(p.y===v){const ie=p.x<P.x?-1:1,pe=p.y<P.y?1:-1;return`L ${F+D*ie},${v}Q ${F},${v} ${F},${v+D*pe}`}const q=p.x<P.x?1:-1,te=p.y<P.y?-1:1;return`L ${F},${v+D*te}Q ${F},${v} ${F+D*q},${v}`}function Ege({sourceX:p,sourceY:E,sourcePosition:P=ji.Bottom,targetX:N,targetY:D,targetPosition:F=ji.Top,borderRadius:v=5,centerX:q,centerY:te,offset:ie=20,stepPosition:pe=.5}){const[oe,z,Z,ne,U]=uRn({source:{x:p,y:E},sourcePosition:P,target:{x:N,y:D},targetPosition:F,center:{x:q,y:te},offset:ie,stepPosition:pe});let xe=`M${oe[0].x} ${oe[0].y}`;for(let ce=1;ce<oe.length-1;ce++)xe+=oRn(oe[ce-1],oe[ce],oe[ce+1],v);return xe+=`L${oe[oe.length-1].x} ${oe[oe.length-1].y}`,[xe,z,Z,ne,U]}function Xln(p){var E;return p&&!!(p.internals.handleBounds||(E=p.handles)!=null&&E.length)&&!!(p.measured.width||p.width||p.initialWidth)}function sRn(p){var oe;const{sourceNode:E,targetNode:P}=p;if(!Xln(E)||!Xln(P))return null;const N=E.internals.handleBounds||Kln(E.handles),D=P.internals.handleBounds||Kln(P.handles),F=Wln((N==null?void 0:N.source)??[],p.sourceHandle),v=Wln(p.connectionMode===xA.Strict?(D==null?void 0:D.target)??[]:((D==null?void 0:D.target)??[]).concat((D==null?void 0:D.source)??[]),p.targetHandle);if(!F||!v)return(oe=p.onError)==null||oe.call(p,"008",t2.error008(F?"target":"source",{id:p.id,sourceHandle:p.sourceHandle,targetHandle:p.targetHandle})),null;const q=(F==null?void 0:F.position)||ji.Bottom,te=(v==null?void 0:v.position)||ji.Top,ie=Z8(E,F,q),pe=Z8(P,v,te);return{sourceX:ie.x,sourceY:ie.y,targetX:pe.x,targetY:pe.y,sourcePosition:q,targetPosition:te}}function Kln(p){if(!p)return null;const E=[],P=[];for(const N of p)N.width=N.width??1,N.height=N.height??1,N.type==="source"?E.push(N):N.type==="target"&&P.push(N);return{source:E,target:P}}function Z8(p,E,P=ji.Left,N=!1){const D=((E==null?void 0:E.x)??0)+p.internals.positionAbsolute.x,F=((E==null?void 0:E.y)??0)+p.internals.positionAbsolute.y,{width:v,height:q}=E??i2(p);if(N)return{x:D+v/2,y:F+q/2};switch((E==null?void 0:E.position)??P){case ji.Top:return{x:D+v/2,y:F};case ji.Right:return{x:D+v,y:F+q/2};case ji.Bottom:return{x:D+v/2,y:F+q};case ji.Left:return{x:D,y:F+q/2}}}function Wln(p,E){return p&&(E?p.find(P=>P.id===E):p[0])||null}function Age(p,E){return p?typeof p=="string"?p:`${E?`${E}__`:""}${Object.keys(p).sort().map(N=>`${N}=${p[N]}`).join("&")}`:""}function fRn(p,{id:E,defaultColor:P,defaultMarkerStart:N,defaultMarkerEnd:D}){const F=new Set;return p.reduce((v,q)=>([q.markerStart||N,q.markerEnd||D].forEach(te=>{if(te&&typeof te=="object"){const ie=Age(te,E);F.has(ie)||(v.push({id:ie,color:te.color||P,...te}),F.add(ie))}}),v),[]).sort((v,q)=>v.id.localeCompare(q.id))}function lRn(p,E,P,N,D){let F=.5;D==="start"?F=0:D==="end"&&(F=1);let v=[(p.x+p.width*F)*E.zoom+E.x,p.y*E.zoom+E.y-N],q=[-100*F,-100];switch(P){case ji.Right:v=[(p.x+p.width)*E.zoom+E.x+N,(p.y+p.height*F)*E.zoom+E.y],q=[0,-100*F];break;case ji.Bottom:v[1]=(p.y+p.height)*E.zoom+E.y+N,q[1]=0;break;case ji.Left:v=[p.x*E.zoom+E.x-N,(p.y+p.height*F)*E.zoom+E.y],q=[-100,-100*F];break}return`translate(${v[0]}px, ${v[1]}px) translate(${q[0]}%, ${q[1]}%)`}const tan=1e3,hRn=10,Fge={nodeOrigin:[0,0],nodeExtent:oN,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},aRn={...Fge,checkEquality:!0};function Bge(p,E){const P={...p};for(const N in E)E[N]!==void 0&&(P[N]=E[N]);return P}function dRn(p,E,P){const N=Bge(Fge,P);for(const D of p.values())if(D.parentId)_ge(D,p,E,N);else{const F=dN(D,N.nodeOrigin),v=Y8(D.extent)?D.extent:N.nodeExtent,q=Q8(F,v,i2(D));D.internals.positionAbsolute=q}}function bRn(p,E){if(!p.handles)return p.measured?E==null?void 0:E.internals.handleBounds:void 0;const P=[],N=[];for(const D of p.handles){const F={id:D.id,width:D.width??1,height:D.height??1,nodeId:p.id,x:D.x,y:D.y,position:D.position,type:D.type};D.type==="source"?P.push(F):D.type==="target"&&N.push(F)}return{source:P,target:N}}function Rge(p){return p==="manual"}function Mge(p,E,P,N={}){var pe,oe;const D=Bge(aRn,N),F={i:0},v=new Map(E),q=D!=null&&D.elevateNodesOnSelect&&!Rge(D.zIndexMode)?tan:0;let te=p.length>0,ie=!1;E.clear(),P.clear();for(const z of p){let Z=v.get(z.id);if(D.checkEquality&&z===(Z==null?void 0:Z.internals.userNode))E.set(z.id,Z);else{const ne=dN(z,D.nodeOrigin),U=Y8(z.extent)?z.extent:D.nodeExtent,xe=Q8(ne,U,i2(z));Z={...D.defaults,...z,measured:{width:(pe=z.measured)==null?void 0:pe.width,height:(oe=z.measured)==null?void 0:oe.height},internals:{positionAbsolute:xe,handleBounds:bRn(z,Z),z:ian(z,q,D.zIndexMode),userNode:z}},E.set(z.id,Z)}(Z.measured===void 0||Z.measured.width===void 0||Z.measured.height===void 0)&&!Z.hidden&&(te=!1),z.parentId&&_ge(Z,E,P,N,F),ie||(ie=z.selected??!1)}return{nodesInitialized:te,hasSelectedNodes:ie}}function wRn(p,E){if(!p.parentId)return;const P=E.get(p.parentId);P?P.set(p.id,p):E.set(p.parentId,new Map([[p.id,p]]))}function _ge(p,E,P,N,D){const{elevateNodesOnSelect:F,nodeOrigin:v,nodeExtent:q,zIndexMode:te}=Bge(Fge,N),ie=p.parentId,pe=E.get(ie);if(!pe){console.warn(`Parent node ${ie} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}wRn(p,P),D&&!pe.parentId&&pe.internals.rootParentIndex===void 0&&te==="auto"&&(pe.internals.rootParentIndex=++D.i,pe.internals.z=pe.internals.z+D.i*hRn),D&&pe.internals.rootParentIndex!==void 0&&(D.i=pe.internals.rootParentIndex);const oe=F&&!Rge(te)?tan:0,{x:z,y:Z,z:ne}=gRn(p,pe,v,q,oe,te),{positionAbsolute:U}=p.internals,xe=z!==U.x||Z!==U.y;(xe||ne!==p.internals.z)&&E.set(p.id,{...p,internals:{...p.internals,positionAbsolute:xe?{x:z,y:Z}:U,z:ne}})}function ian(p,E,P){const N=Zg(p.zIndex)?p.zIndex:0;return Rge(P)?N:N+(p.selected?E:0)}function gRn(p,E,P,N,D,F){const{x:v,y:q}=E.internals.positionAbsolute,te=i2(p),ie=dN(p,P),pe=Y8(p.extent)?Q8(ie,p.extent,te):ie;let oe=Q8({x:v+pe.x,y:q+pe.y},N,te);p.extent==="parent"&&(oe=Hhn(oe,te,E));const z=ian(p,D,F),Z=E.internals.z??0;return{x:oe.x,y:oe.y,z:Z>=z?Z+1:z}}function Jge(p,E,P,N=[0,0]){var v;const D=[],F=new Map;for(const q of p){const te=E.get(q.parentId);if(!te)continue;const ie=((v=F.get(q.parentId))==null?void 0:v.expandedRect)??lN(te),pe=qhn(ie,q.rect);F.set(q.parentId,{expandedRect:pe,parent:te})}return F.size>0&&F.forEach(({expandedRect:q,parent:te},ie)=>{var ee;const pe=te.internals.positionAbsolute,oe=i2(te),z=te.origin??N,Z=q.x<pe.x?Math.round(Math.abs(pe.x-q.x)):0,ne=q.y<pe.y?Math.round(Math.abs(pe.y-q.y)):0,U=Math.max(oe.width,Math.round(q.width)),xe=Math.max(oe.height,Math.round(q.height)),ce=(U-oe.width)*z[0],ge=(xe-oe.height)*z[1];(Z>0||ne>0||ce||ge)&&(D.push({id:ie,type:"position",position:{x:te.position.x-Z+ce,y:te.position.y-ne+ge}}),(ee=P.get(ie))==null||ee.forEach(Me=>{p.some(Ke=>Ke.id===Me.id)||D.push({id:Me.id,type:"position",position:{x:Me.position.x+Z,y:Me.position.y+ne}})})),(oe.width<q.width||oe.height<q.height||Z||ne)&&D.push({id:ie,type:"dimensions",setAttributes:!0,dimensions:{width:U+(Z?z[0]*Z-ce:0),height:xe+(ne?z[1]*ne-ge:0)}})}),D}function pRn(p,E,P,N,D,F,v){const q=N==null?void 0:N.querySelector(".xyflow__viewport");let te=!1;if(!q)return{changes:[],updatedInternals:te};const ie=[],pe=window.getComputedStyle(q),{m22:oe}=new window.DOMMatrixReadOnly(pe.transform),z=[];for(const Z of p.values()){const ne=E.get(Z.id);if(!ne)continue;if(ne.hidden){E.set(ne.id,{...ne,internals:{...ne.internals,handleBounds:void 0}}),te=!0;continue}const U=$ge(Z.nodeElement),xe=ne.measured.width!==U.width||ne.measured.height!==U.height;if(!!(U.width&&U.height&&(xe||!ne.internals.handleBounds||Z.force))){const ge=Z.nodeElement.getBoundingClientRect(),ee=Y8(ne.extent)?ne.extent:F;let{positionAbsolute:Me}=ne.internals;if(ne.parentId&&ne.extent==="parent"){const Xe=E.get(ne.parentId);Xe&&(Me=Hhn(Me,U,Xe))}else ee&&(Me=Q8(Me,ee,U));const Ke={...ne,measured:U,internals:{...ne.internals,positionAbsolute:Me,handleBounds:{source:Hln("source",Z.nodeElement,ge,oe,ne.id),target:Hln("target",Z.nodeElement,ge,oe,ne.id)}}};E.set(ne.id,Ke),ne.parentId&&_ge(Ke,E,P,{nodeOrigin:D,zIndexMode:v}),te=!0,xe&&(ie.push({id:ne.id,type:"dimensions",dimensions:U}),ne.expandParent&&ne.parentId&&z.push({id:ne.id,parentId:ne.parentId,rect:lN(Ke,D)}))}}if(z.length>0){const Z=Jge(z,E,P,D);ie.push(...Z)}return{changes:ie,updatedInternals:te}}async function mRn({delta:p,panZoom:E,transform:P,translateExtent:N,width:D,height:F}){if(!E||!p.x&&!p.y)return!1;const v=await E.setViewportConstrained({x:P[0]+p.x,y:P[1]+p.y,zoom:P[2]},[[0,0],[D,F]],N);return!!v&&(v.x!==P[0]||v.y!==P[1]||v.k!==P[2])}function Vln(p,E,P,N,D,F){let v=D;const q=N.get(v)||new Map;N.set(v,q.set(P,E)),v=`${D}-${p}`;const te=N.get(v)||new Map;if(N.set(v,te.set(P,E)),F){v=`${D}-${p}-${F}`;const ie=N.get(v)||new Map;N.set(v,ie.set(P,E))}}function ran(p,E,P){p.clear(),E.clear();for(const N of P){const{source:D,target:F,sourceHandle:v=null,targetHandle:q=null}=N,te={edgeId:N.id,source:D,target:F,sourceHandle:v,targetHandle:q},ie=`${D}-${v}--${F}-${q}`,pe=`${F}-${q}--${D}-${v}`;Vln("source",te,pe,p,D,v),Vln("target",te,ie,p,F,q),E.set(N.id,N)}}function can(p,E){if(!p.parentId)return!1;const P=E.get(p.parentId);return P?P.selected?!0:can(P,E):!1}function Qln(p,E,P){var D;let N=p;do{if((D=N==null?void 0:N.matches)!=null&&D.call(N,E))return!0;if(N===P)return!1;N=N==null?void 0:N.parentElement}while(N);return!1}function vRn(p,E,P,N){const D=new Map;for(const[F,v]of p)if((v.selected||v.id===N)&&(!v.parentId||!can(v,p))&&(v.draggable||E&&typeof v.draggable>"u")){const q=p.get(F);q&&D.set(F,{id:F,position:q.position||{x:0,y:0},distance:{x:P.x-q.internals.positionAbsolute.x,y:P.y-q.internals.positionAbsolute.y},extent:q.extent,parentId:q.parentId,origin:q.origin,expandParent:q.expandParent,internals:{positionAbsolute:q.internals.positionAbsolute||{x:0,y:0}},measured:{width:q.measured.width??0,height:q.measured.height??0}})}return D}function wge({nodeId:p,dragItems:E,nodeLookup:P,dragging:N=!0}){var v,q,te;const D=[];for(const[ie,pe]of E){const oe=(v=P.get(ie))==null?void 0:v.internals.userNode;oe&&D.push({...oe,position:pe.position,dragging:N})}if(!p)return[D[0],D];const F=(q=P.get(p))==null?void 0:q.internals.userNode;return[F?{...F,position:((te=E.get(p))==null?void 0:te.position)||F.position,dragging:N}:D[0],D]}function yRn({dragItems:p,snapGrid:E,x:P,y:N}){const D=p.values().next().value;if(!D)return null;const F={x:P-D.distance.x,y:N-D.distance.y},v=bN(F,E);return{x:v.x-F.x,y:v.y-F.y}}function kRn({onNodeMouseDown:p,getStoreItems:E,onDragStart:P,onDrag:N,onDragStop:D}){let F={x:null,y:null},v=0,q=new Map,te=!1,ie={x:0,y:0},pe=null,oe=!1,z=null,Z=!1,ne=!1,U=null;function xe({noDragClassName:ge,handleSelector:ee,domNode:Me,isSelectable:Ke,nodeId:Xe,nodeClickDistance:Ye=0}){z=$0(Me);function kn({x:Vn,y:_}){const{nodeLookup:je,nodeExtent:on,snapGrid:rn,snapToGrid:Sn,nodeOrigin:Bn,onNodeDrag:dn,onSelectionDrag:Gn,onError:Nn,updateNodePositions:qn}=E();F={x:Vn,y:_};let Jt=!1;const Kt=q.size>1,Oi=Kt&&on?jge(PA(q)):null,gr=Kt&&Sn?yRn({dragItems:q,snapGrid:rn,x:Vn,y:_}):null;for(const[Ki,Kn]of q){if(!je.has(Ki))continue;let ei={x:Vn-Kn.distance.x,y:_-Kn.distance.y};Sn&&(ei=gr?{x:Math.round(ei.x+gr.x),y:Math.round(ei.y+gr.y)}:bN(ei,rn));let rr=null;if(Kt&&on&&!Kn.extent&&Oi){const{positionAbsolute:sr}=Kn.internals,ri=sr.x-Oi.x+on[0][0],bi=sr.x+Kn.measured.width-Oi.x2+on[1][0],Mc=sr.y-Oi.y+on[0][1],ku=sr.y+Kn.measured.height-Oi.y2+on[1][1];rr=[[ri,Mc],[bi,ku]]}const{position:cr,positionAbsolute:_i}=Ghn({nodeId:Ki,nextPosition:ei,nodeLookup:je,nodeExtent:rr||on,nodeOrigin:Bn,onError:Nn});Jt=Jt||Kn.position.x!==cr.x||Kn.position.y!==cr.y,Kn.position=cr,Kn.internals.positionAbsolute=_i}if(ne=ne||Jt,!!Jt&&(qn(q,!0),U&&(N||dn||!Xe&&Gn))){const[Ki,Kn]=wge({nodeId:Xe,dragItems:q,nodeLookup:je});N==null||N(U,q,Ki,Kn),dn==null||dn(U,Ki,Kn),Xe||Gn==null||Gn(U,Kn)}}async function jn(){if(!pe)return;const{transform:Vn,panBy:_,autoPanSpeed:je,autoPanOnNodeDrag:on}=E();if(!on){te=!1,cancelAnimationFrame(v);return}const[rn,Sn]=Dge(ie,pe,je);(rn!==0||Sn!==0)&&(F.x=(F.x??0)-rn/Vn[2],F.y=(F.y??0)-Sn/Vn[2],await _({x:rn,y:Sn})&&kn(F)),v=requestAnimationFrame(jn)}function Zn(Vn){var Kt;const{nodeLookup:_,multiSelectionActive:je,nodesDraggable:on,transform:rn,snapGrid:Sn,snapToGrid:Bn,selectNodesOnDrag:dn,onNodeDragStart:Gn,onSelectionDragStart:Nn,unselectNodesAndEdges:qn}=E();oe=!0,(!dn||!Ke)&&!je&&Xe&&((Kt=_.get(Xe))!=null&&Kt.selected||qn()),Ke&&dn&&Xe&&(p==null||p(Xe));const Jt=rN(Vn.sourceEvent,{transform:rn,snapGrid:Sn,snapToGrid:Bn,containerBounds:pe});if(F=Jt,q=vRn(_,on,Jt,Xe),q.size>0&&(P||Gn||!Xe&&Nn)){const[Oi,gr]=wge({nodeId:Xe,dragItems:q,nodeLookup:_});P==null||P(Vn.sourceEvent,q,Oi,gr),Gn==null||Gn(Vn.sourceEvent,Oi,gr),Xe||Nn==null||Nn(Vn.sourceEvent,gr)}}const $n=$hn().clickDistance(Ye).on("start",Vn=>{const{domNode:_,nodeDragThreshold:je,transform:on,snapGrid:rn,snapToGrid:Sn}=E();pe=(_==null?void 0:_.getBoundingClientRect())||null,Z=!1,ne=!1,U=Vn.sourceEvent,je===0&&Zn(Vn),F=rN(Vn.sourceEvent,{transform:on,snapGrid:rn,snapToGrid:Sn,containerBounds:pe}),ie=e2(Vn.sourceEvent,pe)}).on("drag",Vn=>{const{autoPanOnNodeDrag:_,transform:je,snapGrid:on,snapToGrid:rn,nodeDragThreshold:Sn,nodeLookup:Bn}=E(),dn=rN(Vn.sourceEvent,{transform:je,snapGrid:on,snapToGrid:rn,containerBounds:pe});if(U=Vn.sourceEvent,(Vn.sourceEvent.type==="touchmove"&&Vn.sourceEvent.touches.length>1||Xe&&!Bn.has(Xe))&&(Z=!0),!Z){if(!te&&_&&oe&&(te=!0,jn()),!oe){const Gn=e2(Vn.sourceEvent,pe),Nn=Gn.x-ie.x,qn=Gn.y-ie.y;Math.sqrt(Nn*Nn+qn*qn)>Sn&&Zn(Vn)}(F.x!==dn.xSnapped||F.y!==dn.ySnapped)&&q&&oe&&(ie=e2(Vn.sourceEvent,pe),kn(dn))}}).on("end",Vn=>{if(!oe||Z){Z&&q.size>0&&E().updateNodePositions(q,!1);return}if(te=!1,oe=!1,cancelAnimationFrame(v),q.size>0){const{nodeLookup:_,updateNodePositions:je,onNodeDragStop:on,onSelectionDragStop:rn}=E();if(ne&&(je(q,!1),ne=!1),D||on||!Xe&&rn){const[Sn,Bn]=wge({nodeId:Xe,dragItems:q,nodeLookup:_,dragging:!1});D==null||D(Vn.sourceEvent,q,Sn,Bn),on==null||on(Vn.sourceEvent,Sn,Bn),Xe||rn==null||rn(Vn.sourceEvent,Bn)}}}).filter(Vn=>{const _=Vn.target;return!Vn.button&&(!ge||!Qln(_,`.${ge}`,Me))&&(!ee||Qln(_,ee,Me))});z.call($n)}function ce(){z==null||z.on(".drag",null)}return{update:xe,destroy:ce}}function jRn(p,E,P){const N=[],D={x:p.x-P,y:p.y-P,width:P*2,height:P*2};for(const F of E.values())BX(D,lN(F))>0&&N.push(F);return N}const ERn=250;function ARn(p,E,P,N){var q,te;let D=[],F=1/0;const v=jRn(p,P,E+ERn);for(const ie of v){const pe=[...((q=ie.internals.handleBounds)==null?void 0:q.source)??[],...((te=ie.internals.handleBounds)==null?void 0:te.target)??[]];for(const oe of pe){if(N.nodeId===oe.nodeId&&N.type===oe.type&&N.id===oe.id)continue;const{x:z,y:Z}=Z8(ie,oe,oe.position,!0),ne=Math.sqrt(Math.pow(z-p.x,2)+Math.pow(Z-p.y,2));ne>E||(ne<F?(D=[{...oe,x:z,y:Z}],F=ne):ne===F&&D.push({...oe,x:z,y:Z}))}}if(!D.length)return null;if(D.length>1){const ie=N.type==="source"?"target":"source";return D.find(pe=>pe.type===ie)??D[0]}return D[0]}function uan(p,E,P,N,D,F=!1){var ie,pe,oe;const v=N.get(p);if(!v)return null;const q=D==="strict"?(ie=v.internals.handleBounds)==null?void 0:ie[E]:[...((pe=v.internals.handleBounds)==null?void 0:pe.source)??[],...((oe=v.internals.handleBounds)==null?void 0:oe.target)??[]],te=(P?q==null?void 0:q.find(z=>z.id===P):q==null?void 0:q[0])??null;return te&&F?{...te,...Z8(v,te,te.position,!0)}:te}function oan(p,E){return p||(E!=null&&E.classList.contains("target")?"target":E!=null&&E.classList.contains("source")?"source":null)}function MRn(p,E){let P=null;return E?P=!0:p&&!E&&(P=!1),P}const san=()=>!0;function CRn(p,{connectionMode:E,connectionRadius:P,handleId:N,nodeId:D,edgeUpdaterType:F,isTarget:v,domNode:q,nodeLookup:te,lib:ie,autoPanOnConnect:pe,flowId:oe,panBy:z,cancelConnection:Z,onConnectStart:ne,onConnect:U,onConnectEnd:xe,isValidConnection:ce=san,onReconnectEnd:ge,updateConnection:ee,getTransform:Me,getFromHandle:Ke,autoPanSpeed:Xe,dragThreshold:Ye=1,handleDomNode:kn}){const jn=Vhn(p.target);let Zn=0,$n;const{x:Vn,y:_}=e2(p),je=oan(F,kn),on=q==null?void 0:q.getBoundingClientRect();let rn=!1;if(!on||!je)return;const Sn=uan(D,je,N,te,E);if(!Sn)return;let Bn=e2(p,on),dn=!1,Gn=null,Nn=!1,qn=null;function Jt(){if(!pe||!on)return;const[cr,_i]=Dge(Bn,on,Xe);z({x:cr,y:_i}),Zn=requestAnimationFrame(Jt)}const Kt={...Sn,nodeId:D,type:je,position:Sn.position},Oi=te.get(D);let Ki={inProgress:!0,isValid:null,from:Z8(Oi,Kt,ji.Left,!0),fromHandle:Kt,fromPosition:Kt.position,fromNode:Oi,to:Bn,toHandle:null,toPosition:Rln[Kt.position],toNode:null,pointer:Bn};function Kn(){rn=!0,ee(Ki),ne==null||ne(p,{nodeId:D,handleId:N,handleType:je})}Ye===0&&Kn();function ei(cr){if(!rn){const{x:ku,y:Pr}=e2(cr),xa=ku-Vn,zl=Pr-_;if(!(xa*xa+zl*zl>Ye*Ye))return;Kn()}if(!Ke()||!Kt){rr(cr);return}const _i=Me();Bn=e2(cr,on),$n=ARn(wN(Bn,_i,!1,[1,1]),P,te,Kt),dn||(Jt(),dn=!0);const sr=fan(cr,{handle:$n,connectionMode:E,fromNodeId:D,fromHandleId:N,fromType:v?"target":"source",isValidConnection:ce,doc:jn,lib:ie,flowId:oe,nodeLookup:te});qn=sr.handleDomNode,Gn=sr.connection,Nn=MRn(!!$n,sr.isValid);const ri=te.get(D),bi=ri?Z8(ri,Kt,ji.Left,!0):Ki.from,Mc={...Ki,from:bi,isValid:Nn,to:sr.toHandle&&Nn?SA({x:sr.toHandle.x,y:sr.toHandle.y},_i):Bn,toHandle:sr.toHandle,toPosition:Nn&&sr.toHandle?sr.toHandle.position:Rln[Kt.position],toNode:sr.toHandle?te.get(sr.toHandle.nodeId):null,pointer:Bn};ee(Mc),Ki=Mc}function rr(cr){if(!("touches"in cr&&cr.touches.length>0)){if(rn){($n||qn)&&Gn&&Nn&&(U==null||U(Gn));const{inProgress:_i,...sr}=Ki,ri={...sr,toPosition:Ki.toHandle?Ki.toPosition:null};xe==null||xe(cr,ri),F&&(ge==null||ge(cr,ri))}Z(),cancelAnimationFrame(Zn),dn=!1,Nn=!1,Gn=null,qn=null,jn.removeEventListener("mousemove",ei),jn.removeEventListener("mouseup",rr),jn.removeEventListener("touchmove",ei),jn.removeEventListener("touchend",rr)}}jn.addEventListener("mousemove",ei),jn.addEventListener("mouseup",rr),jn.addEventListener("touchmove",ei),jn.addEventListener("touchend",rr)}function fan(p,{handle:E,connectionMode:P,fromNodeId:N,fromHandleId:D,fromType:F,doc:v,lib:q,flowId:te,isValidConnection:ie=san,nodeLookup:pe}){const oe=F==="target",z=E?v.querySelector(`.${q}-flow__handle[data-id="${te}-${E==null?void 0:E.nodeId}-${E==null?void 0:E.id}-${E==null?void 0:E.type}"]`):null,{x:Z,y:ne}=e2(p),U=v.elementFromPoint(Z,ne),xe=U!=null&&U.classList.contains(`${q}-flow__handle`)?U:z,ce={handleDomNode:xe,isValid:!1,connection:null,toHandle:null};if(xe){const ge=oan(void 0,xe),ee=xe.getAttribute("data-nodeid"),Me=xe.getAttribute("data-handleid"),Ke=xe.classList.contains("connectable"),Xe=xe.classList.contains("connectableend");if(!ee||!ge)return ce;const Ye={source:oe?ee:N,sourceHandle:oe?Me:D,target:oe?N:ee,targetHandle:oe?D:Me};ce.connection=Ye;const jn=Ke&&Xe&&(P===xA.Strict?oe&&ge==="source"||!oe&&ge==="target":ee!==N||Me!==D);ce.isValid=jn&&ie(Ye),ce.toHandle=uan(ee,ge,Me,pe,P,!0)}return ce}const Cge={onPointerDown:CRn,isValid:fan};function xRn({domNode:p,panZoom:E,getTransform:P,getViewScale:N}){const D=$0(p);function F({translateExtent:q,width:te,height:ie,zoomStep:pe=1,pannable:oe=!0,zoomable:z=!0,inversePan:Z=!1}){const ne=ee=>{if(ee.sourceEvent.type!=="wheel"||!E)return;const Me=P(),Ke=ee.sourceEvent.ctrlKey&&hN()?10:1,Xe=-ee.sourceEvent.deltaY*(ee.sourceEvent.deltaMode===1?.05:ee.sourceEvent.deltaMode?1:.002)*pe,Ye=Me[2]*Math.pow(2,Xe*Ke);E.scaleTo(Ye)};let U=[0,0];const xe=ee=>{(ee.sourceEvent.type==="mousedown"||ee.sourceEvent.type==="touchstart")&&(U=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY])},ce=ee=>{const Me=P();if(ee.sourceEvent.type!=="mousemove"&&ee.sourceEvent.type!=="touchmove"||!E)return;const Ke=[ee.sourceEvent.clientX??ee.sourceEvent.touches[0].clientX,ee.sourceEvent.clientY??ee.sourceEvent.touches[0].clientY],Xe=[Ke[0]-U[0],Ke[1]-U[1]];U=Ke;const Ye=N()*Math.max(Me[2],Math.log(Me[2]))*(Z?-1:1),kn={x:Me[0]-Xe[0]*Ye,y:Me[1]-Xe[1]*Ye},jn=[[0,0],[te,ie]];E.setViewportConstrained({x:kn.x,y:kn.y,zoom:Me[2]},jn,q)},ge=Fhn().on("start",xe).on("zoom",oe?ce:null).on("zoom.wheel",z?ne:null);D.call(ge,{})}function v(){D.on("zoom",null)}return{update:F,destroy:v,pointer:Yg}}const HX=p=>({x:p.x,y:p.y,zoom:p.k}),gge=({x:p,y:E,zoom:P})=>Pge.translate(p,E).scale(P),_5=(p,E)=>p.target.closest(`.${E}`),lan=(p,E)=>E===2&&Array.isArray(p)&&p.includes(2),TRn=p=>((p*=2)<=1?p*p*p:(p-=2)*p*p+2)/2,pge=(p,E=0,P=TRn,N=()=>{})=>{const D=typeof E=="number"&&E>0;return D||N(),D?p.transition().duration(E).ease(P).on("end",N):p},han=p=>{const E=p.ctrlKey&&hN()?10:1;return-p.deltaY*(p.deltaMode===1?.05:p.deltaMode?1:.002)*E};function SRn({zoomPanValues:p,noWheelClassName:E,d3Selection:P,d3Zoom:N,panOnScrollMode:D,panOnScrollSpeed:F,zoomOnPinch:v,onPanZoomStart:q,onPanZoom:te,onPanZoomEnd:ie}){return pe=>{if(_5(pe,E))return pe.ctrlKey&&pe.preventDefault(),!1;pe.preventDefault(),pe.stopImmediatePropagation();const oe=P.property("__zoom").k||1;if(pe.ctrlKey&&v){const xe=Yg(pe),ce=han(pe),ge=oe*Math.pow(2,ce);N.scaleTo(P,ge,xe,pe);return}const z=pe.deltaMode===1?20:1;let Z=D===V8.Vertical?0:pe.deltaX*z,ne=D===V8.Horizontal?0:pe.deltaY*z;!hN()&&pe.shiftKey&&D!==V8.Vertical&&(Z=pe.deltaY*z,ne=0),N.translateBy(P,-(Z/oe)*F,-(ne/oe)*F,{internal:!0});const U=HX(P.property("__zoom"));clearTimeout(p.panScrollTimeout),p.isPanScrolling?te==null||te(pe,U):(p.isPanScrolling=!0,q==null||q(pe,U)),p.panScrollTimeout=setTimeout(()=>{ie==null||ie(pe,U),p.isPanScrolling=!1},150)}}function IRn({noWheelClassName:p,preventScrolling:E,d3ZoomHandler:P}){return function(N,D){const F=N.type==="wheel",v=!E&&F&&!N.ctrlKey,q=_5(N,p);if(N.ctrlKey&&F&&q&&N.preventDefault(),v||q)return null;N.preventDefault(),P.call(this,N,D)}}function PRn({zoomPanValues:p,onDraggingChange:E,onPanZoomStart:P}){return N=>{var F,v,q;if((F=N.sourceEvent)!=null&&F.internal)return;const D=HX(N.transform);p.mouseButton=((v=N.sourceEvent)==null?void 0:v.button)||0,p.isZoomingOrPanning=!0,p.prevViewport=D,((q=N.sourceEvent)==null?void 0:q.type)==="mousedown"&&E(!0),P&&(P==null||P(N.sourceEvent,D))}}function ORn({zoomPanValues:p,panOnDrag:E,onPaneContextMenu:P,onTransformChange:N,onPanZoom:D}){return F=>{var v,q;p.usedRightMouseButton=!!(P&&lan(E,p.mouseButton??0)),(v=F.sourceEvent)!=null&&v.sync||N([F.transform.x,F.transform.y,F.transform.k]),D&&!((q=F.sourceEvent)!=null&&q.internal)&&(D==null||D(F.sourceEvent,HX(F.transform)))}}function NRn({zoomPanValues:p,panOnDrag:E,panOnScroll:P,onDraggingChange:N,onPanZoomEnd:D,onPaneContextMenu:F}){return v=>{var q;if(!((q=v.sourceEvent)!=null&&q.internal)&&(p.isZoomingOrPanning=!1,F&&lan(E,p.mouseButton??0)&&!p.usedRightMouseButton&&v.sourceEvent&&F(v.sourceEvent),p.usedRightMouseButton=!1,N(!1),D)){const te=HX(v.transform);p.prevViewport=te,clearTimeout(p.timerId),p.timerId=setTimeout(()=>{D==null||D(v.sourceEvent,te)},P?150:0)}}}function DRn({panActivationKeyPressed:p,zoomActivationKeyPressed:E,zoomOnScroll:P,zoomOnPinch:N,panOnDrag:D,panOnScroll:F,zoomOnDoubleClick:v,userSelectionActive:q,noWheelClassName:te,noPanClassName:ie,lib:pe,connectionInProgress:oe}){return z=>{var ce;const Z=E||P,ne=N&&z.ctrlKey,U=z.type==="wheel";if(z.button===1&&z.type==="mousedown"&&(_5(z,`${pe}-flow__node`)||_5(z,`${pe}-flow__edge`)||_5(z,`${pe}-flow__selection`)||_5(z,`${pe}-flow__nodesselection`)))return!0;if(!D&&!Z&&!F&&!v&&!N||q||oe&&!U||_5(z,te)&&U||_5(z,ie)&&(!U||F&&U&&!E)||!N&&z.ctrlKey&&U)return!1;if(!N&&z.type==="touchstart"&&((ce=z.touches)==null?void 0:ce.length)>1)return z.preventDefault(),!1;if(!Z&&!F&&!ne&&U||!D&&(z.type==="mousedown"||z.type==="touchstart")||Array.isArray(D)&&!D.includes(z.button)&&z.type==="mousedown")return!1;const xe=Array.isArray(D)&&D.includes(z.button)||!z.button||z.button<=1;return(!z.ctrlKey||U||p)&&xe}}function LRn({domNode:p,minZoom:E,maxZoom:P,translateExtent:N,viewport:D,onPanZoom:F,onPanZoomStart:v,onPanZoomEnd:q,onDraggingChange:te}){const ie={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},pe=p.getBoundingClientRect();let oe=[[0,0],[pe.width,pe.height]];const z=typeof ResizeObserver<"u"?new ResizeObserver(_=>{const je=_[0];je&&(oe=[[0,0],[je.contentRect.width,je.contentRect.height]])}):null;z==null||z.observe(p);const Z=Fhn().extent(()=>oe).scaleExtent([E,P]).translateExtent(N),ne=$0(p).call(Z);Me({x:D.x,y:D.y,zoom:TA(D.zoom,E,P)},[[0,0],[pe.width,pe.height]],N);const U=ne.on("wheel.zoom"),xe=ne.on("dblclick.zoom");Z.wheelDelta(han);async function ce(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).transform(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}function ge({noWheelClassName:_,noPanClassName:je,onPaneContextMenu:on,userSelectionActive:rn,panOnScroll:Sn,panOnDrag:Bn,panOnScrollMode:dn,panOnScrollSpeed:Gn,preventScrolling:Nn,zoomOnPinch:qn,zoomOnScroll:Jt,zoomOnDoubleClick:Kt,panActivationKeyPressed:Oi=!1,zoomActivationKeyPressed:gr,lib:Ki,onTransformChange:Kn,connectionInProgress:ei,paneClickDistance:rr,selectionOnDrag:cr}){rn&&!ie.isZoomingOrPanning&&ee();const _i=Sn&&!gr&&!rn;Z.clickDistance(cr?1/0:!Zg(rr)||rr<0?0:rr);const sr=_i?SRn({zoomPanValues:ie,noWheelClassName:_,d3Selection:ne,d3Zoom:Z,panOnScrollMode:dn,panOnScrollSpeed:Gn,zoomOnPinch:qn,onPanZoomStart:v,onPanZoom:F,onPanZoomEnd:q}):IRn({noWheelClassName:_,preventScrolling:Nn,d3ZoomHandler:U});ne.on("wheel.zoom",sr,{passive:!1});const ri=PRn({zoomPanValues:ie,onDraggingChange:te,onPanZoomStart:v});Z.on("start",ri);const bi=ORn({zoomPanValues:ie,panOnDrag:Bn,onPaneContextMenu:!!on,onPanZoom:F,onTransformChange:Kn});Z.on("zoom",bi);const Mc=NRn({zoomPanValues:ie,panOnDrag:Bn,panOnScroll:Sn,onPaneContextMenu:on,onPanZoomEnd:q,onDraggingChange:te});Z.on("end",Mc);const ku=DRn({panActivationKeyPressed:Oi,zoomActivationKeyPressed:gr,panOnDrag:Bn,zoomOnScroll:Jt,panOnScroll:Sn,zoomOnDoubleClick:Kt,zoomOnPinch:qn,userSelectionActive:rn,noPanClassName:je,noWheelClassName:_,lib:Ki,connectionInProgress:ei});Z.filter(ku),Kt?ne.on("dblclick.zoom",xe):ne.on("dblclick.zoom",null)}function ee(){Z.on("zoom",null)}async function Me(_,je,on){const rn=gge(_),Sn=Z==null?void 0:Z.constrain()(rn,je,on);return Sn&&await ce(Sn),Sn}async function Ke(_,je){const on=gge(_);return await ce(on,je),on}function Xe(_){if(ne){const je=gge(_),on=ne.property("__zoom");(on.k!==_.zoom||on.x!==_.x||on.y!==_.y)&&(Z==null||Z.transform(ne,je,null,{sync:!0}))}}function Ye(){const _=ne?bBn(ne.node()):{x:0,y:0,k:1};return{x:_.x,y:_.y,zoom:_.k}}async function kn(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleTo(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}async function jn(_,je){return ne?new Promise(on=>{Z==null||Z.interpolate((je==null?void 0:je.interpolate)==="linear"?hge:NX).scaleBy(pge(ne,je==null?void 0:je.duration,je==null?void 0:je.ease,()=>on(!0)),_)}):!1}function Zn(_){Z==null||Z.scaleExtent(_)}function $n(_){Z==null||Z.translateExtent(_)}function Vn(_){const je=!Zg(_)||_<0?0:_;Z==null||Z.clickDistance(je)}return{update:ge,destroy:ee,setViewport:Ke,setViewportConstrained:Me,getViewport:Ye,scaleTo:kn,scaleBy:jn,setScaleExtent:Zn,setTranslateExtent:$n,syncViewport:Xe,setClickDistance:Vn}}var IA;(function(p){p.Line="line",p.Handle="handle"})(IA||(IA={}));function $Rn({width:p,prevWidth:E,height:P,prevHeight:N,affectsX:D,affectsY:F}){const v=p-E,q=P-N,te=[v>0?1:v<0?-1:0,q>0?1:q<0?-1:0];return v&&D&&(te[0]=te[0]*-1),q&&F&&(te[1]=te[1]*-1),te}function Yln(p){const E=p.includes("right")||p.includes("left"),P=p.includes("bottom")||p.includes("top"),N=p.includes("left"),D=p.includes("top");return{isHorizontal:E,isVertical:P,affectsX:N,affectsY:D}}function B5(p,E){return Math.max(0,E-p)}function R5(p,E){return Math.max(0,p-E)}function SX(p,E,P){return Math.max(0,E-p,p-P)}function Zln(p,E){return p?!E:E}function FRn(p,E,P,N,D,F,v,q){let{affectsX:te,affectsY:ie}=E;const{isHorizontal:pe,isVertical:oe}=E,z=pe&&oe,{xSnapped:Z,ySnapped:ne}=P,{minWidth:U,maxWidth:xe,minHeight:ce,maxHeight:ge}=N,{x:ee,y:Me,width:Ke,height:Xe,aspectRatio:Ye}=p;let kn=Math.floor(pe?Z-p.pointerX:0),jn=Math.floor(oe?ne-p.pointerY:0);const Zn=Ke+(te?-kn:kn),$n=Xe+(ie?-jn:jn),Vn=-F[0]*Ke,_=-F[1]*Xe;let je=SX(Zn,U,xe),on=SX($n,ce,ge);if(v){let Bn=0,dn=0;te&&kn<0?Bn=B5(ee+kn+Vn,v[0][0]):!te&&kn>0&&(Bn=R5(ee+Zn+Vn,v[1][0])),ie&&jn<0?dn=B5(Me+jn+_,v[0][1]):!ie&&jn>0&&(dn=R5(Me+$n+_,v[1][1])),je=Math.max(je,Bn),on=Math.max(on,dn)}if(q){let Bn=0,dn=0;te&&kn>0?Bn=R5(ee+kn,q[0][0]):!te&&kn<0&&(Bn=B5(ee+Zn,q[1][0])),ie&&jn>0?dn=R5(Me+jn,q[0][1]):!ie&&jn<0&&(dn=B5(Me+$n,q[1][1])),je=Math.max(je,Bn),on=Math.max(on,dn)}if(D){if(pe){const Bn=SX(Zn/Ye,ce,ge)*Ye;if(je=Math.max(je,Bn),v){let dn=0;!te&&!ie||te&&!ie&&z?dn=R5(Me+_+Zn/Ye,v[1][1])*Ye:dn=B5(Me+_+(te?kn:-kn)/Ye,v[0][1])*Ye,je=Math.max(je,dn)}if(q){let dn=0;!te&&!ie||te&&!ie&&z?dn=B5(Me+Zn/Ye,q[1][1])*Ye:dn=R5(Me+(te?kn:-kn)/Ye,q[0][1])*Ye,je=Math.max(je,dn)}}if(oe){const Bn=SX($n*Ye,U,xe)/Ye;if(on=Math.max(on,Bn),v){let dn=0;!te&&!ie||ie&&!te&&z?dn=R5(ee+$n*Ye+Vn,v[1][0])/Ye:dn=B5(ee+(ie?jn:-jn)*Ye+Vn,v[0][0])/Ye,on=Math.max(on,dn)}if(q){let dn=0;!te&&!ie||ie&&!te&&z?dn=B5(ee+$n*Ye,q[1][0])/Ye:dn=R5(ee+(ie?jn:-jn)*Ye,q[0][0])/Ye,on=Math.max(on,dn)}}}jn=jn+(jn<0?on:-on),kn=kn+(kn<0?je:-je),D&&(z?Zn>$n*Ye?jn=(Zln(te,ie)?-kn:kn)/Ye:kn=(Zln(te,ie)?-jn:jn)*Ye:pe?(jn=kn/Ye,ie=te):(kn=jn*Ye,te=ie));const rn=te?ee+kn:ee,Sn=ie?Me+jn:Me;return{width:Ke+(te?-kn:kn),height:Xe+(ie?-jn:jn),x:F[0]*kn*(te?-1:1)+rn,y:F[1]*jn*(ie?-1:1)+Sn}}const aan={width:0,height:0,x:0,y:0},BRn={...aan,pointerX:0,pointerY:0,aspectRatio:1};function RRn(p,E,P){const N=E.position.x+p.position.x,D=E.position.y+p.position.y,F=p.measured.width??0,v=p.measured.height??0,q=P[0]*F,te=P[1]*v;return[[N-q,D-te],[N+F-q,D+v-te]]}function _Rn({domNode:p,nodeId:E,getStoreItems:P,onChange:N,onEnd:D}){const F=$0(p);let v={controlDirection:Yln("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function q({controlPosition:ie,boundaries:pe,keepAspectRatio:oe,resizeDirection:z,onResizeStart:Z,onResize:ne,onResizeEnd:U,shouldResize:xe}){let ce={...aan},ge={...BRn};v={boundaries:pe,resizeDirection:z,keepAspectRatio:oe,controlDirection:Yln(ie)};let ee,Me=null,Ke=[],Xe,Ye,kn;const jn=$hn().on("start",Zn=>{const{nodeLookup:$n,transform:Vn,snapGrid:_,snapToGrid:je,nodeOrigin:on,paneDomNode:rn}=P();if(ee=$n.get(E),!ee)return;Me=(rn==null?void 0:rn.getBoundingClientRect())??null;const{xSnapped:Sn,ySnapped:Bn}=rN(Zn.sourceEvent,{transform:Vn,snapGrid:_,snapToGrid:je,containerBounds:Me});ce={width:ee.measured.width??0,height:ee.measured.height??0,x:ee.position.x??0,y:ee.position.y??0},ge={...ce,pointerX:Sn,pointerY:Bn,aspectRatio:ce.width/ce.height},Xe=void 0,Ye=Y8(ee.extent)?ee.extent:void 0,ee.parentId&&(ee.extent==="parent"||ee.expandParent)&&(Xe=$n.get(ee.parentId)),Xe&&ee.extent==="parent"&&(Ye=[[0,0],[Xe.measured.width,Xe.measured.height]]),Ke=[],kn=void 0;for(const[dn,Gn]of $n)if(Gn.parentId===E&&(Ke.push({id:dn,position:{...Gn.position},extent:Gn.extent}),Gn.extent==="parent"||Gn.expandParent)){const Nn=RRn(Gn,ee,Gn.origin??on);kn?kn=[[Math.min(Nn[0][0],kn[0][0]),Math.min(Nn[0][1],kn[0][1])],[Math.max(Nn[1][0],kn[1][0]),Math.max(Nn[1][1],kn[1][1])]]:kn=Nn}Z==null||Z(Zn,{...ce})}).on("drag",Zn=>{const{transform:$n,snapGrid:Vn,snapToGrid:_,nodeOrigin:je}=P(),on=rN(Zn.sourceEvent,{transform:$n,snapGrid:Vn,snapToGrid:_,containerBounds:Me}),rn=[];if(!ee)return;const{x:Sn,y:Bn,width:dn,height:Gn}=ce,Nn={},qn=ee.origin??je,{width:Jt,height:Kt,x:Oi,y:gr}=FRn(ge,v.controlDirection,on,v.boundaries,v.keepAspectRatio,qn,Ye,kn),Ki=Jt!==dn,Kn=Kt!==Gn,ei=Oi!==Sn&&Ki,rr=gr!==Bn&&Kn;if(!ei&&!rr&&!Ki&&!Kn)return;const cr={prevValues:{...ce},startX:ge.x,startY:ge.y,childNodes:Ke.map(bi=>({...bi,position:{...bi.position}}))};if((ei||rr||qn[0]===1||qn[1]===1)&&(Nn.x=ei?Oi:ce.x,Nn.y=rr?gr:ce.y,ce.x=Nn.x,ce.y=Nn.y,Ke.length>0)){const bi=Oi-Sn,Mc=gr-Bn;for(const ku of Ke)ku.position={x:ku.position.x-bi+qn[0]*(Jt-dn),y:ku.position.y-Mc+qn[1]*(Kt-Gn)},rn.push(ku)}if((Ki||Kn)&&(Nn.width=Ki&&(!v.resizeDirection||v.resizeDirection==="horizontal")?Jt:ce.width,Nn.height=Kn&&(!v.resizeDirection||v.resizeDirection==="vertical")?Kt:ce.height,ce.width=Nn.width,ce.height=Nn.height),Xe&&ee.expandParent){const bi=qn[0]*(Nn.width??0);Nn.x&&Nn.x<bi&&(ce.x=bi,ge.x=ge.x-(Nn.x-bi));const Mc=qn[1]*(Nn.height??0);Nn.y&&Nn.y<Mc&&(ce.y=Mc,ge.y=ge.y-(Nn.y-Mc))}const _i=$Rn({width:ce.width,prevWidth:dn,height:ce.height,prevHeight:Gn,affectsX:v.controlDirection.affectsX,affectsY:v.controlDirection.affectsY}),sr={...ce,direction:_i};if((xe==null?void 0:xe(Zn,sr))===!1){ce=cr.prevValues,ge.x=cr.startX,ge.y=cr.startY,Ke.forEach((bi,Mc)=>{bi.position=cr.childNodes[Mc].position});return}ne==null||ne(Zn,sr),N(Nn,rn)}).on("end",Zn=>{U==null||U(Zn,{...ce}),D==null||D({...ce})});F.call(jn)}function te(){F.on(".drag",null)}return{update:q,destroy:te}}const JRn={},ehn=p=>{let E;const P=new Set,N=(pe,oe)=>{const z=typeof pe=="function"?pe(E):pe;if(!Object.is(z,E)){const Z=E;E=oe??(typeof z!="object"||z===null)?z:Object.assign({},E,z),P.forEach(ne=>ne(E,Z))}},D=()=>E,te={setState:N,getState:D,getInitialState:()=>ie,subscribe:pe=>(P.add(pe),()=>P.delete(pe)),destroy:()=>{(JRn?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),P.clear()}},ie=E=p(N,D,te);return te},GRn=p=>p?ehn(p):ehn,{useDebugValue:HRn}=GFn,{useSyncExternalStoreWithSelector:qRn}=JFn,zRn=p=>p;function dan(p,E=zRn,P){const N=qRn(p.subscribe,p.getState,p.getServerState||p.getInitialState,E,P);return HRn(N),N}const nhn=(p,E)=>{const P=GRn(p),N=(D,F=E)=>dan(P,D,F);return Object.assign(N,P),N},URn=(p,E)=>p?nhn(p,E):nhn;function Ts(p,E){if(Object.is(p,E))return!0;if(typeof p!="object"||p===null||typeof E!="object"||E===null)return!1;if(p instanceof Map&&E instanceof Map){if(p.size!==E.size)return!1;for(const[N,D]of p)if(!Object.is(D,E.get(N)))return!1;return!0}if(p instanceof Set&&E instanceof Set){if(p.size!==E.size)return!1;for(const N of p)if(!E.has(N))return!1;return!0}const P=Object.keys(p);if(P.length!==Object.keys(E).length)return!1;for(const N of P)if(!Object.prototype.hasOwnProperty.call(E,N)||!Object.is(p[N],E[N]))return!1;return!0}const qX=sn.createContext(null),XRn=qX.Provider,ban=t2.error001("react");function Sc(p,E){const P=sn.useContext(qX);if(P===null)throw new Error(ban);return dan(P,p,E)}function os(){const p=sn.useContext(qX);if(p===null)throw new Error(ban);return sn.useMemo(()=>({getState:p.getState,setState:p.setState,subscribe:p.subscribe}),[p])}const thn={display:"none"},KRn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},wan="react-flow__node-desc",gan="react-flow__edge-desc",WRn="react-flow__aria-live",VRn=p=>p.ariaLiveMessage,QRn=p=>p.ariaLabelConfig;function YRn({rfId:p}){const E=Sc(VRn);return ae.jsx("div",{id:`${WRn}-${p}`,"aria-live":"assertive","aria-atomic":"true",style:KRn,children:E})}function ZRn({rfId:p,disableKeyboardA11y:E}){const P=Sc(QRn);return ae.jsxs(ae.Fragment,{children:[ae.jsx("div",{id:`${wan}-${p}`,style:thn,children:E?P["node.a11yDescription.default"]:P["node.a11yDescription.keyboardDisabled"]}),ae.jsx("div",{id:`${gan}-${p}`,style:thn,children:P["edge.a11yDescription.default"]}),!E&&ae.jsx(YRn,{rfId:p})]})}const pN=sn.forwardRef(({position:p="top-left",children:E,className:P,style:N,...D},F)=>{const v=`${p}`.split("-");return ae.jsx("div",{className:Kf(["react-flow__panel",P,...v]),style:N,ref:F,...D,children:E})});pN.displayName="Panel";const ihn="https://reactflow.dev?utm_source=attribution";function e_n({proOptions:p,position:E="bottom-right"}){return sn.useEffect(()=>{},[]),p!=null&&p.hideAttribution?null:ae.jsx(pN,{position:E,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${ihn}`,children:ae.jsx("a",{href:ihn,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const n_n=p=>{const E=[],P=[];for(const[,N]of p.nodeLookup)N.selected&&E.push(N.internals.userNode);for(const[,N]of p.edgeLookup)N.selected&&P.push(N);return{selectedNodes:E,selectedEdges:P}},IX=p=>p.id;function t_n(p,E){return Ts(p.selectedNodes.map(IX),E.selectedNodes.map(IX))&&Ts(p.selectedEdges.map(IX),E.selectedEdges.map(IX))}function i_n({onSelectionChange:p}){const E=os(),{selectedNodes:P,selectedEdges:N}=Sc(n_n,t_n);return sn.useEffect(()=>{const D={nodes:P,edges:N};p==null||p(D),E.getState().onSelectionChangeHandlers.forEach(F=>F(D))},[P,N,p]),null}const r_n=p=>!!p.onSelectionChangeHandlers;function c_n({onSelectionChange:p}){const E=Sc(r_n);return p||E?ae.jsx(i_n,{onSelectionChange:p}):null}const pan=[0,0],u_n={x:0,y:0,zoom:1},o_n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],rhn=[...o_n,"rfId"],s_n=p=>({setNodes:p.setNodes,setEdges:p.setEdges,setMinZoom:p.setMinZoom,setMaxZoom:p.setMaxZoom,setTranslateExtent:p.setTranslateExtent,setNodeExtent:p.setNodeExtent,reset:p.reset,setDefaultNodesAndEdges:p.setDefaultNodesAndEdges}),chn={translateExtent:oN,nodeOrigin:pan,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function f_n(p){const{setNodes:E,setEdges:P,setMinZoom:N,setMaxZoom:D,setTranslateExtent:F,setNodeExtent:v,reset:q,setDefaultNodesAndEdges:te}=Sc(s_n,Ts),ie=os();sn.useEffect(()=>(te(p.defaultNodes,p.defaultEdges),()=>{pe.current=chn,q()}),[]);const pe=sn.useRef(chn);return sn.useEffect(()=>{for(const oe of rhn){const z=p[oe],Z=pe.current[oe];z!==Z&&(typeof p[oe]>"u"||(oe==="nodes"?E(z):oe==="edges"?P(z):oe==="minZoom"?N(z):oe==="maxZoom"?D(z):oe==="translateExtent"?F(z):oe==="nodeExtent"?v(z):oe==="ariaLabelConfig"?ie.setState({ariaLabelConfig:YBn(z)}):oe==="fitView"?ie.setState({fitViewQueued:z}):oe==="fitViewOptions"?ie.setState({fitViewOptions:z}):ie.setState({[oe]:z})))}pe.current=p},rhn.map(oe=>p[oe])),null}function uhn(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function l_n(p){var N;const[E,P]=sn.useState(p==="system"?null:p);return sn.useEffect(()=>{if(p!=="system"){P(p);return}const D=uhn(),F=()=>P(D!=null&&D.matches?"dark":"light");return F(),D==null||D.addEventListener("change",F),()=>{D==null||D.removeEventListener("change",F)}},[p]),E!==null?E:(N=uhn())!=null&&N.matches?"dark":"light"}const ohn=typeof document<"u"?document:null;function aN(p=null,E={target:ohn,actInsideInputWithModifier:!0}){const[P,N]=sn.useState(!1),D=sn.useRef(!1),F=sn.useRef(new Set([])),[v,q]=sn.useMemo(()=>{if(p!==null){const ie=(Array.isArray(p)?p:[p]).filter(oe=>typeof oe=="string").map(oe=>oe.replace(/\+/g,`
2
2
  `).replace(`
3
3
 
4
4
  `,`
@@ -27,4 +27,4 @@ import{l2 as JFn,R as GFn,r as sn,j as ae,e3 as Ihn,iI as HFn,jU as qFn,hF as zF
27
27
  `),c.length!=2)throw x(new An("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=Uw(Xw(c[0])),this.b=Uw(Xw(c[1]))}catch(o){throw o=Fi(o),$(o,131)?(i=o,x(new An(lWe+i))):x(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var br=w(Xj,"KVector",8);b(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},Fo,gM,ITe),s.Nc=function(){return d8n(this)},s.ag=function(n){var t,i,r,c,o,f;r=Zw(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
28
28
  `),es(this);try{for(i=0,o=0,c=0,f=0;i<r.length;)r[i]!=null&&Xw(r[i]).length>0&&(o%2==0?c=Uw(r[i]):f=Uw(r[i]),o>0&&o%2!=0&&Mt(this,new de(c,f)),++o),++i}catch(l){throw l=Fi(l),$(l,131)?(t=l,x(new An("The given string does not match the expected format for vectors."+t))):x(l)}},s.Ib=function(){var n,t,i;for(n=new ss("("),t=rt(this,0);t.b!=t.d.c;)i=u(tt(t),8),At(n,i.a+","+i.b),t.b!=t.d.c&&(n.a+="; ");return(n.a+=")",n).a};var q0e=w(Xj,"KVectorChain",79);b(256,24,{3:1,35:1,24:1,256:1},g6);var $U,MO,CO,XE,KE,xO,z0e=et(Gu,"Alignment",256,ut,b6n,R2n),bsn;b(976,1,Pl,Uye),s.tf=function(n){nUe(n)};var U0e,FU,wsn,X0e,K0e,gsn,W0e,psn,msn,V0e,Q0e,vsn;w(Gu,"BoxLayouterOptions",976),b(977,1,{},p5e),s.uf=function(){var n;return n=new y5e,n},s.vf=function(n){},w(Gu,"BoxLayouterOptions/BoxFactory",977),b(299,24,{3:1,35:1,24:1,299:1},p6);var y8,BU,k8,j8,E8,RU,_U=et(Gu,"ContentAlignment",299,ut,p6n,_2n),ysn;b(689,1,Pl,oK),s.tf=function(n){_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,gVe),""),"Layout Algorithm"),"Select a specific layout algorithm."),(r0(),x3)),Ie),Je((th(),un))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,pVe),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Bl),DFn),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Yue),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Y0e),gi),z0e),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,I4),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,ase),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Bl),q0e),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,eI),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),ebe),C3),_U),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Yj),""),"Debug Mode"),"Whether additional debug information shall be generated."),(gn(),!1)),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,dG),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),nbe),gi),M8),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Qj),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),rbe),gi),eX),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,lse),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ZS),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),ube),gi),Wbe),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ug),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),pbe),Bl),ile),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ey),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,tI),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ny),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,EJ),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),jbe),gi),Ybe),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,nI),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Bl),br),ci(Ri,I(S(Fl,1),he,160,0,[s1,ya]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Jj),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),qr),Zi),ci(Ri,I(S(Fl,1),he,160,0,[al]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,DS),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),qr),Zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Z9),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,foe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),fbe),Bl),q0e),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,doe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,boe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,oFn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Bl),_Fn),ci(un,I(S(Fl,1),he,160,0,[ya]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,mVe),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Nr),zi),Je(ya)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,goe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),lbe),Bl),tle),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Vue),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),nr),xi),ci(Ri,I(S(Fl,1),he,160,0,[al,s1,ya]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,vVe),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Nr),zi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,yVe),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,kVe),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Gj),""),hVe),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),nr),xi),Je(un)))),mi(n,Gj,Mb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,jVe),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,EVe),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),fe(100)),qr),Zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,AVe),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,MVe),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),fe(4e3)),qr),Zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,CVe),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),fe(400)),qr),Zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,xVe),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,TVe),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,SVe),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,IVe),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,hse),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Z0e),gi),hwe),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,PVe),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),sbe),gi),nwe),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,OVe),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),obe),gi),$be),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Bue),Nl),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Rue),Nl),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,_ue),Nl),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Jue),Nl),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,jJ),Nl),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,aG),Nl),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Gue),Nl),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,zue),Nl),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Hue),Nl),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,que),Nl),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,cg),Nl),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Uue),Nl),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Nr),zi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Xue),Nl),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Nr),zi),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Kue),Nl),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Bl),gfn),ci(Ri,I(S(Fl,1),he,160,0,[al,s1,ya]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,poe),Nl),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Obe),Bl),tle),Je(un)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,wG),LVe),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),qr),Zi),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),mi(n,wG,bG,Osn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,bG),LVe),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),mbe),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,noe),$Ve),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),abe),Bl),ile),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,O4),$Ve),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),dbe),C3),lc),ci(Ri,I(S(Fl,1),he,160,0,[ya]))))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,roe),lI),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),ybe),gi),S8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,coe),lI),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),gi),S8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,uoe),lI),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),gi),S8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,ooe),lI),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),gi),S8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,soe),lI),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),gi),S8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Q2),_G),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),bbe),C3),O8),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,n3),_G),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),gbe),C3),twe),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,t3),_G),"Node Size Minimum"),"The minimal size to which a node can be reduced."),wbe),Bl),br),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,P4),_G),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),nr),xi),Je(un)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,hoe),hG),"Edge Label Placement"),"Gives a hint on where to put edge labels."),tbe),gi),Fbe),Je(ya)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,LS),hG),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),nr),xi),Je(ya)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,sFn),"font"),"Font Name"),"Font name used for a label."),x3),Ie),Je(ya)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,NVe),"font"),"Font Size"),"Font size used for a label."),qr),Zi),Je(ya)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,woe),JG),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Bl),br),Je(s1)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,aoe),JG),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),qr),Zi),Je(s1)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Que),JG),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Mbe),gi),ec),Je(s1)))),_e(n,new Oe(Be(Fe(Re(Ne($e(De(Le(new Pe,Wue),JG),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Nr),zi),Je(s1)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,N4),wse),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Ebe),C3),DO),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,toe),wse),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,ioe),wse),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,BG),G4),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),fe(3)),qr),Zi),Je(un)))),mi(n,BG,RG,qsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,dse),G4),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),fe(4)),qr),Zi),Je(un)))),mi(n,dse,BG,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Hj),G4),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Nr),zi),Je(un)))),mi(n,Hj,Mb,Jsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,RG),G4),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),Bl),LFn),Je(Ri)))),mi(n,RG,Mb,Gsn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,qj),G4),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Nr),zi),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),mi(n,qj,Mb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,zj),G4),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Nr),zi),ci(un,I(S(Fl,1),he,160,0,[Ri]))))),mi(n,zj,Mb,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Mb),G4),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),gi),rwe),Je(Ri)))),mi(n,Mb,P4,null),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,bse),G4),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Nr),zi),Je(un)))),mi(n,bse,Mb,_sn),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,Zue),FVe),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),nr),xi),Je(Ri)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,eoe),FVe),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),nr),xi),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,loe),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Nr),zi),Je(al)))),_e(n,new Oe(Be(Fe(Re(ze(Ne($e(De(Le(new Pe,DVe),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),cbe),gi),Hbe),Je(al)))),o6(n,new ym(t6(Q3(V3(new _p,wn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),o6(n,new ym(t6(Q3(V3(new _p,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),o6(n,new ym(t6(Q3(V3(new _p,Ku),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),o6(n,new ym(t6(Q3(V3(new _p,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),o6(n,new ym(t6(Q3(V3(new _p,WWe),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),o6(n,new ym(t6(Q3(V3(new _p,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),o6(n,new ym(t6(Q3(V3(new _p,Gs),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Rze((new Xye,n)),nUe((new Uye,n)),hze((new Kye,n))};var T3,ksn,Y0e,M5,jsn,Esn,Z0e,Dg,Lg,Asn,WE,ebe,VE,C0,nbe,JU,GU,tbe,ibe,rbe,Msn,cbe,Csn,Tp,ube,xsn,QE,HU,YE,qU,Tsn,obe,Ssn,sbe,Sp,fbe,C5,lbe,hbe,abe,Ip,dbe,x0,bbe,$g,Pp,wbe,wd,gbe,TO,ZE,Bh,pbe,Isn,mbe,Psn,Osn,vbe,ybe,zU,UU,XU,KU,kbe,Ko,A8,jbe,WU,VU,Fg,Ebe,Abe,Op,Mbe,S3,eA,QU,Bg,Nsn,YU,Dsn,Lsn,$sn,Fsn,Cbe,xbe,I3,Tbe,SO,Sbe,Ibe,f1,Bsn,Pbe,Obe,Nbe,x5,Rg,T5,P3,Rsn,_sn,IO,Jsn,PO,Gsn,Hsn,qsn,zsn;w(Gu,"CoreOptions",689),b(86,24,{3:1,35:1,24:1,86:1},Ok);var Rl,Ec,Tc,_l,Xs,M8=et(Gu,"Direction",86,ut,C5n,J2n),Usn;b(278,24,{3:1,35:1,24:1,278:1},zM);var OO,nA,Dbe,Lbe,$be=et(Gu,"EdgeCoords",278,ut,Y4n,G2n),Xsn;b(279,24,{3:1,35:1,24:1,279:1},_L);var S5,_g,I5,Fbe=et(Gu,"EdgeLabelPlacement",279,ut,Wvn,H2n),Ksn;b(222,24,{3:1,35:1,24:1,222:1},UM);var P5,tA,O3,ZU,eX=et(Gu,"EdgeRouting",222,ut,n5n,q2n),Wsn;b(328,24,{3:1,35:1,24:1,328:1},m6);var Bbe,Rbe,_be,Jbe,nX,Gbe,Hbe=et(Gu,"EdgeType",328,ut,m6n,z2n),Vsn;b(974,1,Pl,Xye),s.tf=function(n){Rze(n)};var qbe,zbe,Ube,Xbe,Qsn,Kbe,C8;w(Gu,"FixedLayouterOptions",974),b(975,1,{},m5e),s.uf=function(){var n;return n=new E5e,n},s.vf=function(n){},w(Gu,"FixedLayouterOptions/FixedFactory",975),b(347,24,{3:1,35:1,24:1,347:1},JL);var l1,NO,x8,Wbe=et(Gu,"HierarchyHandling",347,ut,Vvn,U2n),Ysn,LFn=yi(Gu,"ITopdownSizeApproximator");b(292,24,{3:1,35:1,24:1,292:1},XM);var Rh,gd,iA,rA,Zsn=et(Gu,"LabelSide",292,ut,t5n,X2n),efn;b(96,24,{3:1,35:1,24:1,96:1},l2);var ka,Jf,af,Gf,Es,Hf,df,_h,qf,lc=et(Gu,"NodeLabelPlacement",96,ut,v9n,K2n),nfn;b(257,24,{3:1,35:1,24:1,257:1},Nk);var Vbe,T8,pd,Qbe,cA,S8=et(Gu,"PortAlignment",257,ut,R5n,W2n),tfn;b(102,24,{3:1,35:1,24:1,102:1},v6);var T0,yu,Jh,O5,Jl,md,Ybe=et(Gu,"PortConstraints",102,ut,w6n,V2n),ifn;b(280,24,{3:1,35:1,24:1,280:1},y6);var I8,P8,ja,uA,vd,N3,DO=et(Gu,"PortLabelPlacement",280,ut,g6n,Q2n),rfn;b(64,24,{3:1,35:1,24:1,64:1},Dk);var Dn,xn,Ks,Ws,so,Qu,Gl,zf,Do,Ao,Lu,Lo,fo,lo,Uf,As,Ms,bf,Xn,qc,Tn,ec=et(Gu,"PortSide",64,ut,x5n,Y2n),cfn;b(978,1,Pl,Kye),s.tf=function(n){hze(n)};var ufn,ofn,Zbe,sfn,ffn;w(Gu,"RandomLayouterOptions",978),b(979,1,{},v5e),s.uf=function(){var n;return n=new I5e,n},s.vf=function(n){},w(Gu,"RandomLayouterOptions/RandomFactory",979),b(300,24,{3:1,35:1,24:1,300:1},GL);var oA,tX,ewe,nwe=et(Gu,"ShapeCoords",300,ut,Qvn,Z2n),lfn;b(380,24,{3:1,35:1,24:1,380:1},KM);var Jg,sA,fA,S0,O8=et(Gu,"SizeConstraint",380,ut,e5n,epn),hfn;b(266,24,{3:1,35:1,24:1,266:1},h2);var lA,LO,N5,iX,hA,N8,$O,FO,BO,twe=et(Gu,"SizeOptions",266,ut,S9n,npn),afn;b(281,24,{3:1,35:1,24:1,281:1},HL);var Gg,iwe,RO,rwe=et(Gu,"TopdownNodeTypes",281,ut,Yvn,tpn),dfn;b(288,24,aI);var cwe,rX,uwe,owe,aA=et(Gu,"TopdownSizeApproximator",288,ut,Z4n,ipn);b(970,288,aI,dIe),s.Sg=function(n){return V_e(n)},et(Gu,"TopdownSizeApproximator/1",970,aA,null,null),b(971,288,aI,_Ie),s.Sg=function(n){var t,i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L,R,G,Y,V,Ae,He,Ge,fn;for(t=u(le(n,(Et(),Bg)),144),Ae=(E1(),y=new V5,y),dj(Ae,n),He=new Wn,o=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));o.e!=o.i.gc();)r=u(Jn(o),26),R=(m=new V5,m),cS(R,Ae),dj(R,r),fn=V_e(r),H0(R,v.Math.max(r.g,fn.a),v.Math.max(r.f,fn.b)),ro(He.f,r,R);for(c=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));c.e!=c.i.gc();)for(r=u(Jn(c),26),d=new Rn((!r.e&&(r.e=new hn(Xi,r,7,4)),r.e));d.e!=d.i.gc();)a=u(Jn(d),85),Y=u($c(pc(He.f,r)),26),V=u(vn(He,B((!a.c&&(a.c=new hn(Yn,a,5,8)),a.c),0)),26),G=(g=new yD,g),it((!G.b&&(G.b=new hn(Yn,G,4,7)),G.b),Y),it((!G.c&&(G.c=new hn(Yn,G,5,8)),G.c),V),rS(G,pi(Y)),dj(G,a);A=u(u7(t.f),214);try{A.kf(Ae,new vD),LY(t.f,A)}catch(an){throw an=Fi(an),$(an,101)?(j=an,x(j)):x(an)}return nl(Ae,Lg)||nl(Ae,Dg)||O_(Ae),h=J(H(le(Ae,Lg))),l=J(H(le(Ae,Dg))),f=h/l,i=J(H(le(Ae,Rg)))*v.Math.sqrt((!Ae.a&&(Ae.a=new ue(mt,Ae,10,11)),Ae.a).i),Ge=u(le(Ae,Bh),104),L=Ge.b+Ge.c+1,T=Ge.d+Ge.a+1,new de(v.Math.max(L,i),v.Math.max(T,i/f))},et(Gu,"TopdownSizeApproximator/2",971,aA,null,null),b(972,288,aI,EOe),s.Sg=function(n){var t,i,r,c,o,f;return i=J(H(le(n,(Et(),Rg)))),t=i/J(H(le(n,x5))),r=xOn(n),o=u(le(n,Bh),104),c=J(H(Ee(f1))),pi(n)&&(c=J(H(le(pi(n),f1)))),f=Wh(new de(i,t),r),zt(f,new de(-(o.b+o.c)-c,-(o.d+o.a)-c))},et(Gu,"TopdownSizeApproximator/3",972,aA,null,null),b(973,288,aI,ZIe),s.Sg=function(n){var t,i,r,c,o,f,l,h,a,d;for(f=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));f.e!=f.i.gc();)o=u(Jn(f),26),le(o,(Et(),PO))!=null&&(!o.a&&(o.a=new ue(mt,o,10,11)),!!o.a)&&(!o.a&&(o.a=new ue(mt,o,10,11)),o.a).i>0?(i=u(le(o,PO),522),d=i.Sg(o),a=u(le(o,Bh),104),H0(o,v.Math.max(o.g,d.a+a.b+a.c),v.Math.max(o.f,d.b+a.d+a.a))):(!o.a&&(o.a=new ue(mt,o,10,11)),o.a).i!=0&&H0(o,J(H(le(o,Rg))),J(H(le(o,Rg)))/J(H(le(o,x5))));t=u(le(n,(Et(),Bg)),144),h=u(u7(t.f),214);try{h.kf(n,new vD),LY(t.f,h)}catch(g){throw g=Fi(g),$(g,101)?(l=g,x(l)):x(g)}return Yt(n,T3,H4),dDe(n),O_(n),c=J(H(le(n,Lg))),r=J(H(le(n,Dg))),new de(c,r)},et(Gu,"TopdownSizeApproximator/4",973,aA,null,null);var bfn;b(345,1,{853:1},Up),s.Tg=function(n,t){return fGe(this,n,t)},s.Ug=function(){LGe(this)},s.Vg=function(){return this.q},s.Wg=function(){return this.f?tx(this.f):null},s.Xg=function(){return tx(this.a)},s.Yg=function(){return this.p},s.Zg=function(){return!1},s.$g=function(){return this.n},s._g=function(){return this.p!=null&&!this.b},s.ah=function(n){var t;this.n&&(t=n,me(this.f,t))},s.bh=function(n,t){var i,r;this.n&&n&&d4n(this,(i=new lPe,r=h_(i,n),aLn(i),r),(fT(),uX))},s.dh=function(n){var t;return this.b?null:(t=t9n(this,this.g),Mt(this.a,t),t.i=this,this.d=n,t)},s.eh=function(n){n>0&&!this.b&&kee(this,n)},s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,w(ru,"BasicProgressMonitor",345),b(706,214,Ab,y5e),s.kf=function(n,t){mUe(n,t)},w(ru,"BoxLayoutProvider",706),b(966,1,Ct,Y7e),s.Le=function(n,t){return hSn(this,u(n,26),u(t,26))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},s.a=!1,w(ru,"BoxLayoutProvider/1",966),b(167,1,{167:1},Rx,STe),s.Ib=function(){return this.c?Ere(this.c):xl(this.b)},w(ru,"BoxLayoutProvider/Group",167),b(327,24,{3:1,35:1,24:1,327:1},WM);var swe,fwe,lwe,cX,hwe=et(ru,"BoxLayoutProvider/PackingMode",327,ut,i5n,rpn),wfn;b(967,1,Ct,M5e),s.Le=function(n,t){return j3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$0$Type",967),b(968,1,Ct,C5e),s.Le=function(n,t){return h3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$1$Type",968),b(969,1,Ct,x5e),s.Le=function(n,t){return a3n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(ru,"BoxLayoutProvider/lambda$2$Type",969),b(1339,1,{830:1},T5e),s.Lg=function(n,t){return jM(),!$(t,174)||PAe((Pm(),u(n,174)),t)},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1339),b(1340,1,Fn,Z7e),s.Ad=function(n){v8n(this.a,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1340),b(1341,1,Fn,S5e),s.Ad=function(n){u(n,105),jM()},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1341),b(1345,1,Fn,eje),s.Ad=function(n){J9n(this.a,u(n,105))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1345),b(1343,1,gt,yCe),s.Mb=function(n){return n8n(this.a,this.b,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1343),b(1342,1,gt,kCe),s.Mb=function(n){return swn(this.a,this.b,u(n,830))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1342),b(1344,1,Fn,jCe),s.Ad=function(n){fmn(this.a,this.b,u(n,147))},w(ru,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1344),b(931,1,{},j5e),s.Kb=function(n){return jxe(n)},s.Fb=function(n){return this===n},w(ru,"ElkUtil/lambda$0$Type",931),b(932,1,Fn,ECe),s.Ad=function(n){wxn(this.a,this.b,u(n,85))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$1$Type",932),b(933,1,Fn,ACe),s.Ad=function(n){hdn(this.a,this.b,u(n,170))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$2$Type",933),b(934,1,Fn,MCe),s.Ad=function(n){ubn(this.a,this.b,u(n,157))},s.a=0,s.b=0,w(ru,"ElkUtil/lambda$3$Type",934),b(935,1,Fn,nje),s.Ad=function(n){Opn(this.a,u(n,372))},w(ru,"ElkUtil/lambda$4$Type",935),b(331,1,{35:1,331:1},_1n),s.Dd=function(n){return Dbn(this,u(n,242))},s.Fb=function(n){var t;return $(n,331)?(t=u(n,331),this.a==t.a):!1},s.Hb=function(){return _r(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,w(ru,"ExclusiveBounds/ExclusiveLowerBound",331),b(1089,214,Ab,E5e),s.kf=function(n,t){var i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L,R,G,Y,V,Ae,He,Ge;for(t.Tg("Fixed Layout",1),o=u(le(n,(Et(),ibe)),222),g=0,m=0,R=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));R.e!=R.i.gc();){for(T=u(Jn(R),26),Ge=u(le(T,(sT(),C8)),8),Ge&&(Is(T,Ge.a,Ge.b),u(le(T,zbe),182).Gc((rs(),Jg))&&(y=u(le(T,Xbe),8),y.a>0&&y.b>0&&yb(T,y.a,y.b,!0,!0))),g=v.Math.max(g,T.i+T.g),m=v.Math.max(m,T.j+T.f),a=new Rn((!T.n&&(T.n=new ue(zc,T,1,7)),T.n));a.e!=a.i.gc();)l=u(Jn(a),157),Ge=u(le(l,C8),8),Ge&&Is(l,Ge.a,Ge.b),g=v.Math.max(g,T.i+l.i+l.g),m=v.Math.max(m,T.j+l.j+l.f);for(V=new Rn((!T.c&&(T.c=new ue(Wo,T,9,9)),T.c));V.e!=V.i.gc();)for(Y=u(Jn(V),125),Ge=u(le(Y,C8),8),Ge&&Is(Y,Ge.a,Ge.b),Ae=T.i+Y.i,He=T.j+Y.j,g=v.Math.max(g,Ae+Y.g),m=v.Math.max(m,He+Y.f),h=new Rn((!Y.n&&(Y.n=new ue(zc,Y,1,7)),Y.n));h.e!=h.i.gc();)l=u(Jn(h),157),Ge=u(le(l,C8),8),Ge&&Is(l,Ge.a,Ge.b),g=v.Math.max(g,Ae+l.i+l.g),m=v.Math.max(m,He+l.j+l.f);for(c=new Mn(In(X1(T).a.Jc(),new U));zn(c);)i=u(Ln(c),85),d=PXe(i),g=v.Math.max(g,d.a),m=v.Math.max(m,d.b);for(r=new Mn(In(QR(T).a.Jc(),new U));zn(r);)i=u(Ln(r),85),pi(FR(i))!=n&&(d=PXe(i),g=v.Math.max(g,d.a),m=v.Math.max(m,d.b))}if(o==(fa(),P5))for(L=new Rn((!n.a&&(n.a=new ue(mt,n,10,11)),n.a));L.e!=L.i.gc();)for(T=u(Jn(L),26),r=new Mn(In(X1(T).a.Jc(),new U));zn(r);)i=u(Ln(r),85),f=aOn(i),f.b==0?Yt(i,Sp,null):Yt(i,Sp,f);Se(Te(le(n,(sT(),Ube))))||(G=u(le(n,Qsn),104),A=g+G.b+G.c,j=m+G.d+G.a,yb(n,A,j,!0,!0)),t.Ug()},w(ru,"FixedLayoutProvider",1089),b(379,150,{3:1,414:1,379:1,105:1,150:1},mD,k$e),s.ag=function(n){var t,i,r,c,o,f,l,h,a;if(n)try{for(h=Zw(n,";,;"),o=h,f=0,l=o.length;f<l;++f){if(c=o[f],i=Zw(c,"\\:"),r=tce(n9(),i[0]),!r)throw x(new An("Invalid option id: "+i[0]));if(a=ece(r,i[1]),a==null)throw x(new An("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new Wn),Am(this.q,r)):(!this.q&&(this.q=new Wn),It(this.q,r,a))}}catch(d){throw d=Fi(d),$(d,101)?(t=d,x(new iRe(t))):x(d)}},s.Ib=function(){var n;return n=dt(To(Fu((this.q?this.q:(tn(),tn(),Dh)).vc().Mc(),new k5e),$6n(new VSe,new Mc,new rr,new sr,I(S(oo,1),he,130,0,[])))),n};var gfn=w(ru,"IndividualSpacings",379);b(965,1,{},k5e),s.Kb=function(n){return k3n(u(n,45))},w(ru,"IndividualSpacings/lambda$0$Type",965),b(708,1,{},xIe),s.c=0,w(ru,"InstancePool",708),b(1819,1,{},A5e),w(ru,"LoggedGraph",1819),b(407,24,{3:1,35:1,24:1,407:1},VM);var awe,uX,dwe,bwe,pfn=et(ru,"LoggedGraph/Type",407,ut,r5n,cpn),mfn;b(615,1,{853:1},vD),s.Tg=function(n,t){return!1},s.Ug=function(){},s.Vg=function(){return 0},s.Wg=function(){return null},s.Xg=function(){return null},s.Yg=function(){return null},s.Zg=function(){return!1},s.$g=function(){return!1},s._g=function(){return!1},s.ah=function(n){},s.bh=function(n,t){},s.dh=function(n){return this},s.eh=function(n){},w(ru,"NullElkProgressMonitor",615),b(49,1,{20:1,49:1},Qr),s.Ic=function(n){$r(this,n)},s.Fb=function(n){var t,i,r;return $(n,49)?(i=u(n,49),t=this.a==null?i.a==null:qt(this.a,i.a),r=this.b==null?i.b==null:qt(this.b,i.b),t&&r):!1},s.Hb=function(){var n,t,i,r,c,o;return i=this.a==null?0:si(this.a),n=i&Qi,t=i&-65536,o=this.b==null?0:si(this.b),r=o&Qi,c=o&-65536,n^c>>16&Qi|t^r<<16},s.Jc=function(){return new tje(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Oc(this.b)+")":this.b==null?"pair("+Oc(this.a)+",null)":"pair("+Oc(this.a)+","+Oc(this.b)+")"},w(ru,"Pair",49),b(980,1,jr,tje),s.Nb=function(n){Or(this,n)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw x(new Dc)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),x(new wo)},s.b=!1,s.c=!1,w(ru,"Pair/1",980),b(1079,214,Ab,I5e),s.kf=function(n,t){var i,r,c,o,f;if(t.Tg("Random Layout",1),(!n.a&&(n.a=new ue(mt,n,10,11)),n.a).i==0){t.Ug();return}o=u(le(n,(Wne(),sfn)),15),o&&o.a!=0?c=new gx(o.a):c=new GB,i=dk(H(le(n,ufn))),f=dk(H(le(n,ffn))),r=u(le(n,ofn),104),NLn(n,c,i,f,r),t.Ug()},w(ru,"RandomLayoutProvider",1079),b(240,1,{240:1},j$),s.Fb=function(n){return du(this.a,u(n,240).a)&&du(this.b,u(n,240).b)&&du(this.c,u(n,240).c)},s.Hb=function(){return lT(I(S(ir,1),ln,1,5,[this.a,this.b,this.c]))},s.Ib=function(){return"("+this.a+Ju+this.b+Ju+this.c+")"},w(ru,"Triple",240);var vfn;b(551,1,{}),s.Jf=function(){return new de(this.f.i,this.f.j)},s.mf=function(n){return vOe(n,(Et(),Ko))?le(this.f,yfn):le(this.f,n)},s.Kf=function(){return new de(this.f.g,this.f.f)},s.Lf=function(){return this.g},s.nf=function(n){return nl(this.f,n)},s.Mf=function(n){Go(this.f,n.a),Ho(this.f,n.b)},s.Nf=function(n){ub(this.f,n.a),cb(this.f,n.b)},s.Of=function(n){this.g=n},s.g=0;var yfn;w(hy,"ElkGraphAdapters/AbstractElkGraphElementAdapter",551),b(553,1,{838:1},nM),s.Pf=function(){var n,t;if(!this.b)for(this.b=ax(Z$(this.a).i),t=new Rn(Z$(this.a));t.e!=t.i.gc();)n=u(Jn(t),157),me(this.b,new QD(n));return this.b},s.b=null,w(hy,"ElkGraphAdapters/ElkEdgeAdapter",553),b(260,551,{},y1),s.Qf=function(){return gJe(this)},s.a=null,w(hy,"ElkGraphAdapters/ElkGraphAdapter",260),b(631,551,{187:1},QD),w(hy,"ElkGraphAdapters/ElkLabelAdapter",631),b(552,551,{685:1},aC),s.Pf=function(){return Rjn(this)},s.Tf=function(){var n;return n=u(le(this.f,(Et(),C5)),140),!n&&(n=new W5),n},s.Vf=function(){return _jn(this)},s.Xf=function(n){var t;t=new y$(n),Yt(this.f,(Et(),C5),t)},s.Yf=function(n){Yt(this.f,(Et(),Bh),new SQ(n))},s.Rf=function(){return this.d},s.Sf=function(){var n,t;if(!this.a)for(this.a=new ve,t=new Mn(In(QR(u(this.f,26)).a.Jc(),new U));zn(t);)n=u(Ln(t),85),me(this.a,new nM(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=new ve,t=new Mn(In(X1(u(this.f,26)).a.Jc(),new U));zn(t);)n=u(Ln(t),85),me(this.c,new nM(n));return this.c},s.Wf=function(){return ex(u(this.f,26)).i!=0||Se(Te(u(this.f,26).mf((Et(),QE))))},s.Zf=function(){F6n(this,(Nd(),vfn))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,w(hy,"ElkGraphAdapters/ElkNodeAdapter",552),b(1251,551,{837:1},Ije),s.Pf=function(){return Xjn(this)},s.Sf=function(){var n,t;if(!this.a)for(this.a=mh(u(this.f,125).gh().i),t=new Rn(u(this.f,125).gh());t.e!=t.i.gc();)n=u(Jn(t),85),me(this.a,new nM(n));return this.a},s.Uf=function(){var n,t;if(!this.c)for(this.c=mh(u(this.f,125).hh().i),t=new Rn(u(this.f,125).hh());t.e!=t.i.gc();)n=u(Jn(t),85),me(this.c,new nM(n));return this.c},s.$f=function(){return u(u(this.f,125).mf((Et(),Op)),64)},s._f=function(){var n,t,i,r,c,o,f,l;for(r=ml(u(this.f,125)),i=new Rn(u(this.f,125).hh());i.e!=i.i.gc();)for(n=u(Jn(i),85),l=new Rn((!n.c&&(n.c=new hn(Yn,n,5,8)),n.c));l.e!=l.i.gc();){if(f=u(Jn(l),84),Dw(xc(f),r))return!0;if(xc(f)==r&&Se(Te(le(n,(Et(),HU)))))return!0}for(t=new Rn(u(this.f,125).gh());t.e!=t.i.gc();)for(n=u(Jn(t),85),o=new Rn((!n.b&&(n.b=new hn(Yn,n,4,7)),n.b));o.e!=o.i.gc();)if(c=u(Jn(o),84),Dw(xc(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,w(hy,"ElkGraphAdapters/ElkPortAdapter",1251),b(1252,1,Ct,P5e),s.Le=function(n,t){return iPn(u(n,125),u(t,125))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(hy,"ElkGraphAdapters/PortComparator",1252);var yd=yi(Hs,"EObject"),D5=yi(np,_Ve),Cs=yi(np,JVe),dA=yi(np,GVe),bA=yi(np,"ElkShape"),Yn=yi(np,HVe),Xi=yi(np,pse),di=yi(np,qVe),wA=yi(Hs,zVe),D8=yi(Hs,"EFactory"),kfn,oX=yi(Hs,UVe),dl=yi(Hs,"EPackage"),wr,jfn,Efn,wwe,_O,Afn,gwe,pwe,mwe,Gh,Mfn,Cfn,zc=yi(np,mse),mt=yi(np,vse),Wo=yi(np,yse);b(93,1,XVe),s.qh=function(){return this.rh(),null},s.rh=function(){return null},s.sh=function(){return this.rh(),!1},s.th=function(){return!1},s.uh=function(n){Gt(this,n)},w(r3,"BasicNotifierImpl",93),b(100,93,QVe),s.Vh=function(){return Vo(this)},s.vh=function(n,t){return n},s.wh=function(){throw x(new ht)},s.xh=function(n){var t;return t=ic(u(cn(this.Ah(),this.Ch()),19)),this.Mh().Qh(this,t.n,t.f,n)},s.yh=function(n,t){throw x(new ht)},s.zh=function(n,t,i){return ms(this,n,t,i)},s.Ah=function(){var n;return this.wh()&&(n=this.wh().Lk(),n)?n:this.fi()},s.Bh=function(){return WR(this)},s.Ch=function(){throw x(new ht)},s.Dh=function(){var n,t;return t=this.Xh().Mk(),!t&&this.wh().Rk(t=(f6(),n=WY(rh(this.Ah())),n==null?wX:new Rk(this,n))),t},s.Eh=function(n,t){return n},s.Fh=function(n){var t;return t=n.nk(),t?n.Jj():vi(this.Ah(),n)},s.Gh=function(){var n;return n=this.wh(),n?n.Ok():null},s.Hh=function(){return this.wh()?this.wh().Lk():null},s.Ih=function(n,t,i){return OT(this,n,t,i)},s.Jh=function(n){return xv(this,n)},s.Kh=function(n,t){return NF(this,n,t)},s.Lh=function(){var n;return n=this.wh(),!!n&&n.Pk()},s.Mh=function(){throw x(new ht)},s.Nh=function(){return xT(this)},s.Oh=function(n,t,i,r){return Fm(this,n,t,r)},s.Ph=function(n,t,i){var r;return r=u(cn(this.Ah(),t),69),r.uk().xk(this,this.ei(),t-this.gi(),n,i)},s.Qh=function(n,t,i,r){return cx(this,n,t,r)},s.Rh=function(n,t,i){var r;return r=u(cn(this.Ah(),t),69),r.uk().yk(this,this.ei(),t-this.gi(),n,i)},s.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},s.Th=function(n){return rR(this,n)},s.Uh=function(n){return LOe(this,n)},s.Wh=function(n){return bXe(this,n)},s.Xh=function(){throw x(new ht)},s.Yh=function(){return this.wh()?this.wh().Nk():null},s.Zh=function(){return xT(this)},s.$h=function(n,t){qR(this,n,t)},s._h=function(n){this.Xh().Qk(n)},s.ai=function(n){this.Xh().Tk(n)},s.bi=function(n){this.Xh().Sk(n)},s.ci=function(n,t){var i,r,c,o;return o=this.Gh(),o&&n&&(t=Wr(o.Cl(),this,t),o.Gl(this)),r=this.Mh(),r&&((s_(this,this.Mh(),this.Ch()).Bb&Yr)!=0?(c=r.Nh(),c&&(n?!o&&c.Gl(this):c.Fl(this))):(t=(i=this.Ch(),i>=0?this.xh(t):this.Mh().Qh(this,-1-i,null,t)),t=this.zh(null,-1,t))),this.ai(n),t},s.di=function(n){var t,i,r,c,o,f,l,h;if(i=this.Ah(),o=vi(i,n),t=this.gi(),o>=t)return u(n,69).uk().Bk(this,this.ei(),o-t);if(o<=-1)if(f=U2((ko(),Dr),i,n),f){if(tc(),u(f,69).vk()||(f=km(vc(Dr,f))),c=(r=this.Fh(f),u(r>=0?this.Ih(r,!0,!0):pb(this,f,!0),163)),h=f.Gk(),h>1||h==-1)return u(u(c,219).Ql(n,!1),78)}else throw x(new An(nd+n.ve()+GG));else if(n.Hk())return r=this.Fh(n),u(r>=0?this.Ih(r,!1,!0):pb(this,n,!1),78);return l=new qCe(this,n),l},s.ei=function(){return tee(this)},s.fi=function(){return(S1(),mn).S},s.gi=function(){return Un(this.fi())},s.hi=function(n){JR(this,n)},s.Ib=function(){return Of(this)},w(yn,"BasicEObjectImpl",100);var xfn;b(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),s.ii=function(n){var t;return t=iee(this),t[n]},s.ji=function(n,t){var i;i=iee(this),Ni(i,n,t)},s.ki=function(n){var t;t=iee(this),Ni(t,n,null)},s.qh=function(){return u(Cn(this,4),129)},s.rh=function(){throw x(new ht)},s.sh=function(){return(this.Db&4)!=0},s.wh=function(){throw x(new ht)},s.li=function(n){Lm(this,2,n)},s.yh=function(n,t){this.Db=t<<16|this.Db&255,this.li(n)},s.Ah=function(){return eo(this)},s.Ch=function(){return this.Db>>16},s.Dh=function(){var n,t;return f6(),t=WY(rh((n=u(Cn(this,16),29),n||this.fi()))),t==null?wX:new Rk(this,t)},s.th=function(){return(this.Db&1)==0},s.Gh=function(){return u(Cn(this,128),1999)},s.Hh=function(){return u(Cn(this,16),29)},s.Lh=function(){return(this.Db&32)!=0},s.Mh=function(){return u(Cn(this,2),52)},s.Sh=function(){return(this.Db&64)!=0},s.Xh=function(){throw x(new ht)},s.Yh=function(){return u(Cn(this,64),290)},s._h=function(n){Lm(this,16,n)},s.ai=function(n){Lm(this,128,n)},s.bi=function(n){Lm(this,64,n)},s.ei=function(){return Uu(this)},s.Db=0,w(yn,"MinimalEObjectImpl",117),b(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.li=function(n){this.Cb=n},s.Mh=function(){return this.Cb},w(yn,"MinimalEObjectImpl/Container",118),b(e1,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return mte(this,n,t,i)},s.Rh=function(n,t,i){return uie(this,n,t,i)},s.Th=function(n){return fZ(this,n)},s.$h=function(n,t){tne(this,n,t)},s.fi=function(){return su(),Cfn},s.hi=function(n){zee(this,n)},s.lf=function(){return $_e(this)},s.fh=function(){return!this.o&&(this.o=new vo((su(),Gh),h1,this,0)),this.o},s.mf=function(n){return le(this,n)},s.nf=function(n){return nl(this,n)},s.of=function(n,t){return Yt(this,n,t)},w(h0,"EMapPropertyHolderImpl",e1),b(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},zA),s.Ih=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return OT(this,n,t,i)},s.Th=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return rR(this,n)},s.$h=function(n,t){switch(n){case 0:_x(this,J(H(t)));return;case 1:Jx(this,J(H(t)));return}qR(this,n,t)},s.fi=function(){return su(),jfn},s.hi=function(n){switch(n){case 0:_x(this,0);return;case 1:Jx(this,0);return}JR(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?Of(this):(n=new ef(Of(this)),n.a+=" (x: ",u2(n,this.a),n.a+=", y: ",u2(n,this.b),n.a+=")",n.a)},s.a=0,s.b=0,w(h0,"ElkBendPointImpl",559),b(727,e1,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return Ene(this,n,t,i)},s.Ph=function(n,t,i){return NR(this,n,t,i)},s.Rh=function(n,t,i){return gB(this,n,t,i)},s.Th=function(n){return Ree(this,n)},s.$h=function(n,t){$te(this,n,t)},s.fi=function(){return su(),Afn},s.hi=function(n){vne(this,n)},s.ih=function(){return this.k},s.jh=function(){return Z$(this)},s.Ib=function(){return _B(this)},s.k=null,w(h0,"ElkGraphElementImpl",727),b(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return $ne(this,n,t,i)},s.Th=function(n){return Gne(this,n)},s.$h=function(n,t){Fte(this,n,t)},s.fi=function(){return su(),Mfn},s.hi=function(n){Une(this,n)},s.kh=function(){return this.f},s.lh=function(){return this.g},s.mh=function(){return this.i},s.nh=function(){return this.j},s.oh=function(n,t){H0(this,n,t)},s.ph=function(n,t){Is(this,n,t)},s.Ib=function(){return RR(this)},s.f=0,s.g=0,s.i=0,s.j=0,w(h0,"ElkShapeImpl",728),b(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),s.Ih=function(n,t,i){return ate(this,n,t,i)},s.Ph=function(n,t,i){return Ite(this,n,t,i)},s.Rh=function(n,t,i){return Pte(this,n,t,i)},s.Th=function(n){return nne(this,n)},s.$h=function(n,t){qie(this,n,t)},s.fi=function(){return su(),Efn},s.hi=function(n){ote(this,n)},s.gh=function(){return!this.d&&(this.d=new hn(Xi,this,8,5)),this.d},s.hh=function(){return!this.e&&(this.e=new hn(Xi,this,7,4)),this.e},w(h0,"ElkConnectableShapeImpl",729),b(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},yD),s.xh=function(n){return xte(this,n)},s.Ih=function(n,t,i){switch(n){case 3:return Cw(this);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new ue(di,this,6,6)),this.a;case 7:return gn(),!this.b&&(this.b=new hn(Yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i<=1));case 8:return gn(),!!P9(this);case 9:return gn(),!!gb(this);case 10:return gn(),!this.b&&(this.b=new hn(Yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i!=0)}return Ene(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?xte(this,i):this.Cb.Qh(this,-1-r,null,i))),oQ(this,u(n,26),i);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),_u(this.b,n,i);case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),_u(this.c,n,i);case 6:return!this.a&&(this.a=new ue(di,this,6,6)),_u(this.a,n,i)}return NR(this,n,t,i)},s.Rh=function(n,t,i){switch(t){case 3:return oQ(this,null,i);case 4:return!this.b&&(this.b=new hn(Yn,this,4,7)),Wr(this.b,n,i);case 5:return!this.c&&(this.c=new hn(Yn,this,5,8)),Wr(this.c,n,i);case 6:return!this.a&&(this.a=new ue(di,this,6,6)),Wr(this.a,n,i)}return gB(this,n,t,i)},s.Th=function(n){switch(n){case 3:return!!Cw(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new hn(Yn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i<=1));case 8:return P9(this);case 9:return gb(this);case 10:return!this.b&&(this.b=new hn(Yn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new hn(Yn,this,5,8)),this.c.i!=0)}return Ree(this,n)},s.$h=function(n,t){switch(n){case 3:rS(this,u(t,26));return;case 4:!this.b&&(this.b=new hn(Yn,this,4,7)),nt(this.b),!this.b&&(this.b=new hn(Yn,this,4,7)),Ii(this.b,u(t,18));return;case 5:!this.c&&(this.c=new hn(Yn,this,5,8)),nt(this.c),!this.c&&(this.c=new hn(Yn,this,5,8)),Ii(this.c,u(t,18));return;case 6:!this.a&&(this.a=new ue(di,this,6,6)),nt(this.a),!this.a&&(this.a=new ue(di,this,6,6)),Ii(this.a,u(t,18));return}$te(this,n,t)},s.fi=function(){return su(),wwe},s.hi=function(n){switch(n){case 3:rS(this,null);return;case 4:!this.b&&(this.b=new hn(Yn,this,4,7)),nt(this.b);return;case 5:!this.c&&(this.c=new hn(Yn,this,5,8)),nt(this.c);return;case 6:!this.a&&(this.a=new ue(di,this,6,6)),nt(this.a);return}vne(this,n)},s.Ib=function(){return LUe(this)},w(h0,"ElkEdgeImpl",271),b(443,e1,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},UA),s.xh=function(n){return Ete(this,n)},s.Ih=function(n,t,i){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Wi(Cs,this,5)),this.a;case 6:return DOe(this);case 7:return t?fR(this):this.i;case 8:return t?sR(this):this.f;case 9:return!this.g&&(this.g=new hn(di,this,9,10)),this.g;case 10:return!this.e&&(this.e=new hn(di,this,10,9)),this.e;case 11:return this.d}return mte(this,n,t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?Ete(this,i):this.Cb.Qh(this,-1-c,null,i))),sQ(this,u(n,85),i);case 9:return!this.g&&(this.g=new hn(di,this,9,10)),_u(this.g,n,i);case 10:return!this.e&&(this.e=new hn(di,this,10,9)),_u(this.e,n,i)}return o=u(cn((r=u(Cn(this,16),29),r||(su(),_O)),t),69),o.uk().xk(this,Uu(this),t-Un((su(),_O)),n,i)},s.Rh=function(n,t,i){switch(t){case 5:return!this.a&&(this.a=new Wi(Cs,this,5)),Wr(this.a,n,i);case 6:return sQ(this,null,i);case 9:return!this.g&&(this.g=new hn(di,this,9,10)),Wr(this.g,n,i);case 10:return!this.e&&(this.e=new hn(di,this,10,9)),Wr(this.e,n,i)}return uie(this,n,t,i)},s.Th=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!DOe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return fZ(this,n)},s.$h=function(n,t){switch(n){case 1:I2(this,J(H(t)));return;case 2:P2(this,J(H(t)));return;case 3:T2(this,J(H(t)));return;case 4:S2(this,J(H(t)));return;case 5:!this.a&&(this.a=new Wi(Cs,this,5)),nt(this.a),!this.a&&(this.a=new Wi(Cs,this,5)),Ii(this.a,u(t,18));return;case 6:Nqe(this,u(t,85));return;case 7:Kx(this,u(t,84));return;case 8:Xx(this,u(t,84));return;case 9:!this.g&&(this.g=new hn(di,this,9,10)),nt(this.g),!this.g&&(this.g=new hn(di,this,9,10)),Ii(this.g,u(t,18));return;case 10:!this.e&&(this.e=new hn(di,this,10,9)),nt(this.e),!this.e&&(this.e=new hn(di,this,10,9)),Ii(this.e,u(t,18));return;case 11:Tee(this,dt(t));return}tne(this,n,t)},s.fi=function(){return su(),_O},s.hi=function(n){switch(n){case 1:I2(this,0);return;case 2:P2(this,0);return;case 3:T2(this,0);return;case 4:S2(this,0);return;case 5:!this.a&&(this.a=new Wi(Cs,this,5)),nt(this.a);return;case 6:Nqe(this,null);return;case 7:Kx(this,null);return;case 8:Xx(this,null);return;case 9:!this.g&&(this.g=new hn(di,this,9,10)),nt(this.g);return;case 10:!this.e&&(this.e=new hn(di,this,10,9)),nt(this.e);return;case 11:Tee(this,null);return}zee(this,n)},s.Ib=function(){return zHe(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,w(h0,"ElkEdgeSectionImpl",443),b(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),s.Ih=function(n,t,i){var r;return n==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab):Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i)):(c=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().xk(this,Uu(this),t-Un(this.fi()),n,i))},s.Rh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i)):(c=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i))},s.Th=function(n){var t;return n==0?!!this.Ab&&this.Ab.i!=0:Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.Wh=function(n){return fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.ai=function(n){Lm(this,128,n)},s.fi=function(){return nn(),zfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){this.Bb|=1},s.ni=function(n){return B9(this,n)},s.Bb=0,w(yn,"EModelElementImpl",161),b(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},sK),s.oi=function(n,t){return oXe(this,n,t)},s.pi=function(n){var t,i,r,c,o;if(this.a!=ds(n)||(n.Bb&256)!=0)throw x(new An(qG+n.zb+Ib));for(r=Cc(n);bu(r.a).i!=0;){if(i=u(Ej(r,0,(t=u(B(bu(r.a),0),87),o=t.c,$(o,88)?u(o,29):(nn(),mf))),29),bb(i))return c=ds(i).ti().pi(i),u(c,52)._h(n),c;r=Cc(i)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new aIe(n):new KQ(n)},s.qi=function(n,t){return kb(this,n,t)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.a}return Ds(this,n-Un((nn(),Ed)),cn((r=u(Cn(this,16),29),r||Ed),n),t,i)},s.Ph=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 1:return this.a&&(i=u(this.a,52).Qh(this,4,dl,i)),pne(this,u(n,241),i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),Ed)),t),69),c.uk().xk(this,Uu(this),t-Un((nn(),Ed)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 1:return pne(this,null,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),Ed)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Ed)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Ns(this,n-Un((nn(),Ed)),cn((t=u(Cn(this,16),29),t||Ed),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:kGe(this,u(t,241));return}_s(this,n-Un((nn(),Ed)),cn((i=u(Cn(this,16),29),i||Ed),n),t)},s.fi=function(){return nn(),Ed},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:kGe(this,null);return}Rs(this,n-Un((nn(),Ed)),cn((t=u(Cn(this,16),29),t||Ed),n))};var L8,vwe,Tfn;w(yn,"EFactoryImpl",710),b(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},N5e),s.oi=function(n,t){switch(n.fk()){case 12:return u(t,147).Og();case 13:return Oc(t);default:throw x(new An(q4+n.ve()+Ib))}},s.pi=function(n){var t,i,r,c,o,f,l,h;switch(n.G==-1&&(n.G=(t=ds(n),t?Ka(t.si(),n):-1)),n.G){case 4:return o=new iK,o;case 6:return f=new V5,f;case 7:return l=new eW,l;case 8:return r=new yD,r;case 9:return i=new zA,i;case 10:return c=new UA,c;case 11:return h=new D5e,h;default:throw x(new An(qG+n.zb+Ib))}},s.qi=function(n,t){switch(n.fk()){case 13:case 12:return null;default:throw x(new An(q4+n.ve()+Ib))}},w(h0,"ElkGraphFactoryImpl",1019),b(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),s.Dh=function(){var n,t;return t=(n=u(Cn(this,16),29),WY(rh(n||this.fi()))),t==null?(f6(),f6(),wX):new OTe(this,t)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.ve()}return Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:this.ri(dt(t));return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Ufn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:this.ri(null);return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.ve=function(){return this.zb},s.ri=function(n){Ru(this,n)},s.Ib=function(){return a9(this)},s.zb=null,w(yn,"ENamedElementImpl",439),b(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},oOe),s.xh=function(n){return OJe(this,n)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new jw(this,bl,this)),this.rb;case 6:return!this.vb&&(this.vb=new fm(dl,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:JOe(this)}return Ds(this,n-Un((nn(),w1)),cn((r=u(Cn(this,16),29),r||w1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 4:return this.sb&&(i=u(this.sb,52).Qh(this,1,D8,i)),kne(this,u(n,469),i);case 5:return!this.rb&&(this.rb=new jw(this,bl,this)),_u(this.rb,n,i);case 6:return!this.vb&&(this.vb=new fm(dl,this,6,7)),_u(this.vb,n,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?OJe(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,7,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),w1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),w1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 4:return kne(this,null,i);case 5:return!this.rb&&(this.rb=new jw(this,bl,this)),Wr(this.rb,n,i);case 6:return!this.vb&&(this.vb=new fm(dl,this,6,7)),Wr(this.vb,n,i);case 7:return ms(this,null,7,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),w1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),w1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!JOe(this)}return Ns(this,n-Un((nn(),w1)),cn((t=u(Cn(this,16),29),t||w1),n))},s.Wh=function(n){var t;return t=kSn(this,n),t||fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:eT(this,dt(t));return;case 3:Zx(this,dt(t));return;case 4:BR(this,u(t,469));return;case 5:!this.rb&&(this.rb=new jw(this,bl,this)),nt(this.rb),!this.rb&&(this.rb=new jw(this,bl,this)),Ii(this.rb,u(t,18));return;case 6:!this.vb&&(this.vb=new fm(dl,this,6,7)),nt(this.vb),!this.vb&&(this.vb=new fm(dl,this,6,7)),Ii(this.vb,u(t,18));return}_s(this,n-Un((nn(),w1)),cn((i=u(Cn(this,16),29),i||w1),n),t)},s.bi=function(n){var t,i;if(n&&this.rb)for(i=new Rn(this.rb);i.e!=i.i.gc();)t=Jn(i),$(t,360)&&(u(t,360).w=null);Lm(this,64,n)},s.fi=function(){return nn(),w1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:eT(this,null);return;case 3:Zx(this,null);return;case 4:BR(this,null);return;case 5:!this.rb&&(this.rb=new jw(this,bl,this)),nt(this.rb);return;case 6:!this.vb&&(this.vb=new fm(dl,this,6,7)),nt(this.vb);return}Rs(this,n-Un((nn(),w1)),cn((t=u(Cn(this,16),29),t||w1),n))},s.mi=function(){jR(this)},s.si=function(){return!this.rb&&(this.rb=new jw(this,bl,this)),this.rb},s.ti=function(){return this.sb},s.ui=function(){return this.ub},s.vi=function(){return this.xb},s.wi=function(){return this.yb},s.xi=function(n){this.ub=n},s.Ib=function(){var n;return(this.Db&64)!=0?a9(this):(n=new ef(a9(this)),n.a+=" (nsURI: ",ac(n,this.yb),n.a+=", nsPrefix: ",ac(n,this.xb),n.a+=")",n.a)},s.xb=null,s.yb=null,w(yn,"EPackageImpl",184),b(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},ZHe),s.q=!1,s.r=!1;var Sfn=!1;w(h0,"ElkGraphPackageImpl",556),b(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},iK),s.xh=function(n){return Ate(this,n)},s.Ih=function(n,t,i){switch(n){case 7:return eZ(this);case 8:return this.a}return $ne(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?Ate(this,i):this.Cb.Qh(this,-1-r,null,i))),uY(this,u(n,174),i)}return NR(this,n,t,i)},s.Rh=function(n,t,i){return t==7?uY(this,null,i):gB(this,n,t,i)},s.Th=function(n){switch(n){case 7:return!!eZ(this);case 8:return!We("",this.a)}return Gne(this,n)},s.$h=function(n,t){switch(n){case 7:ore(this,u(t,174));return;case 8:Mee(this,dt(t));return}Fte(this,n,t)},s.fi=function(){return su(),gwe},s.hi=function(n){switch(n){case 7:ore(this,null);return;case 8:Mee(this,"");return}Une(this,n)},s.Ib=function(){return _Ge(this)},s.a="",w(h0,"ElkLabelImpl",362),b(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},V5),s.xh=function(n){return Tte(this,n)},s.Ih=function(n,t,i){switch(n){case 9:return!this.c&&(this.c=new ue(Wo,this,9,9)),this.c;case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),this.a;case 11:return pi(this);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),this.b;case 13:return gn(),!this.a&&(this.a=new ue(mt,this,10,11)),this.a.i>0}return ate(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new ue(Wo,this,9,9)),_u(this.c,n,i);case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),_u(this.a,n,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?Tte(this,i):this.Cb.Qh(this,-1-r,null,i))),mQ(this,u(n,26),i);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),_u(this.b,n,i)}return Ite(this,n,t,i)},s.Rh=function(n,t,i){switch(t){case 9:return!this.c&&(this.c=new ue(Wo,this,9,9)),Wr(this.c,n,i);case 10:return!this.a&&(this.a=new ue(mt,this,10,11)),Wr(this.a,n,i);case 11:return mQ(this,null,i);case 12:return!this.b&&(this.b=new ue(Xi,this,12,3)),Wr(this.b,n,i)}return Pte(this,n,t,i)},s.Th=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!pi(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new ue(mt,this,10,11)),this.a.i>0}return nne(this,n)},s.$h=function(n,t){switch(n){case 9:!this.c&&(this.c=new ue(Wo,this,9,9)),nt(this.c),!this.c&&(this.c=new ue(Wo,this,9,9)),Ii(this.c,u(t,18));return;case 10:!this.a&&(this.a=new ue(mt,this,10,11)),nt(this.a),!this.a&&(this.a=new ue(mt,this,10,11)),Ii(this.a,u(t,18));return;case 11:cS(this,u(t,26));return;case 12:!this.b&&(this.b=new ue(Xi,this,12,3)),nt(this.b),!this.b&&(this.b=new ue(Xi,this,12,3)),Ii(this.b,u(t,18));return}qie(this,n,t)},s.fi=function(){return su(),pwe},s.hi=function(n){switch(n){case 9:!this.c&&(this.c=new ue(Wo,this,9,9)),nt(this.c);return;case 10:!this.a&&(this.a=new ue(mt,this,10,11)),nt(this.a);return;case 11:cS(this,null);return;case 12:!this.b&&(this.b=new ue(Xi,this,12,3)),nt(this.b);return}ote(this,n)},s.Ib=function(){return Ere(this)},w(h0,"ElkNodeImpl",206),b(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},eW),s.xh=function(n){return Mte(this,n)},s.Ih=function(n,t,i){return n==9?ml(this):ate(this,n,t,i)},s.Ph=function(n,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?Mte(this,i):this.Cb.Qh(this,-1-r,null,i))),fQ(this,u(n,26),i)}return Ite(this,n,t,i)},s.Rh=function(n,t,i){return t==9?fQ(this,null,i):Pte(this,n,t,i)},s.Th=function(n){return n==9?!!ml(this):nne(this,n)},s.$h=function(n,t){switch(n){case 9:tre(this,u(t,26));return}qie(this,n,t)},s.fi=function(){return su(),mwe},s.hi=function(n){switch(n){case 9:tre(this,null);return}ote(this,n)},s.Ib=function(){return Pze(this)},w(h0,"ElkPortImpl",193);var Ifn=yi(Vr,"BasicEMap/Entry");b(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},D5e),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.Hb=function(){return U0(this)},s.Ai=function(n){Cee(this,u(n,147))},s.Ih=function(n,t,i){switch(n){case 0:return this.b;case 1:return this.c}return OT(this,n,t,i)},s.Th=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return rR(this,n)},s.$h=function(n,t){switch(n){case 0:Cee(this,u(t,147));return;case 1:jee(this,t);return}qR(this,n,t)},s.fi=function(){return su(),Gh},s.hi=function(n){switch(n){case 0:Cee(this,null);return;case 1:jee(this,null);return}JR(this,n)},s.yi=function(){var n;return this.a==-1&&(n=this.b,this.a=n?si(n):0),this.a},s.kd=function(){return this.c},s.zi=function(n){this.a=n},s.ld=function(n){var t;return t=this.c,jee(this,n),t},s.Ib=function(){var n;return(this.Db&64)!=0?Of(this):(n=new k1,At(At(At(n,this.b?this.b.Og():co),MJ),S6(this.c)),n.a)},s.a=-1,s.c=null;var h1=w(h0,"ElkPropertyToValueMapEntryImpl",1092);b(981,1,{},L5e),w(Ir,"JsonAdapter",981),b(215,63,aa,Ul),w(Ir,"JsonImportException",215),b(851,1,{},KHe),w(Ir,"JsonImporter",851),b(885,1,{},CCe),s.Bi=function(n){GJe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$0$Type",885),b(886,1,{},xCe),s.Bi=function(n){MHe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$1$Type",886),b(894,1,{},ije),s.Bi=function(n){BPe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$10$Type",894),b(896,1,{},TCe),s.Bi=function(n){aHe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$11$Type",896),b(897,1,{},SCe),s.Bi=function(n){dHe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$12$Type",897),b(903,1,{},KPe),s.Bi=function(n){$Ge(this.a,this.b,this.c,this.d,u(n,139))},w(Ir,"JsonImporter/lambda$13$Type",903),b(902,1,{},WPe),s.Bi=function(n){Yze(this.a,this.b,this.c,this.d,u(n,149))},w(Ir,"JsonImporter/lambda$14$Type",902),b(898,1,{},ICe),s.Bi=function(n){lSe(this.a,this.b,dt(n))},w(Ir,"JsonImporter/lambda$15$Type",898),b(899,1,{},PCe),s.Bi=function(n){hSe(this.a,this.b,dt(n))},w(Ir,"JsonImporter/lambda$16$Type",899),b(900,1,{},OCe),s.Bi=function(n){EJe(this.b,this.a,u(n,139))},w(Ir,"JsonImporter/lambda$17$Type",900),b(901,1,{},NCe),s.Bi=function(n){AJe(this.b,this.a,u(n,139))},w(Ir,"JsonImporter/lambda$18$Type",901),b(906,1,{},rje),s.Bi=function(n){xGe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$19$Type",906),b(887,1,{},cje),s.Bi=function(n){LJe(this.a,u(n,139))},w(Ir,"JsonImporter/lambda$2$Type",887),b(904,1,{},uje),s.Bi=function(n){I2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$20$Type",904),b(905,1,{},oje),s.Bi=function(n){P2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$21$Type",905),b(909,1,{},sje),s.Bi=function(n){CGe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$22$Type",909),b(907,1,{},fje),s.Bi=function(n){T2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$23$Type",907),b(908,1,{},lje),s.Bi=function(n){S2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$24$Type",908),b(911,1,{},hje),s.Bi=function(n){ZJe(this.a,u(n,139))},w(Ir,"JsonImporter/lambda$25$Type",911),b(910,1,{},aje),s.Bi=function(n){RPe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$26$Type",910),b(912,1,Fn,DCe),s.Ad=function(n){y6n(this.b,this.a,dt(n))},w(Ir,"JsonImporter/lambda$27$Type",912),b(913,1,Fn,LCe),s.Ad=function(n){k6n(this.b,this.a,dt(n))},w(Ir,"JsonImporter/lambda$28$Type",913),b(914,1,{},$Ce),s.Bi=function(n){oqe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$29$Type",914),b(890,1,{},dje),s.Bi=function(n){QRe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$3$Type",890),b(915,1,{},FCe),s.Bi=function(n){Sqe(this.a,this.b,u(n,139))},w(Ir,"JsonImporter/lambda$30$Type",915),b(916,1,{},bje),s.Bi=function(n){p$e(this.a,H(n))},w(Ir,"JsonImporter/lambda$31$Type",916),b(917,1,{},wje),s.Bi=function(n){y$e(this.a,H(n))},w(Ir,"JsonImporter/lambda$32$Type",917),b(918,1,{},gje),s.Bi=function(n){m$e(this.a,H(n))},w(Ir,"JsonImporter/lambda$33$Type",918),b(919,1,{},pje),s.Bi=function(n){v$e(this.a,H(n))},w(Ir,"JsonImporter/lambda$34$Type",919),b(920,1,{},mje),s.Bi=function(n){mMn(this.a,u(n,57))},w(Ir,"JsonImporter/lambda$35$Type",920),b(921,1,{},vje),s.Bi=function(n){vMn(this.a,u(n,57))},w(Ir,"JsonImporter/lambda$36$Type",921),b(925,1,{},XPe),w(Ir,"JsonImporter/lambda$37$Type",925),b(922,1,Fn,FSe),s.Ad=function(n){K9n(this.a,this.c,this.b,u(n,372))},w(Ir,"JsonImporter/lambda$38$Type",922),b(923,1,Fn,BCe),s.Ad=function(n){N0n(this.a,this.b,u(n,170))},w(Ir,"JsonImporter/lambda$39$Type",923),b(888,1,{},yje),s.Bi=function(n){I2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$4$Type",888),b(924,1,Fn,RCe),s.Ad=function(n){D0n(this.a,this.b,u(n,170))},w(Ir,"JsonImporter/lambda$40$Type",924),b(926,1,Fn,BSe),s.Ad=function(n){W9n(this.a,this.b,this.c,u(n,8))},w(Ir,"JsonImporter/lambda$41$Type",926),b(889,1,{},kje),s.Bi=function(n){P2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$5$Type",889),b(893,1,{},jje),s.Bi=function(n){YRe(this.a,u(n,149))},w(Ir,"JsonImporter/lambda$6$Type",893),b(891,1,{},Eje),s.Bi=function(n){T2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$7$Type",891),b(892,1,{},Aje),s.Bi=function(n){S2(this.a,J(H(n)))},w(Ir,"JsonImporter/lambda$8$Type",892),b(895,1,{},Mje),s.Bi=function(n){eGe(this.a,u(n,139))},w(Ir,"JsonImporter/lambda$9$Type",895),b(945,1,Fn,Cje),s.Ad=function(n){pm(this.a,new Aw(dt(n)))},w(Ir,"JsonMetaDataConverter/lambda$0$Type",945),b(946,1,Fn,xje),s.Ad=function(n){Tmn(this.a,u(n,244))},w(Ir,"JsonMetaDataConverter/lambda$1$Type",946),b(947,1,Fn,Tje),s.Ad=function(n){kvn(this.a,u(n,144))},w(Ir,"JsonMetaDataConverter/lambda$2$Type",947),b(948,1,Fn,Sje),s.Ad=function(n){Smn(this.a,u(n,160))},w(Ir,"JsonMetaDataConverter/lambda$3$Type",948),b(244,24,{3:1,35:1,24:1,244:1},tm);var JO,GO,sX,HO,qO,zO,fX,lX,UO=et(Rj,"GraphFeature",244,ut,Z6n,opn),Pfn;b(11,1,{35:1,147:1},Vt,ai,qe,Tr),s.Dd=function(n){return Lbn(this,u(n,147))},s.Fb=function(n){return vOe(this,n)},s.Rg=function(){return Ee(this)},s.Og=function(){return this.b},s.Hb=function(){return Ha(this.b)},s.Ib=function(){return this.b},w(Rj,"Property",11),b(657,1,Ct,LD),s.Le=function(n,t){return dkn(this,u(n,105),u(t,105))},s.Fb=function(n){return this===n},s.Me=function(){return new yt(this)},w(Rj,"PropertyHolderComparator",657),b(698,1,jr,RK),s.Nb=function(n){Or(this,n)},s.Pb=function(){return E6n(this)},s.Qb=function(){AAe()},s.Ob=function(){return!!this.a},w(wI,"ElkGraphUtil/AncestorIterator",698);var ywe=yi(Vr,"EList");b(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),s._c=function(n,t){w9(this,n,t)},s.Ec=function(n){return it(this,n)},s.ad=function(n,t){return Xee(this,n,t)},s.Fc=function(n){return Ii(this,n)},s.Gi=function(){return new sm(this)},s.Hi=function(){return new _k(this)},s.Ii=function(n){return I7(this,n)},s.Ji=function(){return!0},s.Ki=function(n,t){},s.Li=function(){},s.Mi=function(n,t){FF(this,n,t)},s.Ni=function(n,t,i){},s.Oi=function(n,t){},s.Pi=function(n,t,i){},s.Fb=function(n){return bze(this,n)},s.Hb=function(){return Hee(this)},s.Qi=function(){return!1},s.Jc=function(){return new Rn(this)},s.cd=function(){return new om(this)},s.dd=function(n){var t;if(t=this.gc(),n<0||n>t)throw x(new mw(n,t));return new q$(this,n)},s.Si=function(n,t){this.Ri(n,this.bd(t))},s.Kc=function(n){return Dx(this,n)},s.Ui=function(n,t){return t},s.fd=function(n,t){return F2(this,n,t)},s.Ib=function(){return _ne(this)},s.Wi=function(){return!0},s.Xi=function(n,t){return Gv(this,t)},w(Vr,"AbstractEList",71),b(67,71,ah,XA,rb,$ee),s.Ci=function(n,t){return DR(this,n,t)},s.Di=function(n){return rJe(this,n)},s.Ei=function(n,t){H7(this,n,t)},s.Fi=function(n){b7(this,n)},s.Yi=function(n){return VZ(this,n)},s.$b=function(){Q6(this)},s.Gc=function(n){return r4(this,n)},s.Xb=function(n){return B(this,n)},s.Zi=function(n){var t,i,r;++this.j,i=this.g==null?0:this.g.length,n>i&&(r=this.g,t=i+(i/2|0)+4,t<n&&(t=n),this.g=this.$i(t),r!=null&&pu(r,0,this.g,0,this.i))},s.bd=function(n){return xJe(this,n)},s.dc=function(){return this.i==0},s.Ri=function(n,t){return XR(this,n,t)},s.$i=function(n){return W(ir,ln,1,n,5,1)},s.Ti=function(n){return this.g[n]},s.ed=function(n){return Bm(this,n)},s.Vi=function(n,t){return XF(this,n,t)},s.gc=function(){return this.i},s.Nc=function(){return vZ(this)},s.Oc=function(n){return Xne(this,n)},s.i=0;var kwe=w(Vr,"BasicEList",67),jwe=yi(Vr,"TreeIterator");b(697,67,nH),s.Nb=function(n){Or(this,n)},s.Ob=function(){return this.g==null&&!this.c?ZY(this):this.g==null||this.i!=0&&u(this.g[this.i-1],50).Ob()},s.Pb=function(){return nS(this)},s.Qb=function(){if(!this.e)throw x(new gc("There is no valid object to remove."));this.e.Qb()},s.c=!1,w(Vr,"AbstractTreeIterator",697),b(605,697,nH,VL),s._i=function(n){var t;return t=u(n,57).Dh().Jc(),$(t,287)&&u(t,287).ul(new $5e),t},w(wI,"ElkGraphUtil/PropertiesSkippingTreeIterator",605),b(949,1,{},$5e),w(wI,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",949);var gA,hX,pA=w(wI,"ElkReflect",null);b(883,1,hg,F5e),s.Qg=function(n){return fx(),u4n(u(n,182))},w(wI,"ElkReflect/lambda$0$Type",883);var I0;yi(Vr,"ResourceLocator"),b(1046,1,{}),w(Vr,"DelegatingResourceLocator",1046),b(1047,1046,{}),w("org.eclipse.emf.common","EMFPlugin",1047);var aX=yi(LQe,"Adapter"),$Fn=yi(LQe,"Notification");b(1144,1,Lse),s.aj=function(){return this.d},s.bj=function(n){},s.cj=function(n){this.d=n},s.dj=function(n){this.d==n&&(this.d=null)},s.d=null,w(r3,"AdapterImpl",1144),b(2058,71,$Qe),s.Ci=function(n,t){return qne(this,n,t)},s.Di=function(n){var t,i,r;if(++this.j,n.dc())return!1;for(t=this.Cj(),r=n.Jc();r.Ob();)i=r.Pb(),this.pj(this.Xi(t,i)),++t;return!0},s.Ei=function(n,t){zTe(this,n,t)},s.Fi=function(n){pPe(this,n)},s.nj=function(){return this.qj()},s.$b=function(){Hk(this,this.Cj(),this.Dj())},s.Gc=function(n){return this.sj(n)},s.Hc=function(n){return this.tj(n)},s.oj=function(n,t){this.zj().Sm()},s.pj=function(n){this.zj().Sm()},s.qj=function(){return this.zj()},s.rj=function(){this.zj().Sm()},s.sj=function(n){return this.zj().Sm()},s.tj=function(n){return this.zj().Sm()},s.uj=function(n){return this.zj().Sm()},s.vj=function(n){return this.zj().Sm()},s.wj=function(){return this.zj().Sm()},s.xj=function(n){return this.zj().Sm()},s.yj=function(){return this.zj().Sm()},s.Aj=function(n){return this.zj().Sm()},s.Bj=function(n,t){return this.zj().Sm()},s.Cj=function(){return this.zj().Sm()},s.Dj=function(){return this.zj().Sm()},s.Ej=function(n){return this.zj().Sm()},s.Fj=function(){return this.zj().Sm()},s.Fb=function(n){return this.uj(n)},s.Xb=function(n){return this.Ui(n,this.vj(n))},s.Hb=function(){return this.wj()},s.bd=function(n){return this.xj(n)},s.dc=function(){return this.yj()},s.Ri=function(n,t){return iie(this,n,t)},s.Ti=function(n){return this.vj(n)},s.ed=function(n){return xC(this,n)},s.Kc=function(n){var t;return t=this.bd(n),t>=0?(this.ed(t),!0):!1},s.Vi=function(n,t){return this.Bj(n,this.Xi(n,t))},s.gc=function(){return this.Cj()},s.Nc=function(){return this.Dj()},s.Oc=function(n){return this.Ej(n)},s.Ib=function(){return this.Fj()},w(Vr,"DelegatingEList",2058),b(2059,2058,$Qe),s.Ci=function(n,t){return Fre(this,n,t)},s.Di=function(n){return this.Ci(this.Cj(),n)},s.Ei=function(n,t){eqe(this,n,t)},s.Fi=function(n){HHe(this,n)},s.Ji=function(){return!this.Kj()},s.$b=function(){q9(this)},s.Gj=function(n,t,i,r,c){return new pOe(this,n,t,i,r,c)},s.Hj=function(n){Gt(this.hj(),n)},s.Ij=function(){return null},s.Jj=function(){return-1},s.hj=function(){return null},s.Kj=function(){return!1},s.Lj=function(n,t){return t},s.Mj=function(n,t){return t},s.Nj=function(){return!1},s.Oj=function(){return!this.yj()},s.Ri=function(n,t){var i,r;return this.Nj()?(r=this.Oj(),i=iie(this,n,t),this.Hj(this.Gj(7,fe(t),i,n,r)),i):iie(this,n,t)},s.ed=function(n){var t,i,r,c;return this.Nj()?(i=null,r=this.Oj(),t=this.Gj(4,c=xC(this,n),null,n,r),this.Kj()&&c?(i=this.Mj(c,i),i?(i.lj(t),i.mj()):this.Hj(t)):i?(i.lj(t),i.mj()):this.Hj(t),c):(c=xC(this,n),this.Kj()&&c&&(i=this.Mj(c,null),i&&i.mj()),c)},s.Vi=function(n,t){return lUe(this,n,t)},w(r3,"DelegatingNotifyingListImpl",2059),b(151,1,tE),s.lj=function(n){return Gte(this,n)},s.mj=function(){HF(this)},s.ej=function(){return this.d},s.Ij=function(){return null},s.Pj=function(){return null},s.fj=function(n){return-1},s.gj=function(){return Wqe(this)},s.hj=function(){return null},s.ij=function(){return are(this)},s.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.Qj=function(){return!1},s.kj=function(n){var t,i,r,c,o,f,l,h,a,d,g;switch(this.d){case 1:case 2:switch(c=n.ej(),c){case 1:case 2:if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0}case 4:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null))return a=nce(this),h=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=n.jj(),this.d=6,g=new rb(2),h<=f?(it(g,this.n),it(g,n.ij()),this.g=I(S(bt,1),Pt,30,15,[this.o=h,f+1])):(it(g,n.ij()),it(g,this.n),this.g=I(S(bt,1),Pt,30,15,[this.o=f,h])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.hj())&&this.fj(null)==n.fj(null)){for(a=nce(this),f=n.jj(),d=u(this.g,54),r=W(bt,Pt,30,d.length+1,15,1),t=0;t<d.length&&(l=d[t],l<=f);)r[t++]=l,++f;for(i=u(this.n,16),i._c(t,n.ij()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},s.Ib=function(){var n,t,i,r;switch(r=new ef(Pd(this.Pm)+"@"+(t=si(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{iL(r,this.d);break}}if(Fze(this)&&(r.a+=", touch: true"),r.a+=", position: ",iL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",E6(r,this.hj()),r.a+=", feature: ",E6(r,this.Ij()),r.a+=", oldValue: ",E6(r,are(this)),r.a+=", newValue: ",this.d==6&&$(this.g,54)){for(i=u(this.g,54),r.a+="[",n=0;n<i.length;)r.a+=i[n],++n<i.length&&(r.a+=Ju);r.a+="]"}else E6(r,Wqe(this));return r.a+=", isTouch: ",Pa(r,Fze(this)),r.a+=", wasSet: ",Pa(r,nce(this)),r.a+=")",r.a},s.d=0,s.e=0,s.f=0,s.j=0,s.k=0,s.o=0,s.p=0,w(r3,"NotificationImpl",151),b(1158,151,tE,pOe),s.Ij=function(){return this.a.Ij()},s.fj=function(n){return this.a.Jj()},s.hj=function(){return this.a.hj()},w(r3,"DelegatingNotifyingListImpl/1",1158),b(252,67,ah,B5e,j1),s.Ec=function(n){return VRe(this,u(n,373))},s.lj=function(n){return VRe(this,n)},s.mj=function(){var n,t,i;for(n=0;n<this.i;++n)t=u(this.g[n],373),i=t.hj(),i!=null&&t.ej()!=-1&&u(i,94).uh(t)},s.$i=function(n){return W($Fn,ln,373,n,0,1)},w(r3,"NotificationChainImpl",252),b(1486,93,XVe),s.rh=function(){return this.e},s.th=function(){return(this.f&1)!=0},s.f=1,w(r3,"NotifierImpl",1486),b(2056,67,ah),s.Ci=function(n,t){return d_(this,n,t)},s.Di=function(n){return this.Ci(this.i,n)},s.Ei=function(n,t){Lie(this,n,t)},s.Fi=function(n){KR(this,n)},s.Ji=function(){return!this.Kj()},s.$b=function(){nt(this)},s.Gj=function(n,t,i,r,c){return new mOe(this,n,t,i,r,c)},s.Hj=function(n){Gt(this.hj(),n)},s.Ij=function(){return null},s.Jj=function(){return-1},s.hj=function(){return null},s.Kj=function(){return!1},s.Rj=function(){return!1},s.Lj=function(n,t){return t},s.Mj=function(n,t){return t},s.Nj=function(){return!1},s.Oj=function(){return this.i!=0},s.Ri=function(n,t){return g9(this,n,t)},s.ed=function(n){return Qw(this,n)},s.Vi=function(n,t){return TUe(this,n,t)},s.Sj=function(n,t){return t},s.Tj=function(n,t){return t},s.Uj=function(n,t,i){return i},w(r3,"NotifyingListImpl",2056),b(1157,151,tE,mOe),s.Ij=function(){return this.a.Ij()},s.fj=function(n){return this.a.Jj()},s.hj=function(){return this.a.hj()},w(r3,"NotifyingListImpl/1",1157),b(950,67,ah,XTe),s.Gc=function(n){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new vw(this),this.a=this.j),Zs(this.b,n)):r4(this,n)},s.Wi=function(){return!0},s.a=0,w(Vr,"AbstractEList/1",950),b(306,99,SS,mw),w(Vr,"AbstractEList/BasicIndexOutOfBoundsException",306),b(42,1,jr,Rn),s.Nb=function(n){Or(this,n)},s.Vj=function(){if(this.i.j!=this.f)throw x(new Ss)},s.Wj=function(){return Jn(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.Wj()},s.Qb=function(){C9(this)},s.e=0,s.f=0,s.g=-1,w(Vr,"AbstractEList/EIterator",42),b(286,42,Th,om,q$),s.Qb=function(){C9(this)},s.Rb=function(n){u_e(this,n)},s.Xj=function(){var n;try{return n=this.d.Xb(--this.e),this.Vj(),this.g=this.e,n}catch(t){throw t=Fi(t),$(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Yj=function(n){cJe(this,n)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.Xj()},s.Vb=function(){return this.e-1},s.Wb=function(n){this.Yj(n)},w(Vr,"AbstractEList/EListIterator",286),b(355,42,jr,sm),s.Wj=function(){return cR(this)},s.Qb=function(){throw x(new ht)},w(Vr,"AbstractEList/NonResolvingEIterator",355),b(391,286,Th,_k,CQ),s.Rb=function(n){throw x(new ht)},s.Wj=function(){var n;try{return n=this.c.Ti(this.e),this.Vj(),this.g=this.e++,n}catch(t){throw t=Fi(t),$(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Xj=function(){var n;try{return n=this.c.Ti(--this.e),this.Vj(),this.g=this.e,n}catch(t){throw t=Fi(t),$(t,99)?(this.Vj(),x(new Dc)):x(t)}},s.Qb=function(){throw x(new ht)},s.Wb=function(n){throw x(new ht)},w(Vr,"AbstractEList/NonResolvingEListIterator",391),b(2045,71,FQe),s.Ci=function(n,t){var i,r,c,o,f,l,h,a,d,g,m;if(c=t.gc(),c!=0){for(a=u(Cn(this.a,4),129),d=a==null?0:a.length,m=d+c,r=SB(this,m),g=d-n,g>0&&pu(a,n,r,n+c,g),h=t.Jc(),f=0;f<c;++f)l=h.Pb(),i=n+f,YL(r,i,Gv(this,l));for(n4(this,r),o=0;o<c;++o)l=r[n],this.Ki(n,l),++n;return!0}else return++this.j,!1},s.Di=function(n){var t,i,r,c,o,f,l,h,a;if(r=n.gc(),r!=0){for(h=(i=u(Cn(this.a,4),129),i==null?0:i.length),a=h+r,t=SB(this,a),l=n.Jc(),o=h;o<a;++o)f=l.Pb(),YL(t,o,Gv(this,f));for(n4(this,t),c=h;c<a;++c)f=t[c],this.Ki(c,f);return!0}else return++this.j,!1},s.Ei=function(n,t){var i,r,c,o;r=u(Cn(this.a,4),129),c=r==null?0:r.length,i=SB(this,c+1),o=Gv(this,t),n!=c&&pu(r,n,i,n+1,c-n),Ni(i,n,o),n4(this,i),this.Ki(n,t)},s.Fi=function(n){var t,i,r;r=(i=u(Cn(this.a,4),129),i==null?0:i.length),t=SB(this,r+1),YL(t,r,Gv(this,n)),n4(this,t),this.Ki(r,n)},s.Gi=function(){return new GDe(this)},s.Hi=function(){return new QIe(this)},s.Ii=function(n){var t,i;if(i=(t=u(Cn(this.a,4),129),t==null?0:t.length),n<0||n>i)throw x(new mw(n,i));return new SPe(this,n)},s.$b=function(){var n,t;++this.j,n=u(Cn(this.a,4),129),t=n==null?0:n.length,n4(this,null),FF(this,t,n)},s.Gc=function(n){var t,i,r,c,o;if(t=u(Cn(this.a,4),129),t!=null){if(n!=null){for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],qt(n,i))return!0}else for(r=t,c=0,o=r.length;c<o;++c)if(i=r[c],K(i)===K(n))return!0}return!1},s.Xb=function(n){var t,i;if(t=u(Cn(this.a,4),129),i=t==null?0:t.length,n>=i)throw x(new mw(n,i));return t[n]},s.bd=function(n){var t,i,r;if(t=u(Cn(this.a,4),129),t!=null){if(n!=null){for(i=0,r=t.length;i<r;++i)if(qt(n,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(K(t[i])===K(n))return i}return-1},s.dc=function(){return u(Cn(this.a,4),129)==null},s.Jc=function(){return new JDe(this)},s.cd=function(){return new VIe(this)},s.dd=function(n){var t,i;if(i=(t=u(Cn(this.a,4),129),t==null?0:t.length),n<0||n>i)throw x(new mw(n,i));return new TPe(this,n)},s.Ri=function(n,t){var i,r,c;if(i=h_e(this),c=i==null?0:i.length,n>=c)throw x(new $u(ZG+n+a0+c));if(t>=c)throw x(new $u(eH+t+a0+c));return r=i[t],n!=t&&(n<t?pu(i,n,i,n+1,t-n):pu(i,t+1,i,t,n-t),Ni(i,n,r),n4(this,i)),r},s.Ti=function(n){return u(Cn(this.a,4),129)[n]},s.ed=function(n){return kxn(this,n)},s.Vi=function(n,t){var i,r;return i=h_e(this),r=i[n],YL(i,n,Gv(this,t)),n4(this,i),r},s.gc=function(){var n;return n=u(Cn(this.a,4),129),n==null?0:n.length},s.Nc=function(){var n,t,i;return n=u(Cn(this.a,4),129),i=n==null?0:n.length,t=W(aX,cH,415,i,0,1),i>0&&pu(n,0,t,0,i),t},s.Oc=function(n){var t,i,r;return t=u(Cn(this.a,4),129),r=t==null?0:t.length,r>0&&(n.length<r&&(i=S7(ns(n).c,r),n=i),pu(t,0,n,0,r)),n.length>r&&Ni(n,r,null),n};var Ofn;w(Vr,"ArrayDelegatingEList",2045),b(1033,42,jr,JDe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new Ss)},s.Qb=function(){C9(this),this.a=u(Cn(this.b.a,4),129)},w(Vr,"ArrayDelegatingEList/EIterator",1033),b(712,286,Th,VIe,TPe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new Ss)},s.Yj=function(n){cJe(this,n),this.a=u(Cn(this.b.a,4),129)},s.Qb=function(){C9(this),this.a=u(Cn(this.b.a,4),129)},w(Vr,"ArrayDelegatingEList/EListIterator",712),b(1034,355,jr,GDe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new Ss)},w(Vr,"ArrayDelegatingEList/NonResolvingEIterator",1034),b(713,391,Th,QIe,SPe),s.Vj=function(){if(this.b.j!=this.f||K(u(Cn(this.b.a,4),129))!==K(this.a))throw x(new Ss)},w(Vr,"ArrayDelegatingEList/NonResolvingEListIterator",713),b(606,306,SS,zL),w(Vr,"BasicEList/BasicIndexOutOfBoundsException",606),b(699,67,ah,dV),s._c=function(n,t){throw x(new ht)},s.Ec=function(n){throw x(new ht)},s.ad=function(n,t){throw x(new ht)},s.Fc=function(n){throw x(new ht)},s.$b=function(){throw x(new ht)},s.Zi=function(n){throw x(new ht)},s.Jc=function(){return this.Gi()},s.cd=function(){return this.Hi()},s.dd=function(n){return this.Ii(n)},s.Ri=function(n,t){throw x(new ht)},s.Si=function(n,t){throw x(new ht)},s.ed=function(n){throw x(new ht)},s.Kc=function(n){throw x(new ht)},s.fd=function(n,t){throw x(new ht)},w(Vr,"BasicEList/UnmodifiableEList",699),b(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),s._c=function(n,t){Abn(this,n,u(t,45))},s.Ec=function(n){return bwn(this,u(n,45))},s.Ic=function(n){$r(this,n)},s.Xb=function(n){return u(B(this.c,n),136)},s.Ri=function(n,t){return u(this.c.Ri(n,t),45)},s.Si=function(n,t){Mbn(this,n,u(t,45))},s.ed=function(n){return u(this.c.ed(n),45)},s.fd=function(n,t){return Cmn(this,n,u(t,45))},s.gd=function(n){Kd(this,n)},s.Lc=function(){return new Ze(this,16)},s.Mc=function(){return new Ve(null,new Ze(this,16))},s.ad=function(n,t){return this.c.ad(n,t)},s.Fc=function(n){return this.c.Fc(n)},s.$b=function(){this.c.$b()},s.Gc=function(n){return this.c.Gc(n)},s.Hc=function(n){return B7(this.c,n)},s.Zj=function(){var n,t,i;if(this.d==null){for(this.d=W(kwe,$se,67,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)n=u(t.Wj(),136),LT(this,n);this.e=i}},s.Fb=function(n){return CSe(this,n)},s.Hb=function(){return Hee(this.c)},s.bd=function(n){return this.c.bd(n)},s.$j=function(){this.c=new Pje(this)},s.dc=function(){return this.f==0},s.Jc=function(){return this.c.Jc()},s.cd=function(){return this.c.cd()},s.dd=function(n){return this.c.dd(n)},s._j=function(){return p7(this)},s.ak=function(n,t,i){return new RSe(n,t,i)},s.bk=function(){return new _5e},s.Kc=function(n){return wFe(this,n)},s.gc=function(){return this.f},s.hd=function(n,t){return new O1(this.c,n,t)},s.Nc=function(){return this.c.Nc()},s.Oc=function(n){return this.c.Oc(n)},s.Ib=function(){return _ne(this.c)},s.e=0,s.f=0,w(Vr,"BasicEMap",711),b(1028,67,ah,Pje),s.Ki=function(n,t){tdn(this,u(t,136))},s.Ni=function(n,t,i){var r;++(r=this,u(t,136),r).a.e},s.Oi=function(n,t){idn(this,u(t,136))},s.Pi=function(n,t,i){Qbn(this,u(t,136),u(i,136))},s.Mi=function(n,t){cBe(this.a)},w(Vr,"BasicEMap/1",1028),b(1029,67,ah,_5e),s.$i=function(n){return W(FFn,BQe,612,n,0,1)},w(Vr,"BasicEMap/2",1029),b(1030,Sl,jo,Oje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return XB(this.a,n)},s.Jc=function(){return this.a.f==0?(lv(),mA.a):new bAe(this.a)},s.Kc=function(n){var t;return t=this.a.f,MT(this.a,n),this.a.f!=t},s.gc=function(){return this.a.f},w(Vr,"BasicEMap/3",1030),b(1031,31,ng,Nje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){return wze(this.a,n)},s.Jc=function(){return this.a.f==0?(lv(),mA.a):new wAe(this.a)},s.gc=function(){return this.a.f},w(Vr,"BasicEMap/4",1031),b(1032,Sl,jo,Dje),s.$b=function(){this.a.c.$b()},s.Gc=function(n){var t,i,r,c,o,f,l,h,a;if(this.a.f>0&&$(n,45)&&(this.a.Zj(),h=u(n,45),l=h.jd(),c=l==null?0:si(l),o=hQ(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,374),a=t.i,f=0;f<a;++f)if(r=i[f],r.yi()==c&&r.Fb(h))return!0}return!1},s.Jc=function(){return this.a.f==0?(lv(),mA.a):new cF(this.a)},s.Kc=function(n){return cqe(this,n)},s.gc=function(){return this.a.f},w(Vr,"BasicEMap/5",1032),b(613,1,jr,cF),s.Nb=function(n){Or(this,n)},s.Ob=function(){return this.b!=-1},s.Pb=function(){var n;if(this.f.e!=this.c)throw x(new Ss);if(this.b==-1)throw x(new Dc);return this.d=this.a,this.e=this.b,_Je(this),n=u(this.f.d[this.d].g[this.e],136),this.ck(n)},s.Qb=function(){if(this.f.e!=this.c)throw x(new Ss);if(this.e==-1)throw x(new wo);this.f.c.Kc(B(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},s.ck=function(n){return n},s.a=0,s.b=-1,s.c=0,s.d=0,s.e=0,w(Vr,"BasicEMap/BasicEMapIterator",613),b(1026,613,jr,bAe),s.ck=function(n){return n.jd()},w(Vr,"BasicEMap/BasicEMapKeyIterator",1026),b(1027,613,jr,wAe),s.ck=function(n){return n.kd()},w(Vr,"BasicEMap/BasicEMapValueIterator",1027),b(1025,1,jb,Lje),s.wc=function(n){O7(this,n)},s.$b=function(){this.a.c.$b()},s._b=function(n){return WCe(this,n)},s.uc=function(n){return wze(this.a,n)},s.vc=function(){return t6n(this.a)},s.Fb=function(n){return CSe(this.a,n)},s.xc=function(n){return rl(this.a,n)},s.Hb=function(){return Hee(this.a.c)},s.dc=function(){return this.a.f==0},s.ec=function(){return i6n(this.a)},s.yc=function(n,t){return tj(this.a,n,t)},s.Ac=function(n){return MT(this.a,n)},s.gc=function(){return this.a.f},s.Ib=function(){return _ne(this.a.c)},s.Bc=function(){return r6n(this.a)},w(Vr,"BasicEMap/DelegatingMap",1025),b(612,1,{45:1,136:1,612:1},RSe),s.Fb=function(n){var t;return $(n,45)?(t=u(n,45),(this.b!=null?qt(this.b,t.jd()):K(this.b)===K(t.jd()))&&(this.c!=null?qt(this.c,t.kd()):K(this.c)===K(t.kd()))):!1},s.yi=function(){return this.a},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return this.a^(this.c==null?0:si(this.c))},s.zi=function(n){this.a=n},s.Ai=function(n){throw x(new Sd)},s.ld=function(n){var t;return t=this.c,this.c=n,t},s.Ib=function(){return this.b+"->"+this.c},s.a=0;var FFn=w(Vr,"BasicEMap/EntryImpl",612);b(535,1,{},KA),w(Vr,"BasicEMap/View",535);var mA;b(770,1,{}),s.Fb=function(n){return zie((tn(),Zr),n)},s.Hb=function(){return ene((tn(),Zr))},s.Ib=function(){return xl((tn(),Zr))},w(Vr,"ECollections/BasicEmptyUnmodifiableEList",770),b(1303,1,Th,R5e),s.Nb=function(n){Or(this,n)},s.Rb=function(n){throw x(new ht)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw x(new Dc)},s.Tb=function(){return 0},s.Ub=function(){throw x(new Dc)},s.Vb=function(){return-1},s.Qb=function(){throw x(new ht)},s.Wb=function(n){throw x(new ht)},w(Vr,"ECollections/BasicEmptyUnmodifiableEList/1",1303),b(1301,770,{20:1,18:1,16:1,61:1},EEe),s._c=function(n,t){RAe()},s.Ec=function(n){return BAe()},s.ad=function(n,t){return _Ae()},s.Fc=function(n){return JAe()},s.$b=function(){GAe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){$r(this,n)},s.Xb=function(n){return pV((tn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Ri=function(n,t){return HAe()},s.Si=function(n,t){qAe()},s.ed=function(n){return zAe()},s.Kc=function(n){return UAe()},s.fd=function(n,t){return XAe()},s.gc=function(){return 0},s.gd=function(n){Kd(this,n)},s.Lc=function(){return new Ze(this,16)},s.Mc=function(){return new Ve(null,new Ze(this,16))},s.hd=function(n,t){return tn(),new O1(Zr,n,t)},s.Nc=function(){return lY((tn(),Zr))},s.Oc=function(n){return tn(),j9(Zr,n)},w(Vr,"ECollections/EmptyUnmodifiableEList",1301),b(1302,770,{20:1,18:1,16:1,61:1,587:1},AEe),s._c=function(n,t){RAe()},s.Ec=function(n){return BAe()},s.ad=function(n,t){return _Ae()},s.Fc=function(n){return JAe()},s.$b=function(){GAe()},s.Gc=function(n){return!1},s.Hc=function(n){return!1},s.Ic=function(n){$r(this,n)},s.Xb=function(n){return pV((tn(),n)),null},s.bd=function(n){return-1},s.dc=function(){return!0},s.Jc=function(){return this.a},s.cd=function(){return this.a},s.dd=function(n){return this.a},s.Ri=function(n,t){return HAe()},s.Si=function(n,t){qAe()},s.ed=function(n){return zAe()},s.Kc=function(n){return UAe()},s.fd=function(n,t){return XAe()},s.gc=function(){return 0},s.gd=function(n){Kd(this,n)},s.Lc=function(){return new Ze(this,16)},s.Mc=function(){return new Ve(null,new Ze(this,16))},s.hd=function(n,t){return tn(),new O1(Zr,n,t)},s.Nc=function(){return lY((tn(),Zr))},s.Oc=function(n){return tn(),j9(Zr,n)},s._j=function(){return tn(),tn(),Dh},w(Vr,"ECollections/EmptyUnmodifiableEMap",1302);var Ewe=yi(Vr,"Enumerator"),XO;b(290,1,{290:1},i_),s.Fb=function(n){var t;return this===n?!0:$(n,290)?(t=u(n,290),this.f==t.f&&zpn(this.i,t.i)&&S$(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&S$(this.d,t.d)&&S$(this.g,t.g)&&S$(this.e,t.e)&&W7n(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return Wze(this)},s.f=0;var Nfn=0,Dfn=0,Lfn=0,$fn=0,Awe=0,Mwe=0,Cwe=0,xwe=0,Twe=0,Ffn,$8=0,F8=0,Bfn=0,Rfn=0,KO,Swe;w(Vr,"URI",290),b(1091,44,W2,MEe),s.yc=function(n,t){return u(mc(this,dt(n),u(t,290)),290)},w(Vr,"URI/URICache",1091),b(492,67,ah,J5e,$C),s.Qi=function(){return!0},w(Vr,"UniqueEList",492),b(579,63,aa,Ox),w(Vr,"WrappedException",579);var St=yi(Hs,JQe),Hg=yi(Hs,GQe),ho=yi(Hs,HQe),qg=yi(Hs,qQe),bl=yi(Hs,zQe),wf=yi(Hs,"EClass"),dX=yi(Hs,"EDataType"),_fn;b(1199,44,W2,CEe),s.xc=function(n){return mr(n)?Cu(this,n):$c(pc(this.f,n))},w(Hs,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1199);var WO=yi(Hs,"EEnum"),Ea=yi(Hs,UQe),hc=yi(Hs,XQe),gf=yi(Hs,KQe),pf,zb=yi(Hs,WQe),zg=yi(Hs,VQe);b(Lf,1,{},G5e),s.Ib=function(){return"NIL"},w(Hs,"EStructuralFeature/Internal/DynamicValueHolder/1",Lf);var Jfn;b(1023,44,W2,xEe),s.xc=function(n){return mr(n)?Cu(this,n):$c(pc(this.f,n))},w(Hs,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1023);var Yu=yi(Hs,QQe),D3=yi(Hs,"EValidator/PatternMatcher"),Iwe,Pwe,mn,a1,Ug,kd,Gfn,Hfn,qfn,jd,d1,Ed,Ub,Hl,zfn,Ufn,mf,b1,Xfn,w1,Xg,Np,nc,Kfn,Wfn,Xb,VO=yi(wi,"FeatureMap/Entry");b(534,1,{75:1},QM),s.Jk=function(){return this.a},s.kd=function(){return this.b},w(yn,"BasicEObjectImpl/1",534),b(1022,1,uH,qCe),s.Dk=function(n){return NF(this.a,this.b,n)},s.Oj=function(){return LOe(this.a,this.b)},s.Wb=function(n){QY(this.a,this.b,n)},s.Ek=function(){_mn(this.a,this.b)},w(yn,"BasicEObjectImpl/4",1022),b(2046,1,{114:1}),s.Kk=function(n){this.e=n==0?Vfn:W(ir,ln,1,n,5,1)},s.ii=function(n){return this.e[n]},s.ji=function(n,t){this.e[n]=t},s.ki=function(n){this.e[n]=null},s.Lk=function(){return this.c},s.Mk=function(){throw x(new ht)},s.Nk=function(){throw x(new ht)},s.Ok=function(){return this.d},s.Pk=function(){return this.e!=null},s.Qk=function(n){this.c=n},s.Rk=function(n){throw x(new ht)},s.Sk=function(n){throw x(new ht)},s.Tk=function(n){this.d=n};var Vfn;w(yn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2046),b(192,2046,{114:1},Wf),s.Mk=function(){return this.a},s.Nk=function(){return this.b},s.Rk=function(n){this.a=n},s.Sk=function(n){this.b=n},w(yn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(502,100,QVe,WA),s.rh=function(){return this.f},s.wh=function(){return this.k},s.yh=function(n,t){this.g=n,this.i=t},s.Ah=function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},s.Ch=function(){return this.i},s.th=function(){return(this.j&1)!=0},s.Mh=function(){return this.g},s.Sh=function(){return(this.j&4)!=0},s.Xh=function(){return!this.k&&(this.k=new Wf),this.k},s._h=function(n){this.Xh().Qk(n),n?this.j|=2:this.j&=-3},s.bi=function(n){this.Xh().Sk(n),n?this.j|=4:this.j&=-5},s.fi=function(){return(S1(),mn).S},s.i=0,s.j=1,w(yn,"EObjectImpl",502),b(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},KQ),s.ii=function(n){return this.e[n]},s.ji=function(n,t){this.e[n]=t},s.ki=function(n){this.e[n]=null},s.Ah=function(){return this.d},s.Fh=function(n){return vi(this.d,n)},s.Hh=function(){return this.d},s.Lh=function(){return this.e!=null},s.Xh=function(){return!this.k&&(this.k=new H5e),this.k},s._h=function(n){this.d=n},s.ei=function(){var n;return this.e==null&&(n=Un(this.d),this.e=n==0?Qfn:W(ir,ln,1,n,5,1)),this},s.gi=function(){return 0};var Qfn;w(yn,"DynamicEObjectImpl",786),b(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},aIe),s.Fb=function(n){return this===n},s.Hb=function(){return U0(this)},s._h=function(n){this.d=n,this.b=wj(n,"key"),this.c=wj(n,by)},s.yi=function(){var n;return this.a==-1&&(n=UF(this,this.b),this.a=n==null?0:si(n)),this.a},s.jd=function(){return UF(this,this.b)},s.kd=function(){return UF(this,this.c)},s.zi=function(n){this.a=n},s.Ai=function(n){QY(this,this.b,n)},s.ld=function(n){var t;return t=UF(this,this.c),QY(this,this.c,n),t},s.a=0,w(yn,"DynamicEObjectImpl/BasicEMapEntry",1484),b(1485,1,{114:1},H5e),s.Kk=function(n){throw x(new ht)},s.ii=function(n){throw x(new ht)},s.ji=function(n,t){throw x(new ht)},s.ki=function(n){throw x(new ht)},s.Lk=function(){throw x(new ht)},s.Mk=function(){return this.a},s.Nk=function(){return this.b},s.Ok=function(){return this.c},s.Pk=function(){throw x(new ht)},s.Qk=function(n){throw x(new ht)},s.Rk=function(n){this.a=n},s.Sk=function(n){this.b=n},s.Tk=function(n){this.c=n},w(yn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1485),b(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},rK),s.xh=function(n){return Cte(this,n)},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Yo((nn(),nc),nu,this)),this.b):(!this.b&&(this.b=new Yo((nn(),nc),nu,this)),p7(this.b));case 3:return GOe(this);case 4:return!this.a&&(this.a=new Wi(yd,this,4)),this.a;case 5:return!this.c&&(this.c=new v2(yd,this,5)),this.c}return Ds(this,n-Un((nn(),a1)),cn((r=u(Cn(this,16),29),r||a1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?Cte(this,i):this.Cb.Qh(this,-1-c,null,i))),oY(this,u(n,158),i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),a1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),a1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 2:return!this.b&&(this.b=new Yo((nn(),nc),nu,this)),pC(this.b,n,i);case 3:return oY(this,null,i);case 4:return!this.a&&(this.a=new Wi(yd,this,4)),Wr(this.a,n,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),a1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),a1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!GOe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Ns(this,n-Un((nn(),a1)),cn((t=u(Cn(this,16),29),t||a1),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Dpn(this,dt(t));return;case 2:!this.b&&(this.b=new Yo((nn(),nc),nu,this)),nT(this.b,t);return;case 3:Fqe(this,u(t,158));return;case 4:!this.a&&(this.a=new Wi(yd,this,4)),nt(this.a),!this.a&&(this.a=new Wi(yd,this,4)),Ii(this.a,u(t,18));return;case 5:!this.c&&(this.c=new v2(yd,this,5)),nt(this.c),!this.c&&(this.c=new v2(yd,this,5)),Ii(this.c,u(t,18));return}_s(this,n-Un((nn(),a1)),cn((i=u(Cn(this,16),29),i||a1),n),t)},s.fi=function(){return nn(),a1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Aee(this,null);return;case 2:!this.b&&(this.b=new Yo((nn(),nc),nu,this)),this.b.c.$b();return;case 3:Fqe(this,null);return;case 4:!this.a&&(this.a=new Wi(yd,this,4)),nt(this.a);return;case 5:!this.c&&(this.c=new v2(yd,this,5)),nt(this.c);return}Rs(this,n-Un((nn(),a1)),cn((t=u(Cn(this,16),29),t||a1),n))},s.Ib=function(){return SRe(this)},s.d=null,w(yn,"EAnnotationImpl",505),b(142,711,Fse,vo),s.Ei=function(n,t){obn(this,n,u(t,45))},s.Uk=function(n,t){return rgn(this,u(n,45),t)},s.Yi=function(n){return u(u(this.c,72).Yi(n),136)},s.Gi=function(){return u(this.c,72).Gi()},s.Hi=function(){return u(this.c,72).Hi()},s.Ii=function(n){return u(this.c,72).Ii(n)},s.Vk=function(n,t){return pC(this,n,t)},s.Dk=function(n){return u(this.c,78).Dk(n)},s.$j=function(){},s.Oj=function(){return u(this.c,78).Oj()},s.ak=function(n,t,i){var r;return r=u(ds(this.b).ti().pi(this.b),136),r.zi(n),r.Ai(t),r.ld(i),r},s.bk=function(){return new JK(this)},s.Wb=function(n){nT(this,n)},s.Ek=function(){u(this.c,78).Ek()},w(wi,"EcoreEMap",142),b(169,142,Fse,Yo),s.Zj=function(){var n,t,i,r,c,o;if(this.d==null){for(o=W(kwe,$se,67,2*this.f+1,0,1),i=this.c.Jc();i.e!=i.i.gc();)t=u(i.Wj(),136),r=t.yi(),c=(r&Ft)%o.length,n=o[c],!n&&(n=o[c]=new JK(this)),n.Ec(t);this.d=o}},w(yn,"EAnnotationImpl/1",169),b(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!this.Hk();case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q}return Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 9:return U$(this,i)}return c=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0)}return Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:this.ri(dt(t));return;case 2:Ua(this,Se(Te(t)));return;case 3:Xa(this,Se(Te(t)));return;case 4:Ga(this,u(t,15).a);return;case 5:this.Xk(u(t,15).a);return;case 8:Zd(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Wfn},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:this.ri(null);return;case 2:Ua(this,!0);return;case 3:Xa(this,!0);return;case 4:Ga(this,0);return;case 5:this.Xk(1);return;case 8:Zd(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){uf(this),this.Bb|=1},s.Fk=function(){return uf(this)},s.Gk=function(){return this.t},s.Hk=function(){var n;return n=this.t,n>1||n==-1},s.Qi=function(){return(this.Bb&512)!=0},s.Wk=function(n,t){return jne(this,n,t)},s.Xk=function(n){Lw(this,n)},s.Ib=function(){return $ie(this)},s.s=0,s.t=1,w(yn,"ETypedElementImpl",293),b(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),s.xh=function(n){return yJe(this,n)},s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!this.Hk();case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Lf)!=0;case 11:return gn(),(this.Bb&e1)!=0;case 12:return gn(),(this.Bb&ig)!=0;case 13:return this.j;case 14:return l4(this);case 15:return gn(),(this.Bb&Eo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return xw(this)}return Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?yJe(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,17,i)}return o=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),o.uk().xk(this,Uu(this),t-Un(this.fi()),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 9:return U$(this,i);case 17:return ms(this,null,17,i)}return c=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0);case 10:return(this.Bb&Lf)==0;case 11:return(this.Bb&e1)!=0;case 12:return(this.Bb&ig)!=0;case 13:return this.j!=null;case 14:return l4(this)!=null;case 15:return(this.Bb&Eo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!xw(this)}return Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Ua(this,Se(Te(t)));return;case 3:Xa(this,Se(Te(t)));return;case 4:Ga(this,u(t,15).a);return;case 5:this.Xk(u(t,15).a);return;case 8:Zd(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Kv(this,Se(Te(t)));return;case 11:Vv(this,Se(Te(t)));return;case 12:Wv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Xv(this,Se(Te(t)));return;case 16:Qv(this,Se(Te(t)));return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Kfn},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,88)&&Kw(Ro(u(this.Cb,88)),4),Ru(this,null);return;case 2:Ua(this,!0);return;case 3:Xa(this,!0);return;case 4:Ga(this,0);return;case 5:this.Xk(1);return;case 8:Zd(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Kv(this,!0);return;case 11:Vv(this,!1);return;case 12:Wv(this,!1);return;case 13:this.i=null,Wx(this,null);return;case 15:Xv(this,!1);return;case 16:Qv(this,!1);return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){kv(vc((ko(),Dr),this)),uf(this),this.Bb|=1},s.nk=function(){return this.f},s.gk=function(){return l4(this)},s.ok=function(){return xw(this)},s.sk=function(){return null},s.Yk=function(){return this.k},s.Jj=function(){return this.n},s.tk=function(){return GT(this)},s.uk=function(){var n,t,i,r,c,o,f,l,h;return this.p||(i=xw(this),(i.i==null&&rh(i),i.i).length,r=this.sk(),r&&Un(xw(r)),c=uf(this),f=c.ik(),n=f?(f.i&1)!=0?f==ao?xi:f==bt?Zi:f==Wg?Y4:f==Er?zi:f==Wb?Ob:f==Fp?Nb:f==Mo?c3:My:f:null,t=l4(this),l=c.gk(),mkn(this),(this.Bb&ch)!=0&&((o=Ote((ko(),Dr),i))&&o!=this||(o=km(vc(Dr,this))))?this.p=new UCe(this,o):this.Hk()?this.$k()?r?(this.Bb&Eo)!=0?n?this._k()?this.p=new Jd(47,n,this,r):this.p=new Jd(5,n,this,r):this._k()?this.p=new Xd(46,this,r):this.p=new Xd(4,this,r):n?this._k()?this.p=new Jd(49,n,this,r):this.p=new Jd(7,n,this,r):this._k()?this.p=new Xd(48,this,r):this.p=new Xd(6,this,r):(this.Bb&Eo)!=0?n?n==w0?this.p=new $a(50,Ifn,this):this._k()?this.p=new $a(43,n,this):this.p=new $a(1,n,this):this._k()?this.p=new Ba(42,this):this.p=new Ba(0,this):n?n==w0?this.p=new $a(41,Ifn,this):this._k()?this.p=new $a(45,n,this):this.p=new $a(3,n,this):this._k()?this.p=new Ba(44,this):this.p=new Ba(2,this):$(c,159)?n==VO?this.p=new Ba(40,this):(this.Bb&512)!=0?(this.Bb&Eo)!=0?n?this.p=new $a(9,n,this):this.p=new Ba(8,this):n?this.p=new $a(11,n,this):this.p=new Ba(10,this):(this.Bb&Eo)!=0?n?this.p=new $a(13,n,this):this.p=new Ba(12,this):n?this.p=new $a(15,n,this):this.p=new Ba(14,this):r?(h=r.t,h>1||h==-1?this._k()?(this.Bb&Eo)!=0?n?this.p=new Jd(25,n,this,r):this.p=new Xd(24,this,r):n?this.p=new Jd(27,n,this,r):this.p=new Xd(26,this,r):(this.Bb&Eo)!=0?n?this.p=new Jd(29,n,this,r):this.p=new Xd(28,this,r):n?this.p=new Jd(31,n,this,r):this.p=new Xd(30,this,r):this._k()?(this.Bb&Eo)!=0?n?this.p=new Jd(33,n,this,r):this.p=new Xd(32,this,r):n?this.p=new Jd(35,n,this,r):this.p=new Xd(34,this,r):(this.Bb&Eo)!=0?n?this.p=new Jd(37,n,this,r):this.p=new Xd(36,this,r):n?this.p=new Jd(39,n,this,r):this.p=new Xd(38,this,r)):this._k()?(this.Bb&Eo)!=0?n?this.p=new $a(17,n,this):this.p=new Ba(16,this):n?this.p=new $a(19,n,this):this.p=new Ba(18,this):(this.Bb&Eo)!=0?n?this.p=new $a(21,n,this):this.p=new Ba(20,this):n?this.p=new $a(23,n,this):this.p=new Ba(22,this):this.Zk()?this._k()?this.p=new JSe(u(c,29),this,r):this.p=new VY(u(c,29),this,r):$(c,159)?n==VO?this.p=new Ba(40,this):(this.Bb&Eo)!=0?n?this.p=new DIe(t,l,this,(VB(),f==bt?Bwe:f==ao?Nwe:f==Wb?Rwe:f==Wg?Fwe:f==Er?$we:f==Fp?_we:f==Mo?Dwe:f==Vs?Lwe:gX)):this.p=new QPe(u(c,159),t,l,this):n?this.p=new NIe(t,l,this,(VB(),f==bt?Bwe:f==ao?Nwe:f==Wb?Rwe:f==Wg?Fwe:f==Er?$we:f==Fp?_we:f==Mo?Dwe:f==Vs?Lwe:gX)):this.p=new VPe(u(c,159),t,l,this):this.$k()?r?(this.Bb&Eo)!=0?this._k()?this.p=new HSe(u(c,29),this,r):this.p=new BQ(u(c,29),this,r):this._k()?this.p=new GSe(u(c,29),this,r):this.p=new E$(u(c,29),this,r):(this.Bb&Eo)!=0?this._k()?this.p=new FTe(u(c,29),this):this.p=new eQ(u(c,29),this):this._k()?this.p=new $Te(u(c,29),this):this.p=new s$(u(c,29),this):this._k()?r?(this.Bb&Eo)!=0?this.p=new qSe(u(c,29),this,r):this.p=new $Q(u(c,29),this,r):(this.Bb&Eo)!=0?this.p=new BTe(u(c,29),this):this.p=new ZV(u(c,29),this):r?(this.Bb&Eo)!=0?this.p=new zSe(u(c,29),this,r):this.p=new FQ(u(c,29),this,r):(this.Bb&Eo)!=0?this.p=new LTe(u(c,29),this):this.p=new LC(u(c,29),this)),this.p},s.pk=function(){return(this.Bb&Lf)!=0},s.Zk=function(){return!1},s.$k=function(){return!1},s.qk=function(){return(this.Bb&ch)!=0},s.vk=function(){return KF(this)},s._k=function(){return!1},s.rk=function(){return(this.Bb&Eo)!=0},s.al=function(n){this.k=n},s.ri=function(n){mF(this,n)},s.Ib=function(){return aS(this)},s.e=!1,s.n=0,w(yn,"EStructuralFeatureImpl",451),b(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},GD),s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),!!Iie(this);case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Lf)!=0;case 11:return gn(),(this.Bb&e1)!=0;case 12:return gn(),(this.Bb&ig)!=0;case 13:return this.j;case 14:return l4(this);case 15:return gn(),(this.Bb&Eo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return xw(this);case 18:return gn(),(this.Bb&cu)!=0;case 19:return t?wB(this):tLe(this)}return Ds(this,n-Un((nn(),Ug)),cn((r=u(Cn(this,16),29),r||Ug),n),t,i)},s.Th=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Iie(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0);case 10:return(this.Bb&Lf)==0;case 11:return(this.Bb&e1)!=0;case 12:return(this.Bb&ig)!=0;case 13:return this.j!=null;case 14:return l4(this)!=null;case 15:return(this.Bb&Eo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!xw(this);case 18:return(this.Bb&cu)!=0;case 19:return!!tLe(this)}return Ns(this,n-Un((nn(),Ug)),cn((t=u(Cn(this,16),29),t||Ug),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Ua(this,Se(Te(t)));return;case 3:Xa(this,Se(Te(t)));return;case 4:Ga(this,u(t,15).a);return;case 5:EAe(this,u(t,15).a);return;case 8:Zd(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Kv(this,Se(Te(t)));return;case 11:Vv(this,Se(Te(t)));return;case 12:Wv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Xv(this,Se(Te(t)));return;case 16:Qv(this,Se(Te(t)));return;case 18:JB(this,Se(Te(t)));return}_s(this,n-Un((nn(),Ug)),cn((i=u(Cn(this,16),29),i||Ug),n),t)},s.fi=function(){return nn(),Ug},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,88)&&Kw(Ro(u(this.Cb,88)),4),Ru(this,null);return;case 2:Ua(this,!0);return;case 3:Xa(this,!0);return;case 4:Ga(this,0);return;case 5:this.b=0,Lw(this,1);return;case 8:Zd(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Kv(this,!0);return;case 11:Vv(this,!1);return;case 12:Wv(this,!1);return;case 13:this.i=null,Wx(this,null);return;case 15:Xv(this,!1);return;case 16:Qv(this,!1);return;case 18:JB(this,!1);return}Rs(this,n-Un((nn(),Ug)),cn((t=u(Cn(this,16),29),t||Ug),n))},s.mi=function(){wB(this),kv(vc((ko(),Dr),this)),uf(this),this.Bb|=1},s.Hk=function(){return Iie(this)},s.Wk=function(n,t){return this.b=0,this.a=null,jne(this,n,t)},s.Xk=function(n){EAe(this,n)},s.Ib=function(){var n;return(this.Db&64)!=0?aS(this):(n=new ef(aS(this)),n.a+=" (iD: ",Pa(n,(this.Bb&cu)!=0),n.a+=")",n.a)},s.b=0,w(yn,"EAttributeImpl",335),b(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),s.bl=function(n){return n.Ah()==this},s.xh=function(n){return kR(this,n)},s.yh=function(n,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=n},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return bb(this);case 4:return this.gk();case 5:return this.F;case 6:return t?ds(this):Av(this);case 7:return!this.A&&(this.A=new go(Yu,this,7)),this.A}return Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,6,i)}return o=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),o.uk().xk(this,Uu(this),t-Un(this.fi()),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 6:return ms(this,null,6,i);case 7:return!this.A&&(this.A=new go(Yu,this,7)),Wr(this.A,n,i)}return c=u(cn((r=u(Cn(this,16),29),r||this.fi()),t),69),c.uk().yk(this,Uu(this),t-Un(this.fi()),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!bb(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Av(this);case 7:return!!this.A&&this.A.i!=0}return Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:lx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:p4(this,dt(t));return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A),!this.A&&(this.A=new go(Yu,this,7)),Ii(this.A,u(t,18));return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),Gfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:qv(this,null),Ov(this,this.D);return;case 5:p4(this,null);return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A);return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.fk=function(){var n;return this.G==-1&&(this.G=(n=ds(this),n?Ka(n.si(),this):-1)),this.G},s.gk=function(){return null},s.hk=function(){return ds(this)},s.cl=function(){return this.v},s.ik=function(){return bb(this)},s.jk=function(){return this.D!=null?this.D:this.B},s.kk=function(){return this.F},s.dk=function(n){return a_(this,n)},s.dl=function(n){this.v=n},s.el=function(n){JFe(this,n)},s.fl=function(n){this.C=n},s.ri=function(n){lx(this,n)},s.Ib=function(){return kT(this)},s.C=null,s.D=null,s.G=-1,w(yn,"EClassifierImpl",360),b(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},fK),s.bl=function(n){return zwn(this,n.Ah())},s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return bb(this);case 4:return null;case 5:return this.F;case 6:return t?ds(this):Av(this);case 7:return!this.A&&(this.A=new go(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0;case 9:return gn(),(this.Bb&512)!=0;case 10:return Cc(this);case 11:return!this.q&&(this.q=new ue(gf,this,11,10)),this.q;case 12:return z2(this);case 13:return J9(this);case 14:return J9(this),this.r;case 15:return z2(this),this.k;case 16:return vie(this);case 17:return g_(this);case 18:return rh(this);case 19:return iS(this);case 20:return z2(this),this.o;case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),this.s;case 22:return bu(this);case 23:return t_(this)}return Ds(this,n-Un((nn(),kd)),cn((r=u(Cn(this,16),29),r||kd),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,6,i);case 11:return!this.q&&(this.q=new ue(gf,this,11,10)),_u(this.q,n,i);case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),_u(this.s,n,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),kd)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),kd)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 6:return ms(this,null,6,i);case 7:return!this.A&&(this.A=new go(Yu,this,7)),Wr(this.A,n,i);case 11:return!this.q&&(this.q=new ue(gf,this,11,10)),Wr(this.q,n,i);case 21:return!this.s&&(this.s=new ue(ho,this,21,17)),Wr(this.s,n,i);case 22:return Wr(bu(this),n,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),kd)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),kd)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!bb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Av(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&bu(this.u.a).i!=0&&!(this.n&&lR(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return z2(this).i!=0;case 13:return J9(this).i!=0;case 14:return J9(this),this.r.i!=0;case 15:return z2(this),this.k.i!=0;case 16:return vie(this).i!=0;case 17:return g_(this).i!=0;case 18:return rh(this).i!=0;case 19:return iS(this).i!=0;case 20:return z2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&lR(this.n);case 23:return t_(this).i!=0}return Ns(this,n-Un((nn(),kd)),cn((t=u(Cn(this,16),29),t||kd),n))},s.Wh=function(n){var t;return t=this.i==null||this.q&&this.q.i!=0?null:wj(this,n),t||fce(this,n)},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:lx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:p4(this,dt(t));return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A),!this.A&&(this.A=new go(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:Ane(this,Se(Te(t)));return;case 9:Mne(this,Se(Te(t)));return;case 10:q9(Cc(this)),Ii(Cc(this),u(t,18));return;case 11:!this.q&&(this.q=new ue(gf,this,11,10)),nt(this.q),!this.q&&(this.q=new ue(gf,this,11,10)),Ii(this.q,u(t,18));return;case 21:!this.s&&(this.s=new ue(ho,this,21,17)),nt(this.s),!this.s&&(this.s=new ue(ho,this,21,17)),Ii(this.s,u(t,18));return;case 22:nt(bu(this)),Ii(bu(this),u(t,18));return}_s(this,n-Un((nn(),kd)),cn((i=u(Cn(this,16),29),i||kd),n),t)},s.fi=function(){return nn(),kd},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:qv(this,null),Ov(this,this.D);return;case 5:p4(this,null);return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A);return;case 8:Ane(this,!1);return;case 9:Mne(this,!1);return;case 10:this.u&&q9(this.u);return;case 11:!this.q&&(this.q=new ue(gf,this,11,10)),nt(this.q);return;case 21:!this.s&&(this.s=new ue(ho,this,21,17)),nt(this.s);return;case 22:this.n&&nt(this.n);return}Rs(this,n-Un((nn(),kd)),cn((t=u(Cn(this,16),29),t||kd),n))},s.mi=function(){var n,t;if(z2(this),J9(this),vie(this),g_(this),rh(this),iS(this),t_(this),Q6(lpn(Ro(this))),this.s)for(n=0,t=this.s.i;n<t;++n)Jk(B(this.s,n));if(this.q)for(n=0,t=this.q.i;n<t;++n)Jk(B(this.q,n));za((ko(),Dr),this).ve(),this.Bb|=1},s.Ib=function(){return Rte(this)},s.k=null,s.r=null;var B8,Yfn,bX;w(yn,"EClassImpl",88),b(2057,2056,eYe),s.Ci=function(n,t){return d_(this,n,t)},s.Di=function(n){return d_(this,this.i,n)},s.Ei=function(n,t){Lie(this,n,t)},s.Fi=function(n){KR(this,n)},s.Uk=function(n,t){return _u(this,n,t)},s.Yi=function(n){return VZ(this,n)},s.Vk=function(n,t){return Wr(this,n,t)},s.Vi=function(n,t){return TUe(this,n,t)},s.Gi=function(){return new sm(this)},s.Hi=function(){return new _k(this)},s.Ii=function(n){return I7(this,n)},w(wi,"NotifyingInternalEListImpl",2057),b(624,2057,Nc),s.Gc=function(n){return XUe(this,n)},s.Gj=function(n,t,i,r,c){return z6(this,n,t,i,r,c)},s.Hj=function(n){X3(this,n)},s.Dk=function(n){return this},s.Jk=function(){return cn(this.e.Ah(),this.Jj())},s.Ij=function(){return this.Jk()},s.Jj=function(){return vi(this.e.Ah(),this.Jk())},s.gl=function(){return u(this.Jk().Fk(),29).ik()},s.hl=function(){return ic(u(this.Jk(),19)).n},s.hj=function(){return this.e},s.il=function(){return!0},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!1},s.bd=function(n){return Ka(this,n)},s.Lj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Oh(this.e,this.hl(),this.gl(),t):i.Oh(this.e,vi(i.Ah(),ic(u(this.Jk(),19))),null,t):i.Oh(this.e,-1-this.Jj(),null,t)},s.Mj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Qh(this.e,this.hl(),this.gl(),t):i.Qh(this.e,vi(i.Ah(),ic(u(this.Jk(),19))),null,t):i.Qh(this.e,-1-this.Jj(),null,t)},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return cDe(this.d,n)},s.Nj=function(){return Vo(this.e)},s.Oj=function(){return this.i!=0},s.$i=function(n){return S7(this.d,n)},s.Ui=function(n,t){return this.ml()&&this.ll()?zm(this,n,u(t,57)):t},s.nl=function(n){return n.Sh()?J1(this.e,u(n,52)):n},s.Wb=function(n){Gxe(this,n)},s.Nc=function(){return FLe(this)},s.Oc=function(n){var t;if(this.ll())for(t=this.i-1;t>=0;--t)B(this,t);return Xne(this,n)},s.Ek=function(){nt(this)},s.Xi=function(n,t){return bFe(this,n,t)},w(wi,"EcoreEList",624),b(491,624,Nc,Yk),s.Ji=function(){return!1},s.Jj=function(){return this.c},s.Kj=function(){return!1},s.ml=function(){return!0},s.Qi=function(){return!0},s.Ui=function(n,t){return t},s.Wi=function(){return!1},s.c=0,w(wi,"EObjectEList",491),b(81,491,Nc,Wi),s.Kj=function(){return!0},s.kl=function(){return!1},s.$k=function(){return!0},w(wi,"EObjectContainmentEList",81),b(544,81,Nc,sC),s.Li=function(){this.b=!0},s.Oj=function(){return this.b},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.b,this.b=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.b=!1},s.b=!1,w(wi,"EObjectContainmentEList/Unsettable",544),b(1131,544,Nc,PIe),s.Ri=function(n,t){var i,r;return i=u(g9(this,n,t),87),Vo(this.e)&&X3(this,new m7(this.a,7,(nn(),Hfn),fe(t),(r=i.c,$(r,88)?u(r,29):mf),n)),i},s.Sj=function(n,t){return Zkn(this,u(n,87),t)},s.Tj=function(n,t){return Ykn(this,u(n,87),t)},s.Uj=function(n,t,i){return YEn(this,u(n,87),u(t,87),i)},s.Gj=function(n,t,i,r,c){switch(n){case 3:return z6(this,n,t,i,r,this.i>1);case 5:return z6(this,n,t,i,r,this.i-u(i,16).gc()>0);default:return new ia(this.e,n,this.c,t,i,r,!0)}},s.Rj=function(){return!0},s.Oj=function(){return lR(this)},s.Ek=function(){nt(this)},w(yn,"EClassImpl/1",1131),b(1145,1144,Lse),s.bj=function(n){var t,i,r,c,o,f,l;if(i=n.ej(),i!=8){if(r=D7n(n),r==0)switch(i){case 1:case 9:{l=n.ij(),l!=null&&(t=Ro(u(l,471)),!t.c&&(t.c=new G3),Dx(t.c,n.hj())),f=n.gj(),f!=null&&(c=u(f,471),(c.Bb&1)==0&&(t=Ro(c),!t.c&&(t.c=new G3),it(t.c,u(n.hj(),29))));break}case 3:{f=n.gj(),f!=null&&(c=u(f,471),(c.Bb&1)==0&&(t=Ro(c),!t.c&&(t.c=new G3),it(t.c,u(n.hj(),29))));break}case 5:{if(f=n.gj(),f!=null)for(o=u(f,18).Jc();o.Ob();)c=u(o.Pb(),471),(c.Bb&1)==0&&(t=Ro(c),!t.c&&(t.c=new G3),it(t.c,u(n.hj(),29)));break}case 4:{l=n.ij(),l!=null&&(c=u(l,471),(c.Bb&1)==0&&(t=Ro(c),!t.c&&(t.c=new G3),Dx(t.c,n.hj())));break}case 6:{if(l=n.ij(),l!=null)for(o=u(l,18).Jc();o.Ob();)c=u(o.Pb(),471),(c.Bb&1)==0&&(t=Ro(c),!t.c&&(t.c=new G3),Dx(t.c,n.hj()));break}}this.ol(r)}},s.ol=function(n){Eze(this,n)},s.b=63,w(yn,"ESuperAdapter",1145),b(1146,1145,Lse,$je),s.ol=function(n){Kw(this,n)},w(yn,"EClassImpl/10",1146),b(1135,699,Nc),s.Ci=function(n,t){return DR(this,n,t)},s.Di=function(n){return rJe(this,n)},s.Ei=function(n,t){H7(this,n,t)},s.Fi=function(n){b7(this,n)},s.Yi=function(n){return VZ(this,n)},s.Vi=function(n,t){return XF(this,n,t)},s.Uk=function(n,t){throw x(new ht)},s.Gi=function(){return new sm(this)},s.Hi=function(){return new _k(this)},s.Ii=function(n){return I7(this,n)},s.Vk=function(n,t){throw x(new ht)},s.Dk=function(n){return this},s.Oj=function(){return this.i!=0},s.Wb=function(n){throw x(new ht)},s.Ek=function(){throw x(new ht)},w(wi,"EcoreEList/UnmodifiableEList",1135),b(333,1135,Nc,d2),s.Wi=function(){return!1},w(wi,"EcoreEList/UnmodifiableEList/FastCompare",333),b(1138,333,Nc,LBe),s.bd=function(n){var t,i,r;if($(n,179)&&(t=u(n,179),i=t.Jj(),i!=-1)){for(r=this.i;i<r;++i)if(K(this.g[i])===K(n))return i}return-1},w(yn,"EClassImpl/1EAllStructuralFeaturesList",1138),b(1132,492,ah,q5e),s.$i=function(n){return W(hc,nYe,87,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/1EGenericSuperTypeEList",1132),b(625,492,ah,kD),s.$i=function(n){return W(ho,ip,179,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/1EStructuralFeatureUniqueEList",625),b(743,492,ah,cK),s.$i=function(n){return W(zg,ip,19,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/1ReferenceList",743),b(1133,492,ah,Fje),s.Ki=function(n,t){emn(this,u(t,38))},s.$i=function(n){return W(qg,ip,38,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/2",1133),b(1134,492,ah,z5e),s.$i=function(n){return W(qg,ip,38,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/3",1134),b(1136,333,Nc,QSe),s.Ec=function(n){return k5n(this,u(n,38))},s.Fi=function(n){n0n(this,u(n,38))},w(yn,"EClassImpl/4",1136),b(1137,333,Nc,YSe),s.Ec=function(n){return j5n(this,u(n,19))},s.Fi=function(n){t0n(this,u(n,19))},w(yn,"EClassImpl/5",1137),b(1139,492,ah,U5e),s.$i=function(n){return W(gf,Bse,62,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/6",1139),b(1140,492,ah,X5e),s.$i=function(n){return W(zg,ip,19,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/7",1140),b(2060,2059,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,72:1}),s.Ci=function(n,t){return Fre(this,n,t)},s.Di=function(n){return Fre(this,this.Cj(),n)},s.Ei=function(n,t){eqe(this,n,t)},s.Fi=function(n){HHe(this,n)},s.Uk=function(n,t){return Mjn(this,n,t)},s.Vk=function(n,t){return ejn(this,n,t)},s.Vi=function(n,t){return lUe(this,n,t)},s.Yi=function(n){return this.vj(n)},s.Gi=function(){return new sm(this)},s.nj=function(){return this.qj()},s.Hi=function(){return new _k(this)},s.Ii=function(n){return I7(this,n)},w(wi,"DelegatingNotifyingInternalEListImpl",2060),b(744,2060,Rse),s.Ji=function(){var n;return n=cn(eo(this.b),this.Jj()).Fk(),$(n,159)&&!$(n,459)&&(n.ik().i&1)==0},s.Gc=function(n){var t,i,r,c,o,f,l,h;if(this.ml()){if(h=this.Cj(),h>4)if(this.dk(n)){if(this.$k()){if(r=u(n,52),i=r.Bh(),l=i==this.b&&(this.kl()?r.vh(r.Ch(),u(cn(eo(this.b),this.Jj()).Fk(),29).ik())==ic(u(cn(eo(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!l&&!i&&r.Gh()){for(c=0;c<h;++c)if(t=R$(this,this.vj(c)),K(t)===K(n))return!0}return l}else if(this.kl()&&!this.jl()){if(o=u(n,57).Jh(ic(u(cn(eo(this.b),this.Jj()),19))),K(o)===K(this.b))return!0;if(o==null||!u(o,57).Sh())return!1}}else return!1;if(f=this.sj(n),this.ll()&&!f){for(c=0;c<h;++c)if(r=R$(this,this.vj(c)),K(r)===K(n))return!0}return f}else return this.sj(n)},s.Gj=function(n,t,i,r,c){return new ia(this.b,n,this.Jj(),t,i,r,c)},s.Hj=function(n){Gt(this.b,n)},s.Dk=function(n){return this},s.Ij=function(){return cn(eo(this.b),this.Jj())},s.Jj=function(){return vi(eo(this.b),cn(eo(this.b),this.Jj()))},s.hj=function(){return this.b},s.il=function(){return!!cn(eo(this.b),this.Jj()).Fk().ik()},s.Kj=function(){var n,t;return t=cn(eo(this.b),this.Jj()),$(t,103)?(n=u(t,19),(n.Bb&cu)!=0||!!ic(u(t,19))):!1},s.jl=function(){var n,t,i,r;return t=cn(eo(this.b),this.Jj()),$(t,103)?(n=u(t,19),i=ic(n),!!i&&(r=i.t,r>1||r==-1)):!1},s.kl=function(){var n,t,i;return t=cn(eo(this.b),this.Jj()),$(t,103)?(n=u(t,19),i=ic(n),!!i):!1},s.ll=function(){var n,t;return t=cn(eo(this.b),this.Jj()),$(t,103)?(n=u(t,19),(n.Bb&Yr)!=0):!1},s.bd=function(n){var t,i,r,c;if(r=this.xj(n),r>=0)return r;if(this.ml()){for(i=0,c=this.Cj();i<c;++i)if(t=R$(this,this.vj(i)),K(t)===K(n))return i}return-1},s.Lj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Oh(this.b,ic(u(cn(eo(this.b),this.Jj()),19)).n,u(cn(eo(this.b),this.Jj()).Fk(),29).ik(),t):i.Oh(this.b,vi(i.Ah(),ic(u(cn(eo(this.b),this.Jj()),19))),null,t):i.Oh(this.b,-1-this.Jj(),null,t)},s.Mj=function(n,t){var i;return i=u(n,52),this.kl()?this.il()?i.Qh(this.b,ic(u(cn(eo(this.b),this.Jj()),19)).n,u(cn(eo(this.b),this.Jj()).Fk(),29).ik(),t):i.Qh(this.b,vi(i.Ah(),ic(u(cn(eo(this.b),this.Jj()),19))),null,t):i.Qh(this.b,-1-this.Jj(),null,t)},s.$k=function(){var n,t;return t=cn(eo(this.b),this.Jj()),$(t,103)?(n=u(t,19),(n.Bb&cu)!=0):!1},s.ml=function(){return $(cn(eo(this.b),this.Jj()).Fk(),88)},s.dk=function(n){return cn(eo(this.b),this.Jj()).Fk().dk(n)},s.Nj=function(){return Vo(this.b)},s.Oj=function(){return!this.yj()},s.Qi=function(){return cn(eo(this.b),this.Jj()).Qi()},s.Ui=function(n,t){return Ej(this,n,t)},s.Wb=function(n){q9(this),Ii(this,u(n,16))},s.Nc=function(){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)Ej(this,n,this.vj(n));return this.Dj()},s.Oc=function(n){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)Ej(this,t,this.vj(t));return this.Ej(n)},s.Ek=function(){q9(this)},s.Xi=function(n,t){return JLe(this,n,t)},w(wi,"DelegatingEcoreEList",744),b(1141,744,Rse,KTe),s.oj=function(n,t){mwn(this,n,u(t,29))},s.pj=function(n){rbn(this,u(n,29))},s.vj=function(n){var t,i;return t=u(B(bu(this.a),n),87),i=t.c,$(i,88)?u(i,29):(nn(),mf)},s.Aj=function(n){var t,i;return t=u(Qw(bu(this.a),n),87),i=t.c,$(i,88)?u(i,29):(nn(),mf)},s.Bj=function(n,t){return Cjn(this,n,u(t,29))},s.Ji=function(){return!1},s.Gj=function(n,t,i,r,c){return null},s.qj=function(){return new Bje(this)},s.rj=function(){nt(bu(this.a))},s.sj=function(n){return IRe(this,n)},s.tj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!IRe(this,t))return!1;return!0},s.uj=function(n){var t,i,r;if($(n,16)&&(r=u(n,16),r.gc()==bu(this.a).i)){for(t=r.Jc(),i=new Rn(this);t.Ob();)if(K(t.Pb())!==K(Jn(i)))return!1;return!0}return!1},s.wj=function(){var n,t,i,r,c;for(i=1,t=new Rn(bu(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),r=(c=n.c,$(c,88)?u(c,29):(nn(),mf)),i=31*i+(r?U0(r):0);return i},s.xj=function(n){var t,i,r,c;for(r=0,i=new Rn(bu(this.a));i.e!=i.i.gc();){if(t=u(Jn(i),87),K(n)===K((c=t.c,$(c,88)?u(c,29):(nn(),mf))))return r;++r}return-1},s.yj=function(){return bu(this.a).i==0},s.zj=function(){return null},s.Cj=function(){return bu(this.a).i},s.Dj=function(){var n,t,i,r,c,o;for(o=bu(this.a).i,c=W(ir,ln,1,o,5,1),i=0,t=new Rn(bu(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),c[i++]=(r=n.c,$(r,88)?u(r,29):(nn(),mf));return c},s.Ej=function(n){var t,i,r,c,o,f,l;for(l=bu(this.a).i,n.length<l&&(c=S7(ns(n).c,l),n=c),n.length>l&&Ni(n,l,null),r=0,i=new Rn(bu(this.a));i.e!=i.i.gc();)t=u(Jn(i),87),o=(f=t.c,$(f,88)?u(f,29):(nn(),mf)),Ni(n,r++,o);return n},s.Fj=function(){var n,t,i,r,c;for(c=new Ia,c.a+="[",n=bu(this.a),t=0,r=bu(this.a).i;t<r;)ac(c,S6((i=u(B(n,t),87).c,$(i,88)?u(i,29):(nn(),mf)))),++t<r&&(c.a+=Ju);return c.a+="]",c.a},s.Hj=function(n){},s.Jj=function(){return 10},s.il=function(){return!0},s.Kj=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!0},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return $(n,88)},s.Oj=function(){return g4n(this.a)},s.Qi=function(){return!0},s.Wi=function(){return!0},w(yn,"EClassImpl/8",1141),b(1142,2027,E4,Bje),s.dd=function(n){return I7(this.a,n)},s.gc=function(){return bu(this.a.a).i},w(yn,"EClassImpl/8/1",1142),b(1143,492,ah,K5e),s.$i=function(n){return W(bl,ln,143,n,0,1)},s.Wi=function(){return!1},w(yn,"EClassImpl/9",1143),b(1130,48,Cce,TEe),w(yn,"EClassImpl/MyHashSet",1130),b(563,360,{109:1,94:1,93:1,143:1,159:1,832:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1},cM),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return bb(this);case 4:return this.gk();case 5:return this.F;case 6:return t?ds(this):Av(this);case 7:return!this.A&&(this.A=new go(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0}return Ds(this,n-Un(this.fi()),cn((r=u(Cn(this,16),29),r||this.fi()),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!bb(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Av(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Ns(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:lx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:p4(this,dt(t));return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A),!this.A&&(this.A=new go(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:dT(this,Se(Te(t)));return}_s(this,n-Un(this.fi()),cn((i=u(Cn(this,16),29),i||this.fi()),n),t)},s.fi=function(){return nn(),qfn},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:qv(this,null),Ov(this,this.D);return;case 5:p4(this,null);return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A);return;case 8:dT(this,!0);return}Rs(this,n-Un(this.fi()),cn((t=u(Cn(this,16),29),t||this.fi()),n))},s.mi=function(){za((ko(),Dr),this).ve(),this.Bb|=1},s.mk=function(){var n,t,i;if(!this.c&&(n=dqe(ds(this)),!n.dc()))for(i=n.Jc();i.Ob();)t=dt(i.Pb()),B9(this,t)&&okn(this);return this.b},s.gk=function(){var n;if(!this.e){n=null;try{n=bb(this)}catch(t){if(t=Fi(t),!$(t,101))throw x(t)}this.d=null,n&&(n.i&1)!=0&&(n==ao?this.d=(gn(),id):n==bt?this.d=fe(0):n==Wg?this.d=new ok(0):n==Er?this.d=0:n==Wb?this.d=Hw(0):n==Fp?this.d=Uv(0):n==Mo?this.d=C7(0):this.d=N7(0)),this.e=!0}return this.d},s.lk=function(){return(this.Bb&256)!=0},s.pl=function(n){n&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},s.el=function(n){JFe(this,n),this.pl(n)},s.fl=function(n){this.C=n,this.e=!1},s.Ib=function(){var n;return(this.Db&64)!=0?kT(this):(n=new ef(kT(this)),n.a+=" (serializable: ",Pa(n,(this.Bb&256)!=0),n.a+=")",n.a)},s.c=!1,s.d=null,s.e=!1,w(yn,"EDataTypeImpl",563),b(459,563,{109:1,94:1,93:1,143:1,159:1,832:1,675:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,459:1,161:1,117:1,118:1,681:1},SEe),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return bb(this);case 4:return ane(this);case 5:return this.F;case 6:return t?ds(this):Av(this);case 7:return!this.A&&(this.A=new go(Yu,this,7)),this.A;case 8:return gn(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new ue(Ea,this,9,5)),this.a}return Ds(this,n-Un((nn(),jd)),cn((r=u(Cn(this,16),29),r||jd),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?kR(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,6,i);case 9:return!this.a&&(this.a=new ue(Ea,this,9,5)),_u(this.a,n,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),jd)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),jd)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 6:return ms(this,null,6,i);case 7:return!this.A&&(this.A=new go(Yu,this,7)),Wr(this.A,n,i);case 9:return!this.a&&(this.a=new ue(Ea,this,9,5)),Wr(this.a,n,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),jd)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),jd)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!bb(this);case 4:return!!ane(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Av(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Ns(this,n-Un((nn(),jd)),cn((t=u(Cn(this,16),29),t||jd),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:lx(this,dt(t));return;case 2:WL(this,dt(t));return;case 5:p4(this,dt(t));return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A),!this.A&&(this.A=new go(Yu,this,7)),Ii(this.A,u(t,18));return;case 8:dT(this,Se(Te(t)));return;case 9:!this.a&&(this.a=new ue(Ea,this,9,5)),nt(this.a),!this.a&&(this.a=new ue(Ea,this,9,5)),Ii(this.a,u(t,18));return}_s(this,n-Un((nn(),jd)),cn((i=u(Cn(this,16),29),i||jd),n),t)},s.fi=function(){return nn(),jd},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,184)&&(u(this.Cb,184).tb=null),Ru(this,null);return;case 2:qv(this,null),Ov(this,this.D);return;case 5:p4(this,null);return;case 7:!this.A&&(this.A=new go(Yu,this,7)),nt(this.A);return;case 8:dT(this,!0);return;case 9:!this.a&&(this.a=new ue(Ea,this,9,5)),nt(this.a);return}Rs(this,n-Un((nn(),jd)),cn((t=u(Cn(this,16),29),t||jd),n))},s.mi=function(){var n,t;if(this.a)for(n=0,t=this.a.i;n<t;++n)Jk(B(this.a,n));za((ko(),Dr),this).ve(),this.Bb|=1},s.gk=function(){return ane(this)},s.dk=function(n){return n!=null},s.pl=function(n){},w(yn,"EEnumImpl",459),b(568,439,{109:1,94:1,93:1,2004:1,684:1,158:1,197:1,57:1,114:1,52:1,100:1,568:1,161:1,117:1,118:1},Uje),s.ve=function(){return this.zb},s.xh=function(n){return PJe(this,n)},s.Ih=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return fe(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,675):null}return Ds(this,n-Un((nn(),d1)),cn((r=u(Cn(this,16),29),r||d1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?PJe(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,5,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),d1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),d1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 5:return ms(this,null,5,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),d1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),d1)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,675))}return Ns(this,n-Un((nn(),d1)),cn((t=u(Cn(this,16),29),t||d1),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:eB(this,u(t,15).a);return;case 3:DHe(this,u(t,2004));return;case 4:tB(this,dt(t));return}_s(this,n-Un((nn(),d1)),cn((i=u(Cn(this,16),29),i||d1),n),t)},s.fi=function(){return nn(),d1},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:eB(this,0);return;case 3:DHe(this,null);return;case 4:tB(this,null);return}Rs(this,n-Un((nn(),d1)),cn((t=u(Cn(this,16),29),t||d1),n))},s.Ib=function(){var n;return n=this.c,n??this.zb},s.b=null,s.c=null,s.d=0,w(yn,"EEnumLiteralImpl",568);var BFn=yi(yn,"EFactoryImpl/InternalEDateTimeFormat");b(485,1,{2079:1},lk),w(yn,"EFactoryImpl/1ClientInternalEDateTimeFormat",485),b(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},R0),s.zh=function(n,t,i){var r;return i=ms(this,n,t,i),this.e&&$(n,179)&&(r=tS(this,this.e),r!=this.c&&(i=m4(this,r,i))),i},s.Ih=function(n,t,i){var r;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new Wi(hc,this,1)),this.d;case 2:return t?bS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?dR(this):this.a}return Ds(this,n-Un((nn(),Ub)),cn((r=u(Cn(this,16),29),r||Ub),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return pRe(this,null,i);case 1:return!this.d&&(this.d=new Wi(hc,this,1)),Wr(this.d,n,i);case 3:return gRe(this,null,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),Ub)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Ub)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Ns(this,n-Un((nn(),Ub)),cn((t=u(Cn(this,16),29),t||Ub),n))},s.$h=function(n,t){var i;switch(n){case 0:VJe(this,u(t,87));return;case 1:!this.d&&(this.d=new Wi(hc,this,1)),nt(this.d),!this.d&&(this.d=new Wi(hc,this,1)),Ii(this.d,u(t,18));return;case 3:_te(this,u(t,87));return;case 4:cie(this,u(t,835));return;case 5:Pv(this,u(t,143));return}_s(this,n-Un((nn(),Ub)),cn((i=u(Cn(this,16),29),i||Ub),n),t)},s.fi=function(){return nn(),Ub},s.hi=function(n){var t;switch(n){case 0:VJe(this,null);return;case 1:!this.d&&(this.d=new Wi(hc,this,1)),nt(this.d);return;case 3:_te(this,null);return;case 4:cie(this,null);return;case 5:Pv(this,null);return}Rs(this,n-Un((nn(),Ub)),cn((t=u(Cn(this,16),29),t||Ub),n))},s.Ib=function(){var n;return n=new ss(Of(this)),n.a+=" (expression: ",k_(this,n),n.a+=")",n.a};var Owe;w(yn,"EGenericTypeImpl",248),b(2032,2027,yI),s.Ei=function(n,t){UTe(this,n,t)},s.Uk=function(n,t){return UTe(this,this.gc(),n),t},s.Yi=function(n){return wu(this.nj(),n)},s.Gi=function(){return this.Hi()},s.nj=function(){return new Hje(this)},s.Hi=function(){return this.Ii(0)},s.Ii=function(n){return this.nj().dd(n)},s.Vk=function(n,t){return Jw(this,n,!0),t},s.Ri=function(n,t){var i,r;return r=AR(this,t),i=this.dd(n),i.Rb(r),r},s.Si=function(n,t){var i;Jw(this,t,!0),i=this.dd(n),i.Rb(t)},w(wi,"AbstractSequentialInternalEList",2032),b(482,2032,yI,Rk),s.Yi=function(n){return wu(this.nj(),n)},s.Gi=function(){return this.b==null?(Da(),Da(),vA):this.ql()},s.nj=function(){return new axe(this.a,this.b)},s.Hi=function(){return this.b==null?(Da(),Da(),vA):this.ql()},s.Ii=function(n){var t,i;if(this.b==null){if(n<0||n>1)throw x(new $u(wy+n+", size=0"));return Da(),Da(),vA}for(i=this.ql(),t=0;t<n;++t)tT(i);return i},s.dc=function(){var n,t,i,r,c,o;if(this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.tl()||this.a.Uh(n)){if(o=this.a.Kh(n,!1),tc(),u(n,69).vk()){for(t=u(o,163),r=0,c=t.gc();r<c;++r)if(jPe(t.Rl(r))&&t.Sl(r)!=null)return!1}else if(n.Hk()){if(!u(o,18).dc())return!1}else if(o!=null)return!1}}return!0},s.Jc=function(){return See(this)},s.dd=function(n){var t,i;if(this.b==null){if(n!=0)throw x(new $u(wy+n+", size=0"));return Da(),Da(),vA}for(i=this.sl()?this.rl():this.ql(),t=0;t<n;++t)tT(i);return i},s.Ri=function(n,t){throw x(new ht)},s.Si=function(n,t){throw x(new ht)},s.ql=function(){return new dC(this.a,this.b)},s.rl=function(){return new YV(this.a,this.b)},s.sl=function(){return!0},s.gc=function(){var n,t,i,r,c,o,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(n=this.b[i],!this.tl()||this.a.Uh(n))if(f=this.a.Kh(n,!1),tc(),u(n,69).vk())for(t=u(f,163),r=0,o=t.gc();r<o;++r)jPe(t.Rl(r))&&t.Sl(r)!=null&&++c;else n.Hk()?c+=u(f,18).gc():f!=null&&++c}return c},s.tl=function(){return!0};var wX;w(wi,"EContentsEList",482),b(1147,482,yI,OTe),s.ql=function(){return new NTe(this.a,this.b)},s.rl=function(){return new DTe(this.a,this.b)},s.tl=function(){return!1},w(yn,"ENamedElementImpl/1",1147),b(287,1,kI,dC),s.Nb=function(n){Or(this,n)},s.Rb=function(n){throw x(new ht)},s.ul=function(n){if(this.g!=0||this.e)throw x(new gc("Iterator already in use or already filtered"));this.e=n},s.Ob=function(){var n,t,i,r,c,o;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!XGe(this,this.p):!$He(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.nk()!=D5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(o=this.b.Kh(t,this.sl()),this.f=(tc(),u(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=u(o,16),this.k=r):(r=u(o,72),this.k=this.j=r),$(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?XGe(this,this.p):$He(this))return c=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=3,!0}},s.Sb=function(){var n,t,i,r,c,o;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!KGe(this,this.p):!rHe(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.nk()!=D5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(o=this.b.Kh(t,this.sl()),this.f=(tc(),u(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=u(o,16),this.k=r):(r=u(o,72),this.k=this.j=r),$(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?KGe(this,this.p):rHe(this))return c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,75),n.Jk(),i=n.kd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return tT(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw x(new Dc)},s.Vb=function(){return this.a-1},s.Qb=function(){throw x(new ht)},s.sl=function(){return!1},s.Wb=function(n){throw x(new ht)},s.tl=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var vA;w(wi,"EContentsEList/FeatureIteratorImpl",287),b(700,287,kI,YV),s.sl=function(){return!0},w(wi,"EContentsEList/ResolvingFeatureIteratorImpl",700),b(1148,700,kI,DTe),s.tl=function(){return!1},w(yn,"ENamedElementImpl/1/1",1148),b(1149,287,kI,NTe),s.tl=function(){return!1},w(yn,"ENamedElementImpl/1/2",1149),b(39,151,tE,Pw,xF,hr,_F,ia,Cf,lee,vNe,hee,yNe,SZ,kNe,bee,jNe,TZ,ENe,aee,ANe,F6,m7,uF,dee,MNe,xZ,mNe),s.Ij=function(){return XZ(this)},s.Pj=function(){var n;return n=XZ(this),n?n.gk():null},s.fj=function(n){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,n)},s.hj=function(){return this.c},s.Qj=function(){var n;return n=XZ(this),n?n.rk():!1},s.b=-1,w(yn,"ENotificationImpl",39),b(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},HD),s.xh=function(n){return NJe(this,n)},s.Ih=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),o=this.t,o>1||o==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new go(Yu,this,11)),this.d;case 12:return!this.c&&(this.c=new ue(zb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new qk(this,this)),this.a;case 14:return Jo(this)}return Ds(this,n-Un((nn(),b1)),cn((r=u(Cn(this,16),29),r||b1),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?NJe(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,10,i);case 12:return!this.c&&(this.c=new ue(zb,this,12,10)),_u(this.c,n,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),b1)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),b1)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 9:return U$(this,i);case 10:return ms(this,null,10,i);case 11:return!this.d&&(this.d=new go(Yu,this,11)),Wr(this.d,n,i);case 12:return!this.c&&(this.c=new ue(zb,this,12,10)),Wr(this.c,n,i);case 14:return Wr(Jo(this),n,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),b1)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),b1)),n,i)},s.Th=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Jo(this.a.a).i!=0&&!(this.b&&hR(this.b));case 14:return!!this.b&&hR(this.b)}return Ns(this,n-Un((nn(),b1)),cn((t=u(Cn(this,16),29),t||b1),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:Ua(this,Se(Te(t)));return;case 3:Xa(this,Se(Te(t)));return;case 4:Ga(this,u(t,15).a);return;case 5:Lw(this,u(t,15).a);return;case 8:Zd(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new go(Yu,this,11)),nt(this.d),!this.d&&(this.d=new go(Yu,this,11)),Ii(this.d,u(t,18));return;case 12:!this.c&&(this.c=new ue(zb,this,12,10)),nt(this.c),!this.c&&(this.c=new ue(zb,this,12,10)),Ii(this.c,u(t,18));return;case 13:!this.a&&(this.a=new qk(this,this)),q9(this.a),!this.a&&(this.a=new qk(this,this)),Ii(this.a,u(t,18));return;case 14:nt(Jo(this)),Ii(Jo(this),u(t,18));return}_s(this,n-Un((nn(),b1)),cn((i=u(Cn(this,16),29),i||b1),n),t)},s.fi=function(){return nn(),b1},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:Ua(this,!0);return;case 3:Xa(this,!0);return;case 4:Ga(this,0);return;case 5:Lw(this,1);return;case 8:Zd(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 11:!this.d&&(this.d=new go(Yu,this,11)),nt(this.d);return;case 12:!this.c&&(this.c=new ue(zb,this,12,10)),nt(this.c);return;case 13:this.a&&q9(this.a);return;case 14:this.b&&nt(this.b);return}Rs(this,n-Un((nn(),b1)),cn((t=u(Cn(this,16),29),t||b1),n))},s.mi=function(){var n,t;if(this.c)for(n=0,t=this.c.i;n<t;++n)Jk(B(this.c,n));uf(this),this.Bb|=1},w(yn,"EOperationImpl",403),b(500,744,Rse,qk),s.oj=function(n,t){pwn(this,n,u(t,143))},s.pj=function(n){cbn(this,u(n,143))},s.vj=function(n){var t,i;return t=u(B(Jo(this.a),n),87),i=t.c,i||(nn(),Hl)},s.Aj=function(n){var t,i;return t=u(Qw(Jo(this.a),n),87),i=t.c,i||(nn(),Hl)},s.Bj=function(n,t){return p7n(this,n,u(t,143))},s.Ji=function(){return!1},s.Gj=function(n,t,i,r,c){return null},s.qj=function(){return new Rje(this)},s.rj=function(){nt(Jo(this.a))},s.sj=function(n){return DRe(this,n)},s.tj=function(n){var t,i;for(i=n.Jc();i.Ob();)if(t=i.Pb(),!DRe(this,t))return!1;return!0},s.uj=function(n){var t,i,r;if($(n,16)&&(r=u(n,16),r.gc()==Jo(this.a).i)){for(t=r.Jc(),i=new Rn(this);t.Ob();)if(K(t.Pb())!==K(Jn(i)))return!1;return!0}return!1},s.wj=function(){var n,t,i,r,c;for(i=1,t=new Rn(Jo(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),r=(c=n.c,c||(nn(),Hl)),i=31*i+(r?si(r):0);return i},s.xj=function(n){var t,i,r,c;for(r=0,i=new Rn(Jo(this.a));i.e!=i.i.gc();){if(t=u(Jn(i),87),K(n)===K((c=t.c,c||(nn(),Hl))))return r;++r}return-1},s.yj=function(){return Jo(this.a).i==0},s.zj=function(){return null},s.Cj=function(){return Jo(this.a).i},s.Dj=function(){var n,t,i,r,c,o;for(o=Jo(this.a).i,c=W(ir,ln,1,o,5,1),i=0,t=new Rn(Jo(this.a));t.e!=t.i.gc();)n=u(Jn(t),87),c[i++]=(r=n.c,r||(nn(),Hl));return c},s.Ej=function(n){var t,i,r,c,o,f,l;for(l=Jo(this.a).i,n.length<l&&(c=S7(ns(n).c,l),n=c),n.length>l&&Ni(n,l,null),r=0,i=new Rn(Jo(this.a));i.e!=i.i.gc();)t=u(Jn(i),87),o=(f=t.c,f||(nn(),Hl)),Ni(n,r++,o);return n},s.Fj=function(){var n,t,i,r,c;for(c=new Ia,c.a+="[",n=Jo(this.a),t=0,r=Jo(this.a).i;t<r;)ac(c,S6((i=u(B(n,t),87).c,i||(nn(),Hl)))),++t<r&&(c.a+=Ju);return c.a+="]",c.a},s.Hj=function(n){},s.Jj=function(){return 13},s.il=function(){return!0},s.Kj=function(){return!1},s.jl=function(){return!1},s.kl=function(){return!1},s.ll=function(){return!0},s.$k=function(){return!1},s.ml=function(){return!0},s.dk=function(n){return $(n,143)},s.Oj=function(){return v4n(this.a)},s.Qi=function(){return!0},s.Wi=function(){return!0},w(yn,"EOperationImpl/1",500),b(1331,2027,E4,Rje),s.dd=function(n){return I7(this.a,n)},s.gc=function(){return Jo(this.a.a).i},w(yn,"EOperationImpl/1/1",1331),b(1332,544,Nc,OIe),s.Ri=function(n,t){var i,r;return i=u(g9(this,n,t),87),Vo(this.e)&&X3(this,new m7(this.a,7,(nn(),Xfn),fe(t),(r=i.c,r||Hl),n)),i},s.Sj=function(n,t){return q8n(this,u(n,87),t)},s.Tj=function(n,t){return H8n(this,u(n,87),t)},s.Uj=function(n,t,i){return P7n(this,u(n,87),u(t,87),i)},s.Gj=function(n,t,i,r,c){switch(n){case 3:return z6(this,n,t,i,r,this.i>1);case 5:return z6(this,n,t,i,r,this.i-u(i,16).gc()>0);default:return new ia(this.e,n,this.c,t,i,r,!0)}},s.Rj=function(){return!0},s.Oj=function(){return hR(this)},s.Ek=function(){nt(this)},w(yn,"EOperationImpl/2",1332),b(493,1,{2002:1,493:1},zCe),w(yn,"EPackageImpl/1",493),b(14,81,Nc,ue),s.gl=function(){return this.d},s.hl=function(){return this.b},s.kl=function(){return!0},s.b=0,w(wi,"EObjectContainmentWithInverseEList",14),b(361,14,Nc,fm),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectContainmentWithInverseEList/Resolving",361),b(313,361,Nc,jw),s.Li=function(){this.a.tb=null},w(yn,"EPackageImpl/2",313),b(1244,1,{},r1n),w(yn,"EPackageImpl/3",1244),b(721,44,W2,nW),s._b=function(n){return mr(n)?sF(this,n):!!pc(this.f,n)},w(yn,"EPackageRegistryImpl",721),b(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},qD),s.xh=function(n){return DJe(this,n)},s.Ih=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),o=this.t,o>1||o==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Ds(this,n-Un((nn(),Xg)),cn((r=u(Cn(this,16),29),r||Xg),n),t,i)},s.Ph=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),_u(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?DJe(this,i):this.Cb.Qh(this,-1-c,null,i))),ms(this,n,10,i)}return o=u(cn((r=u(Cn(this,16),29),r||(nn(),Xg)),t),69),o.uk().xk(this,Uu(this),t-Un((nn(),Xg)),n,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 9:return U$(this,i);case 10:return ms(this,null,10,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),Xg)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Xg)),n,i)},s.Th=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Ns(this,n-Un((nn(),Xg)),cn((t=u(Cn(this,16),29),t||Xg),n))},s.fi=function(){return nn(),Xg},w(yn,"EParameterImpl",504),b(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},tQ),s.Ih=function(n,t,i){var r,c,o,f;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return gn(),(this.Bb&256)!=0;case 3:return gn(),(this.Bb&512)!=0;case 4:return fe(this.s);case 5:return fe(this.t);case 6:return gn(),f=this.t,f>1||f==-1;case 7:return gn(),c=this.s,c>=1;case 8:return t?uf(this):this.r;case 9:return this.q;case 10:return gn(),(this.Bb&Lf)!=0;case 11:return gn(),(this.Bb&e1)!=0;case 12:return gn(),(this.Bb&ig)!=0;case 13:return this.j;case 14:return l4(this);case 15:return gn(),(this.Bb&Eo)!=0;case 16:return gn(),(this.Bb&ch)!=0;case 17:return xw(this);case 18:return gn(),(this.Bb&cu)!=0;case 19:return gn(),o=ic(this),!!(o&&(o.Bb&cu)!=0);case 20:return gn(),(this.Bb&Yr)!=0;case 21:return t?ic(this):this.b;case 22:return t?Kee(this):_De(this);case 23:return!this.a&&(this.a=new v2(qg,this,23)),this.a}return Ds(this,n-Un((nn(),Np)),cn((r=u(Cn(this,16),29),r||Np),n),t,i)},s.Th=function(n){var t,i,r,c;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&V0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&V0(this.q).i==0);case 10:return(this.Bb&Lf)==0;case 11:return(this.Bb&e1)!=0;case 12:return(this.Bb&ig)!=0;case 13:return this.j!=null;case 14:return l4(this)!=null;case 15:return(this.Bb&Eo)!=0;case 16:return(this.Bb&ch)!=0;case 17:return!!xw(this);case 18:return(this.Bb&cu)!=0;case 19:return r=ic(this),!!r&&(r.Bb&cu)!=0;case 20:return(this.Bb&Yr)==0;case 21:return!!this.b;case 22:return!!_De(this);case 23:return!!this.a&&this.a.i!=0}return Ns(this,n-Un((nn(),Np)),cn((t=u(Cn(this,16),29),t||Np),n))},s.$h=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:mF(this,dt(t));return;case 2:Ua(this,Se(Te(t)));return;case 3:Xa(this,Se(Te(t)));return;case 4:Ga(this,u(t,15).a);return;case 5:Lw(this,u(t,15).a);return;case 8:Zd(this,u(t,143));return;case 9:r=Cl(this,u(t,87),null),r&&r.mj();return;case 10:Kv(this,Se(Te(t)));return;case 11:Vv(this,Se(Te(t)));return;case 12:Wv(this,Se(Te(t)));return;case 13:wV(this,dt(t));return;case 15:Xv(this,Se(Te(t)));return;case 16:Qv(this,Se(Te(t)));return;case 18:pvn(this,Se(Te(t)));return;case 20:Dne(this,Se(Te(t)));return;case 21:Iee(this,u(t,19));return;case 23:!this.a&&(this.a=new v2(qg,this,23)),nt(this.a),!this.a&&(this.a=new v2(qg,this,23)),Ii(this.a,u(t,18));return}_s(this,n-Un((nn(),Np)),cn((i=u(Cn(this,16),29),i||Np),n),t)},s.fi=function(){return nn(),Np},s.hi=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:$(this.Cb,88)&&Kw(Ro(u(this.Cb,88)),4),Ru(this,null);return;case 2:Ua(this,!0);return;case 3:Xa(this,!0);return;case 4:Ga(this,0);return;case 5:Lw(this,1);return;case 8:Zd(this,null);return;case 9:i=Cl(this,null,null),i&&i.mj();return;case 10:Kv(this,!0);return;case 11:Vv(this,!1);return;case 12:Wv(this,!1);return;case 13:this.i=null,Wx(this,null);return;case 15:Xv(this,!1);return;case 16:Qv(this,!1);return;case 18:Nne(this,!1),$(this.Cb,88)&&Kw(Ro(u(this.Cb,88)),2);return;case 20:Dne(this,!0);return;case 21:Iee(this,null);return;case 23:!this.a&&(this.a=new v2(qg,this,23)),nt(this.a);return}Rs(this,n-Un((nn(),Np)),cn((t=u(Cn(this,16),29),t||Np),n))},s.mi=function(){Kee(this),kv(vc((ko(),Dr),this)),uf(this),this.Bb|=1},s.sk=function(){return ic(this)},s.Zk=function(){var n;return n=ic(this),!!n&&(n.Bb&cu)!=0},s.$k=function(){return(this.Bb&cu)!=0},s._k=function(){return(this.Bb&Yr)!=0},s.Wk=function(n,t){return this.c=null,jne(this,n,t)},s.Ib=function(){var n;return(this.Db&64)!=0?aS(this):(n=new ef(aS(this)),n.a+=" (containment: ",Pa(n,(this.Bb&cu)!=0),n.a+=", resolveProxies: ",Pa(n,(this.Bb&Yr)!=0),n.a+=")",n.a)},w(yn,"EReferenceImpl",103),b(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},W5e),s.Fb=function(n){return this===n},s.jd=function(){return this.b},s.kd=function(){return this.c},s.Hb=function(){return U0(this)},s.Ai=function(n){Lpn(this,dt(n))},s.ld=function(n){return Epn(this,dt(n))},s.Ih=function(n,t,i){var r;switch(n){case 0:return this.b;case 1:return this.c}return Ds(this,n-Un((nn(),nc)),cn((r=u(Cn(this,16),29),r||nc),n),t,i)},s.Th=function(n){var t;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Ns(this,n-Un((nn(),nc)),cn((t=u(Cn(this,16),29),t||nc),n))},s.$h=function(n,t){var i;switch(n){case 0:$pn(this,dt(t));return;case 1:Eee(this,dt(t));return}_s(this,n-Un((nn(),nc)),cn((i=u(Cn(this,16),29),i||nc),n),t)},s.fi=function(){return nn(),nc},s.hi=function(n){var t;switch(n){case 0:xee(this,null);return;case 1:Eee(this,null);return}Rs(this,n-Un((nn(),nc)),cn((t=u(Cn(this,16),29),t||nc),n))},s.yi=function(){var n;return this.a==-1&&(n=this.b,this.a=n==null?0:Ha(n)),this.a},s.zi=function(n){this.a=n},s.Ib=function(){var n;return(this.Db&64)!=0?Of(this):(n=new ef(Of(this)),n.a+=" (key: ",ac(n,this.b),n.a+=", value: ",ac(n,this.c),n.a+=")",n.a)},s.a=-1,s.b=null,s.c=null;var nu=w(yn,"EStringToStringMapEntryImpl",550),Zfn=yi(wi,"FeatureMap/Entry/Internal");b(562,1,jI),s.vl=function(n){return this.wl(u(n,52))},s.wl=function(n){return this.vl(n)},s.Fb=function(n){var t,i;return this===n?!0:$(n,75)?(t=u(n,75),t.Jk()==this.c?(i=this.kd(),i==null?t.kd()==null:qt(i,t.kd())):!1):!1},s.Jk=function(){return this.c},s.Hb=function(){var n;return n=this.kd(),si(this.c)^(n==null?0:si(n))},s.Ib=function(){var n,t;return n=this.c,t=ds(n.ok()).vi(),n.ve(),(t!=null&&t.length!=0?t+":"+n.ve():n.ve())+"="+this.kd()},w(yn,"EStructuralFeatureImpl/BasicFeatureMapEntry",562),b(778,562,jI,wQ),s.wl=function(n){return new wQ(this.c,n)},s.kd=function(){return this.a},s.xl=function(n,t,i){return uyn(this,n,this.a,t,i)},s.yl=function(n,t,i){return oyn(this,n,this.a,t,i)},w(yn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",778),b(1305,1,{},UCe),s.wk=function(n,t,i,r,c){var o;return o=u(xv(n,this.b),219),o.Wl(this.a).Dk(r)},s.xk=function(n,t,i,r,c){var o;return o=u(xv(n,this.b),219),o.Nl(this.a,r,c)},s.yk=function(n,t,i,r,c){var o;return o=u(xv(n,this.b),219),o.Ol(this.a,r,c)},s.zk=function(n,t,i){var r;return r=u(xv(n,this.b),219),r.Wl(this.a).Oj()},s.Ak=function(n,t,i,r){var c;c=u(xv(n,this.b),219),c.Wl(this.a).Wb(r)},s.Bk=function(n,t,i){return u(xv(n,this.b),219).Wl(this.a)},s.Ck=function(n,t,i){var r;r=u(xv(n,this.b),219),r.Wl(this.a).Ek()},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1305),b(89,1,{},$a,Jd,Ba,Xd),s.wk=function(n,t,i,r,c){var o;if(o=t.ii(i),o==null&&t.ji(i,o=AS(this,n)),!c)switch(this.e){case 50:case 41:return u(o,587)._j();case 40:return u(o,219).Tl()}return o},s.xk=function(n,t,i,r,c){var o,f;return f=t.ii(i),f==null&&t.ji(i,f=AS(this,n)),o=u(f,72).Uk(r,c),o},s.yk=function(n,t,i,r,c){var o;return o=t.ii(i),o!=null&&(c=u(o,72).Vk(r,c)),c},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null&&u(r,78).Oj()},s.Ak=function(n,t,i,r){var c;c=u(t.ii(i),78),!c&&t.ji(i,c=AS(this,n)),c.Wb(r)},s.Bk=function(n,t,i){var r,c;return c=t.ii(i),c==null&&t.ji(i,c=AS(this,n)),$(c,78)?u(c,78):(r=u(t.ii(i),16),new _je(r))},s.Ck=function(n,t,i){var r;r=u(t.ii(i),78),!r&&t.ji(i,r=AS(this,n)),r.Ek()},s.b=0,s.e=0,w(yn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),b(499,1,{}),s.xk=function(n,t,i,r,c){throw x(new ht)},s.yk=function(n,t,i,r,c){throw x(new ht)},s.Bk=function(n,t,i){return new UPe(this,n,t,i)};var Hh;w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",499),b(1322,1,uH,UPe),s.Dk=function(n){return this.a.wk(this.c,this.d,this.b,n,!0)},s.Oj=function(){return this.a.zk(this.c,this.d,this.b)},s.Wb=function(n){this.a.Ak(this.c,this.d,this.b,n)},s.Ek=function(){this.a.Ck(this.c,this.d,this.b)},s.b=0,w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1322),b(771,499,{},VY),s.wk=function(n,t,i,r,c){return s_(n,n.Mh(),n.Ch())==this.b?this._k()&&r?WR(n):n.Mh():null},s.xk=function(n,t,i,r,c){var o,f;return n.Mh()&&(c=(o=n.Ch(),o>=0?n.xh(c):n.Mh().Qh(n,-1-o,null,c))),f=vi(n.Ah(),this.e),n.zh(r,f,c)},s.yk=function(n,t,i,r,c){var o;return o=vi(n.Ah(),this.e),n.zh(null,o,c)},s.zk=function(n,t,i){var r;return r=vi(n.Ah(),this.e),!!n.Mh()&&n.Ch()==r},s.Ak=function(n,t,i,r){var c,o,f,l,h;if(r!=null&&!a_(this.a,r))throw x(new K3(EI+($(r,57)?Rte(u(r,57).Ah()):oee(ns(r)))+AI+this.a+"'"));if(c=n.Mh(),f=vi(n.Ah(),this.e),K(r)!==K(c)||n.Ch()!=f&&r!=null){if(t4(n,u(r,57)))throw x(new An(dy+n.Ib()));h=null,c&&(h=(o=n.Ch(),o>=0?n.xh(h):n.Mh().Qh(n,-1-o,null,h))),l=u(r,52),l&&(h=l.Oh(n,vi(l.Ah(),this.b),null,h)),h=n.zh(l,f,h),h&&h.mj()}else n.sh()&&n.th()&&Gt(n,new hr(n,1,f,r,r))},s.Ck=function(n,t,i){var r,c,o,f;r=n.Mh(),r?(f=(c=n.Ch(),c>=0?n.xh(null):n.Mh().Qh(n,-1-c,null,null)),o=vi(n.Ah(),this.e),f=n.zh(null,o,f),f&&f.mj()):n.sh()&&n.th()&&Gt(n,new F6(n,1,this.e,null,null))},s._k=function(){return!1},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",771),b(1306,771,{},JSe),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1306),b(560,499,{}),s.wk=function(n,t,i,r,c){var o;return o=t.ii(i),o==null?this.b:K(o)===K(Hh)?null:o},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null&&(K(r)===K(Hh)||!qt(r,this.b))},s.Ak=function(n,t,i,r){var c,o;n.sh()&&n.th()?(c=(o=t.ii(i),o==null?this.b:K(o)===K(Hh)?null:o),r==null?this.c!=null?(t.ji(i,null),r=this.b):this.b!=null?t.ji(i,Hh):t.ji(i,null):(this.zl(r),t.ji(i,r)),Gt(n,this.d.Al(n,1,this.e,c,r))):r==null?this.c!=null?t.ji(i,null):this.b!=null?t.ji(i,Hh):t.ji(i,null):(this.zl(r),t.ji(i,r))},s.Ck=function(n,t,i){var r,c;n.sh()&&n.th()?(r=(c=t.ii(i),c==null?this.b:K(c)===K(Hh)?null:c),t.ki(i),Gt(n,this.d.Al(n,1,this.e,r,this.b))):t.ki(i)},s.zl=function(n){throw x(new Qje)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",560),b(rp,1,{},V5e),s.Al=function(n,t,i,r,c){return new F6(n,t,i,r,c)},s.Bl=function(n,t,i,r,c,o){return new uF(n,t,i,r,c,o)};var Nwe,Dwe,Lwe,$we,Fwe,Bwe,Rwe,gX,_we;w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",rp),b(1323,rp,{},Q5e),s.Al=function(n,t,i,r,c){return new xZ(n,t,i,Se(Te(r)),Se(Te(c)))},s.Bl=function(n,t,i,r,c,o){return new mNe(n,t,i,Se(Te(r)),Se(Te(c)),o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1323),b(1324,rp,{},Y5e),s.Al=function(n,t,i,r,c){return new lee(n,t,i,u(r,221).a,u(c,221).a)},s.Bl=function(n,t,i,r,c,o){return new vNe(n,t,i,u(r,221).a,u(c,221).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1324),b(1325,rp,{},Z5e),s.Al=function(n,t,i,r,c){return new hee(n,t,i,u(r,180).a,u(c,180).a)},s.Bl=function(n,t,i,r,c,o){return new yNe(n,t,i,u(r,180).a,u(c,180).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1325),b(1326,rp,{},e6e),s.Al=function(n,t,i,r,c){return new SZ(n,t,i,J(H(r)),J(H(c)))},s.Bl=function(n,t,i,r,c,o){return new kNe(n,t,i,J(H(r)),J(H(c)),o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1326),b(1327,rp,{},n6e),s.Al=function(n,t,i,r,c){return new bee(n,t,i,u(r,164).a,u(c,164).a)},s.Bl=function(n,t,i,r,c,o){return new jNe(n,t,i,u(r,164).a,u(c,164).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1327),b(1328,rp,{},t6e),s.Al=function(n,t,i,r,c){return new TZ(n,t,i,u(r,15).a,u(c,15).a)},s.Bl=function(n,t,i,r,c,o){return new ENe(n,t,i,u(r,15).a,u(c,15).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1328),b(1329,rp,{},i6e),s.Al=function(n,t,i,r,c){return new aee(n,t,i,u(r,190).a,u(c,190).a)},s.Bl=function(n,t,i,r,c,o){return new ANe(n,t,i,u(r,190).a,u(c,190).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1329),b(1330,rp,{},r6e),s.Al=function(n,t,i,r,c){return new dee(n,t,i,u(r,191).a,u(c,191).a)},s.Bl=function(n,t,i,r,c,o){return new MNe(n,t,i,u(r,191).a,u(c,191).a,o)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1330),b(1308,560,{},VPe),s.zl=function(n){if(!this.a.dk(n))throw x(new K3(EI+ns(n)+AI+this.a+"'"))},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1308),b(1309,560,{},NIe),s.zl=function(n){},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1309),b(772,560,{}),s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null},s.Ak=function(n,t,i,r){var c,o;n.sh()&&n.th()?(c=!0,o=t.ii(i),o==null?(c=!1,o=this.b):K(o)===K(Hh)&&(o=null),r==null?this.c!=null?(t.ji(i,null),r=this.b):t.ji(i,Hh):(this.zl(r),t.ji(i,r)),Gt(n,this.d.Bl(n,1,this.e,o,r,!c))):r==null?this.c!=null?t.ji(i,null):t.ji(i,Hh):(this.zl(r),t.ji(i,r))},s.Ck=function(n,t,i){var r,c;n.sh()&&n.th()?(r=!0,c=t.ii(i),c==null?(r=!1,c=this.b):K(c)===K(Hh)&&(c=null),t.ki(i),Gt(n,this.d.Bl(n,2,this.e,c,this.b,r))):t.ki(i)},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",772),b(1310,772,{},QPe),s.zl=function(n){if(!this.a.dk(n))throw x(new K3(EI+ns(n)+AI+this.a+"'"))},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1310),b(1311,772,{},DIe),s.zl=function(n){},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1311),b(402,499,{},LC),s.wk=function(n,t,i,r,c){var o,f,l,h,a;if(a=t.ii(i),this.rk()&&K(a)===K(Hh))return null;if(this._k()&&r&&a!=null){if(l=u(a,52),l.Sh()&&(h=J1(n,l),l!=h)){if(!a_(this.a,h))throw x(new K3(EI+ns(h)+AI+this.a+"'"));t.ji(i,a=h),this.$k()&&(o=u(h,52),f=l.Qh(n,this.b?vi(l.Ah(),this.b):-1-vi(n.Ah(),this.e),null,null),!o.Mh()&&(f=o.Oh(n,this.b?vi(o.Ah(),this.b):-1-vi(n.Ah(),this.e),null,f)),f&&f.mj()),n.sh()&&n.th()&&Gt(n,new F6(n,9,this.e,l,h))}return a}else return a},s.xk=function(n,t,i,r,c){var o,f;return f=t.ii(i),K(f)===K(Hh)&&(f=null),t.ji(i,r),this.Kj()?K(f)!==K(r)&&f!=null&&(o=u(f,52),c=o.Qh(n,vi(o.Ah(),this.b),null,c)):this.$k()&&f!=null&&(c=u(f,52).Qh(n,-1-vi(n.Ah(),this.e),null,c)),n.sh()&&n.th()&&(!c&&(c=new j1(4)),c.lj(new F6(n,1,this.e,f,r))),c},s.yk=function(n,t,i,r,c){var o;return o=t.ii(i),K(o)===K(Hh)&&(o=null),t.ki(i),n.sh()&&n.th()&&(!c&&(c=new j1(4)),this.rk()?c.lj(new F6(n,2,this.e,o,null)):c.lj(new F6(n,1,this.e,o,null))),c},s.zk=function(n,t,i){var r;return r=t.ii(i),r!=null},s.Ak=function(n,t,i,r){var c,o,f,l,h;if(r!=null&&!a_(this.a,r))throw x(new K3(EI+($(r,57)?Rte(u(r,57).Ah()):oee(ns(r)))+AI+this.a+"'"));h=t.ii(i),l=h!=null,this.rk()&&K(h)===K(Hh)&&(h=null),f=null,this.Kj()?K(h)!==K(r)&&(h!=null&&(c=u(h,52),f=c.Qh(n,vi(c.Ah(),this.b),null,f)),r!=null&&(c=u(r,52),f=c.Oh(n,vi(c.Ah(),this.b),null,f))):this.$k()&&K(h)!==K(r)&&(h!=null&&(f=u(h,52).Qh(n,-1-vi(n.Ah(),this.e),null,f)),r!=null&&(f=u(r,52).Oh(n,-1-vi(n.Ah(),this.e),null,f))),r==null&&this.rk()?t.ji(i,Hh):t.ji(i,r),n.sh()&&n.th()?(o=new uF(n,1,this.e,h,r,this.rk()&&!l),f?(f.lj(o),f.mj()):Gt(n,o)):f&&f.mj()},s.Ck=function(n,t,i){var r,c,o,f,l;l=t.ii(i),f=l!=null,this.rk()&&K(l)===K(Hh)&&(l=null),o=null,l!=null&&(this.Kj()?(r=u(l,52),o=r.Qh(n,vi(r.Ah(),this.b),null,o)):this.$k()&&(o=u(l,52).Qh(n,-1-vi(n.Ah(),this.e),null,o))),t.ki(i),n.sh()&&n.th()?(c=new uF(n,this.rk()?2:1,this.e,l,null,f),o?(o.lj(c),o.mj()):Gt(n,c)):o&&o.mj()},s.Kj=function(){return!1},s.$k=function(){return!1},s._k=function(){return!1},s.rk=function(){return!1},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",402),b(561,402,{},s$),s.$k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",561),b(1314,561,{},$Te),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1314),b(774,561,{},eQ),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",774),b(1316,774,{},FTe),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1316),b(639,561,{},E$),s.Kj=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",639),b(1315,639,{},GSe),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1315),b(775,639,{},BQ),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",775),b(1317,775,{},HSe),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1317),b(640,402,{},ZV),s._k=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",640),b(1318,640,{},BTe),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1318),b(776,640,{},$Q),s.Kj=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",776),b(1319,776,{},qSe),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1319),b(1312,402,{},LTe),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1312),b(773,402,{},FQ),s.Kj=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",773),b(1313,773,{},zSe),s.rk=function(){return!0},w(yn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1313),b(777,562,jI,PY),s.wl=function(n){return new PY(this.a,this.c,n)},s.kd=function(){return this.b},s.xl=function(n,t,i){return c6n(this,n,this.b,i)},s.yl=function(n,t,i){return u6n(this,n,this.b,i)},w(yn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",777),b(1320,1,uH,_je),s.Dk=function(n){return this.a},s.Oj=function(){return $(this.a,98)?u(this.a,98).Oj():!this.a.dc()},s.Wb=function(n){this.a.$b(),this.a.Fc(u(n,16))},s.Ek=function(){$(this.a,98)?u(this.a,98).Ek():this.a.$b()},w(yn,"EStructuralFeatureImpl/SettingMany",1320),b(1321,562,jI,bDe),s.vl=function(n){return new d$((Zt(),J8),this.b.oi(this.a,n))},s.kd=function(){return null},s.xl=function(n,t,i){return i},s.yl=function(n,t,i){return i},w(yn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1321),b(641,562,jI,d$),s.vl=function(n){return new d$(this.c,n)},s.kd=function(){return this.a},s.xl=function(n,t,i){return i},s.yl=function(n,t,i){return i},w(yn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",641),b(396,492,ah,G3),s.$i=function(n){return W(wf,ln,29,n,0,1)},s.Wi=function(){return!1},w(yn,"ESuperAdapter/1",396),b(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},jD),s.Ih=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new D6(this,hc,this)),this.a}return Ds(this,n-Un((nn(),Xb)),cn((r=u(Cn(this,16),29),r||Xb),n),t,i)},s.Rh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ue(St,this,0,3)),Wr(this.Ab,n,i);case 2:return!this.a&&(this.a=new D6(this,hc,this)),Wr(this.a,n,i)}return c=u(cn((r=u(Cn(this,16),29),r||(nn(),Xb)),t),69),c.uk().yk(this,Uu(this),t-Un((nn(),Xb)),n,i)},s.Th=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Ns(this,n-Un((nn(),Xb)),cn((t=u(Cn(this,16),29),t||Xb),n))},s.$h=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab),!this.Ab&&(this.Ab=new ue(St,this,0,3)),Ii(this.Ab,u(t,18));return;case 1:Ru(this,dt(t));return;case 2:!this.a&&(this.a=new D6(this,hc,this)),nt(this.a),!this.a&&(this.a=new D6(this,hc,this)),Ii(this.a,u(t,18));return}_s(this,n-Un((nn(),Xb)),cn((i=u(Cn(this,16),29),i||Xb),n),t)},s.fi=function(){return nn(),Xb},s.hi=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new ue(St,this,0,3)),nt(this.Ab);return;case 1:Ru(this,null);return;case 2:!this.a&&(this.a=new D6(this,hc,this)),nt(this.a);return}Rs(this,n-Un((nn(),Xb)),cn((t=u(Cn(this,16),29),t||Xb),n))},w(yn,"ETypeParameterImpl",446),b(447,81,Nc,D6),s.Lj=function(n,t){return WAn(this,u(n,87),t)},s.Mj=function(n,t){return VAn(this,u(n,87),t)},w(yn,"ETypeParameterImpl/1",447),b(638,44,W2,zD),s.ec=function(){return new tM(this)},w(yn,"ETypeParameterImpl/2",638),b(557,Sl,jo,tM),s.Ec=function(n){return mSe(this,u(n,87))},s.Fc=function(n){var t,i,r;for(r=!1,i=n.Jc();i.Ob();)t=u(i.Pb(),87),It(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){ou(this.a)},s.Gc=function(n){return Mu(this.a,n)},s.Jc=function(){var n;return n=new Fw(new Zb(this.a).a),new iM(n)},s.Kc=function(n){return eLe(this,n)},s.gc=function(){return r6(this.a)},w(yn,"ETypeParameterImpl/2/1",557),b(558,1,jr,iM),s.Nb=function(n){Or(this,n)},s.Pb=function(){return u(O2(this.a).jd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){g$e(this.a)},w(yn,"ETypeParameterImpl/2/1/1",558),b(1282,44,W2,IEe),s._b=function(n){return mr(n)?sF(this,n):!!pc(this.f,n)},s.xc=function(n){var t,i;return t=mr(n)?Cu(this,n):$c(pc(this.f,n)),$(t,836)?(i=u(t,836),t=i.Ik(),It(this,u(n,241),t),t):t??(n==null?(fL(),nln):null)},w(yn,"EValidatorRegistryImpl",1282),b(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},c6e),s.oi=function(n,t){switch(n.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Oc(t);case 25:return w9n(t);case 27:return S6n(t);case 28:return I6n(t);case 29:return t==null?null:Jxe(L8[0],u(t,205));case 41:return t==null?"":Pd(u(t,298));case 42:return Oc(t);case 50:return dt(t);default:throw x(new An(q4+n.ve()+Ib))}},s.pi=function(n){var t,i,r,c,o,f,l,h,a,d,g,m,y,j,A,T;switch(n.G==-1&&(n.G=(m=ds(n),m?Ka(m.si(),n):-1)),n.G){case 0:return i=new GD,i;case 1:return t=new rK,t;case 2:return r=new fK,r;case 4:return c=new cM,c;case 5:return o=new SEe,o;case 6:return f=new Uje,f;case 7:return l=new sK,l;case 10:return a=new WA,a;case 11:return d=new HD,d;case 12:return g=new oOe,g;case 13:return y=new qD,y;case 14:return j=new tQ,j;case 17:return A=new W5e,A;case 18:return h=new R0,h;case 19:return T=new jD,T;default:throw x(new An(qG+n.zb+Ib))}},s.qi=function(n,t){switch(n.fk()){case 20:return t==null?null:new EW(t);case 21:return t==null?null:new x1(t);case 23:case 22:return t==null?null:d7n(t);case 26:case 24:return t==null?null:C7(ps(t,-128,127)<<24>>24);case 25:return fTn(t);case 27:return Wjn(t);case 28:return Vjn(t);case 29:return wMn(t);case 32:case 31:return t==null?null:Uw(t);case 38:case 37:return t==null?null:new UK(t);case 40:case 39:return t==null?null:fe(ps(t,Cr,Ft));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Hw(ES(t));case 49:case 48:return t==null?null:Uv(ps(t,MI,32767)<<16>>16);case 50:return t;default:throw x(new An(q4+n.ve()+Ib))}},w(yn,"EcoreFactoryImpl",1304),b(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},IPe),s.gb=!1,s.hb=!1;var Jwe,eln=!1;w(yn,"EcorePackageImpl",549),b(1200,1,{836:1},u6e),s.Ik=function(){return eTe(),tln},w(yn,"EcorePackageImpl/1",1200),b(1209,1,Nt,o6e),s.dk=function(n){return $(n,158)},s.ek=function(n){return W(wA,ln,158,n,0,1)},w(yn,"EcorePackageImpl/10",1209),b(1210,1,Nt,s6e),s.dk=function(n){return $(n,197)},s.ek=function(n){return W(oX,ln,197,n,0,1)},w(yn,"EcorePackageImpl/11",1210),b(1211,1,Nt,f6e),s.dk=function(n){return $(n,57)},s.ek=function(n){return W(yd,ln,57,n,0,1)},w(yn,"EcorePackageImpl/12",1211),b(1212,1,Nt,l6e),s.dk=function(n){return $(n,403)},s.ek=function(n){return W(gf,Bse,62,n,0,1)},w(yn,"EcorePackageImpl/13",1212),b(1213,1,Nt,h6e),s.dk=function(n){return $(n,241)},s.ek=function(n){return W(dl,ln,241,n,0,1)},w(yn,"EcorePackageImpl/14",1213),b(1214,1,Nt,a6e),s.dk=function(n){return $(n,504)},s.ek=function(n){return W(zb,ln,2081,n,0,1)},w(yn,"EcorePackageImpl/15",1214),b(1215,1,Nt,d6e),s.dk=function(n){return $(n,103)},s.ek=function(n){return W(zg,ip,19,n,0,1)},w(yn,"EcorePackageImpl/16",1215),b(1216,1,Nt,b6e),s.dk=function(n){return $(n,179)},s.ek=function(n){return W(ho,ip,179,n,0,1)},w(yn,"EcorePackageImpl/17",1216),b(1217,1,Nt,w6e),s.dk=function(n){return $(n,470)},s.ek=function(n){return W(Hg,ln,470,n,0,1)},w(yn,"EcorePackageImpl/18",1217),b(1218,1,Nt,g6e),s.dk=function(n){return $(n,550)},s.ek=function(n){return W(nu,BQe,550,n,0,1)},w(yn,"EcorePackageImpl/19",1218),b(1201,1,Nt,p6e),s.dk=function(n){return $(n,335)},s.ek=function(n){return W(qg,ip,38,n,0,1)},w(yn,"EcorePackageImpl/2",1201),b(1219,1,Nt,m6e),s.dk=function(n){return $(n,248)},s.ek=function(n){return W(hc,nYe,87,n,0,1)},w(yn,"EcorePackageImpl/20",1219),b(1220,1,Nt,v6e),s.dk=function(n){return $(n,446)},s.ek=function(n){return W(Yu,ln,835,n,0,1)},w(yn,"EcorePackageImpl/21",1220),b(1221,1,Nt,y6e),s.dk=function(n){return hw(n)},s.ek=function(n){return W(xi,we,473,n,8,1)},w(yn,"EcorePackageImpl/22",1221),b(1222,1,Nt,k6e),s.dk=function(n){return $(n,195)},s.ek=function(n){return W(Mo,we,195,n,0,2)},w(yn,"EcorePackageImpl/23",1222),b(1223,1,Nt,j6e),s.dk=function(n){return $(n,221)},s.ek=function(n){return W(c3,we,221,n,0,1)},w(yn,"EcorePackageImpl/24",1223),b(1224,1,Nt,E6e),s.dk=function(n){return $(n,180)},s.ek=function(n){return W(My,we,180,n,0,1)},w(yn,"EcorePackageImpl/25",1224),b(1225,1,Nt,A6e),s.dk=function(n){return $(n,205)},s.ek=function(n){return W(LI,we,205,n,0,1)},w(yn,"EcorePackageImpl/26",1225),b(1226,1,Nt,M6e),s.dk=function(n){return!1},s.ek=function(n){return W(cge,ln,2177,n,0,1)},w(yn,"EcorePackageImpl/27",1226),b(1227,1,Nt,C6e),s.dk=function(n){return aw(n)},s.ek=function(n){return W(zi,we,346,n,7,1)},w(yn,"EcorePackageImpl/28",1227),b(1228,1,Nt,x6e),s.dk=function(n){return $(n,61)},s.ek=function(n){return W(ywe,rg,61,n,0,1)},w(yn,"EcorePackageImpl/29",1228),b(1202,1,Nt,T6e),s.dk=function(n){return $(n,505)},s.ek=function(n){return W(St,{3:1,4:1,5:1,1998:1},588,n,0,1)},w(yn,"EcorePackageImpl/3",1202),b(1229,1,Nt,S6e),s.dk=function(n){return $(n,568)},s.ek=function(n){return W(Ewe,ln,2004,n,0,1)},w(yn,"EcorePackageImpl/30",1229),b(1230,1,Nt,I6e),s.dk=function(n){return $(n,163)},s.ek=function(n){return W(Uwe,rg,163,n,0,1)},w(yn,"EcorePackageImpl/31",1230),b(1231,1,Nt,P6e),s.dk=function(n){return $(n,75)},s.ek=function(n){return W(VO,lYe,75,n,0,1)},w(yn,"EcorePackageImpl/32",1231),b(1232,1,Nt,O6e),s.dk=function(n){return $(n,164)},s.ek=function(n){return W(Y4,we,164,n,0,1)},w(yn,"EcorePackageImpl/33",1232),b(1233,1,Nt,N6e),s.dk=function(n){return $(n,15)},s.ek=function(n){return W(Zi,we,15,n,0,1)},w(yn,"EcorePackageImpl/34",1233),b(1234,1,Nt,D6e),s.dk=function(n){return $(n,298)},s.ek=function(n){return W(Qse,ln,298,n,0,1)},w(yn,"EcorePackageImpl/35",1234),b(1235,1,Nt,L6e),s.dk=function(n){return $(n,190)},s.ek=function(n){return W(Ob,we,190,n,0,1)},w(yn,"EcorePackageImpl/36",1235),b(1236,1,Nt,$6e),s.dk=function(n){return $(n,92)},s.ek=function(n){return W(Yse,ln,92,n,0,1)},w(yn,"EcorePackageImpl/37",1236),b(1237,1,Nt,F6e),s.dk=function(n){return $(n,589)},s.ek=function(n){return W(Gwe,ln,589,n,0,1)},w(yn,"EcorePackageImpl/38",1237),b(1238,1,Nt,B6e),s.dk=function(n){return!1},s.ek=function(n){return W(uge,ln,2178,n,0,1)},w(yn,"EcorePackageImpl/39",1238),b(1203,1,Nt,R6e),s.dk=function(n){return $(n,88)},s.ek=function(n){return W(wf,ln,29,n,0,1)},w(yn,"EcorePackageImpl/4",1203),b(1239,1,Nt,_6e),s.dk=function(n){return $(n,191)},s.ek=function(n){return W(Nb,we,191,n,0,1)},w(yn,"EcorePackageImpl/40",1239),b(1240,1,Nt,J6e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(yn,"EcorePackageImpl/41",1240),b(1241,1,Nt,G6e),s.dk=function(n){return $(n,586)},s.ek=function(n){return W(jwe,ln,586,n,0,1)},w(yn,"EcorePackageImpl/42",1241),b(1242,1,Nt,H6e),s.dk=function(n){return!1},s.ek=function(n){return W(oge,we,2179,n,0,1)},w(yn,"EcorePackageImpl/43",1242),b(1243,1,Nt,q6e),s.dk=function(n){return $(n,45)},s.ek=function(n){return W(w0,CS,45,n,0,1)},w(yn,"EcorePackageImpl/44",1243),b(1204,1,Nt,z6e),s.dk=function(n){return $(n,143)},s.ek=function(n){return W(bl,ln,143,n,0,1)},w(yn,"EcorePackageImpl/5",1204),b(1205,1,Nt,U6e),s.dk=function(n){return $(n,159)},s.ek=function(n){return W(dX,ln,159,n,0,1)},w(yn,"EcorePackageImpl/6",1205),b(1206,1,Nt,X6e),s.dk=function(n){return $(n,459)},s.ek=function(n){return W(WO,ln,675,n,0,1)},w(yn,"EcorePackageImpl/7",1206),b(1207,1,Nt,K6e),s.dk=function(n){return $(n,568)},s.ek=function(n){return W(Ea,ln,684,n,0,1)},w(yn,"EcorePackageImpl/8",1207),b(1208,1,Nt,W6e),s.dk=function(n){return $(n,469)},s.ek=function(n){return W(D8,ln,469,n,0,1)},w(yn,"EcorePackageImpl/9",1208),b(1020,2045,FQe,ZEe),s.Ki=function(n,t){U8n(this,u(t,415))},s.Oi=function(n,t){tHe(this,n,u(t,415))},w(yn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1020),b(1021,151,tE,mPe),s.hj=function(){return this.a.a},w(yn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1021),b(1048,1047,{},Pxe),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1048);var Gwe=yi(hYe,"Resource");b(787,1486,aYe),s.Fl=function(n){},s.Gl=function(n){},s.Cl=function(){return!this.a&&(this.a=new $D(this)),this.a},s.Dl=function(n){var t,i,r,c,o;if(r=n.length,r>0)if(Pn(0,n.length),n.charCodeAt(0)==47){for(o=new Bu(4),c=1,t=1;t<r;++t)Pn(t,n.length),n.charCodeAt(t)==47&&(me(o,c==t?"":(Sr(c,t,n.length),n.substr(c,t-c))),c=t+1);return me(o,(Pn(c,n.length+1),n.substr(c))),JEn(this,o)}else Pn(r-1,n.length),n.charCodeAt(r-1)==63&&(i=MQ(n,io(63),r-2),i>0&&(n=(Sr(0,i,n.length),n.substr(0,i))));return txn(this,n)},s.El=function(){return this.c},s.Ib=function(){var n;return Pd(this.Pm)+"@"+(n=si(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},s.b=!1,w(oH,"ResourceImpl",787),b(1487,787,aYe,Gje),w(oH,"BinaryResourceImpl",1487),b(1160,697,nH),s._i=function(n){return $(n,57)?I3n(this,u(n,57)):$(n,589)?new Rn(u(n,589).Cl()):K(n)===K(this.f)?u(n,18).Jc():(lv(),mA.a)},s.Ob=function(){return Nie(this)},s.a=!1,w(wi,"EcoreUtil/ContentTreeIterator",1160),b(1488,1160,nH,YIe),s._i=function(n){return K(n)===K(this.f)?u(n,16).Jc():new UNe(u(n,57))},w(oH,"ResourceImpl/5",1488),b(648,2057,eYe,$D),s.Gc=function(n){return this.i<=4?r4(this,n):$(n,52)&&u(n,52).Gh()==this.a},s.Ki=function(n,t){n==this.i-1&&(this.a.b||(this.a.b=!0))},s.Mi=function(n,t){n==0?this.a.b||(this.a.b=!0):FF(this,n,t)},s.Oi=function(n,t){},s.Pi=function(n,t,i){},s.Jj=function(){return 2},s.hj=function(){return this.a},s.Kj=function(){return!0},s.Lj=function(n,t){var i;return i=u(n,52),t=i.ci(this.a,t),t},s.Mj=function(n,t){var i;return i=u(n,52),i.ci(null,t)},s.Nj=function(){return!1},s.Qi=function(){return!0},s.$i=function(n){return W(yd,ln,57,n,0,1)},s.Wi=function(){return!1},w(oH,"ResourceImpl/ContentsEList",648),b(954,2027,E4,Hje),s.dd=function(n){return this.a.Ii(n)},s.gc=function(){return this.a.gc()},w(wi,"AbstractSequentialInternalEList/1",954);var Hwe,qwe,Dr,zwe;b(626,1,{},ZSe);var QO,YO;w(wi,"BasicExtendedMetaData",626),b(1151,1,{},XCe),s.Hl=function(){return null},s.Il=function(){return this.a==-2&&A1n(this,sMn(this.d,this.b)),this.a},s.Jl=function(){return null},s.Kl=function(){return tn(),tn(),Zr},s.ve=function(){return this.c==K4&&x1n(this,A_e(this.d,this.b)),this.c},s.Ll=function(){return 0},s.a=-2,s.c=K4,w(wi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1151),b(1152,1,{},xNe),s.Hl=function(){return this.a==(Cv(),QO)&&M1n(this,UIn(this.f,this.b)),this.a},s.Il=function(){return 0},s.Jl=function(){return this.c==(Cv(),QO)&&T1n(this,XIn(this.f,this.b)),this.c},s.Kl=function(){return!this.d&&I1n(this,POn(this.f,this.b)),this.d},s.ve=function(){return this.e==K4&&O1n(this,A_e(this.f,this.b)),this.e},s.Ll=function(){return this.g==-2&&D1n(this,SAn(this.f,this.b)),this.g},s.e=K4,s.g=-2,w(wi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1152),b(1150,1,{},KCe),s.b=!1,s.c=!1,w(wi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1150),b(1153,1,{},TNe),s.c=-2,s.e=K4,s.f=K4,w(wi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1153),b(582,624,Nc,EC),s.Jj=function(){return this.c},s.ml=function(){return!1},s.Ui=function(n,t){return t},s.c=0,w(wi,"EDataTypeEList",582);var Uwe=yi(wi,"FeatureMap");b(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},Pi),s._c=function(n,t){dSn(this,n,u(t,75))},s.Ec=function(n){return ITn(this,u(n,75))},s.Fi=function(n){Imn(this,u(n,75))},s.Lj=function(n,t){return cgn(this,u(n,75),t)},s.Mj=function(n,t){return xQ(this,u(n,75),t)},s.Ri=function(n,t){return BPn(this,n,t)},s.Ui=function(n,t){return CDn(this,n,u(t,75))},s.fd=function(n,t){return YSn(this,n,u(t,75))},s.Sj=function(n,t){return ugn(this,u(n,75),t)},s.Tj=function(n,t){return MSe(this,u(n,75),t)},s.Uj=function(n,t,i){return mAn(this,u(n,75),u(t,75),i)},s.Xi=function(n,t){return PR(this,n,u(t,75))},s.Ml=function(n,t){return Tre(this,n,t)},s.ad=function(n,t){var i,r,c,o,f,l,h,a,d;for(a=new rb(t.gc()),c=t.Jc();c.Ob();)if(r=u(c.Pb(),75),o=r.Jk(),ha(this.e,o))(!o.Qi()||!wx(this,o,r.kd())&&!r4(a,r))&&it(a,r);else{for(d=Xu(this.e.Ah(),o),i=u(this.g,122),f=!0,l=0;l<this.i;++l)if(h=i[l],d.$l(h.Jk())){u(F2(this,l,r),75),f=!1;break}f&&it(a,r)}return Xee(this,n,a)},s.Fc=function(n){var t,i,r,c,o,f,l,h,a;for(h=new rb(n.gc()),r=n.Jc();r.Ob();)if(i=u(r.Pb(),75),c=i.Jk(),ha(this.e,c))(!c.Qi()||!wx(this,c,i.kd())&&!r4(h,i))&&it(h,i);else{for(a=Xu(this.e.Ah(),c),t=u(this.g,122),o=!0,f=0;f<this.i;++f)if(l=t[f],a.$l(l.Jk())){u(F2(this,f,i),75),o=!1;break}o&&it(h,i)}return Ii(this,h)},s.Di=function(n){return this.j=-1,d_(this,this.i,n)},s.Nl=function(n,t,i){return yre(this,n,t,i)},s.Vk=function(n,t){return mj(this,n,t)},s.Ol=function(n,t,i){return Wre(this,n,t,i)},s.Pl=function(){return this},s.Ql=function(n,t){return kj(this,n,t)},s.Rl=function(n){return u(B(this,n),75).Jk()},s.Sl=function(n){return u(B(this,n),75).kd()},s.Tl=function(){return this.b},s.Kj=function(){return!0},s.Rj=function(){return!0},s.Ul=function(n){return!K7(this,n)},s.$i=function(n){return W(Zfn,lYe,344,n,0,1)},s.nl=function(n){return f$(this,n)},s.Wb=function(n){n7(this,n)},s.Vl=function(n,t){vS(this,n,t)},s.Wl=function(n){return TFe(this,n)},s.Xl=function(n){sJe(this,n)},w(wi,"BasicFeatureMap",76),b(1925,1,Th),s.Nb=function(n){Or(this,n)},s.Rb=function(n){if(this.g==-1)throw x(new wo);_C(this);try{Vqe(this.e,this.b,this.a,n),this.d=this.e.j,NT(this)}catch(t){throw t=Fi(t),$(t,99)?x(new Ss):x(t)}},s.Ob=function(){return TB(this)},s.Sb=function(){return VBe(this)},s.Pb=function(){return NT(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(VBe(this))return _C(this),this.g=--this.a,this.sl()&&(n=I9(this.e,this.b,this.c,this.a,this.j),this.j=n),this.i=0,this.j;throw x(new Dc)},s.Vb=function(){return this.a-1},s.Qb=function(){if(this.g==-1)throw x(new wo);_C(this);try{JGe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(n){throw n=Fi(n),$(n,99)?x(new Ss):x(n)}},s.sl=function(){return!1},s.Wb=function(n){if(this.g==-1)throw x(new wo);_C(this);try{EUe(this.e,this.b,this.g,n),this.d=this.e.j}catch(t){throw t=Fi(t),$(t,99)?x(new Ss):x(t)}},s.a=0,s.c=0,s.d=0,s.f=!1,s.g=0,s.i=0,w(wi,"FeatureMapUtil/BasicFeatureEIterator",1925),b(412,1925,Th,$v),s.Yl=function(){var n,t,i;for(i=this.e.i,n=u(this.e.g,122);this.c<i;){if(t=n[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},s.Zl=function(){var n,t;for(n=u(this.e.g,122);--this.c>=0;)if(t=n[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(wi,"BasicFeatureMap/FeatureEIterator",412),b(666,412,Th,UL),s.sl=function(){return!0},w(wi,"BasicFeatureMap/ResolvingFeatureEIterator",666),b(952,482,yI,qxe),s.nj=function(){return this},w(wi,"EContentsEList/1",952),b(953,482,yI,axe),s.sl=function(){return!1},w(wi,"EContentsEList/2",953),b(951,287,kI,zxe),s.ul=function(n){},s.Ob=function(){return!1},s.Sb=function(){return!1},w(wi,"EContentsEList/FeatureIteratorImpl/1",951),b(825,582,Nc,OV),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EDataTypeEList/Unsettable",825),b(1923,582,Nc,Vxe),s.Qi=function(){return!0},w(wi,"EDataTypeUniqueEList",1923),b(1924,825,Nc,Qxe),s.Qi=function(){return!0},w(wi,"EDataTypeUniqueEList/Unsettable",1924),b(145,81,Nc,go),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectContainmentEList/Resolving",145),b(1154,544,Nc,Yxe),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectContainmentEList/Unsettable/Resolving",1154),b(753,14,Nc,yQ),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectContainmentWithInverseEList/Unsettable",753),b(1188,753,Nc,aSe),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1188),b(745,491,Nc,NV),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectEList/Unsettable",745),b(339,491,Nc,v2),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectResolvingEList",339),b(1828,745,Nc,Zxe),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectResolvingEList/Unsettable",1828),b(1489,1,{},V6e);var nln;w(wi,"EObjectValidator",1489),b(548,491,Nc,GC),s.gl=function(){return this.d},s.hl=function(){return this.b},s.Kj=function(){return!0},s.kl=function(){return!0},s.b=0,w(wi,"EObjectWithInverseEList",548),b(1191,548,Nc,dSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseEList/ManyInverse",1191),b(627,548,Nc,b$),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EObjectWithInverseEList/Unsettable",627),b(1190,627,Nc,bSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseEList/Unsettable/ManyInverse",1190),b(754,548,Nc,kQ),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectWithInverseResolvingEList",754),b(33,754,Nc,hn),s.jl=function(){return!0},w(wi,"EObjectWithInverseResolvingEList/ManyInverse",33),b(755,627,Nc,jQ),s.ll=function(){return!0},s.Ui=function(n,t){return zm(this,n,u(t,57))},w(wi,"EObjectWithInverseResolvingEList/Unsettable",755),b(1189,755,Nc,wSe),s.jl=function(){return!0},w(wi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1189),b(1155,624,Nc),s.Ji=function(){return(this.b&1792)==0},s.Li=function(){this.b|=1},s.il=function(){return(this.b&4)!=0},s.Kj=function(){return(this.b&40)!=0},s.jl=function(){return(this.b&16)!=0},s.kl=function(){return(this.b&8)!=0},s.ll=function(){return(this.b&e1)!=0},s.$k=function(){return(this.b&32)!=0},s.ml=function(){return(this.b&Lf)!=0},s.dk=function(n){return this.d?cDe(this.d,n):this.Jk().Fk().dk(n)},s.Oj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},s.Qi=function(){return(this.b&128)!=0},s.Ek=function(){var n;nt(this),(this.b&2)!=0&&(Vo(this.e)?(n=(this.b&1)!=0,this.b&=-2,X3(this,new Cf(this.e,2,vi(this.e.Ah(),this.Jk()),n,!1))):this.b&=-2)},s.Wi=function(){return(this.b&1536)==0},s.b=0,w(wi,"EcoreEList/Generic",1155),b(1156,1155,Nc,fOe),s.Jk=function(){return this.a},w(wi,"EcoreEList/Dynamic",1156),b(752,67,ah,JK),s.$i=function(n){return S7(this.a.a,n)},w(wi,"EcoreEMap/1",752),b(751,81,Nc,gY),s.Ki=function(n,t){LT(this.b,u(t,136))},s.Mi=function(n,t){cBe(this.b)},s.Ni=function(n,t,i){var r;++(r=this.b,u(t,136),r).e},s.Oi=function(n,t){BB(this.b,u(t,136))},s.Pi=function(n,t,i){BB(this.b,u(i,136)),K(i)===K(t)&&u(i,136).zi(ibn(u(t,136).jd())),LT(this.b,u(t,136))},w(wi,"EcoreEMap/DelegateEObjectContainmentEList",751),b(1186,142,Fse,gFe),w(wi,"EcoreEMap/Unsettable",1186),b(1187,751,Nc,gSe),s.Li=function(){this.a=!0},s.Oj=function(){return this.a},s.Ek=function(){var n;nt(this),Vo(this.e)?(n=this.a,this.a=!1,Gt(this.e,new Cf(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,w(wi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1187),b(1159,223,W2,lPe),s.a=!1,s.b=!1,w(wi,"EcoreUtil/Copier",1159),b(747,1,jr,UNe),s.Nb=function(n){Or(this,n)},s.Ob=function(){return o_e(this)},s.Pb=function(){var n;return o_e(this),n=this.b,this.b=null,n},s.Qb=function(){this.a.Qb()},w(wi,"EcoreUtil/ProperContentIterator",747),b(1490,1489,{},Wye);var tln;w(wi,"EcoreValidator",1490);var iln;yi(wi,"FeatureMapUtil/Validator"),b(1260,1,{2006:1},Q6e),s.$l=function(n){return!0},w(wi,"FeatureMapUtil/1",1260),b(760,1,{2006:1},oce),s.$l=function(n){var t;return this.c==n?!0:(t=Te(vn(this.a,n)),t==null?YIn(this,n)?(zDe(this.a,n,(gn(),Q4)),!0):(zDe(this.a,n,(gn(),id)),!1):t==(gn(),Q4))},s.e=!1;var pX;w(wi,"FeatureMapUtil/BasicValidator",760),b(761,44,W2,PV),w(wi,"FeatureMapUtil/BasicValidator/Cache",761),b(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},Lk),s._c=function(n,t){Vqe(this.c,this.b,n,t)},s.Ec=function(n){return Tre(this.c,this.b,n)},s.ad=function(n,t){return mNn(this.c,this.b,n,t)},s.Fc=function(n){return x6(this,n)},s.Ei=function(n,t){o9n(this.c,this.b,n,t)},s.Uk=function(n,t){return yre(this.c,this.b,n,t)},s.Yi=function(n){return mS(this.c,this.b,n,!1)},s.Gi=function(){return Axe(this.c,this.b)},s.Hi=function(){return W0n(this.c,this.b)},s.Ii=function(n){return o6n(this.c,this.b,n)},s.Vk=function(n,t){return YTe(this,n,t)},s.$b=function(){qp(this)},s.Gc=function(n){return wx(this.c,this.b,n)},s.Hc=function(n){return ryn(this.c,this.b,n)},s.Xb=function(n){return mS(this.c,this.b,n,!0)},s.Dk=function(n){return this},s.bd=function(n){return p5n(this.c,this.b,n)},s.dc=function(){return YM(this)},s.Oj=function(){return!K7(this.c,this.b)},s.Jc=function(){return _6n(this.c,this.b)},s.cd=function(){return J6n(this.c,this.b)},s.dd=function(n){return fkn(this.c,this.b,n)},s.Ri=function(n,t){return dUe(this.c,this.b,n,t)},s.Si=function(n,t){f6n(this.c,this.b,n,t)},s.ed=function(n){return JGe(this.c,this.b,n)},s.Kc=function(n){return EPn(this.c,this.b,n)},s.fd=function(n,t){return EUe(this.c,this.b,n,t)},s.Wb=function(n){ZT(this.c,this.b),x6(this,u(n,16))},s.gc=function(){return lkn(this.c,this.b)},s.Nc=function(){return p4n(this.c,this.b)},s.Oc=function(n){return m5n(this.c,this.b,n)},s.Ib=function(){var n,t;for(t=new Ia,t.a+="[",n=Axe(this.c,this.b);TB(n);)ac(t,S6(NT(n))),TB(n)&&(t.a+=Ju);return t.a+="]",t.a},s.Ek=function(){ZT(this.c,this.b)},w(wi,"FeatureMapUtil/FeatureEList",495),b(635,39,tE,TF),s.fj=function(n){return b9(this,n)},s.kj=function(n){var t,i,r,c,o,f,l;switch(this.d){case 1:case 2:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return this.g=n.gj(),n.ej()==1&&(this.d=1),!0;break}case 3:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return this.d=5,t=new rb(2),it(t,this.g),it(t,n.gj()),this.g=t,!0;break}}break}case 5:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return i=u(this.g,18),i.Ec(n.gj()),!0;break}}break}case 4:{switch(c=n.ej(),c){case 3:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return this.d=1,this.g=n.gj(),!0;break}case 4:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return this.d=6,l=new rb(2),it(l,this.n),it(l,n.ij()),this.n=l,f=I(S(bt,1),Pt,30,15,[this.o,n.jj()]),this.g=f,!0;break}}break}case 6:{switch(c=n.ej(),c){case 4:{if(o=n.hj(),K(o)===K(this.c)&&b9(this,null)==n.fj(null))return i=u(this.n,18),i.Ec(n.ij()),f=u(this.g,54),r=W(bt,Pt,30,f.length+1,15,1),pu(f,0,r,0,f.length),r[f.length]=n.jj(),this.g=r,!0;break}}break}}return!1},w(wi,"FeatureMapUtil/FeatureENotificationImpl",635),b(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},TC),s.Ml=function(n,t){return Tre(this.c,n,t)},s.Nl=function(n,t,i){return yre(this.c,n,t,i)},s.Ol=function(n,t,i){return Wre(this.c,n,t,i)},s.Pl=function(){return this},s.Ql=function(n,t){return kj(this.c,n,t)},s.Rl=function(n){return u(mS(this.c,this.b,n,!1),75).Jk()},s.Sl=function(n){return u(mS(this.c,this.b,n,!1),75).kd()},s.Tl=function(){return this.a},s.Ul=function(n){return!K7(this.c,n)},s.Vl=function(n,t){vS(this.c,n,t)},s.Wl=function(n){return TFe(this.c,n)},s.Xl=function(n){sJe(this.c,n)},w(wi,"FeatureMapUtil/FeatureFeatureMap",554),b(1259,1,uH,YCe),s.Dk=function(n){return mS(this.b,this.a,-1,n)},s.Oj=function(){return!K7(this.b,this.a)},s.Wb=function(n){vS(this.b,this.a,n)},s.Ek=function(){ZT(this.b,this.a)},w(wi,"FeatureMapUtil/FeatureValue",1259);var L3,mX,vX,$3,rln,yA=yi(SI,"AnyType");b(670,63,aa,YD),w(SI,"InvalidDatatypeValueException",670);var ZO=yi(SI,bYe),kA=yi(SI,wYe),Xwe=yi(SI,gYe),cln,uu,Kwe,P0,uln,oln,sln,fln,lln,hln,aln,dln,bln,wln,gln,Dp,pln,Lp,R8,mln,Kb,jA,EA,vln,_8,J8;b(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},tW),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)):(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),P0)),163),219)).Tl();case 2:return i?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b)}return Ds(this,n-Un(this.fi()),cn((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Rh=function(n,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Pi(this,0)),mj(this.c,n,i);case 1:return(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),P0)),163),72)).Vk(n,i);case 2:return!this.b&&(this.b=new Pi(this,2)),mj(this.b,n,i)}return r=u(cn((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),t),69),r.uk().yk(this,tee(this),t-Un(this.fi()),n,i)},s.Th=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return Ns(this,n-Un(this.fi()),cn((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),n7(this.c,t);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),P0)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new Pi(this,2)),n7(this.b,t);return}_s(this,n-Un(this.fi()),cn((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Kwe},s.hi=function(n){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),nt(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),nt(this.b);return}Rs(this,n-Un(this.fi()),cn((this.j&2)==0?this.fi():(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Of(this):(n=new ef(Of(this)),n.a+=" (mixed: ",E6(n,this.c),n.a+=", anyAttribute: ",E6(n,this.b),n.a+=")",n.a)},w(Yi,"AnyTypeImpl",829),b(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},i9e),s.Ih=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return Ds(this,n-Un((Zt(),Dp)),cn((this.j&2)==0?Dp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Th=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Ns(this,n-Un((Zt(),Dp)),cn((this.j&2)==0?Dp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:F1n(this,dt(t));return;case 1:R1n(this,dt(t));return}_s(this,n-Un((Zt(),Dp)),cn((this.j&2)==0?Dp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Dp},s.hi=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}Rs(this,n-Un((Zt(),Dp)),cn((this.j&2)==0?Dp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Of(this):(n=new ef(Of(this)),n.a+=" (data: ",ac(n,this.a),n.a+=", target: ",ac(n,this.b),n.a+=")",n.a)},s.a=null,s.b=null,w(Yi,"ProcessingInstructionImpl",671),b(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},PEe),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)):(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),P0)),163),219)).Tl();case 2:return i?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Pi(this,0)),dt(kj(this.c,(Zt(),R8),!0));case 4:return AQ(this.a,(!this.c&&(this.c=new Pi(this,0)),dt(kj(this.c,(Zt(),R8),!0))));case 5:return this.a}return Ds(this,n-Un((Zt(),Lp)),cn((this.j&2)==0?Lp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Th=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Pi(this,0)),dt(kj(this.c,(Zt(),R8),!0))!=null;case 4:return AQ(this.a,(!this.c&&(this.c=new Pi(this,0)),dt(kj(this.c,(Zt(),R8),!0))))!=null;case 5:return!!this.a}return Ns(this,n-Un((Zt(),Lp)),cn((this.j&2)==0?Lp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),n7(this.c,t);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(u(xu(this.c,(Zt(),P0)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new Pi(this,2)),n7(this.b,t);return;case 3:hZ(this,dt(t));return;case 4:hZ(this,EQ(this.a,t));return;case 5:B1n(this,u(t,159));return}_s(this,n-Un((Zt(),Lp)),cn((this.j&2)==0?Lp:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Lp},s.hi=function(n){switch(n){case 0:!this.c&&(this.c=new Pi(this,0)),nt(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),u(xu(this.c,(Zt(),P0)),163)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),nt(this.b);return;case 3:!this.c&&(this.c=new Pi(this,0)),vS(this.c,(Zt(),R8),null);return;case 4:hZ(this,EQ(this.a,null));return;case 5:this.a=null;return}Rs(this,n-Un((Zt(),Lp)),cn((this.j&2)==0?Lp:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},w(Yi,"SimpleAnyTypeImpl",672),b(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},OEe),s.Ih=function(n,t,i){switch(n){case 0:return i?(!this.a&&(this.a=new Pi(this,0)),this.a):(!this.a&&(this.a=new Pi(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new vo((nn(),nc),nu,this,1)),this.b):(!this.b&&(this.b=new vo((nn(),nc),nu,this,1)),p7(this.b));case 2:return i?(!this.c&&(this.c=new vo((nn(),nc),nu,this,2)),this.c):(!this.c&&(this.c=new vo((nn(),nc),nu,this,2)),p7(this.c));case 3:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),jA));case 4:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),EA));case 5:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),_8));case 6:return!this.a&&(this.a=new Pi(this,0)),xu(this.a,(Zt(),J8))}return Ds(this,n-Un((Zt(),Kb)),cn((this.j&2)==0?Kb:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t,i)},s.Rh=function(n,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Pi(this,0)),mj(this.a,n,i);case 1:return!this.b&&(this.b=new vo((nn(),nc),nu,this,1)),pC(this.b,n,i);case 2:return!this.c&&(this.c=new vo((nn(),nc),nu,this,2)),pC(this.c,n,i);case 5:return!this.a&&(this.a=new Pi(this,0)),YTe(xu(this.a,(Zt(),_8)),n,i)}return r=u(cn((this.j&2)==0?(Zt(),Kb):(!this.k&&(this.k=new Wf),this.k).Lk(),t),69),r.uk().yk(this,tee(this),t-Un((Zt(),Kb)),n,i)},s.Th=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Pi(this,0)),!YM(xu(this.a,(Zt(),jA)));case 4:return!this.a&&(this.a=new Pi(this,0)),!YM(xu(this.a,(Zt(),EA)));case 5:return!this.a&&(this.a=new Pi(this,0)),!YM(xu(this.a,(Zt(),_8)));case 6:return!this.a&&(this.a=new Pi(this,0)),!YM(xu(this.a,(Zt(),J8)))}return Ns(this,n-Un((Zt(),Kb)),cn((this.j&2)==0?Kb:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.$h=function(n,t){switch(n){case 0:!this.a&&(this.a=new Pi(this,0)),n7(this.a,t);return;case 1:!this.b&&(this.b=new vo((nn(),nc),nu,this,1)),nT(this.b,t);return;case 2:!this.c&&(this.c=new vo((nn(),nc),nu,this,2)),nT(this.c,t);return;case 3:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),jA))),!this.a&&(this.a=new Pi(this,0)),x6(xu(this.a,jA),u(t,18));return;case 4:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),EA))),!this.a&&(this.a=new Pi(this,0)),x6(xu(this.a,EA),u(t,18));return;case 5:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),_8))),!this.a&&(this.a=new Pi(this,0)),x6(xu(this.a,_8),u(t,18));return;case 6:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),J8))),!this.a&&(this.a=new Pi(this,0)),x6(xu(this.a,J8),u(t,18));return}_s(this,n-Un((Zt(),Kb)),cn((this.j&2)==0?Kb:(!this.k&&(this.k=new Wf),this.k).Lk(),n),t)},s.fi=function(){return Zt(),Kb},s.hi=function(n){switch(n){case 0:!this.a&&(this.a=new Pi(this,0)),nt(this.a);return;case 1:!this.b&&(this.b=new vo((nn(),nc),nu,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new vo((nn(),nc),nu,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),jA)));return;case 4:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),EA)));return;case 5:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),_8)));return;case 6:!this.a&&(this.a=new Pi(this,0)),qp(xu(this.a,(Zt(),J8)));return}Rs(this,n-Un((Zt(),Kb)),cn((this.j&2)==0?Kb:(!this.k&&(this.k=new Wf),this.k).Lk(),n))},s.Ib=function(){var n;return(this.j&4)!=0?Of(this):(n=new ef(Of(this)),n.a+=" (mixed: ",E6(n,this.a),n.a+=")",n.a)},w(Yi,"XMLTypeDocumentRootImpl",673),b(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},Y6e),s.oi=function(n,t){switch(n.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Oc(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return dt(t);case 6:return Ewn(u(t,195));case 12:case 47:case 49:case 11:return oXe(this,n,t);case 13:return t==null?null:ANn(u(t,247));case 15:case 14:return t==null?null:kmn(J(H(t)));case 17:return QJe((Zt(),t));case 18:return QJe(t);case 21:case 20:return t==null?null:jmn(u(t,164).a);case 27:return Awn(u(t,195));case 30:return fJe((Zt(),u(t,16)));case 31:return fJe(u(t,16));case 40:return jwn((Zt(),t));case 42:return YJe((Zt(),t));case 43:return YJe(t);case 59:case 48:return kwn((Zt(),t));default:throw x(new An(q4+n.ve()+Ib))}},s.pi=function(n){var t,i,r,c,o;switch(n.G==-1&&(n.G=(i=ds(n),i?Ka(i.si(),n):-1)),n.G){case 0:return t=new tW,t;case 1:return r=new i9e,r;case 2:return c=new PEe,c;case 3:return o=new OEe,o;default:throw x(new An(qG+n.zb+Ib))}},s.qi=function(n,t){var i,r,c,o,f,l,h,a,d,g,m,y,j,A,T,L;switch(n.fk()){case 5:case 52:case 4:return t;case 6:return J7n(t);case 8:case 7:return t==null?null:MAn(t);case 9:return t==null?null:C7(ps((r=Pu(t,!0),r.length>0&&(Pn(0,r.length),r.charCodeAt(0)==43)?(Pn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:C7(ps((c=Pu(t,!0),c.length>0&&(Pn(0,c.length),c.charCodeAt(0)==43)?(Pn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return dt(kb(this,(Zt(),sln),t));case 12:return dt(kb(this,(Zt(),fln),t));case 13:return t==null?null:new EW(Pu(t,!0));case 15:case 14:return NTn(t);case 16:return dt(kb(this,(Zt(),lln),t));case 17:return a_e((Zt(),t));case 18:return a_e(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Pu(t,!0);case 21:case 20:return HTn(t);case 22:return dt(kb(this,(Zt(),hln),t));case 23:return dt(kb(this,(Zt(),aln),t));case 24:return dt(kb(this,(Zt(),dln),t));case 25:return dt(kb(this,(Zt(),bln),t));case 26:return dt(kb(this,(Zt(),wln),t));case 27:return O7n(t);case 30:return d_e((Zt(),t));case 31:return d_e(t);case 32:return t==null?null:fe(ps((d=Pu(t,!0),d.length>0&&(Pn(0,d.length),d.charCodeAt(0)==43)?(Pn(1,d.length+1),d.substr(1)):d),Cr,Ft));case 33:return t==null?null:new x1((g=Pu(t,!0),g.length>0&&(Pn(0,g.length),g.charCodeAt(0)==43)?(Pn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:fe(ps((m=Pu(t,!0),m.length>0&&(Pn(0,m.length),m.charCodeAt(0)==43)?(Pn(1,m.length+1),m.substr(1)):m),Cr,Ft));case 36:return t==null?null:Hw(ES((y=Pu(t,!0),y.length>0&&(Pn(0,y.length),y.charCodeAt(0)==43)?(Pn(1,y.length+1),y.substr(1)):y)));case 37:return t==null?null:Hw(ES((j=Pu(t,!0),j.length>0&&(Pn(0,j.length),j.charCodeAt(0)==43)?(Pn(1,j.length+1),j.substr(1)):j)));case 40:return Tjn((Zt(),t));case 42:return b_e((Zt(),t));case 43:return b_e(t);case 44:return t==null?null:new x1((A=Pu(t,!0),A.length>0&&(Pn(0,A.length),A.charCodeAt(0)==43)?(Pn(1,A.length+1),A.substr(1)):A));case 45:return t==null?null:new x1((T=Pu(t,!0),T.length>0&&(Pn(0,T.length),T.charCodeAt(0)==43)?(Pn(1,T.length+1),T.substr(1)):T));case 46:return Pu(t,!1);case 47:return dt(kb(this,(Zt(),gln),t));case 59:case 48:return xjn((Zt(),t));case 49:return dt(kb(this,(Zt(),pln),t));case 50:return t==null?null:Uv(ps((L=Pu(t,!0),L.length>0&&(Pn(0,L.length),L.charCodeAt(0)==43)?(Pn(1,L.length+1),L.substr(1)):L),MI,32767)<<16>>16);case 51:return t==null?null:Uv(ps((o=Pu(t,!0),o.length>0&&(Pn(0,o.length),o.charCodeAt(0)==43)?(Pn(1,o.length+1),o.substr(1)):o),MI,32767)<<16>>16);case 53:return dt(kb(this,(Zt(),mln),t));case 55:return t==null?null:Uv(ps((f=Pu(t,!0),f.length>0&&(Pn(0,f.length),f.charCodeAt(0)==43)?(Pn(1,f.length+1),f.substr(1)):f),MI,32767)<<16>>16);case 56:return t==null?null:Uv(ps((l=Pu(t,!0),l.length>0&&(Pn(0,l.length),l.charCodeAt(0)==43)?(Pn(1,l.length+1),l.substr(1)):l),MI,32767)<<16>>16);case 57:return t==null?null:Hw(ES((h=Pu(t,!0),h.length>0&&(Pn(0,h.length),h.charCodeAt(0)==43)?(Pn(1,h.length+1),h.substr(1)):h)));case 58:return t==null?null:Hw(ES((a=Pu(t,!0),a.length>0&&(Pn(0,a.length),a.charCodeAt(0)==43)?(Pn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:fe(ps((i=Pu(t,!0),i.length>0&&(Pn(0,i.length),i.charCodeAt(0)==43)?(Pn(1,i.length+1),i.substr(1)):i),Cr,Ft));case 61:return t==null?null:fe(ps(Pu(t,!0),Cr,Ft));default:throw x(new An(q4+n.ve()+Ib))}};var yln,Wwe,kln,Vwe;w(Yi,"XMLTypeFactoryImpl",1993),b(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},PPe),s.N=!1,s.O=!1;var jln=!1;w(Yi,"XMLTypePackageImpl",583),b(1926,1,{836:1},Z6e),s.Ik=function(){return Rre(),Pln},w(Yi,"XMLTypePackageImpl/1",1926),b(1935,1,Nt,e9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/10",1935),b(1936,1,Nt,n9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/11",1936),b(1937,1,Nt,t9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/12",1937),b(1938,1,Nt,r9e),s.dk=function(n){return aw(n)},s.ek=function(n){return W(zi,we,346,n,7,1)},w(Yi,"XMLTypePackageImpl/13",1938),b(1939,1,Nt,c9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/14",1939),b(1940,1,Nt,u9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/15",1940),b(1941,1,Nt,o9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/16",1941),b(1942,1,Nt,s9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/17",1942),b(1943,1,Nt,f9e),s.dk=function(n){return $(n,164)},s.ek=function(n){return W(Y4,we,164,n,0,1)},w(Yi,"XMLTypePackageImpl/18",1943),b(1944,1,Nt,l9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/19",1944),b(1927,1,Nt,h9e),s.dk=function(n){return $(n,842)},s.ek=function(n){return W(yA,ln,842,n,0,1)},w(Yi,"XMLTypePackageImpl/2",1927),b(1945,1,Nt,a9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/20",1945),b(1946,1,Nt,d9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/21",1946),b(1947,1,Nt,b9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/22",1947),b(1948,1,Nt,w9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/23",1948),b(1949,1,Nt,g9e),s.dk=function(n){return $(n,195)},s.ek=function(n){return W(Mo,we,195,n,0,2)},w(Yi,"XMLTypePackageImpl/24",1949),b(1950,1,Nt,p9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/25",1950),b(1951,1,Nt,m9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/26",1951),b(1952,1,Nt,v9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/27",1952),b(1953,1,Nt,y9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/28",1953),b(1954,1,Nt,k9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/29",1954),b(1928,1,Nt,j9e),s.dk=function(n){return $(n,671)},s.ek=function(n){return W(ZO,ln,2084,n,0,1)},w(Yi,"XMLTypePackageImpl/3",1928),b(1955,1,Nt,E9e),s.dk=function(n){return $(n,15)},s.ek=function(n){return W(Zi,we,15,n,0,1)},w(Yi,"XMLTypePackageImpl/30",1955),b(1956,1,Nt,A9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/31",1956),b(1957,1,Nt,M9e),s.dk=function(n){return $(n,190)},s.ek=function(n){return W(Ob,we,190,n,0,1)},w(Yi,"XMLTypePackageImpl/32",1957),b(1958,1,Nt,C9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/33",1958),b(1959,1,Nt,x9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/34",1959),b(1960,1,Nt,T9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/35",1960),b(1961,1,Nt,S9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/36",1961),b(1962,1,Nt,I9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/37",1962),b(1963,1,Nt,P9e),s.dk=function(n){return $(n,16)},s.ek=function(n){return W(ks,rg,16,n,0,1)},w(Yi,"XMLTypePackageImpl/38",1963),b(1964,1,Nt,O9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/39",1964),b(1929,1,Nt,N9e),s.dk=function(n){return $(n,672)},s.ek=function(n){return W(kA,ln,2085,n,0,1)},w(Yi,"XMLTypePackageImpl/4",1929),b(1965,1,Nt,D9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/40",1965),b(1966,1,Nt,L9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/41",1966),b(1967,1,Nt,$9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/42",1967),b(1968,1,Nt,F9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/43",1968),b(1969,1,Nt,B9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/44",1969),b(1970,1,Nt,R9e),s.dk=function(n){return $(n,191)},s.ek=function(n){return W(Nb,we,191,n,0,1)},w(Yi,"XMLTypePackageImpl/45",1970),b(1971,1,Nt,_9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/46",1971),b(1972,1,Nt,J9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/47",1972),b(1973,1,Nt,G9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/48",1973),b(1974,1,Nt,H9e),s.dk=function(n){return $(n,191)},s.ek=function(n){return W(Nb,we,191,n,0,1)},w(Yi,"XMLTypePackageImpl/49",1974),b(1930,1,Nt,q9e),s.dk=function(n){return $(n,673)},s.ek=function(n){return W(Xwe,ln,2086,n,0,1)},w(Yi,"XMLTypePackageImpl/5",1930),b(1975,1,Nt,z9e),s.dk=function(n){return $(n,190)},s.ek=function(n){return W(Ob,we,190,n,0,1)},w(Yi,"XMLTypePackageImpl/50",1975),b(1976,1,Nt,U9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/51",1976),b(1977,1,Nt,X9e),s.dk=function(n){return $(n,15)},s.ek=function(n){return W(Zi,we,15,n,0,1)},w(Yi,"XMLTypePackageImpl/52",1977),b(1931,1,Nt,K9e),s.dk=function(n){return mr(n)},s.ek=function(n){return W(Ie,we,2,n,6,1)},w(Yi,"XMLTypePackageImpl/6",1931),b(1932,1,Nt,W9e),s.dk=function(n){return $(n,195)},s.ek=function(n){return W(Mo,we,195,n,0,2)},w(Yi,"XMLTypePackageImpl/7",1932),b(1933,1,Nt,V9e),s.dk=function(n){return hw(n)},s.ek=function(n){return W(xi,we,473,n,8,1)},w(Yi,"XMLTypePackageImpl/8",1933),b(1934,1,Nt,Q9e),s.dk=function(n){return $(n,221)},s.ek=function(n){return W(c3,we,221,n,0,1)},w(Yi,"XMLTypePackageImpl/9",1934);var ql,g1,G8,eN,O;b(53,63,aa,pt),w(t1,"RegEx/ParseException",53),b(821,1,{},uK),s._l=function(n){return n<this.j&&Lr(this.i,n)==63},s.am=function(){var n,t,i,r,c;if(this.c!=10)throw x(new pt(vt((at(),pI))));switch(n=this.a,n){case 101:n=27;break;case 102:n=12;break;case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 120:if(Rt(this),this.c!=0)throw x(new pt(vt((at(),n1))));if(this.a==123){c=0,i=0;do{if(Rt(this),this.c!=0)throw x(new pt(vt((at(),n1))));if((c=t0(this.a))<0)break;if(i>i*16)throw x(new pt(vt((at(),xQe))));i=i*16+c}while(!0);if(this.a!=125)throw x(new pt(vt((at(),TQe))));if(i>W4)throw x(new pt(vt((at(),SQe))));n=i}else{if(c=0,this.c!=0||(c=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(i=c,Rt(this),this.c!=0||(c=t0(this.a))<0)throw x(new pt(vt((at(),n1))));i=i*16+c,n=i}break;case 117:if(r=0,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));t=t*16+r,n=t;break;case 118:if(Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,Rt(this),this.c!=0||(r=t0(this.a))<0)throw x(new pt(vt((at(),n1))));if(t=t*16+r,t>W4)throw x(new pt(vt((at(),"parser.descappe.4"))));n=t;break;case 65:case 90:case 122:throw x(new pt(vt((at(),IQe))))}return n},s.bm=function(n){var t,i;switch(n){case 100:i=(this.e&32)==32?W1("Nd",!0):(_t(),nN);break;case 68:i=(this.e&32)==32?W1("Nd",!1):(_t(),tge);break;case 119:i=(this.e&32)==32?W1("IsWord",!0):(_t(),F5);break;case 87:i=(this.e&32)==32?W1("IsWord",!1):(_t(),rge);break;case 115:i=(this.e&32)==32?W1("IsSpace",!0):(_t(),F3);break;case 83:i=(this.e&32)==32?W1("IsSpace",!1):(_t(),ige);break;default:throw x(new Lc((t=n,IYe+t.toString(16))))}return i},s.cm=function(n){var t,i,r,c,o,f,l,h,a,d,g,m;for(this.b=1,Rt(this),t=null,this.c==0&&this.a==94?(Rt(this),n?d=(_t(),_t(),new hs(5)):(t=(_t(),_t(),new hs(4)),Iu(t,0,W4),d=new hs(4))):d=(_t(),_t(),new hs(4)),c=!0;(m=this.c)!=1&&!(m==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,m==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:eg(d,this.bm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.sm(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Pie(this,i),!g)throw x(new pt(vt((at(),iH))));eg(d,g),r=!0;break;default:i=this.am()}else if(m==20){if(f=ov(this.i,58,this.d),f<0)throw x(new pt(vt((at(),Pse))));if(l=!0,Lr(this.i,this.d)==94&&(++this.d,l=!1),o=tf(this.i,this.d,f),h=LLe(o,l,(this.e&512)==512),!h)throw x(new pt(vt((at(),jQe))));if(eg(d,h),r=!0,f+1>=this.j||Lr(this.i,f+1)!=93)throw x(new pt(vt((at(),Pse))));this.d=f+2}if(Rt(this),!r)if(this.c!=0||this.a!=45)Iu(d,i,i);else{if(Rt(this),(m=this.c)==1)throw x(new pt(vt((at(),mI))));m==0&&this.a==93?(Iu(d,i,i),Iu(d,45,45)):(a=this.a,m==10&&(a=this.am()),Rt(this),Iu(d,i,a))}(this.e&Lf)==Lf&&this.c==0&&this.a==44&&Rt(this)}if(this.c==1)throw x(new pt(vt((at(),mI))));return t&&(z9(t,d),d=t),G2(d),H9(d),this.b=0,Rt(this),d},s.dm=function(){var n,t,i,r;for(i=this.cm(!1);(r=this.c)!=7;)if(n=this.a,r==0&&(n==45||n==38)||r==4){if(Rt(this),this.c!=9)throw x(new pt(vt((at(),AQe))));if(t=this.cm(!1),r==4)eg(i,t);else if(n==45)z9(i,t);else if(n==38)iXe(i,t);else throw x(new Lc("ASSERT"))}else throw x(new pt(vt((at(),MQe))));return Rt(this),i},s.em=function(){var n,t;return n=this.a-48,t=(_t(),_t(),new lF(12,null,n)),!this.g&&(this.g=new oM),uM(this.g,new GK(n)),Rt(this),t},s.fm=function(){return Rt(this),_t(),Mln},s.gm=function(){return Rt(this),_t(),Aln},s.hm=function(){throw x(new pt(vt((at(),qs))))},s.im=function(){throw x(new pt(vt((at(),qs))))},s.jm=function(){return Rt(this),i8n()},s.km=function(){return Rt(this),_t(),xln},s.lm=function(){return Rt(this),_t(),Sln},s.mm=function(){var n;if(this.d>=this.j||((n=Lr(this.i,this.d++))&65504)!=64)throw x(new pt(vt((at(),vQe))));return Rt(this),_t(),_t(),new yh(0,n-64)},s.nm=function(){return Rt(this),COn()},s.om=function(){return Rt(this),_t(),Iln},s.pm=function(){var n;return n=(_t(),_t(),new yh(0,105)),Rt(this),n},s.qm=function(){return Rt(this),_t(),Tln},s.rm=function(){return Rt(this),_t(),Cln},s.sm=function(n,t){return this.am()},s.tm=function(){return Rt(this),_t(),ege},s.um=function(){var n,t,i,r,c;if(this.d+1>=this.j)throw x(new pt(vt((at(),gQe))));if(r=-1,t=null,n=Lr(this.i,this.d),49<=n&&n<=57){if(r=n-48,!this.g&&(this.g=new oM),uM(this.g,new GK(r)),++this.d,Lr(this.i,this.d)!=41)throw x(new pt(vt((at(),d0))));++this.d}else switch(n==63&&--this.d,Rt(this),t=hce(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw x(new pt(vt((at(),d0))));break;default:throw x(new pt(vt((at(),pQe))))}if(Rt(this),c=ab(this),i=null,c.e==2){if(c.Nm()!=2)throw x(new pt(vt((at(),mQe))));i=c.Jm(1),c=c.Jm(0)}if(this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),_t(),_t(),new J$e(r,t,c,i)},s.vm=function(){return Rt(this),_t(),nge},s.wm=function(){var n;if(Rt(this),n=qC(24,ab(this)),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.xm=function(){var n;if(Rt(this),n=qC(20,ab(this)),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.ym=function(){var n;if(Rt(this),n=qC(22,ab(this)),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.zm=function(){var n,t,i,r,c;for(n=0,i=0,t=-1;this.d<this.j&&(t=Lr(this.i,this.d),c=Fie(t),c!=0);)n|=c,++this.d;if(this.d>=this.j)throw x(new pt(vt((at(),Sse))));if(t==45){for(++this.d;this.d<this.j&&(t=Lr(this.i,this.d),c=Fie(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw x(new pt(vt((at(),Sse))))}if(t==58){if(++this.d,Rt(this),r=sPe(ab(this),n,i),this.c!=7)throw x(new pt(vt((at(),d0))));Rt(this)}else if(t==41)++this.d,Rt(this),r=sPe(ab(this),n,i);else throw x(new pt(vt((at(),wQe))));return r},s.Am=function(){var n;if(Rt(this),n=qC(21,ab(this)),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.Bm=function(){var n;if(Rt(this),n=qC(23,ab(this)),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.Cm=function(){var n,t;if(Rt(this),n=this.f++,t=J$(ab(this),n),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),t},s.Dm=function(){var n;if(Rt(this),n=J$(ab(this),0),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.Em=function(n){return Rt(this),this.c==5?(Rt(this),DC(n,(_t(),_t(),new Iw(9,n)))):DC(n,(_t(),_t(),new Iw(3,n)))},s.Fm=function(n){var t;return Rt(this),t=(_t(),_t(),new C6(2)),this.c==5?(Rt(this),c0(t,q8),c0(t,n)):(c0(t,n),c0(t,q8)),t},s.Gm=function(n){return Rt(this),this.c==5?(Rt(this),_t(),_t(),new Iw(9,n)):(_t(),_t(),new Iw(3,n))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,w(t1,"RegEx/RegexParser",821),b(1913,821,{},NEe),s._l=function(n){return!1},s.am=function(){return gre(this)},s.bm=function(n){return b4(n)},s.cm=function(n){return VXe(this)},s.dm=function(){throw x(new pt(vt((at(),qs))))},s.em=function(){throw x(new pt(vt((at(),qs))))},s.fm=function(){throw x(new pt(vt((at(),qs))))},s.gm=function(){throw x(new pt(vt((at(),qs))))},s.hm=function(){return Rt(this),b4(67)},s.im=function(){return Rt(this),b4(73)},s.jm=function(){throw x(new pt(vt((at(),qs))))},s.km=function(){throw x(new pt(vt((at(),qs))))},s.lm=function(){throw x(new pt(vt((at(),qs))))},s.mm=function(){return Rt(this),b4(99)},s.nm=function(){throw x(new pt(vt((at(),qs))))},s.om=function(){throw x(new pt(vt((at(),qs))))},s.pm=function(){return Rt(this),b4(105)},s.qm=function(){throw x(new pt(vt((at(),qs))))},s.rm=function(){throw x(new pt(vt((at(),qs))))},s.sm=function(n,t){return eg(n,b4(t)),-1},s.tm=function(){return Rt(this),_t(),_t(),new yh(0,94)},s.um=function(){throw x(new pt(vt((at(),qs))))},s.vm=function(){return Rt(this),_t(),_t(),new yh(0,36)},s.wm=function(){throw x(new pt(vt((at(),qs))))},s.xm=function(){throw x(new pt(vt((at(),qs))))},s.ym=function(){throw x(new pt(vt((at(),qs))))},s.zm=function(){throw x(new pt(vt((at(),qs))))},s.Am=function(){throw x(new pt(vt((at(),qs))))},s.Bm=function(){throw x(new pt(vt((at(),qs))))},s.Cm=function(){var n;if(Rt(this),n=J$(ab(this),0),this.c!=7)throw x(new pt(vt((at(),d0))));return Rt(this),n},s.Dm=function(){throw x(new pt(vt((at(),qs))))},s.Em=function(n){return Rt(this),DC(n,(_t(),_t(),new Iw(3,n)))},s.Fm=function(n){var t;return Rt(this),t=(_t(),_t(),new C6(2)),c0(t,n),c0(t,q8),t},s.Gm=function(n){return Rt(this),_t(),_t(),new Iw(3,n)};var $p=null,L5=null;w(t1,"RegEx/ParserForXMLSchema",1913),b(121,1,V4,B0),s.Hm=function(n){throw x(new Lc("Not supported."))},s.Im=function(){return-1},s.Jm=function(n){return null},s.Km=function(){return null},s.Lm=function(n){},s.Mm=function(n){},s.Nm=function(){return 0},s.Ib=function(){return this.Om(0)},s.Om=function(n){return this.e==11?".":""},s.e=0;var Qwe,$5,H8,Eln,Ywe,Kg=null,nN,yX=null,Zwe,q8,kX=null,ege,nge,tge,ige,rge,Aln,F3,Mln,Cln,xln,Tln,F5,Sln,Iln,RFn=w(t1,"RegEx/Token",121);b(137,121,{3:1,137:1,121:1},hs),s.Om=function(n){var t,i,r;if(this.e==4)if(this==Zwe)i=".";else if(this==nN)i="\\d";else if(this==F5)i="\\w";else if(this==F3)i="\\s";else{for(r=new Ia,r.a+="[",t=0;t<this.b.length;t+=2)(n&Lf)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?ac(r,yj(this.b[t])):(ac(r,yj(this.b[t])),r.a+="-",ac(r,yj(this.b[t+1])));r.a+="]",i=r.a}else if(this==tge)i="\\D";else if(this==rge)i="\\W";else if(this==ige)i="\\S";else{for(r=new Ia,r.a+="[^",t=0;t<this.b.length;t+=2)(n&Lf)!=0&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?ac(r,yj(this.b[t])):(ac(r,yj(this.b[t])),r.a+="-",ac(r,yj(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,w(t1,"RegEx/RangeToken",137),b(581,1,{581:1},GK),s.a=0,w(t1,"RegEx/RegexParser/ReferencePosition",581),b(580,1,{3:1,580:1},wMe),s.Fb=function(n){var t;return n==null||!$(n,580)?!1:(t=u(n,580),We(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return Ha(this.b+"/"+fre(this.a))},s.Ib=function(){return this.c.Om(this.a)},s.a=0,w(t1,"RegEx/RegularExpression",580),b(228,121,V4,yh),s.Im=function(){return this.a},s.Om=function(n){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+a$(this.a&Qi);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=Yr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+tf(i,i.length-6,i.length)):r=""+a$(this.a&Qi)}break;case 8:this==ege||this==nge?r=""+a$(this.a&Qi):r="\\"+a$(this.a&Qi);break;default:r=null}return r},s.a=0,w(t1,"RegEx/Token/CharToken",228),b(323,121,V4,Iw),s.Jm=function(n){return this.a},s.Lm=function(n){this.b=n},s.Mm=function(n){this.c=n},s.Nm=function(){return 1},s.Om=function(n){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Om(n)+"*";else if(this.c==this.b)t=this.a.Om(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Om(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Om(n)+"{"+this.c+",}";else throw x(new Lc("Token#toString(): CLOSURE "+this.c+Ju+this.b));else if(this.c<0&&this.b<0)t=this.a.Om(n)+"*?";else if(this.c==this.b)t=this.a.Om(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Om(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Om(n)+"{"+this.c+",}?";else throw x(new Lc("Token#toString(): NONGREEDYCLOSURE "+this.c+Ju+this.b));return t},s.b=0,s.c=0,w(t1,"RegEx/Token/ClosureToken",323),b(822,121,V4,kY),s.Jm=function(n){return n==0?this.a:this.b},s.Nm=function(){return 2},s.Om=function(n){var t;return this.b.e==3&&this.b.Jm(0)==this.a?t=this.a.Om(n)+"+":this.b.e==9&&this.b.Jm(0)==this.a?t=this.a.Om(n)+"+?":t=this.a.Om(n)+(""+this.b.Om(n)),t},w(t1,"RegEx/Token/ConcatToken",822),b(1911,121,V4,J$e),s.Jm=function(n){if(n==0)return this.d;if(n==1)return this.b;throw x(new Lc("Internal Error: "+n))},s.Nm=function(){return this.b?2:1},s.Om=function(n){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,w(t1,"RegEx/Token/ConditionToken",1911),b(1912,121,V4,hNe),s.Jm=function(n){return this.b},s.Nm=function(){return 1},s.Om=function(n){return"(?"+(this.a==0?"":fre(this.a))+(this.c==0?"":fre(this.c))+":"+this.b.Om(n)+")"},s.a=0,s.c=0,w(t1,"RegEx/Token/ModifierToken",1912),b(823,121,V4,OY),s.Jm=function(n){return this.a},s.Nm=function(){return 1},s.Om=function(n){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Om(n)+")":t="("+this.a.Om(n)+")";break;case 20:t="(?="+this.a.Om(n)+")";break;case 21:t="(?!"+this.a.Om(n)+")";break;case 22:t="(?<="+this.a.Om(n)+")";break;case 23:t="(?<!"+this.a.Om(n)+")";break;case 24:t="(?>"+this.a.Om(n)+")"}return t},s.b=0,w(t1,"RegEx/Token/ParenToken",823),b(518,121,{3:1,121:1,518:1},lF),s.Km=function(){return this.b},s.Om=function(n){return this.e==12?"\\"+this.a:vTn(this.b)},s.a=0,w(t1,"RegEx/Token/StringToken",518),b(466,121,V4,C6),s.Hm=function(n){c0(this,n)},s.Jm=function(n){return u(Q0(this.a,n),121)},s.Nm=function(){return this.a?this.a.a.c.length:0},s.Om=function(n){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(Q0(this.a,0),121),i=u(Q0(this.a,1),121),i.e==3&&i.Jm(0)==t?c=t.Om(n)+"+":i.e==9&&i.Jm(0)==t?c=t.Om(n)+"+?":c=t.Om(n)+(""+i.Om(n));else{for(o=new Ia,r=0;r<this.a.a.c.length;r++)ac(o,u(Q0(this.a,r),121).Om(n));c=o.a}return c}if(this.a.a.c.length==2&&u(Q0(this.a,1),121).e==7)c=u(Q0(this.a,0),121).Om(n)+"?";else if(this.a.a.c.length==2&&u(Q0(this.a,0),121).e==7)c=u(Q0(this.a,1),121).Om(n)+"??";else{for(o=new Ia,ac(o,u(Q0(this.a,0),121).Om(n)),r=1;r<this.a.a.c.length;r++)o.a+="|",ac(o,u(Q0(this.a,r),121).Om(n));c=o.a}return c},w(t1,"RegEx/Token/UnionToken",466),b(515,1,{590:1},wk),s.Ib=function(){return this.a.b},w(DYe,"XMLTypeUtil/PatternMatcherImpl",515),b(1676,1489,{},Y9e);var Pln;w(DYe,"XMLTypeValidator",1676),b(270,1,Sh,$d),s.Ic=function(n){$r(this,n)},s.Jc=function(){return(this.b-this.a)*this.c<0?Ad:new T1(this)},s.a=0,s.b=0,s.c=0;var Ad;w(Vse,"ExclusiveRange",270),b(1055,1,Th,Z9e),s.Rb=function(n){u(n,15),lbn()},s.Nb=function(n){Or(this,n)},s.Pb=function(){return Ydn()},s.Ub=function(){return Zdn()},s.Wb=function(n){u(n,15),fbn()},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Tb=function(){return-1},s.Vb=function(){return-1},s.Qb=function(){throw x(new Ta(FYe))},w(Vse,"ExclusiveRange/1",1055),b(259,1,Th,T1),s.Rb=function(n){u(n,15),hbn()},s.Nb=function(n){Or(this,n)},s.Pb=function(){return x8n(this)},s.Ub=function(){return A6n(this)},s.Wb=function(n){u(n,15),abn()},s.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw x(new Ta(FYe))},s.a=0,s.b=0,w(Vse,"ExclusiveRange/RangeIterator",259);var Vs=vv(vI,"C"),bt=vv(vy,"I"),ao=vv(Xm,"Z"),Wb=vv(yy,"J"),Mo=vv(gy,"B"),Er=vv(py,"D"),Wg=vv(my,"F"),Fp=vv(ky,"S"),_Fn=yi("org.eclipse.elk.core.labels","ILabelManager"),cge=yi(Vr,"DiagnosticChain"),uge=yi(hYe,"ResourceSet"),oge=w(Vr,"InvocationTargetException",null),Oln=(dM(),_5n),Nln=Nln=fAn;C9n(Z1n),H9n("permProps",[[["locale","default"],[BYe,"gecko1_8"]],[["locale","default"],[BYe,"safari"]]]),Nln(null,"elk",null)}).call(this)}).call(this,typeof Lln<"u"?Lln:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(P,N,D){function F(ce){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},F(ce)}function v(ce,ge,ee){return Object.defineProperty(ce,"prototype",{writable:!1}),ce}function q(ce,ge){if(!(ce instanceof ge))throw new TypeError("Cannot call a class as a function")}function te(ce,ge,ee){return ge=z(ge),ie(ce,oe()?Reflect.construct(ge,ee||[],z(ce).constructor):ge.apply(ce,ee))}function ie(ce,ge){if(ge&&(F(ge)=="object"||typeof ge=="function"))return ge;if(ge!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(ce)}function pe(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function oe(){try{var ce=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oe=function(){return!!ce})()}function z(ce){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ge){return ge.__proto__||Object.getPrototypeOf(ge)},z(ce)}function Z(ce,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(ge&&ge.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),ge&&ne(ce,ge)}function ne(ce,ge){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,Me){return ee.__proto__=Me,ee},ne(ce,ge)}var U=P("./elk-api.js").default,xe=(function(ce){function ge(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q(this,ge);var Me=Object.assign({},ee),Ke=!1;try{P.resolve("web-worker"),Ke=!0}catch{}if(ee.workerUrl)if(Ke){var Xe=P("web-worker");Me.workerFactory=function(jn){return new Xe(jn)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
29
29
  Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
30
- ... Falling back to non-web worker version.`);if(!Me.workerFactory){var Ye=P("./elk-worker.min.js"),kn=Ye.Worker;Me.workerFactory=function(jn){return new kn(jn)}}return te(this,ge,[Me])}return Z(ge,ce),v(ge)})(U);Object.defineProperty(N.exports,"__esModule",{value:!0}),N.exports=xe,xe.default=xe},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(P,N,D){var F=typeof Worker<"u"?Worker:void 0;N.exports=F},{}]},{},[3])(3)})})(yge)),yge.exports}var ZGn=YGn();const eHn=QFn(ZGn),nHn=new eHn,DX=240,LX=150,tHn=48;async function iHn(p,E,P){if(p.length===0)return p;const N=p.filter(z=>z.type==="namespace-group"),D=p.filter(z=>z.type==="agent"),F=p.filter(z=>z.type==="adapter"),v=F.map(z=>{var Z,ne;return{id:z.id,width:((Z=z.style)==null?void 0:Z.width)??DX,height:((ne=z.style)==null?void 0:ne.height)??LX,layoutOptions:{"elk.layered.layering.layerConstraint":"FIRST"}}}),q=P?N.map(z=>{const Z=D.filter(ne=>ne.parentId===z.id).map(ne=>({id:ne.id,width:DX,height:LX}));return{id:z.id,width:0,height:0,layoutOptions:{"elk.padding":`[top=${tHn},left=24,bottom=24,right=24]`,"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"60"},children:Z}}):D.map(z=>({id:z.id,width:DX,height:LX,...F.length>0?{layoutOptions:{"elk.layered.layering.layerConstraint":"LAST"}}:{}})),te=[...v,...q],ie=E.map(z=>({id:z.id,sources:[z.source],targets:[z.target]})),pe={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"120"},children:te,edges:ie},oe=await nHn.layout(pe);return p.map(z=>{var ne,U,xe,ce,ge;if(z.type==="namespace-group"){const ee=(ne=oe.children)==null?void 0:ne.find(Me=>Me.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0},style:{width:ee.width??300,height:ee.height??200}}:z}if(z.type==="adapter"){const ee=(U=oe.children)==null?void 0:U.find(Me=>Me.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0}}:z}if(P&&z.parentId){const ee=(xe=oe.children)==null?void 0:xe.find(Ke=>Ke.id===z.parentId),Me=(ce=ee==null?void 0:ee.children)==null?void 0:ce.find(Ke=>Ke.id===z.id);return Me?{...z,position:{x:Me.x??0,y:Me.y??0}}:z}const Z=(ge=oe.children)==null?void 0:ge.find(ee=>ee.id===z.id);return Z?{...z,position:{x:Z.x??0,y:Z.y??0}}:z})}function rHn({rawNodes:p,deleteBindingMutate:E,createBindingMutate:P}){const{setCenter:N,getZoom:D}=zX(),[F,v]=sn.useState([]),[q,te]=sn.useState([]),ie=sn.useRef([]),[pe,oe]=sn.useState(!0),[z,Z]=sn.useState(null),[ne,U]=sn.useState(null),[xe,ce]=sn.useState(!1),ge=sn.useRef(new Map),[ee,Me]=sn.useState(0),[Ke,Xe]=sn.useState(null),Ye=sn.useCallback(Nn=>Nn.replace(/^binding:/,""),[]),kn=sn.useCallback(Nn=>{Xe(Nn)},[]),jn=sn.useCallback(()=>{Xe(Nn=>(Nn&&E(Ye(Nn)),null))},[E,Ye]),Zn=sn.useCallback(()=>Xe(null),[]),$n=sn.useCallback(Nn=>{v(qn=>van(Nn,qn))},[]),Vn=sn.useCallback((Nn,qn)=>{ge.current.set(qn.id,qn.position),ce(!0)},[]),_=sn.useCallback(Nn=>{const qn=[];for(const Jt of Nn){if(Jt.type==="remove"&&Jt.id.startsWith("binding:")){Xe(Jt.id);continue}qn.push(Jt)}qn.length>0&&te(Jt=>yan(qn,Jt))},[]),je=sn.useCallback(()=>{ge.current.clear(),ce(!1),Me(Nn=>Nn+1)},[]),on=sn.useCallback((Nn,qn)=>{if(qn.type!=="agent")return;let Jt=qn.position.x+DX/2,Kt=qn.position.y+LX/2;if(qn.parentId){const gr=ie.current.find(Ki=>Ki.id===qn.parentId);gr&&(Jt+=gr.position.x,Kt+=gr.position.y)}const Oi=Math.max(D(),1);N(Jt,Kt,{zoom:Oi,duration:350})},[N,D]),rn=sn.useCallback(Nn=>{var Kt;const qn=p.find(Oi=>Oi.id===Nn.source),Jt=p.find(Oi=>Oi.id===Nn.target);return(Kt=qn==null?void 0:qn.data)!=null&&Kt.isGhost?!1:(qn==null?void 0:qn.type)==="adapter"&&(Jt==null?void 0:Jt.type)==="agent"},[p]),Sn=sn.useCallback(Nn=>{const qn=p.find(Kt=>Kt.id===Nn.source),Jt=p.find(Kt=>Kt.id===Nn.target);(qn==null?void 0:qn.type)!=="adapter"||(Jt==null?void 0:Jt.type)!=="agent"||Z({sourceAdapterId:qn.id.replace(/^adapter:/,""),targetAgentId:Jt.id})},[p]),Bn=sn.useCallback(Nn=>{P(mBn(Nn)),Z(null)},[P]),dn=sn.useCallback((Nn,qn)=>{if(!qn.nodeId)return;const Jt=p.find(Kt=>Kt.id===qn.nodeId);(Jt==null?void 0:Jt.type)==="adapter"&&U(qn.nodeId)},[p]),Gn=sn.useCallback(()=>{U(null)},[]);return{layoutedNodes:F,setLayoutedNodes:v,layoutedEdges:q,setLayoutedEdges:te,layoutedNodesRef:ie,isLayouting:pe,setIsLayouting:oe,manualPositions:ge,layoutVersion:ee,pendingConnection:z,setPendingConnection:Z,connectingFrom:ne,hasDraggedNodes:xe,pendingDeleteEdgeId:Ke,confirmDeleteBinding:jn,cancelDeleteBinding:Zn,handleDeleteBinding:kn,handleNodesChange:$n,handleNodeDragStop:Vn,handleEdgesChange:_,handleResetLayout:je,handleNodeClick:on,isValidConnection:rn,handleConnect:Sn,handleBindingConfirm:Bn,handleConnectStart:dn,handleConnectEnd:Gn}}const Shn=["#6366f1","#f59e0b","#10b981","#ec4899","#8b5cf6","#14b8a6","#f97316","#06b6d4"];function cHn(p){return Shn[p%Shn.length]}function uHn(p,E,P,N,D,F,v,q){var ne,U,xe,ce;if(!p.length)return{rawNodes:[],rawEdges:[],legendEntries:[],useGroups:!1};const te=[],ie=[],pe=[],oe=(N==null?void 0:N.filter(ge=>ge.config.type!=="claude-code"))??[];if(P&&oe.length>0)for(const ge of oe)te.push({id:`adapter:${ge.config.id}`,type:"adapter",position:{x:0,y:0},data:{adapterName:ge.status.displayName,adapterType:ge.config.type,adapterStatus:ge.status.state==="connected"?"running":ge.status.state==="error"?"error":"stopped",bindingCount:F.get(ge.config.id)??0,label:ge.config.label}});P&&oe.length===0&&te.push({id:"ghost-adapter",type:"adapter",position:{x:0,y:0},data:{adapterName:"Add a platform",adapterType:"ghost",adapterStatus:"stopped",bindingCount:0,isGhost:!0,onGhostClick:()=>{var ge;return(ge=q.onGhostClick)==null?void 0:ge.call(q)}}});const z=p.length>=1;for(let ge=0;ge<p.length;ge++){const ee=p[ge],Me=cHn(ge);pe.push({namespace:ee.namespace,color:Me});const Ke=`group:${ee.namespace}`,Xe=ee.agents.filter(Ye=>Ye.healthStatus==="active").length;z&&te.push({id:Ke,type:"namespace-group",position:{x:0,y:0},data:{namespace:ee.namespace,agentCount:ee.agentCount,activeCount:Xe,color:Me}});for(const Ye of ee.agents){const kn=Ye,jn=YFn(kn),Zn={id:Ye.id,type:"agent",position:{x:0,y:0},data:{label:Ye.name,runtime:Ye.runtime,healthStatus:kn.healthStatus??"stale",capabilities:Ye.capabilities??[],namespace:ee.namespace,namespaceColor:Me,description:Ye.description||void 0,relayAdapters:kn.relayAdapters??[],taskCount:kn.taskCount??0,lastSeenAt:kn.lastSeenAt??null,behavior:Ye.behavior?{responseMode:Ye.behavior.responseMode}:void 0,color:kn.color??null,avatarColor:jn.color,emoji:jn.emoji,projectPath:kn.projectPath??"",onViewProfile:$n=>{var Vn;return(Vn=q.onViewProfile)==null?void 0:Vn.call(q,$n,kn.projectPath??"")},onSelectAgent:$n=>{var Vn;return(Vn=q.onSelectAgent)==null?void 0:Vn.call(q,$n,kn.projectPath??"")},onOpenChat:($n,Vn)=>{var _;return(_=q.onOpenChat)==null?void 0:_.call(q,Vn)}}};z&&(Zn.parentId=Ke,Zn.extent="parent"),te.push(Zn)}}if(P&&(D!=null&&D.length))for(const ge of D){const ee=`adapter:${ge.adapterId}`,Me=ge.agentId,Ke=te.some(Ye=>Ye.id===ee),Xe=te.some(Ye=>Ye.id===Me);!Ke||!Xe||ie.push({id:`binding:${ge.id}`,source:ee,target:Me,type:"binding",deletable:!0,data:{label:ge.label||void 0,sessionStrategy:ge.sessionStrategy,chatId:ge.chatId||void 0,channelType:ge.channelType||void 0,onDelete:v}})}const Z=E.filter(ge=>ge.origin!=="default");for(const ge of Z){const ee=z?`group:${ge.sourceNamespace}`:((U=(ne=p[0])==null?void 0:ne.agents[0])==null?void 0:U.id)??"",Me=z?`group:${ge.targetNamespace}`:((ce=(xe=p[0])==null?void 0:xe.agents[0])==null?void 0:ce.id)??"";if(!ee||!Me)continue;const Ke=ge.action==="deny";ie.push({id:`e:${ge.sourceNamespace}-${ge.targetNamespace}:${ge.action}`,source:ee,target:Me,type:Ke?"cross-namespace-deny":"cross-namespace",animated:!Ke,deletable:!1,data:{label:`${ge.sourceNamespace} › ${ge.targetNamespace}`}})}return{rawNodes:te,rawEdges:ie,legendEntries:pe,useGroups:z}}function oHn(p){const E=_X(N=>N.pulse),P=mN();ZFn("relay_flow",N=>{if(!p||P)return;const D=eBn.safeParse(N);if(!D.success)return;const{bindingId:F,direction:v}=D.data;E(`binding:${F}`,v)})}const sHn={agent:SGn,adapter:BGn,"namespace-group":XGn},fHn={binding:zGn,"cross-namespace":KGn,"cross-namespace-deny":WGn};function GHn(p){return ae.jsx(Uan,{children:ae.jsx(lHn,{...p})})}function lHn({onSelectAgent:p,onViewProfile:E,onGoToDiscovery:P,onOpenChat:N,onOpenAdapterCatalog:D}){const{data:F,isLoading:v,isError:q,refetch:te}=jBn(),ie=F==null?void 0:F.namespaces,pe=F==null?void 0:F.accessRules,oe=xBn(),{data:z}=nBn(oe),{data:Z}=MBn(),{mutate:ne}=vBn(),{mutate:U}=CBn();oHn(oe),sn.useEffect(()=>()=>{_X.getState().reset()},[]);const xe=AX(E),ce=AX(p),ge=AX(N),ee=AX(D),Me=sn.useMemo(()=>{const pr=new Map;for(const Co of Z??[])pr.set(Co.adapterId,(pr.get(Co.adapterId)??0)+1);return pr},[Z]),Ke=tBn(()=>{}),{rawNodes:Xe,rawEdges:Ye,legendEntries:kn,useGroups:jn}=sn.useMemo(()=>uHn(ie??[],pe??[],oe,z,Z,Me,pr=>Ke.read()(pr),{onViewProfile:(pr,Co)=>{var bo;return(bo=xe.read())==null?void 0:bo(pr,Co)},onSelectAgent:(pr,Co)=>{var bo;return(bo=ce.read())==null?void 0:bo(pr,Co)},onOpenChat:pr=>{var Co;return(Co=ge.read())==null?void 0:Co(pr)},onGhostClick:()=>{var pr;return(pr=ee.read())==null?void 0:pr()}}),[ie,pe,oe,z,Z,Me,Ke,xe,ce,ge,ee]),{layoutedNodes:Zn,setLayoutedNodes:$n,layoutedEdges:Vn,setLayoutedEdges:_,layoutedNodesRef:je,isLayouting:on,setIsLayouting:rn,manualPositions:Sn,layoutVersion:Bn,pendingConnection:dn,setPendingConnection:Gn,connectingFrom:Nn,hasDraggedNodes:qn,pendingDeleteEdgeId:Jt,confirmDeleteBinding:Kt,cancelDeleteBinding:Oi,handleDeleteBinding:gr,handleNodesChange:Ki,handleNodeDragStop:Kn,handleEdgesChange:ei,handleResetLayout:rr,handleNodeClick:cr,isValidConnection:_i,handleConnect:sr,handleBindingConfirm:ri,handleConnectStart:bi,handleConnectEnd:Mc}=rHn({rawNodes:Xe,deleteBindingMutate:U,createBindingMutate:ne});Ke.write(gr);const ku=sn.useMemo(()=>{const pr=Xe.map(bo=>`${bo.id}:${bo.type}:${bo.parentId??""}`).sort().join("|"),Co=Ye.map(bo=>`${bo.source}->${bo.target}:${bo.type}`).sort().join("|");return`${pr}::${Co}`},[Xe,Ye]);sn.useEffect(()=>{let pr=!1;return rn(!0),iHn(Xe,Ye,jn).then(Co=>{if(!pr){const bo=Co.map(v1=>{const Rp=Sn.current.get(v1.id);return Rp?{...v1,position:Rp}:v1});$n(bo),_(Ye),rn(!1)}}).catch(()=>{pr||rn(!1)}),()=>{pr=!0}},[ku,jn,Bn]),sn.useEffect(()=>{je.current=Zn},[Zn,je]);const Pr=oe&&((z==null?void 0:z.length)??0)>0,xa=((Z==null?void 0:Z.length)??0)>0,zl=Xe.some(pr=>pr.type==="agent");if(v||on&&Zn.length===0)return ae.jsx("div",{className:"flex h-full items-center justify-center",children:ae.jsx($ln,{size:"md",className:"text-muted-foreground",label:"Loading the topology"})});if(q)return ae.jsx(ABn,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Couldn’t reach DorkOS. Check that it’s running.",onRetry:()=>void te()});if(!Xe.length)return ae.jsx(EBn,{className:"h-full",icon:iBn,headline:"No agents found yet",headingLevel:3,description:"Find agents on this computer to see them here.",action:P?{label:"Go to Discovery",onClick:P,variant:"outline"}:void 0});const Yb=Xe.filter(pr=>pr.type==="agent").length,Cd=Xe.filter(pr=>pr.type==="adapter").length,xd=Ye.filter(pr=>pr.type==="binding").length;return ae.jsxs("div",{className:n2("topology-container absolute inset-0",Nn&&"is-connecting"),role:"group","aria-roledescription":"agent map","aria-label":"Map of your agents","aria-describedby":"topology-graph-summary",children:[ae.jsxs("div",{id:"topology-graph-summary",className:"sr-only",children:[ae.jsxs("p",{children:[Yb," agent",Yb!==1?"s":"",", ",Cd," platform",Cd!==1?"s":"",", ",xd," connection",xd!==1?"s":"","."]}),ae.jsx("p",{children:"To connect by keyboard, use the agent’s Connections section."})]}),ae.jsxs($Jn,{nodes:Zn,edges:Vn,nodeTypes:sHn,edgeTypes:fHn,deleteKeyCode:null,onNodesChange:Ki,onEdgesChange:ei,onNodeClick:cr,onNodeDragStop:Kn,onConnect:Pr?sr:void 0,onConnectStart:Pr?bi:void 0,onConnectEnd:Pr?Mc:void 0,isValidConnection:Pr?_i:void 0,nodesConnectable:Pr,nodesFocusable:!0,edgesFocusable:!0,fitView:!0,fitViewOptions:{duration:400,padding:.15},colorMode:"system",onlyRenderVisibleElements:!0,proOptions:{hideAttribution:!0},children:[ae.jsx(GJn,{variant:J3.Dots,gap:16,size:1,color:"hsl(var(--muted-foreground) / 0.15)"}),ae.jsx(fGn,{nodeColor:pr=>pr.type==="adapter"?"hsl(var(--muted-foreground) / 0.4)":pr.type==="namespace-group"?"transparent":pr.data.namespaceColor??"hsl(var(--primary))",maskColor:"hsl(var(--background) / 0.8)",pannable:!0,zoomable:!0,className:"!right-2 !bottom-2",style:{height:80}}),ae.jsx(WJn,{showInteractive:!1}),qn&&ae.jsx("div",{className:"absolute bottom-2 left-2 z-10",children:ae.jsxs(Phn,{variant:"outline",size:"xs",onClick:rr,title:"Reset layout",className:"shadow-sm",children:[ae.jsx(rBn,{}),"Reset layout"]})}),ae.jsx(QGn,{namespaces:kn})]}),oe&&zl&&!Pr&&ae.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Add a chat app in Connections, then connect it to an agent"}),Pr&&zl&&!xa&&ae.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Drag from a platform to an agent to connect them"}),on&&ae.jsx("div",{className:"pointer-events-none absolute top-3 right-3 z-10",children:ae.jsx($ln,{className:"text-muted-foreground/70"})}),dn&&ae.jsx(yBn,{open:!0,onOpenChange:pr=>{pr||Gn(null)},mode:"create",initialValues:{adapterId:dn.sourceAdapterId,agentId:dn.targetAgentId},onConfirm:ri}),ae.jsx(cBn,{open:!!Jt,onOpenChange:pr=>{pr||Oi()},children:ae.jsxs(uBn,{children:[ae.jsxs(oBn,{children:[ae.jsx(sBn,{children:"Remove this connection?"}),ae.jsx(fBn,{children:"The agent stops getting messages from it."})]}),ae.jsxs(lBn,{children:[ae.jsx(hBn,{children:"Cancel"}),ae.jsx(aBn,{onClick:Kt,className:dBn({variant:"destructive"}),children:"Remove connection"})]})]})})]})}export{GHn as TopologyGraph};
30
+ ... Falling back to non-web worker version.`);if(!Me.workerFactory){var Ye=P("./elk-worker.min.js"),kn=Ye.Worker;Me.workerFactory=function(jn){return new kn(jn)}}return te(this,ge,[Me])}return Z(ge,ce),v(ge)})(U);Object.defineProperty(N.exports,"__esModule",{value:!0}),N.exports=xe,xe.default=xe},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(P,N,D){var F=typeof Worker<"u"?Worker:void 0;N.exports=F},{}]},{},[3])(3)})})(yge)),yge.exports}var ZGn=YGn();const eHn=QFn(ZGn),nHn=new eHn,DX=240,LX=150,tHn=48;async function iHn(p,E,P){if(p.length===0)return p;const N=p.filter(z=>z.type==="namespace-group"),D=p.filter(z=>z.type==="agent"),F=p.filter(z=>z.type==="adapter"),v=F.map(z=>{var Z,ne;return{id:z.id,width:((Z=z.style)==null?void 0:Z.width)??DX,height:((ne=z.style)==null?void 0:ne.height)??LX,layoutOptions:{"elk.layered.layering.layerConstraint":"FIRST"}}}),q=P?N.map(z=>{const Z=D.filter(ne=>ne.parentId===z.id).map(ne=>({id:ne.id,width:DX,height:LX}));return{id:z.id,width:0,height:0,layoutOptions:{"elk.padding":`[top=${tHn},left=24,bottom=24,right=24]`,"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"60"},children:Z}}):D.map(z=>({id:z.id,width:DX,height:LX,...F.length>0?{layoutOptions:{"elk.layered.layering.layerConstraint":"LAST"}}:{}})),te=[...v,...q],ie=E.map(z=>({id:z.id,sources:[z.source],targets:[z.target]})),pe={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"120"},children:te,edges:ie},oe=await nHn.layout(pe);return p.map(z=>{var ne,U,xe,ce,ge;if(z.type==="namespace-group"){const ee=(ne=oe.children)==null?void 0:ne.find(Me=>Me.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0},style:{width:ee.width??300,height:ee.height??200}}:z}if(z.type==="adapter"){const ee=(U=oe.children)==null?void 0:U.find(Me=>Me.id===z.id);return ee?{...z,position:{x:ee.x??0,y:ee.y??0}}:z}if(P&&z.parentId){const ee=(xe=oe.children)==null?void 0:xe.find(Ke=>Ke.id===z.parentId),Me=(ce=ee==null?void 0:ee.children)==null?void 0:ce.find(Ke=>Ke.id===z.id);return Me?{...z,position:{x:Me.x??0,y:Me.y??0}}:z}const Z=(ge=oe.children)==null?void 0:ge.find(ee=>ee.id===z.id);return Z?{...z,position:{x:Z.x??0,y:Z.y??0}}:z})}function rHn({rawNodes:p,deleteBindingMutate:E,createBindingMutate:P}){const{setCenter:N,getZoom:D}=zX(),[F,v]=sn.useState([]),[q,te]=sn.useState([]),ie=sn.useRef([]),[pe,oe]=sn.useState(!0),[z,Z]=sn.useState(null),[ne,U]=sn.useState(null),[xe,ce]=sn.useState(!1),ge=sn.useRef(new Map),[ee,Me]=sn.useState(0),[Ke,Xe]=sn.useState(null),Ye=sn.useCallback(Nn=>Nn.replace(/^binding:/,""),[]),kn=sn.useCallback(Nn=>{Xe(Nn)},[]),jn=sn.useCallback(()=>{Xe(Nn=>(Nn&&E(Ye(Nn)),null))},[E,Ye]),Zn=sn.useCallback(()=>Xe(null),[]),$n=sn.useCallback(Nn=>{v(qn=>van(Nn,qn))},[]),Vn=sn.useCallback((Nn,qn)=>{ge.current.set(qn.id,qn.position),ce(!0)},[]),_=sn.useCallback(Nn=>{const qn=[];for(const Jt of Nn){if(Jt.type==="remove"&&Jt.id.startsWith("binding:")){Xe(Jt.id);continue}qn.push(Jt)}qn.length>0&&te(Jt=>yan(qn,Jt))},[]),je=sn.useCallback(()=>{ge.current.clear(),ce(!1),Me(Nn=>Nn+1)},[]),on=sn.useCallback((Nn,qn)=>{if(qn.type!=="agent")return;let Jt=qn.position.x+DX/2,Kt=qn.position.y+LX/2;if(qn.parentId){const gr=ie.current.find(Ki=>Ki.id===qn.parentId);gr&&(Jt+=gr.position.x,Kt+=gr.position.y)}const Oi=Math.max(D(),1);N(Jt,Kt,{zoom:Oi,duration:350})},[N,D]),rn=sn.useCallback(Nn=>{var Kt;const qn=p.find(Oi=>Oi.id===Nn.source),Jt=p.find(Oi=>Oi.id===Nn.target);return(Kt=qn==null?void 0:qn.data)!=null&&Kt.isGhost?!1:(qn==null?void 0:qn.type)==="adapter"&&(Jt==null?void 0:Jt.type)==="agent"},[p]),Sn=sn.useCallback(Nn=>{const qn=p.find(Kt=>Kt.id===Nn.source),Jt=p.find(Kt=>Kt.id===Nn.target);(qn==null?void 0:qn.type)!=="adapter"||(Jt==null?void 0:Jt.type)!=="agent"||Z({sourceAdapterId:qn.id.replace(/^adapter:/,""),targetAgentId:Jt.id})},[p]),Bn=sn.useCallback(Nn=>{P(mBn(Nn)),Z(null)},[P]),dn=sn.useCallback((Nn,qn)=>{if(!qn.nodeId)return;const Jt=p.find(Kt=>Kt.id===qn.nodeId);(Jt==null?void 0:Jt.type)==="adapter"&&U(qn.nodeId)},[p]),Gn=sn.useCallback(()=>{U(null)},[]);return{layoutedNodes:F,setLayoutedNodes:v,layoutedEdges:q,setLayoutedEdges:te,layoutedNodesRef:ie,isLayouting:pe,setIsLayouting:oe,manualPositions:ge,layoutVersion:ee,pendingConnection:z,setPendingConnection:Z,connectingFrom:ne,hasDraggedNodes:xe,pendingDeleteEdgeId:Ke,confirmDeleteBinding:jn,cancelDeleteBinding:Zn,handleDeleteBinding:kn,handleNodesChange:$n,handleNodeDragStop:Vn,handleEdgesChange:_,handleResetLayout:je,handleNodeClick:on,isValidConnection:rn,handleConnect:Sn,handleBindingConfirm:Bn,handleConnectStart:dn,handleConnectEnd:Gn}}const Shn=["#6366f1","#f59e0b","#10b981","#ec4899","#8b5cf6","#14b8a6","#f97316","#06b6d4"];function cHn(p){return Shn[p%Shn.length]}function uHn(p,E,P,N,D,F,v,q){var ne,U,xe,ce;if(!p.length)return{rawNodes:[],rawEdges:[],legendEntries:[],useGroups:!1};const te=[],ie=[],pe=[],oe=(N==null?void 0:N.filter(ge=>ge.config.type!=="claude-code"))??[];if(P&&oe.length>0)for(const ge of oe)te.push({id:`adapter:${ge.config.id}`,type:"adapter",position:{x:0,y:0},data:{adapterName:ge.status.displayName,adapterType:ge.config.type,adapterStatus:ge.status.state==="connected"?"running":ge.status.state==="error"?"error":"stopped",bindingCount:F.get(ge.config.id)??0,label:ge.config.label}});P&&oe.length===0&&te.push({id:"ghost-adapter",type:"adapter",position:{x:0,y:0},data:{adapterName:"Add a platform",adapterType:"ghost",adapterStatus:"stopped",bindingCount:0,isGhost:!0,onGhostClick:()=>{var ge;return(ge=q.onGhostClick)==null?void 0:ge.call(q)}}});const z=p.length>=1;for(let ge=0;ge<p.length;ge++){const ee=p[ge],Me=cHn(ge);pe.push({namespace:ee.namespace,color:Me});const Ke=`group:${ee.namespace}`,Xe=ee.agents.filter(Ye=>Ye.healthStatus==="active").length;z&&te.push({id:Ke,type:"namespace-group",position:{x:0,y:0},data:{namespace:ee.namespace,agentCount:ee.agentCount,activeCount:Xe,color:Me}});for(const Ye of ee.agents){const kn=Ye,jn=YFn(kn),Zn={id:Ye.id,type:"agent",position:{x:0,y:0},data:{label:Ye.name,runtime:Ye.runtime,healthStatus:kn.healthStatus??"stale",capabilities:Ye.capabilities??[],namespace:ee.namespace,namespaceColor:Me,description:Ye.description||void 0,relayAdapters:kn.relayAdapters??[],taskCount:kn.taskCount??0,lastSeenAt:kn.lastSeenAt??null,behavior:Ye.behavior?{responseMode:Ye.behavior.responseMode}:void 0,color:kn.color??null,avatarColor:jn.color,emoji:jn.emoji,projectPath:kn.projectPath??"",onViewProfile:$n=>{var Vn;return(Vn=q.onViewProfile)==null?void 0:Vn.call(q,$n,kn.projectPath??"")},onSelectAgent:$n=>{var Vn;return(Vn=q.onSelectAgent)==null?void 0:Vn.call(q,$n,kn.projectPath??"")},onOpenChat:($n,Vn)=>{var _;return(_=q.onOpenChat)==null?void 0:_.call(q,Vn)}}};z&&(Zn.parentId=Ke,Zn.extent="parent"),te.push(Zn)}}if(P&&(D!=null&&D.length))for(const ge of D){const ee=`adapter:${ge.adapterId}`,Me=ge.agentId,Ke=te.some(Ye=>Ye.id===ee),Xe=te.some(Ye=>Ye.id===Me);!Ke||!Xe||ie.push({id:`binding:${ge.id}`,source:ee,target:Me,type:"binding",deletable:!0,data:{label:ge.label||void 0,sessionStrategy:ge.sessionStrategy,chatId:ge.chatId||void 0,channelType:ge.channelType||void 0,onDelete:v}})}const Z=E.filter(ge=>ge.origin!=="default");for(const ge of Z){const ee=z?`group:${ge.sourceNamespace}`:((U=(ne=p[0])==null?void 0:ne.agents[0])==null?void 0:U.id)??"",Me=z?`group:${ge.targetNamespace}`:((ce=(xe=p[0])==null?void 0:xe.agents[0])==null?void 0:ce.id)??"";if(!ee||!Me)continue;const Ke=ge.action==="deny";ie.push({id:`e:${ge.sourceNamespace}-${ge.targetNamespace}:${ge.action}`,source:ee,target:Me,type:Ke?"cross-namespace-deny":"cross-namespace",animated:!Ke,deletable:!1,data:{label:`${ge.sourceNamespace} › ${ge.targetNamespace}`}})}return{rawNodes:te,rawEdges:ie,legendEntries:pe,useGroups:z}}function oHn(p){const E=_X(N=>N.pulse),P=mN();ZFn("relay_flow",N=>{if(!p||P)return;const D=eBn.safeParse(N);if(!D.success)return;const{bindingId:F,direction:v}=D.data;E(`binding:${F}`,v)})}const sHn={agent:SGn,adapter:BGn,"namespace-group":XGn},fHn={binding:zGn,"cross-namespace":KGn,"cross-namespace-deny":WGn};function JHn(p){return ae.jsx(Uan,{children:ae.jsx(lHn,{...p})})}function lHn({onSelectAgent:p,onViewProfile:E,onGoToDiscovery:P,onOpenChat:N,onOpenAdapterCatalog:D}){const{data:F,isLoading:v,isError:q,refetch:te}=jBn(),ie=F==null?void 0:F.namespaces,pe=F==null?void 0:F.accessRules,oe=xBn(),{data:z}=nBn(oe),{data:Z}=MBn(),{mutate:ne}=vBn(),{mutate:U}=CBn();oHn(oe),sn.useEffect(()=>()=>{_X.getState().reset()},[]);const xe=AX(E),ce=AX(p),ge=AX(N),ee=AX(D),Me=sn.useMemo(()=>{const pr=new Map;for(const Co of Z??[])pr.set(Co.adapterId,(pr.get(Co.adapterId)??0)+1);return pr},[Z]),Ke=tBn(()=>{}),{rawNodes:Xe,rawEdges:Ye,legendEntries:kn,useGroups:jn}=sn.useMemo(()=>uHn(ie??[],pe??[],oe,z,Z,Me,pr=>Ke.read()(pr),{onViewProfile:(pr,Co)=>{var bo;return(bo=xe.read())==null?void 0:bo(pr,Co)},onSelectAgent:(pr,Co)=>{var bo;return(bo=ce.read())==null?void 0:bo(pr,Co)},onOpenChat:pr=>{var Co;return(Co=ge.read())==null?void 0:Co(pr)},onGhostClick:()=>{var pr;return(pr=ee.read())==null?void 0:pr()}}),[ie,pe,oe,z,Z,Me,Ke,xe,ce,ge,ee]),{layoutedNodes:Zn,setLayoutedNodes:$n,layoutedEdges:Vn,setLayoutedEdges:_,layoutedNodesRef:je,isLayouting:on,setIsLayouting:rn,manualPositions:Sn,layoutVersion:Bn,pendingConnection:dn,setPendingConnection:Gn,connectingFrom:Nn,hasDraggedNodes:qn,pendingDeleteEdgeId:Jt,confirmDeleteBinding:Kt,cancelDeleteBinding:Oi,handleDeleteBinding:gr,handleNodesChange:Ki,handleNodeDragStop:Kn,handleEdgesChange:ei,handleResetLayout:rr,handleNodeClick:cr,isValidConnection:_i,handleConnect:sr,handleBindingConfirm:ri,handleConnectStart:bi,handleConnectEnd:Mc}=rHn({rawNodes:Xe,deleteBindingMutate:U,createBindingMutate:ne});Ke.write(gr);const ku=sn.useMemo(()=>{const pr=Xe.map(bo=>`${bo.id}:${bo.type}:${bo.parentId??""}`).sort().join("|"),Co=Ye.map(bo=>`${bo.source}->${bo.target}:${bo.type}`).sort().join("|");return`${pr}::${Co}`},[Xe,Ye]);sn.useEffect(()=>{let pr=!1;return rn(!0),iHn(Xe,Ye,jn).then(Co=>{if(!pr){const bo=Co.map(v1=>{const Rp=Sn.current.get(v1.id);return Rp?{...v1,position:Rp}:v1});$n(bo),_(Ye),rn(!1)}}).catch(()=>{pr||rn(!1)}),()=>{pr=!0}},[ku,jn,Bn]),sn.useEffect(()=>{je.current=Zn},[Zn,je]);const Pr=oe&&((z==null?void 0:z.length)??0)>0,xa=((Z==null?void 0:Z.length)??0)>0,zl=Xe.some(pr=>pr.type==="agent");if(v||on&&Zn.length===0)return ae.jsx("div",{className:"flex h-full items-center justify-center",children:ae.jsx($ln,{size:"md",className:"text-muted-foreground",label:"Loading the topology"})});if(q)return ae.jsx(ABn,{className:"h-full",title:"Couldn’t draw the map of your agents",description:"Couldn’t reach DorkOS. Check that it’s running.",onRetry:()=>void te()});if(!Xe.length)return ae.jsx(EBn,{className:"h-full",icon:iBn,headline:"No agents found yet",headingLevel:3,description:"Find agents on this computer to see them here.",action:P?{label:"Go to Discovery",onClick:P,variant:"outline"}:void 0});const Yb=Xe.filter(pr=>pr.type==="agent").length,Cd=Xe.filter(pr=>pr.type==="adapter").length,xd=Ye.filter(pr=>pr.type==="binding").length;return ae.jsxs("div",{className:n2("topology-container absolute inset-0",Nn&&"is-connecting"),role:"group","aria-roledescription":"agent map","aria-label":"Map of your agents","aria-describedby":"topology-graph-summary",children:[ae.jsxs("div",{id:"topology-graph-summary",className:"sr-only",children:[ae.jsxs("p",{children:[Yb," agent",Yb!==1?"s":"",", ",Cd," platform",Cd!==1?"s":"",", ",xd," connection",xd!==1?"s":"","."]}),ae.jsx("p",{children:"To connect by keyboard, use the agent’s Connections section."})]}),ae.jsxs($Jn,{nodes:Zn,edges:Vn,nodeTypes:sHn,edgeTypes:fHn,deleteKeyCode:null,onNodesChange:Ki,onEdgesChange:ei,onNodeClick:cr,onNodeDragStop:Kn,onConnect:Pr?sr:void 0,onConnectStart:Pr?bi:void 0,onConnectEnd:Pr?Mc:void 0,isValidConnection:Pr?_i:void 0,nodesConnectable:Pr,nodesFocusable:!0,edgesFocusable:!0,fitView:!0,fitViewOptions:{duration:400,padding:.15},colorMode:"system",onlyRenderVisibleElements:!0,proOptions:{hideAttribution:!0},children:[ae.jsx(GJn,{variant:J3.Dots,gap:16,size:1,color:"hsl(var(--muted-foreground) / 0.15)"}),ae.jsx(fGn,{nodeColor:pr=>pr.type==="adapter"?"hsl(var(--muted-foreground) / 0.4)":pr.type==="namespace-group"?"transparent":pr.data.namespaceColor??"hsl(var(--primary))",maskColor:"hsl(var(--background) / 0.8)",pannable:!0,zoomable:!0,className:"!right-2 !bottom-2",style:{height:80}}),ae.jsx(WJn,{showInteractive:!1}),qn&&ae.jsx("div",{className:"absolute bottom-2 left-2 z-10",children:ae.jsxs(Phn,{variant:"outline",size:"xs",onClick:rr,title:"Reset layout",className:"shadow-sm",children:[ae.jsx(rBn,{}),"Reset layout"]})}),ae.jsx(QGn,{namespaces:kn})]}),oe&&zl&&!Pr&&ae.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Add a chat app in Connections, then connect it to an agent"}),Pr&&zl&&!xa&&ae.jsx("div",{className:"bg-muted/80 text-muted-foreground pointer-events-none absolute bottom-3 left-1/2 -translate-x-1/2 rounded-md px-3 py-1.5 text-xs",children:"Drag from a platform to an agent to connect them"}),on&&ae.jsx("div",{className:"pointer-events-none absolute top-3 right-3 z-10",children:ae.jsx($ln,{className:"text-muted-foreground/70"})}),dn&&ae.jsx(yBn,{open:!0,onOpenChange:pr=>{pr||Gn(null)},mode:"create",initialValues:{adapterId:dn.sourceAdapterId,agentId:dn.targetAgentId},onConfirm:ri}),ae.jsx(cBn,{open:!!Jt,onOpenChange:pr=>{pr||Oi()},children:ae.jsxs(uBn,{children:[ae.jsxs(oBn,{children:[ae.jsx(sBn,{children:"Remove this connection?"}),ae.jsx(fBn,{children:"The agent stops getting messages from it."})]}),ae.jsxs(lBn,{children:[ae.jsx(hBn,{children:"Cancel"}),ae.jsx(aBn,{onClick:Kt,className:dBn({variant:"destructive"}),children:"Remove connection"})]})]})})]})}export{JHn as TopologyGraph};