n8n-editor-ui 2.3.1 → 2.3.2
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.
- package/dist/assets/{AddDataTableModal-DnW0v2OC.js → AddDataTableModal-CZ7H2ls-.js} +13 -14
- package/dist/assets/{AgentEditorModal-Djnq_0FY.js → AgentEditorModal-CYfc87dn.js} +20 -21
- package/dist/assets/{Alert-KBN7v2aB.js → Alert-BSiQ7W4W.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee-QStDN6Th.js → AnnotationTagsDropdown.ee-DZn9-8CS.js} +2 -2
- package/dist/assets/{AuthView-8nC1kvaA.js → AuthView-B9a_Jx6c.js} +3 -3
- package/dist/assets/{BottomMenu-B-HQRX4l.js → BottomMenu-BwGlRZ_G.js} +8 -8
- package/dist/assets/{ChangePasswordView-B4U_r0Av.js → ChangePasswordView-7QMpmN_x.js} +11 -12
- package/dist/assets/{ChatAgentAvatar-DAg-f4vg.js → ChatAgentAvatar-_TzLZER3.js} +5 -5
- package/dist/assets/{ChatLayout-BfWVFhWE.js → ChatLayout-CNhEPBP9.js} +5 -5
- package/dist/assets/{ChatPersonalAgentsView-DTF6JtUh.js → ChatPersonalAgentsView-DdcAu72z.js} +17 -18
- package/dist/assets/{ChatSidebar-DU5x3UPL.js → ChatSidebar-8R1HNKyb.js} +35 -36
- package/dist/assets/{ChatView-D8ScSRRr.js → ChatView-6z83bZ9r.js} +24 -25
- package/dist/assets/{ChatWorkflowAgentsView-Kiqxl5Dz.js → ChatWorkflowAgentsView-1mBz6Fn-.js} +17 -18
- package/dist/assets/CollectionParameter-DMUDKrih.js +49 -0
- package/dist/assets/{CommunityNodeUpdateInfo-DsR3DdTu.js → CommunityNodeUpdateInfo-BD_eDnNX.js} +6 -6
- package/dist/assets/{CopyInput-DJ2yTciL.js → CopyInput-NyYIfFuD.js} +3 -3
- package/dist/assets/{CredentialIcon-DJybkA4h.js → CredentialIcon-DM0H_1_e.js} +3 -3
- package/dist/assets/{CredentialPicker-Bao3p-41.js → CredentialPicker-Cgr3c6NM.js} +4 -4
- package/dist/assets/{CredentialSelectorModal-DaRU1zXR.js → CredentialSelectorModal-B13bN34S.js} +14 -15
- package/dist/assets/{CredentialsView-wSH7BheV.js → CredentialsView-D6QVsDig.js} +30 -31
- package/dist/assets/{DataTableActions-BMf3BHPM.js → DataTableActions-C6NNwwCl.js} +4 -4
- package/dist/assets/{DataTableDetailsView-CSIqpXLA.js → DataTableDetailsView-BC2xF0Ff.js} +17 -18
- package/dist/assets/{DataTableView-Blgv7Ln8.js → DataTableView-CIk4UHUh.js} +27 -28
- package/dist/assets/DemoFooter-VEuYkLtF.js +62 -0
- package/dist/assets/{Draggable-DQjeTEFr.js → Draggable-Dgx1HOr4.js} +1 -1
- package/dist/assets/{EmptySharedSectionActionBox-CogY0uW5.js → EmptySharedSectionActionBox-BINss0hO.js} +2 -2
- package/dist/assets/{EnterpriseEdition.ee-CFcDsU4a.js → EnterpriseEdition.ee-D1pSDOIk.js} +1 -1
- package/dist/assets/{EntityNotFound-DmFtFwaH.js → EntityNotFound-Dk9s3CwF.js} +3 -4
- package/dist/assets/{EntityUnAuthorised-CoFxjgq9.js → EntityUnAuthorised-h6YriaK9.js} +3 -4
- package/dist/assets/{ErrorView-fGVmNs6l.js → ErrorView-ohtS1np5.js} +5 -6
- package/dist/assets/{EvaluationsRootView-CnsgFQrF.js → EvaluationsRootView-DNvFGoPg.js} +18 -19
- package/dist/assets/{EvaluationsView-V0hiFoAc.js → EvaluationsView-Xyh73Nv7.js} +17 -18
- package/dist/assets/{ExecutionsTime-SXIffRZe.js → ExecutionsTime-DGdwrKBk.js} +8 -8
- package/dist/assets/{ExecutionsView-1YV6qmab.js → ExecutionsView-Cqqq9umx.js} +30 -31
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-CwhFUTJx.js → ExternalSecretsProviderConnectionSwitch.ee-CQRmvkeX.js} +3 -3
- package/dist/assets/{FixedCollectionParameter-B__avC2s.js → FixedCollectionParameter-B_Roz0dU.js} +41 -42
- package/dist/assets/{ForgotMyPasswordView-Bgtqx-Pb.js → ForgotMyPasswordView-qfOZaZhD.js} +11 -12
- package/dist/assets/{InsightsChartAverageRuntime-gpxjFP2f.js → InsightsChartAverageRuntime-mcy8IMaN.js} +8 -8
- package/dist/assets/{InsightsChartFailed-DBcygly6.js → InsightsChartFailed-iXvqlU_7.js} +7 -7
- package/dist/assets/{InsightsChartFailureRate-CY3HP65L.js → InsightsChartFailureRate-DzWy07B4.js} +8 -8
- package/dist/assets/{InsightsChartTimeSaved-DAfnPiRJ.js → InsightsChartTimeSaved-Db1u-o2U.js} +8 -8
- package/dist/assets/{InsightsChartTotal-CLtcCYXo.js → InsightsChartTotal-Bge4JSj-.js} +7 -7
- package/dist/assets/{InsightsDashboard-D3vC4R1n.js → InsightsDashboard-CtSxyg4o.js} +28 -29
- package/dist/assets/{InsightsPaywall-0gL3KDRU.js → InsightsPaywall-DRQHdovy.js} +11 -12
- package/dist/assets/{InsightsSummary-CnIu-BEq.js → InsightsSummary-fz6kohyO.js} +6 -6
- package/dist/assets/{InsightsTableWorkflows-BIKybxql.js → InsightsTableWorkflows-Big7k-wk.js} +14 -15
- package/dist/assets/{ItemsRenderer-B8E9eO9o.js → ItemsRenderer-D3AhUeBw.js} +7 -7
- package/dist/assets/{KeyboardShortcutTooltip-Bg_9TS__.js → KeyboardShortcutTooltip-Bpb4SkjE.js} +1 -1
- package/dist/assets/LogsPanel-BgDmFFb3.js +49 -0
- package/dist/assets/{LogsPanel-CeaPnpLp.js → LogsPanel-DL0Dc4ep.js} +20 -20
- package/dist/assets/{MCPConnectWorkflowsModal-Td3mGUN9.js → MCPConnectWorkflowsModal-CpBHbeql.js} +32 -33
- package/dist/assets/{MainHeader-D7esq2FA.js → MainHeader-CQDUOBrK.js} +53 -54
- package/dist/assets/{MainSidebar-BehIhk7J.js → MainSidebar-CEwrQd0D.js} +36 -37
- package/dist/assets/{MigrationRuleDetail-ChDD18D8.js → MigrationRuleDetail-B8y5qGdj.js} +16 -17
- package/dist/assets/{MigrationRules-Bx-faTM3.js → MigrationRules-CqFa1pIa.js} +8 -9
- package/dist/assets/{Modal-DbNRq20p.js → Modal-BUzuin_l.js} +4 -4
- package/dist/assets/{ModelByIdSelectorModal-Zys7oCrF.js → ModelByIdSelectorModal-7DLgrXak.js} +13 -14
- package/dist/assets/{NDVEmptyState-DLSJV_-K.js → NDVEmptyState-D9V46oIb.js} +1 -1
- package/dist/assets/{NodeCreation-D-51ue5r.js → NodeCreation-D2h-NBzz.js} +36 -37
- package/dist/assets/{NodeCreator-DNZlk7YI.js → NodeCreator-DWfTqSpA.js} +24 -25
- package/dist/assets/{NodeDetailsView-Bx2kED62.js → NodeDetailsView-C0c2NPX8.js} +54 -55
- package/dist/assets/{NodeDetailsViewV2-Cs-DNkN8.js → NodeDetailsViewV2-B6-Z9UBA.js} +55 -56
- package/dist/assets/{NodeIcon-BbsF7HzQ.js → NodeIcon-DO3MjIEO.js} +2 -2
- package/dist/assets/{NodeSettings-CihRSGnT.js → NodeSettings-kTTXBKag.js} +14 -14
- package/dist/assets/{NodeView-C6e9qYIb.js → NodeView-DSaSUQ-e.js} +62 -63
- package/dist/assets/{OAuthConsentView-DgEpMzqe.js → OAuthConsentView-CTghsNit.js} +10 -11
- package/dist/assets/{ParameterInputList-BdolYdHT.js → ParameterInputList-U2KiK3ya.js} +25 -25
- package/dist/assets/{PrebuiltAgentTemplatesView-C274fvLb.js → PrebuiltAgentTemplatesView-aSquroeG.js} +13 -14
- package/dist/assets/{ProjectBreadcrumb-C78U49qA.js → ProjectBreadcrumb-B8fbTAtq.js} +3 -3
- package/dist/assets/{ProjectCardBadge-BJrdwkUy.js → ProjectCardBadge-CglG0JiV.js} +4 -4
- package/dist/assets/{ProjectHeader-BWd_Jpki.js → ProjectHeader-CEk0GfTI.js} +6 -6
- package/dist/assets/{ProjectIcon-CNEqHlzp.js → ProjectIcon-CBV14vRK.js} +1 -1
- package/dist/assets/{ProjectRoleView-DgDH-CAz.js → ProjectRoleView-DzsmfbSB.js} +10 -11
- package/dist/assets/{ProjectRolesView-lS6Xs6d0.js → ProjectRolesView-B7OiF9LQ.js} +12 -13
- package/dist/assets/{ProjectSettings-BBjtsGXK.js → ProjectSettings-DT13ltbR.js} +21 -22
- package/dist/assets/{ProjectSharing-BEcymROT.js → ProjectSharing-BmHjpc-V.js} +4 -4
- package/dist/assets/{ProjectVariables-BYbTctFU.js → ProjectVariables-CkEAYMdf.js} +28 -29
- package/dist/assets/{ProviderSettingsModal-COAKwlLh.js → ProviderSettingsModal-O-t1pRtC.js} +17 -18
- package/dist/assets/{PushConnectionTracker-CY-LPI6v.js → PushConnectionTracker-CQYSMUJA.js} +2 -2
- package/dist/assets/{ResolversView-CxbdIBE2.js → ResolversView-DiSrPGYL.js} +11 -12
- package/dist/assets/{ResourceFiltersDropdown-BlSZzGLj.js → ResourceFiltersDropdown-VHlXDlIU.js} +5 -5
- package/dist/assets/{ResourcesListLayout-Ej5Hcdb7.js → ResourcesListLayout-D-UUn6W4.js} +7 -7
- package/dist/assets/{RunData-CSkVEMJc.js → RunData-CD2BS-tI.js} +24 -24
- package/dist/assets/RunDataHtml-CMYh4fix.js +6 -0
- package/dist/assets/{RunDataHtml-CS6G8R8Z.js → RunDataHtml-S_j2pLRX.js} +1 -1
- package/dist/assets/{RunDataJson-BoMj9Y4H.js → RunDataJson-Hy45SLB4.js} +13 -13
- package/dist/assets/{RunDataJsonActions-BYw5OJyd.js → RunDataJsonActions-B1Ca8Yqf.js} +11 -12
- package/dist/assets/RunDataParsedAiContent-DCSxER_a.js +23 -0
- package/dist/assets/{RunDataParsedAiContent-Cci_idnL.js → RunDataParsedAiContent-SHzs_hUO.js} +6 -6
- package/dist/assets/{RunDataSearch-Cl17NZ8f.js → RunDataSearch-CbEWwIFn.js} +6 -7
- package/dist/assets/{RunDataTable-ldjWmEyj.js → RunDataTable-Br3h9Hfs.js} +14 -15
- package/dist/assets/{SamlOnboarding-B4udEOGL.js → SamlOnboarding-B8FFw4Aj.js} +11 -12
- package/dist/assets/{SaveButton-DGuEjyOq.js → SaveButton-DFMQz4OO.js} +2 -2
- package/dist/assets/{SelectedItemsInfo-0qmaX5TI.js → SelectedItemsInfo-wq6nTjan.js} +1 -1
- package/dist/assets/{SettingsApiView-DWWkTI8H.js → SettingsApiView-DntGyG-_.js} +12 -13
- package/dist/assets/{SettingsChatHubView-DdY-v1Oz.js → SettingsChatHubView-CFLv3m_H.js} +15 -16
- package/dist/assets/{SettingsCommunityNodesView-Bh_N6Npj.js → SettingsCommunityNodesView-Cbc8YwPd.js} +24 -25
- package/dist/assets/{SettingsExternalSecrets-D1ahXEoY.js → SettingsExternalSecrets-GqTCB9tV.js} +13 -14
- package/dist/assets/{SettingsLdapView-BDKazZKJ.js → SettingsLdapView-D0CK7vsL.js} +15 -16
- package/dist/assets/{SettingsLogStreamingView-Rq7vLTVL.js → SettingsLogStreamingView-CJvfBKTc.js} +12 -13
- package/dist/assets/{SettingsMCPView-DKx7RcRB.js → SettingsMCPView-DVMm0rzd.js} +33 -34
- package/dist/assets/{SettingsPersonalView-5d6_p-hw.js → SettingsPersonalView-CKVc--Ee.js} +11 -12
- package/dist/assets/{SettingsSourceControl-CTzXIqE3.js → SettingsSourceControl-5HdxPe3d.js} +13 -14
- package/dist/assets/{SettingsSso-CUrz-7l8.js → SettingsSso-iw14DWi2.js} +17 -18
- package/dist/assets/{SettingsUsageAndPlan-R9q7LfRv.js → SettingsUsageAndPlan-BiXxO44T.js} +13 -14
- package/dist/assets/{SettingsUsersView-DcmC9oO-.js → SettingsUsersView-BN543CWM.js} +17 -18
- package/dist/assets/{SettingsView-Clf40hKH.js → SettingsView-u-46Jm_s.js} +10 -11
- package/dist/assets/{SetupTemplateFormStep-C0bRvmcc.js → SetupTemplateFormStep-DgzwXX2Q.js} +6 -6
- package/dist/assets/{SetupView-Bpj6SVkS.js → SetupView-CNcoc1Tp.js} +11 -12
- package/dist/assets/{SetupWorkflowCredentialsButton-CZpFSpx5.js → SetupWorkflowCredentialsButton-BJgDEnYL.js} +10 -11
- package/dist/assets/{SetupWorkflowFromTemplateView-DhK63ZNL.js → SetupWorkflowFromTemplateView-ByvbaTJo.js} +17 -18
- package/dist/assets/{SeverityTag-4JkejesH.js → SeverityTag-BrEj4Zgc.js} +2 -2
- package/dist/assets/{SigninView-D3PBF8fA.js → SigninView-BruIX4To.js} +12 -13
- package/dist/assets/{SignoutView-DZcfsILm.js → SignoutView-EtgUq_8L.js} +7 -7
- package/dist/assets/{SignupView-D2QARHWC.js → SignupView-qwht3OUN.js} +11 -12
- package/dist/assets/{SkeletonAgentCard-BhJ27v2W.js → SkeletonAgentCard-CXtHgz2Z.js} +3 -3
- package/dist/assets/{TagsDropdown-8x1FnXzA.js → TagsDropdown-33BH8Wv8.js} +2 -2
- package/dist/assets/{TemplateCard-DxKAmiWm.js → TemplateCard-vNjUWEPK.js} +4 -4
- package/dist/assets/{TemplateDetails-bBAnDzfL.js → TemplateDetails-CuBROcXy.js} +4 -4
- package/dist/assets/{TemplateList-DxQ3fBxn.js → TemplateList-C-Ew2xS2.js} +4 -4
- package/dist/assets/{TemplatesCollectionView-DCJk2jwq.js → TemplatesCollectionView-jkpoxD57.js} +18 -19
- package/dist/assets/{TemplatesSearchView-Bh8wuhTx.js → TemplatesSearchView-DvKDgGUn.js} +15 -16
- package/dist/assets/{TemplatesView-w-y6NvIc.js → TemplatesView-Cva7ybP0.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-eo3ddDao.js → TemplatesWorkflowView-SBg-ZKaI.js} +19 -20
- package/dist/assets/{TestRunDetailView-DGEhYj5_.js → TestRunDetailView-heW9e-_g.js} +15 -16
- package/dist/assets/{TimeAgo-0Rdm0Kiq.js → TimeAgo-D8PyZ71Z.js} +2 -2
- package/dist/assets/{ToolsSelectorModal-SnNw9Jip.js → ToolsSelectorModal-C2uMHR7m.js} +13 -14
- package/dist/assets/{TriggerPanel-ChJuzrpN.js → TriggerPanel-DJ_XkvPU.js} +16 -16
- package/dist/assets/VirtualSchema-DcOnUOVG.js +33 -0
- package/dist/assets/{VirtualSchema-wgdUJECR.js → VirtualSchema-DeH8iDPY.js} +13 -13
- package/dist/assets/{VueMarkdown-BRiaIhX9.js → VueMarkdown-BlVr51fL.js} +1 -1
- package/dist/assets/{WorkerView-DPgZMV-u.js → WorkerView-Bnbyq_Un.js} +30 -31
- package/dist/assets/{WorkflowActivator-DW5QJWKR.js → WorkflowActivator-OPWLWWwR.js} +7 -7
- package/dist/assets/{WorkflowExecutionsInfoAccordion-tLNnztlE.js → WorkflowExecutionsInfoAccordion-BPnENpcL.js} +3 -3
- package/dist/assets/{WorkflowExecutionsLandingPage-DzSdsRSM.js → WorkflowExecutionsLandingPage-DZ-alnQt.js} +10 -11
- package/dist/assets/{WorkflowExecutionsPreview-DcRbTjpx.js → WorkflowExecutionsPreview-11XCg55B.js} +18 -19
- package/dist/assets/{WorkflowExecutionsView-BvQhNwyi.js → WorkflowExecutionsView-YECS4fCw.js} +26 -27
- package/dist/assets/{WorkflowHistory-C7k0u5n4.js → WorkflowHistory-BQ-walJY.js} +16 -17
- package/dist/assets/{WorkflowLocation-DU_oqOxw.js → WorkflowLocation-Dsfd4NQ_.js} +3 -3
- package/dist/assets/{WorkflowOnboardingView-DsT28Lna.js → WorkflowOnboardingView-v2MIweXq.js} +7 -7
- package/dist/assets/{WorkflowPreview-Cv_yCx4J.js → WorkflowPreview-fWz2x6Xi.js} +3 -3
- package/dist/assets/{WorkflowTagsDropdown-BHpackqb.js → WorkflowTagsDropdown-CGqA9Bqt.js} +2 -2
- package/dist/assets/{WorkflowsView-CA_-v3jL.js → WorkflowsView-7srLX2kV.js} +45 -46
- package/dist/assets/{_baseOrderBy-UJkFlXQy.js → _baseOrderBy-DKOdPYpX.js} +3 -3
- package/dist/assets/{_initCloneObject-C3audwCb.js → _initCloneObject-DPuE6hiH.js} +1 -1
- package/dist/assets/{aiTemplatesStarterCollection.store-BuNUUCwa.js → aiTemplatesStarterCollection.store-hH5WafzK.js} +4 -4
- package/dist/assets/{apiKeys.store-DpzwcWGM.js → apiKeys.store-Bivp-HdY.js} +2 -2
- package/dist/assets/{assistant.store-CiyiixCh.js → assistant.store-EQKoPTY1.js} +3 -3
- package/dist/assets/{banners.store-D47aZI1r.js → banners.store-xl74RJKE.js} +3 -3
- package/dist/assets/{builder.store-D6GyopzN.js → builder.store-CFEMq5cA.js} +5 -5
- package/dist/assets/{chartjs.utils-CeXvwL6J.js → chartjs.utils-CZqhhNLn.js} +2 -2
- package/dist/assets/{chat.store-D1BqW7ao.js → chat.store-DOq83dQd.js} +6 -6
- package/dist/assets/{chatPanel.store-ChAzL_xE.js → chatPanel.store-bRTB7uZ4.js} +4 -4
- package/dist/assets/{constants-DRIItkNt.js → constants-J3k9WeIN.js} +633 -632
- package/dist/assets/{core-BbiIkN91.js → core-DeR-PV8K.js} +1 -1
- package/dist/assets/{dataTable.store-CkhtfeY0.js → dataTable.store-B1uH3pjJ.js} +3 -3
- package/dist/assets/{date-picker-DsgFTiIp.js → date-picker-BjmPe_fb.js} +1 -1
- package/dist/assets/{dateFormatter-DDfPHI9I.js → dateFormatter-DjYPheeb.js} +1 -1
- package/dist/assets/{dialog-O4ZP7Mjj.js → dialog-HKqP6M7x.js} +2 -2
- package/dist/assets/{dist-DP_8je0B.js → dist-BQ7E1jLN.js} +1 -1
- package/dist/assets/{empty-DUjwPfU3.js → empty-BUjCyq3U.js} +326 -1
- package/dist/assets/{es-DlTgUi2w.js → es-C2DNxuAa.js} +1 -1
- package/dist/assets/{evaluation.constants-DbxnAcTc.js → evaluation.constants-Bm_BxFb3.js} +3 -3
- package/dist/assets/{executions.store-a5l7sYPn.js → executions.store-Dgo1ubxB.js} +2 -2
- package/dist/assets/{externalSecrets.ee.store-HP2ldANj.js → externalSecrets.ee.store-C5r5o3L8.js} +3 -3
- package/dist/assets/{folders.store-j6Xz9xvI.js → folders.store-ysqaUuZL.js} +2 -2
- package/dist/assets/{index-B2rFJ2JV.js → index-Djq4jXr2.js} +101 -102
- package/dist/assets/{insights.constants-C8GITe6H.js → insights.constants-D63-x9pu.js} +1 -1
- package/dist/assets/{insights.store-EBGeDNzp.js → insights.store-_R_iKZcn.js} +4 -4
- package/dist/assets/{insights.utils-B7OXsqrQ.js → insights.utils-CWK5jWpE.js} +2 -2
- package/dist/assets/{languageModules-D_uyjb6R.js → languageModules-DDJUl1h8.js} +1 -1
- package/dist/assets/{logStreaming.store-C8IxWNZB.js → logStreaming.store-CnkUT647.js} +2 -2
- package/dist/assets/{mcp.store-BLq1CDNz.js → mcp.store-CWQhJhbj.js} +3 -3
- package/dist/assets/{nodeCreator.store-DTc1zzIQ.js → nodeCreator.store-Bjvm8FQj.js} +5 -5
- package/dist/assets/{nodeIcon-BWuZ9Qxh.js → nodeIcon-H_k68qzc.js} +3 -3
- package/dist/assets/{nodeTransforms-A9ckRbW1.js → nodeTransforms-CiROYybp.js} +2 -2
- package/dist/assets/{orderBy-BCjtsqzS.js → orderBy-k8BuUXvL.js} +1 -1
- package/dist/assets/{personalizedTemplatesV3.store-DBi4yorm.js → personalizedTemplatesV3.store-gtPiYzWS.js} +3 -3
- package/dist/assets/{pickBy-1X5wiyPT.js → pickBy-DnxWRwf_.js} +1 -1
- package/dist/assets/{readyToRun.store-DfU30_Nq.js → readyToRun.store-DjUL_rnd.js} +4 -4
- package/dist/assets/{readyToRunWorkflows.store-DgUOIs41.js → readyToRunWorkflows.store-BhVrlcQi.js} +4 -4
- package/dist/assets/{roles.store-W8yXuo53.js → roles.store-CGXKZopF.js} +3 -3
- package/dist/assets/{router-RpMr830s.js → router-D49f1R22.js} +87 -87
- package/dist/assets/{sanitize-html-fRP2gWb9.js → sanitize-html-BkT1y0bJ.js} +1 -2
- package/dist/assets/{schemaPreview.store-ngPsbwff.js → schemaPreview.store-CQtmXF52.js} +3 -3
- package/dist/assets/{semver-mGRAx708.js → semver-Cs9NWK1N.js} +3 -3
- package/dist/assets/{src-XLGanEOK.js → src-BiuB4CZc.js} +1 -1
- package/dist/assets/{sso.store-B7JPsojt.js → sso.store-B84w9REV.js} +2 -2
- package/dist/assets/{table-Dl2CV3mu.js → table-fp187Rky.js} +2 -2
- package/dist/assets/{templateActions-CjSRb54_.js → templateActions-Dz6Nfglg.js} +5 -5
- package/dist/assets/{templateTransforms-Cr1Vxjyo.js → templateTransforms-R8fUHqPE.js} +1 -1
- package/dist/assets/{uniqBy-BInks7VO.js → uniqBy-DZqQA7cs.js} +1 -1
- package/dist/assets/{usage.store-7DVTEzLA.js → usage.store-Bdc-BlM5.js} +2 -2
- package/dist/assets/{useActions-BVMLDnB7.js → useActions-ConANMRL.js} +3 -3
- package/dist/assets/{useBeforeUnload-BNDKBmDK.js → useBeforeUnload-Dv721ji9.js} +2 -2
- package/dist/assets/{useCanvasMapping-Cl6iFzZx.js → useCanvasMapping-BuHer7tV.js} +16 -16
- package/dist/assets/{useCanvasOperations-DmDkQZsZ.js → useCanvasOperations-BAztxad9.js} +7 -7
- package/dist/assets/{useClipboard-DAKz3pSk.js → useClipboard-Cxt3r_6-.js} +1 -1
- package/dist/assets/{useCommandBar-Ddao4vJv.js → useCommandBar-BEuGu0kz.js} +19 -19
- package/dist/assets/{useCredentialResolvers-Bib-mabw.js → useCredentialResolvers-o-PxfPMf.js} +3 -3
- package/dist/assets/{useCustomAgent-DA57piBT.js → useCustomAgent-KWy9IjRw.js} +8 -8
- package/dist/assets/{useExecutionData-DWNDlbxK.js → useExecutionData-DjGA2mpX.js} +1 -1
- package/dist/assets/{useExecutionDebugging-C3LhPoKB.js → useExecutionDebugging-BH-Cu9CF.js} +4 -4
- package/dist/assets/{useExecutionHelpers-ZH8Lpu7H.js → useExecutionHelpers-8I6H5A1z.js} +3 -3
- package/dist/assets/{useImportCurlCommand-UjbNISl9.js → useImportCurlCommand-c7EYzrkq.js} +7 -8
- package/dist/assets/{useKeybindings-DDEBPDlo.js → useKeybindings-Defj9R_x.js} +3 -3
- package/dist/assets/{useLogsTreeExpand-DBG-3__y.js → useLogsTreeExpand-Cz9KqoM9.js} +9 -9
- package/dist/assets/{useMcp-zjwReQ-Q.js → useMcp-B3wL4VEL.js} +2 -2
- package/dist/assets/{usePageRedirectionHelper-w7WYnki8.js → usePageRedirectionHelper-CCKUgz8u.js} +3 -3
- package/dist/assets/{usePinnedData-FgnIiWSJ.js → usePinnedData-BuSXt4cE.js} +3 -3
- package/dist/assets/{usePushConnection-DL83_AN-.js → usePushConnection-CIORz2iE.js} +10 -10
- package/dist/assets/{useRecentResources-D-zHnbqB.js → useRecentResources-BNKR8cdk.js} +5 -5
- package/dist/assets/{useRunWorkflow-DfbxLgl-.js → useRunWorkflow-B5Y7PNOI.js} +6 -6
- package/dist/assets/{useSettingsItems-CNv2tIdk.js → useSettingsItems-D1epSbD0.js} +2 -2
- package/dist/assets/{useTelemetryContext-B3sCbxNK.js → useTelemetryContext-BbRTDkOc.js} +1 -1
- package/dist/assets/{useWorkflowActivate-Ct_BovMQ.js → useWorkflowActivate-CWJXPvNF.js} +3 -3
- package/dist/assets/{useWorkflowsCache-BG2C8qik.js → useWorkflowsCache-CxMhAbkH.js} +1 -1
- package/dist/assets/{userRoleProvisioning.store-6aoaalkv.js → userRoleProvisioning.store-BdZhGDZ9.js} +2 -2
- package/dist/assets/{utils-C2GPI2gK.js → utils-CnShVJFh.js} +1 -1
- package/dist/assets/{versions.store-a3DCEQMP.js → versions.store-AC7DZRKB.js} +3 -3
- package/dist/index.html +98 -99
- package/package.json +1 -1
- package/dist/assets/CollectionParameter-Y2KojQS6.js +0 -50
- package/dist/assets/DemoFooter-CySiu1O2.js +0 -63
- package/dist/assets/LogsPanel-Cei4fiyW.js +0 -50
- package/dist/assets/RunDataHtml-CX8Hqg6s.js +0 -7
- package/dist/assets/RunDataParsedAiContent-C3de0i2J.js +0 -24
- package/dist/assets/VirtualSchema-zUWStOer.js +0 -34
- package/dist/assets/path-browserify-CJwRhuT8.js +0 -328
- /package/dist/assets/{AnimatedSpinner-wiGFgffA.js → AnimatedSpinner-DBPcagVq.js} +0 -0
- /package/dist/assets/{ChatFile-Dtf_b24Y.js → ChatFile-B6hcldJk.js} +0 -0
- /package/dist/assets/{PageViewLayout-BHSzOio1.js → PageViewLayout-XiCAnPXE.js} +0 -0
- /package/dist/assets/{TextWithHighlights-DjzuDrgO.js → TextWithHighlights-CgDEugGZ.js} +0 -0
- /package/dist/assets/{WorkflowActivationErrorMessage-v37Lr_Ej.js → WorkflowActivationErrorMessage-CkxW6ZtU.js} +0 -0
- /package/dist/assets/{auth.eventBus-B77G38R7.js → auth.eventBus-BQKtqsAd.js} +0 -0
- /package/dist/assets/{buttons.esm-CT4flsfB.js → buttons.esm-Euf82NbC.js} +0 -0
- /package/dist/assets/{chart-CE3HWIkr.js → chart-BI8B7UPV.js} +0 -0
- /package/dist/assets/{constants-DLTaaipl.js → constants-vjryKFt3.js} +0 -0
- /package/dist/assets/{core-6W4wWNc1.js → core-BMwklDiH.js} +0 -0
- /package/dist/assets/{dateformat-CM9k0--B.js → dateformat-BlfbK1ki.js} +0 -0
- /package/dist/assets/{exports-hpMZaOPT.js → exports-C5ncBo9h.js} +0 -0
- /package/dist/assets/{fileUtils-D_SiS8no.js → fileUtils-Bt1vr1SC.js} +0 -0
- /package/dist/assets/{mcp.constants-DQPD3Ntp.js → mcp.constants-1HQX33wO.js} +0 -0
- /package/dist/assets/{merge-k8vSyyXH.js → merge-DjI8TA-7.js} +0 -0
- /package/dist/assets/{retry-dP46utx2.js → retry-B-tGcWte.js} +0 -0
- /package/dist/assets/{smartDecimal-DK6-_VSq.js → smartDecimal-gA9wGEba.js} +0 -0
- /package/dist/assets/{sortByProperty-CV1aCzkS.js → sortByProperty-C6sPingU.js} +0 -0
- /package/dist/assets/{sourceControl.eventBus-Bry8gLG7.js → sourceControl.eventBus-BlFJV1yj.js} +0 -0
- /package/dist/assets/{useDebounce-Bnb8W2LR.js → useDebounce-BjcMkTu4.js} +0 -0
- /package/dist/assets/{useIntersectionObserver-DXKoRNFj.js → useIntersectionObserver-Bb8gFEHX.js} +0 -0
- /package/dist/assets/{vue-Dg_43WEg.js → vue-Dd77OcSb.js} +0 -0
- /package/dist/assets/{vue-json-pretty-DGKuDe33.js → vue-json-pretty-DF-vJpHf.js} +0 -0
- /package/dist/assets/{xml-B6veOr9z.js → xml-DDfXMqo8.js} +0 -0
|
@@ -2,8 +2,8 @@ import { a as __toCommonJS, n as __esmMin, o as __toESM, r as __export, t as __c
|
|
|
2
2
|
import { Dn as init_dist, En as global } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
3
3
|
import { a as require__getNative, c as require_isObject, d as require__Symbol, f as require__root, i as require_eq, l as require_isObjectLike, m as require_isArray, n as require__Map, o as require__toSource, t as require__MapCache, u as require__baseGetTag } from "./_MapCache-ficiegRb.js";
|
|
4
4
|
import { a as require__toKey, i as require__baseGet, o as require__castPath, r as require_get, s as require_toString, u as require__isKey, w as require_lib$1 } from "./truncate-B1HVeveJ.js";
|
|
5
|
-
import { C as
|
|
6
|
-
import { A as require__Uint8Array, C as require_isTypedArray, D as require__isIndex, E as require_isLength, O as require_isBuffer, S as require__arrayLikeKeys, T as require__baseUnary, _ as require__baseFor, a as require__overRest, b as require__overArg, c as require__copyObject, d as require__initCloneObject, f as require__getPrototype, g as require__cloneBuffer, h as require__cloneArrayBuffer, i as require__setToString, j as require__Stack, k as require_isArguments$1, l as require__assignValue, m as require__cloneTypedArray, o as require_identity, p as require__copyArray, s as require_keysIn, t as require_merge, v as require__baseAssignValue, w as require__nodeUtil, x as require__isPrototype, y as require_isArrayLike } from "./merge-
|
|
5
|
+
import { C as init_dist$1, S as require___vite_browser_external, _ as require_syntax, a as require_call_bound, b as require_type, c as require_get_proto, d as require_functionApply, f as require_function_bind, g as require_gopd, h as require_es_define_property, i as init_dist$2, l as require_call_bind_apply_helpers, m as require_shams$1, n as init_empty, o as require_get_intrinsic, r as Buffer, s as require_hasown, t as empty_exports, u as require_actualApply, w as process$1, x as require_path_browserify } from "./empty-BUjCyq3U.js";
|
|
6
|
+
import { A as require__Uint8Array, C as require_isTypedArray, D as require__isIndex, E as require_isLength, O as require_isBuffer, S as require__arrayLikeKeys, T as require__baseUnary, _ as require__baseFor, a as require__overRest, b as require__overArg, c as require__copyObject, d as require__initCloneObject, f as require__getPrototype, g as require__cloneBuffer, h as require__cloneArrayBuffer, i as require__setToString, j as require__Stack, k as require_isArguments$1, l as require__assignValue, m as require__cloneTypedArray, o as require_identity, p as require__copyArray, s as require_keysIn, t as require_merge, v as require__baseAssignValue, w as require__nodeUtil, x as require__isPrototype, y as require_isArrayLike } from "./merge-DjI8TA-7.js";
|
|
7
7
|
let WORKFLOW_MENU_ACTIONS = /* @__PURE__ */ function(WORKFLOW_MENU_ACTIONS$1) {
|
|
8
8
|
WORKFLOW_MENU_ACTIONS$1["DUPLICATE"] = "duplicate";
|
|
9
9
|
WORKFLOW_MENU_ACTIONS$1["DOWNLOAD"] = "download";
|
|
@@ -616,8 +616,8 @@ function getErrorMap$1() {
|
|
|
616
616
|
return overrideErrorMap;
|
|
617
617
|
}
|
|
618
618
|
const makeIssue = (params) => {
|
|
619
|
-
const { data, path, errorMaps, issueData } = params;
|
|
620
|
-
const fullPath = [...path, ...issueData.path || []];
|
|
619
|
+
const { data, path: path$1, errorMaps, issueData } = params;
|
|
620
|
+
const fullPath = [...path$1, ...issueData.path || []];
|
|
621
621
|
const fullIssue = {
|
|
622
622
|
...issueData,
|
|
623
623
|
path: fullPath
|
|
@@ -723,11 +723,11 @@ var errorUtil;
|
|
|
723
723
|
errorUtil$1.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
724
724
|
})(errorUtil || (errorUtil = {}));
|
|
725
725
|
var ParseInputLazyPath = class {
|
|
726
|
-
constructor(parent, value, path, key) {
|
|
726
|
+
constructor(parent, value, path$1, key) {
|
|
727
727
|
this._cachedPath = [];
|
|
728
728
|
this.parent = parent;
|
|
729
729
|
this.data = value;
|
|
730
|
-
this._path = path;
|
|
730
|
+
this._path = path$1;
|
|
731
731
|
this._key = key;
|
|
732
732
|
}
|
|
733
733
|
get path() {
|
|
@@ -24675,6 +24675,7 @@ function atEndOfBlockComment(text, i$2) {
|
|
|
24675
24675
|
}
|
|
24676
24676
|
var import_browser = /* @__PURE__ */ __toESM(require_browser());
|
|
24677
24677
|
require_merge();
|
|
24678
|
+
require_path_browserify();
|
|
24678
24679
|
var readStreamClasses = new Set([
|
|
24679
24680
|
"ReadStream",
|
|
24680
24681
|
"Readable",
|
|
@@ -24695,7 +24696,7 @@ const isObjectEmpty = (obj) => {
|
|
|
24695
24696
|
}
|
|
24696
24697
|
return true;
|
|
24697
24698
|
};
|
|
24698
|
-
const deepCopy = (source, hash$1 = /* @__PURE__ */ new WeakMap(), path = "") => {
|
|
24699
|
+
const deepCopy = (source, hash$1 = /* @__PURE__ */ new WeakMap(), path$1 = "") => {
|
|
24699
24700
|
const hasOwnProp = Object.prototype.hasOwnProperty.bind(source);
|
|
24700
24701
|
if (typeof source !== "object" || source === null || typeof source === "function") return source;
|
|
24701
24702
|
if (typeof source.toJSON === "function") return source.toJSON();
|
|
@@ -24703,12 +24704,12 @@ const deepCopy = (source, hash$1 = /* @__PURE__ */ new WeakMap(), path = "") =>
|
|
|
24703
24704
|
if (Array.isArray(source)) {
|
|
24704
24705
|
const clone$4 = [];
|
|
24705
24706
|
const len$1 = source.length;
|
|
24706
|
-
for (let i$2 = 0; i$2 < len$1; i$2++) clone$4[i$2] = deepCopy(source[i$2], hash$1, path + `[${i$2}]`);
|
|
24707
|
+
for (let i$2 = 0; i$2 < len$1; i$2++) clone$4[i$2] = deepCopy(source[i$2], hash$1, path$1 + `[${i$2}]`);
|
|
24707
24708
|
return clone$4;
|
|
24708
24709
|
}
|
|
24709
24710
|
const clone$3 = Object.create(Object.getPrototypeOf({}));
|
|
24710
24711
|
hash$1.set(source, clone$3);
|
|
24711
|
-
for (const i$2 in source) if (hasOwnProp(i$2)) clone$3[i$2] = deepCopy(source[i$2], hash$1, path + `.${i$2}`);
|
|
24712
|
+
for (const i$2 in source) if (hasOwnProp(i$2)) clone$3[i$2] = deepCopy(source[i$2], hash$1, path$1 + `.${i$2}`);
|
|
24712
24713
|
return clone$3;
|
|
24713
24714
|
};
|
|
24714
24715
|
function syntaxNodeToValue(expression) {
|
|
@@ -25501,11 +25502,11 @@ function displayParameter(nodeValues, parameter, node, nodeTypeDescription, node
|
|
|
25501
25502
|
}
|
|
25502
25503
|
return true;
|
|
25503
25504
|
}
|
|
25504
|
-
function displayParameterPath(nodeValues, parameter, path, node, nodeTypeDescription, displayKey = "displayOptions") {
|
|
25505
|
+
function displayParameterPath(nodeValues, parameter, path$1, node, nodeTypeDescription, displayKey = "displayOptions") {
|
|
25505
25506
|
let resolvedNodeValues = nodeValues;
|
|
25506
|
-
if (path !== "") resolvedNodeValues = (0, import_get.default)(nodeValues, path);
|
|
25507
|
+
if (path$1 !== "") resolvedNodeValues = (0, import_get.default)(nodeValues, path$1);
|
|
25507
25508
|
let nodeValuesRoot = nodeValues;
|
|
25508
|
-
if (path && path.split(".").indexOf("parameters") === 0) nodeValuesRoot = (0, import_get.default)(nodeValues, "parameters");
|
|
25509
|
+
if (path$1 && path$1.split(".").indexOf("parameters") === 0) nodeValuesRoot = (0, import_get.default)(nodeValues, "parameters");
|
|
25509
25510
|
return displayParameter(resolvedNodeValues, parameter, node, nodeTypeDescription, nodeValuesRoot, displayKey);
|
|
25510
25511
|
}
|
|
25511
25512
|
function getContext(runExecutionData, type, node) {
|
|
@@ -25700,20 +25701,20 @@ function getNodeParameters(nodePropertiesArray, nodeValues, returnDefaults, retu
|
|
|
25700
25701
|
}
|
|
25701
25702
|
return nodeParameters;
|
|
25702
25703
|
}
|
|
25703
|
-
function getNodeWebhookPath(workflowId, node, path, isFullPath, restartWebhook) {
|
|
25704
|
+
function getNodeWebhookPath(workflowId, node, path$1, isFullPath, restartWebhook) {
|
|
25704
25705
|
let webhookPath = "";
|
|
25705
|
-
if (restartWebhook === true) return path;
|
|
25706
|
-
if (node.webhookId === void 0) webhookPath = `${workflowId}/${encodeURIComponent(node.name.toLowerCase())}/${path}`;
|
|
25706
|
+
if (restartWebhook === true) return path$1;
|
|
25707
|
+
if (node.webhookId === void 0) webhookPath = `${workflowId}/${encodeURIComponent(node.name.toLowerCase())}/${path$1}`;
|
|
25707
25708
|
else {
|
|
25708
|
-
if (isFullPath === true) return path || node.webhookId;
|
|
25709
|
-
webhookPath = `${node.webhookId}/${path}`;
|
|
25709
|
+
if (isFullPath === true) return path$1 || node.webhookId;
|
|
25710
|
+
webhookPath = `${node.webhookId}/${path$1}`;
|
|
25710
25711
|
}
|
|
25711
25712
|
return webhookPath;
|
|
25712
25713
|
}
|
|
25713
|
-
function getNodeWebhookUrl(baseUrl, workflowId, node, path, isFullPath) {
|
|
25714
|
-
if ((path.startsWith(":") || path.includes("/:")) && node.webhookId) isFullPath = false;
|
|
25715
|
-
if (path.startsWith("/")) path = path.slice(1);
|
|
25716
|
-
return `${baseUrl}/${getNodeWebhookPath(workflowId, node, path, isFullPath)}`;
|
|
25714
|
+
function getNodeWebhookUrl(baseUrl, workflowId, node, path$1, isFullPath) {
|
|
25715
|
+
if ((path$1.startsWith(":") || path$1.includes("/:")) && node.webhookId) isFullPath = false;
|
|
25716
|
+
if (path$1.startsWith("/")) path$1 = path$1.slice(1);
|
|
25717
|
+
return `${baseUrl}/${getNodeWebhookPath(workflowId, node, path$1, isFullPath)}`;
|
|
25717
25718
|
}
|
|
25718
25719
|
function getConnectionTypes(connections) {
|
|
25719
25720
|
return connections.map((connection) => {
|
|
@@ -25814,25 +25815,25 @@ function addToIssuesIfMissing(foundIssues, nodeProperties, value) {
|
|
|
25814
25815
|
foundIssues.parameters[nodeProperties.name].push(`Parameter "${nodeProperties.displayName}" is required.`);
|
|
25815
25816
|
}
|
|
25816
25817
|
}
|
|
25817
|
-
function getParameterValueByPath(nodeValues, parameterName, path) {
|
|
25818
|
-
return (0, import_get.default)(nodeValues, path ? `${path}.${parameterName}` : parameterName);
|
|
25818
|
+
function getParameterValueByPath(nodeValues, parameterName, path$1) {
|
|
25819
|
+
return (0, import_get.default)(nodeValues, path$1 ? `${path$1}.${parameterName}` : parameterName);
|
|
25819
25820
|
}
|
|
25820
25821
|
function isINodeParameterResourceLocator(value) {
|
|
25821
25822
|
return typeof value === "object" && value !== null && "value" in value && "mode" in value;
|
|
25822
25823
|
}
|
|
25823
|
-
function getParameterIssues(nodeProperties, nodeValues, path, node, nodeTypeDescription) {
|
|
25824
|
+
function getParameterIssues(nodeProperties, nodeValues, path$1, node, nodeTypeDescription) {
|
|
25824
25825
|
const foundIssues = {};
|
|
25825
|
-
const isDisplayed = displayParameterPath(nodeValues, nodeProperties, path, node, nodeTypeDescription);
|
|
25826
|
+
const isDisplayed = displayParameterPath(nodeValues, nodeProperties, path$1, node, nodeTypeDescription);
|
|
25826
25827
|
if (nodeProperties.required === true) {
|
|
25827
25828
|
if (isDisplayed) {
|
|
25828
|
-
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path);
|
|
25829
|
+
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path$1);
|
|
25829
25830
|
if (nodeProperties.typeOptions !== void 0 && nodeProperties.typeOptions.multipleValues !== void 0) {
|
|
25830
25831
|
if (Array.isArray(value)) for (const singleValue of value) addToIssuesIfMissing(foundIssues, nodeProperties, singleValue);
|
|
25831
25832
|
} else addToIssuesIfMissing(foundIssues, nodeProperties, value);
|
|
25832
25833
|
}
|
|
25833
25834
|
}
|
|
25834
25835
|
if ((nodeProperties.type === "resourceLocator" || nodeProperties.type === "workflowSelector") && isDisplayed) {
|
|
25835
|
-
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path);
|
|
25836
|
+
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path$1);
|
|
25836
25837
|
if (isINodeParameterResourceLocator(value)) {
|
|
25837
25838
|
const mode = nodeProperties.modes?.find((option) => option.name === value.mode);
|
|
25838
25839
|
if (mode) validateResourceLocatorParameter(value, mode).forEach((error$39) => {
|
|
@@ -25843,7 +25844,7 @@ function getParameterIssues(nodeProperties, nodeValues, path, node, nodeTypeDesc
|
|
|
25843
25844
|
}
|
|
25844
25845
|
} else if (nodeProperties.type === "resourceMapper" && isDisplayed) {
|
|
25845
25846
|
const skipRequiredCheck = nodeProperties.typeOptions?.resourceMapper?.mode !== "add";
|
|
25846
|
-
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path);
|
|
25847
|
+
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path$1);
|
|
25847
25848
|
if (isResourceMapperValue(value)) {
|
|
25848
25849
|
const issues = validateResourceMapperParameter(nodeProperties, value, skipRequiredCheck);
|
|
25849
25850
|
if (Object.keys(issues).length > 0) {
|
|
@@ -25856,7 +25857,7 @@ function getParameterIssues(nodeProperties, nodeValues, path, node, nodeTypeDesc
|
|
|
25856
25857
|
}
|
|
25857
25858
|
}
|
|
25858
25859
|
} else if (nodeProperties.type === "filter" && isDisplayed) {
|
|
25859
|
-
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path);
|
|
25860
|
+
const value = getParameterValueByPath(nodeValues, nodeProperties.name, path$1);
|
|
25860
25861
|
if (isFilterValue(value)) {
|
|
25861
25862
|
const issues = validateFilterParameter(nodeProperties, value);
|
|
25862
25863
|
if (Object.keys(issues).length > 0) foundIssues.parameters = {
|
|
@@ -25865,7 +25866,7 @@ function getParameterIssues(nodeProperties, nodeValues, path, node, nodeTypeDesc
|
|
|
25865
25866
|
};
|
|
25866
25867
|
}
|
|
25867
25868
|
} else if (nodeProperties.validateType) {
|
|
25868
|
-
const error$39 = validateParameter(nodeProperties, getParameterValueByPath(nodeValues, nodeProperties.name, path), nodeProperties.validateType);
|
|
25869
|
+
const error$39 = validateParameter(nodeProperties, getParameterValueByPath(nodeValues, nodeProperties.name, path$1), nodeProperties.validateType);
|
|
25869
25870
|
if (error$39) {
|
|
25870
25871
|
if (foundIssues.parameters === void 0) foundIssues.parameters = {};
|
|
25871
25872
|
if (foundIssues.parameters[nodeProperties.name] === void 0) foundIssues.parameters[nodeProperties.name] = [];
|
|
@@ -25873,7 +25874,7 @@ function getParameterIssues(nodeProperties, nodeValues, path, node, nodeTypeDesc
|
|
|
25873
25874
|
}
|
|
25874
25875
|
}
|
|
25875
25876
|
if (nodeProperties.options === void 0) return foundIssues;
|
|
25876
|
-
let basePath = path ? `${path}.` : "";
|
|
25877
|
+
let basePath = path$1 ? `${path$1}.` : "";
|
|
25877
25878
|
const checkChildNodeProperties = [];
|
|
25878
25879
|
if (nodeProperties.type === "collection") for (const option of nodeProperties.options) checkChildNodeProperties.push({
|
|
25879
25880
|
basePath,
|
|
@@ -26540,9 +26541,9 @@ function assignProp(target, prop, value) {
|
|
|
26540
26541
|
configurable: true
|
|
26541
26542
|
});
|
|
26542
26543
|
}
|
|
26543
|
-
function getElementAtPath(obj, path) {
|
|
26544
|
-
if (!path) return obj;
|
|
26545
|
-
return path.reduce((acc, key) => acc?.[key], obj);
|
|
26544
|
+
function getElementAtPath(obj, path$1) {
|
|
26545
|
+
if (!path$1) return obj;
|
|
26546
|
+
return path$1.reduce((acc, key) => acc?.[key], obj);
|
|
26546
26547
|
}
|
|
26547
26548
|
function promiseAllObject(promisesObj) {
|
|
26548
26549
|
const keys$9 = Object.keys(promisesObj);
|
|
@@ -26804,11 +26805,11 @@ function aborted(x$1, startIndex = 0) {
|
|
|
26804
26805
|
for (let i$2 = startIndex; i$2 < x$1.issues.length; i$2++) if (x$1.issues[i$2].continue !== true) return true;
|
|
26805
26806
|
return false;
|
|
26806
26807
|
}
|
|
26807
|
-
function prefixIssues(path, issues) {
|
|
26808
|
+
function prefixIssues(path$1, issues) {
|
|
26808
26809
|
return issues.map((iss) => {
|
|
26809
26810
|
var _a$1;
|
|
26810
26811
|
(_a$1 = iss).path ?? (_a$1.path = []);
|
|
26811
|
-
iss.path.unshift(path);
|
|
26812
|
+
iss.path.unshift(path$1);
|
|
26812
26813
|
return iss;
|
|
26813
26814
|
});
|
|
26814
26815
|
}
|
|
@@ -26919,13 +26920,13 @@ function treeifyError(error$39, _mapper) {
|
|
|
26919
26920
|
return issue$1.message;
|
|
26920
26921
|
};
|
|
26921
26922
|
const result = { errors: [] };
|
|
26922
|
-
const processError = (error$40, path = []) => {
|
|
26923
|
+
const processError = (error$40, path$1 = []) => {
|
|
26923
26924
|
var _a$1, _b;
|
|
26924
26925
|
for (const issue$1 of error$40.issues) if (issue$1.code === "invalid_union" && issue$1.errors.length) issue$1.errors.map((issues) => processError({ issues }, issue$1.path));
|
|
26925
26926
|
else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues }, issue$1.path);
|
|
26926
26927
|
else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues }, issue$1.path);
|
|
26927
26928
|
else {
|
|
26928
|
-
const fullpath = [...path, ...issue$1.path];
|
|
26929
|
+
const fullpath = [...path$1, ...issue$1.path];
|
|
26929
26930
|
if (fullpath.length === 0) {
|
|
26930
26931
|
result.errors.push(mapper(issue$1));
|
|
26931
26932
|
continue;
|
|
@@ -26952,9 +26953,9 @@ function treeifyError(error$39, _mapper) {
|
|
|
26952
26953
|
processError(error$39);
|
|
26953
26954
|
return result;
|
|
26954
26955
|
}
|
|
26955
|
-
function toDotPath(path) {
|
|
26956
|
+
function toDotPath(path$1) {
|
|
26956
26957
|
const segs = [];
|
|
26957
|
-
for (const seg of path) if (typeof seg === "number") segs.push(`[${seg}]`);
|
|
26958
|
+
for (const seg of path$1) if (typeof seg === "number") segs.push(`[${seg}]`);
|
|
26958
26959
|
else if (typeof seg === "symbol") segs.push(`[${JSON.stringify(String(seg))}]`);
|
|
26959
26960
|
else if (/[^\w$]/.test(seg)) segs.push(`[${JSON.stringify(seg)}]`);
|
|
26960
26961
|
else {
|
|
@@ -36609,11 +36610,11 @@ function __disposeResources(env) {
|
|
|
36609
36610
|
}
|
|
36610
36611
|
return next();
|
|
36611
36612
|
}
|
|
36612
|
-
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
36613
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m$1, tsx, d$1, ext, cm) {
|
|
36613
|
+
function __rewriteRelativeImportExtension(path$1, preserveJsx) {
|
|
36614
|
+
if (typeof path$1 === "string" && /^\.\.?\//.test(path$1)) return path$1.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m$1, tsx, d$1, ext, cm) {
|
|
36614
36615
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d$1 && (!ext || !cm) ? m$1 : d$1 + ext + "." + cm.toLowerCase() + "js";
|
|
36615
36616
|
});
|
|
36616
|
-
return path;
|
|
36617
|
+
return path$1;
|
|
36617
36618
|
}
|
|
36618
36619
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys$1, _SuppressedError, tslib_es6_default;
|
|
36619
36620
|
var init_tslib_es6 = __esmMin((() => {
|
|
@@ -37323,14 +37324,14 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37323
37324
|
this.__childCache = null;
|
|
37324
37325
|
};
|
|
37325
37326
|
var Pp$1 = Path$1.prototype;
|
|
37326
|
-
function getChildCache(path) {
|
|
37327
|
-
return path.__childCache || (path.__childCache = Object.create(null));
|
|
37327
|
+
function getChildCache(path$1) {
|
|
37328
|
+
return path$1.__childCache || (path$1.__childCache = Object.create(null));
|
|
37328
37329
|
}
|
|
37329
|
-
function getChildPath(path, name) {
|
|
37330
|
-
var cache$1 = getChildCache(path);
|
|
37331
|
-
var actualChildValue = path.getValueProperty(name);
|
|
37330
|
+
function getChildPath(path$1, name) {
|
|
37331
|
+
var cache$1 = getChildCache(path$1);
|
|
37332
|
+
var actualChildValue = path$1.getValueProperty(name);
|
|
37332
37333
|
var childPath = cache$1[name];
|
|
37333
|
-
if (!hasOwn$5.call(cache$1, name) || childPath.value !== actualChildValue) childPath = cache$1[name] = new path.constructor(actualChildValue, path, name);
|
|
37334
|
+
if (!hasOwn$5.call(cache$1, name) || childPath.value !== actualChildValue) childPath = cache$1[name] = new path$1.constructor(actualChildValue, path$1, name);
|
|
37334
37335
|
return childPath;
|
|
37335
37336
|
}
|
|
37336
37337
|
Pp$1.getValueProperty = function getValueProperty(name) {
|
|
@@ -37339,10 +37340,10 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37339
37340
|
Pp$1.get = function get$2() {
|
|
37340
37341
|
var names = [];
|
|
37341
37342
|
for (var _i = 0; _i < arguments.length; _i++) names[_i] = arguments[_i];
|
|
37342
|
-
var path = this;
|
|
37343
|
+
var path$1 = this;
|
|
37343
37344
|
var count = names.length;
|
|
37344
|
-
for (var i$2 = 0; i$2 < count; ++i$2) path = getChildPath(path, names[i$2]);
|
|
37345
|
-
return path;
|
|
37345
|
+
for (var i$2 = 0; i$2 < count; ++i$2) path$1 = getChildPath(path$1, names[i$2]);
|
|
37346
|
+
return path$1;
|
|
37346
37347
|
};
|
|
37347
37348
|
Pp$1.each = function each(callback, context) {
|
|
37348
37349
|
var childPaths = [];
|
|
@@ -37367,10 +37368,10 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37367
37368
|
return result;
|
|
37368
37369
|
};
|
|
37369
37370
|
function emptyMoves() {}
|
|
37370
|
-
function getMoves(path, offset$1, start, end) {
|
|
37371
|
-
isArray$12.assert(path.value);
|
|
37371
|
+
function getMoves(path$1, offset$1, start, end) {
|
|
37372
|
+
isArray$12.assert(path$1.value);
|
|
37372
37373
|
if (offset$1 === 0) return emptyMoves;
|
|
37373
|
-
var length$1 = path.value.length;
|
|
37374
|
+
var length$1 = path$1.value.length;
|
|
37374
37375
|
if (length$1 < 1) return emptyMoves;
|
|
37375
37376
|
var argc = arguments.length;
|
|
37376
37377
|
if (argc === 2) {
|
|
@@ -37386,9 +37387,9 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37386
37387
|
isNumber$3.assert(start);
|
|
37387
37388
|
isNumber$3.assert(end);
|
|
37388
37389
|
var moves = Object.create(null);
|
|
37389
|
-
var cache$1 = getChildCache(path);
|
|
37390
|
-
for (var i$2 = start; i$2 < end; ++i$2) if (hasOwn$5.call(path.value, i$2)) {
|
|
37391
|
-
var childPath = path.get(i$2);
|
|
37390
|
+
var cache$1 = getChildCache(path$1);
|
|
37391
|
+
for (var i$2 = start; i$2 < end; ++i$2) if (hasOwn$5.call(path$1.value, i$2)) {
|
|
37392
|
+
var childPath = path$1.get(i$2);
|
|
37392
37393
|
if (childPath.name !== i$2) throw new Error("");
|
|
37393
37394
|
var newIndex = i$2 + offset$1;
|
|
37394
37395
|
childPath.name = newIndex;
|
|
@@ -37401,7 +37402,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37401
37402
|
var childPath$1 = moves[newIndex$1];
|
|
37402
37403
|
if (childPath$1.name !== +newIndex$1) throw new Error("");
|
|
37403
37404
|
cache$1[newIndex$1] = childPath$1;
|
|
37404
|
-
path.value[newIndex$1] = childPath$1.value;
|
|
37405
|
+
path$1.value[newIndex$1] = childPath$1.value;
|
|
37405
37406
|
}
|
|
37406
37407
|
};
|
|
37407
37408
|
}
|
|
@@ -37460,23 +37461,23 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37460
37461
|
for (var i$2 = 0; i$2 < argc; ++i$2) insertAtArgs.push(args[i$2]);
|
|
37461
37462
|
return pp.insertAt.apply(pp, insertAtArgs);
|
|
37462
37463
|
};
|
|
37463
|
-
function repairRelationshipWithParent(path) {
|
|
37464
|
-
if (!(path instanceof Path$1)) throw new Error("");
|
|
37465
|
-
var pp = path.parentPath;
|
|
37466
|
-
if (!pp) return path;
|
|
37464
|
+
function repairRelationshipWithParent(path$1) {
|
|
37465
|
+
if (!(path$1 instanceof Path$1)) throw new Error("");
|
|
37466
|
+
var pp = path$1.parentPath;
|
|
37467
|
+
if (!pp) return path$1;
|
|
37467
37468
|
var parentValue = pp.value;
|
|
37468
37469
|
var parentCache = getChildCache(pp);
|
|
37469
|
-
if (parentValue[path.name] === path.value) parentCache[path.name] = path;
|
|
37470
|
+
if (parentValue[path$1.name] === path$1.value) parentCache[path$1.name] = path$1;
|
|
37470
37471
|
else if (isArray$12.check(parentValue)) {
|
|
37471
|
-
var i$2 = parentValue.indexOf(path.value);
|
|
37472
|
-
if (i$2 >= 0) parentCache[path.name = i$2] = path;
|
|
37472
|
+
var i$2 = parentValue.indexOf(path$1.value);
|
|
37473
|
+
if (i$2 >= 0) parentCache[path$1.name = i$2] = path$1;
|
|
37473
37474
|
} else {
|
|
37474
|
-
parentValue[path.name] = path.value;
|
|
37475
|
-
parentCache[path.name] = path;
|
|
37475
|
+
parentValue[path$1.name] = path$1.value;
|
|
37476
|
+
parentCache[path$1.name] = path$1;
|
|
37476
37477
|
}
|
|
37477
|
-
if (parentValue[path.name] !== path.value) throw new Error("");
|
|
37478
|
-
if (path.parentPath.get(path.name) !== path) throw new Error("");
|
|
37479
|
-
return path;
|
|
37478
|
+
if (parentValue[path$1.name] !== path$1.value) throw new Error("");
|
|
37479
|
+
if (path$1.parentPath.get(path$1.name) !== path$1) throw new Error("");
|
|
37480
|
+
return path$1;
|
|
37480
37481
|
}
|
|
37481
37482
|
Pp$1.replace = function replace(replacement) {
|
|
37482
37483
|
var results = [];
|
|
@@ -37537,9 +37538,9 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37537
37538
|
var Expression$2 = namedTypes$1.Expression;
|
|
37538
37539
|
var isArray$12 = types$8.builtInTypes.array;
|
|
37539
37540
|
var b$5 = types$8.builders;
|
|
37540
|
-
var Scope = function Scope$1(path, parentScope) {
|
|
37541
|
+
var Scope = function Scope$1(path$1, parentScope) {
|
|
37541
37542
|
if (!(this instanceof Scope$1)) throw new Error("Scope constructor cannot be invoked without 'new'");
|
|
37542
|
-
if (!TypeParameterScopeType.check(path.value)) ScopeType.assert(path.value);
|
|
37543
|
+
if (!TypeParameterScopeType.check(path$1.value)) ScopeType.assert(path$1.value);
|
|
37543
37544
|
var depth;
|
|
37544
37545
|
if (parentScope) {
|
|
37545
37546
|
if (!(parentScope instanceof Scope$1)) throw new Error("");
|
|
@@ -37549,8 +37550,8 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37549
37550
|
depth = 0;
|
|
37550
37551
|
}
|
|
37551
37552
|
Object.defineProperties(this, {
|
|
37552
|
-
path: { value: path },
|
|
37553
|
-
node: { value: path.value },
|
|
37553
|
+
path: { value: path$1 },
|
|
37554
|
+
node: { value: path$1.value },
|
|
37554
37555
|
isGlobal: {
|
|
37555
37556
|
value: !parentScope,
|
|
37556
37557
|
enumerable: true
|
|
@@ -37611,60 +37612,60 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37611
37612
|
this.scan();
|
|
37612
37613
|
return this.types;
|
|
37613
37614
|
};
|
|
37614
|
-
function scanScope(path, bindings, scopeTypes) {
|
|
37615
|
-
var node = path.value;
|
|
37615
|
+
function scanScope(path$1, bindings, scopeTypes) {
|
|
37616
|
+
var node = path$1.value;
|
|
37616
37617
|
if (TypeParameterScopeType.check(node)) {
|
|
37617
|
-
var params = path.get("typeParameters", "params");
|
|
37618
|
+
var params = path$1.get("typeParameters", "params");
|
|
37618
37619
|
if (isArray$12.check(params.value)) params.each(function(childPath) {
|
|
37619
37620
|
addTypeParameter(childPath, scopeTypes);
|
|
37620
37621
|
});
|
|
37621
37622
|
}
|
|
37622
|
-
if (ScopeType.check(node)) if (namedTypes$1.CatchClause.check(node)) addPattern(path.get("param"), bindings);
|
|
37623
|
-
else recursiveScanScope(path, bindings, scopeTypes);
|
|
37623
|
+
if (ScopeType.check(node)) if (namedTypes$1.CatchClause.check(node)) addPattern(path$1.get("param"), bindings);
|
|
37624
|
+
else recursiveScanScope(path$1, bindings, scopeTypes);
|
|
37624
37625
|
}
|
|
37625
|
-
function recursiveScanScope(path, bindings, scopeTypes) {
|
|
37626
|
-
var node = path.value;
|
|
37627
|
-
if (path.parent && namedTypes$1.FunctionExpression.check(path.parent.node) && path.parent.node.id) addPattern(path.parent.get("id"), bindings);
|
|
37628
|
-
if (!node) {} else if (isArray$12.check(node)) path.each(function(childPath) {
|
|
37626
|
+
function recursiveScanScope(path$1, bindings, scopeTypes) {
|
|
37627
|
+
var node = path$1.value;
|
|
37628
|
+
if (path$1.parent && namedTypes$1.FunctionExpression.check(path$1.parent.node) && path$1.parent.node.id) addPattern(path$1.parent.get("id"), bindings);
|
|
37629
|
+
if (!node) {} else if (isArray$12.check(node)) path$1.each(function(childPath) {
|
|
37629
37630
|
recursiveScanChild(childPath, bindings, scopeTypes);
|
|
37630
37631
|
});
|
|
37631
37632
|
else if (namedTypes$1.Function.check(node)) {
|
|
37632
|
-
path.get("params").each(function(paramPath) {
|
|
37633
|
+
path$1.get("params").each(function(paramPath) {
|
|
37633
37634
|
addPattern(paramPath, bindings);
|
|
37634
37635
|
});
|
|
37635
|
-
recursiveScanChild(path.get("body"), bindings, scopeTypes);
|
|
37636
|
-
recursiveScanScope(path.get("typeParameters"), bindings, scopeTypes);
|
|
37637
|
-
} else if (namedTypes$1.TypeAlias && namedTypes$1.TypeAlias.check(node) || namedTypes$1.InterfaceDeclaration && namedTypes$1.InterfaceDeclaration.check(node) || namedTypes$1.TSTypeAliasDeclaration && namedTypes$1.TSTypeAliasDeclaration.check(node) || namedTypes$1.TSInterfaceDeclaration && namedTypes$1.TSInterfaceDeclaration.check(node)) addTypePattern(path.get("id"), scopeTypes);
|
|
37636
|
+
recursiveScanChild(path$1.get("body"), bindings, scopeTypes);
|
|
37637
|
+
recursiveScanScope(path$1.get("typeParameters"), bindings, scopeTypes);
|
|
37638
|
+
} else if (namedTypes$1.TypeAlias && namedTypes$1.TypeAlias.check(node) || namedTypes$1.InterfaceDeclaration && namedTypes$1.InterfaceDeclaration.check(node) || namedTypes$1.TSTypeAliasDeclaration && namedTypes$1.TSTypeAliasDeclaration.check(node) || namedTypes$1.TSInterfaceDeclaration && namedTypes$1.TSInterfaceDeclaration.check(node)) addTypePattern(path$1.get("id"), scopeTypes);
|
|
37638
37639
|
else if (namedTypes$1.VariableDeclarator.check(node)) {
|
|
37639
|
-
addPattern(path.get("id"), bindings);
|
|
37640
|
-
recursiveScanChild(path.get("init"), bindings, scopeTypes);
|
|
37641
|
-
} else if (node.type === "ImportSpecifier" || node.type === "ImportNamespaceSpecifier" || node.type === "ImportDefaultSpecifier") addPattern(path.get(node.local ? "local" : node.name ? "name" : "id"), bindings);
|
|
37640
|
+
addPattern(path$1.get("id"), bindings);
|
|
37641
|
+
recursiveScanChild(path$1.get("init"), bindings, scopeTypes);
|
|
37642
|
+
} else if (node.type === "ImportSpecifier" || node.type === "ImportNamespaceSpecifier" || node.type === "ImportDefaultSpecifier") addPattern(path$1.get(node.local ? "local" : node.name ? "name" : "id"), bindings);
|
|
37642
37643
|
else if (Node.check(node) && !Expression$2.check(node)) types$8.eachField(node, function(name, child) {
|
|
37643
|
-
var childPath = path.get(name);
|
|
37644
|
+
var childPath = path$1.get(name);
|
|
37644
37645
|
if (!pathHasValue(childPath, child)) throw new Error("");
|
|
37645
37646
|
recursiveScanChild(childPath, bindings, scopeTypes);
|
|
37646
37647
|
});
|
|
37647
37648
|
}
|
|
37648
|
-
function pathHasValue(path, value) {
|
|
37649
|
-
if (path.value === value) return true;
|
|
37650
|
-
if (Array.isArray(path.value) && path.value.length === 0 && Array.isArray(value) && value.length === 0) return true;
|
|
37649
|
+
function pathHasValue(path$1, value) {
|
|
37650
|
+
if (path$1.value === value) return true;
|
|
37651
|
+
if (Array.isArray(path$1.value) && path$1.value.length === 0 && Array.isArray(value) && value.length === 0) return true;
|
|
37651
37652
|
return false;
|
|
37652
37653
|
}
|
|
37653
|
-
function recursiveScanChild(path, bindings, scopeTypes) {
|
|
37654
|
-
var node = path.value;
|
|
37655
|
-
if (!node || Expression$2.check(node)) {} else if (namedTypes$1.FunctionDeclaration.check(node) && node.id !== null) addPattern(path.get("id"), bindings);
|
|
37654
|
+
function recursiveScanChild(path$1, bindings, scopeTypes) {
|
|
37655
|
+
var node = path$1.value;
|
|
37656
|
+
if (!node || Expression$2.check(node)) {} else if (namedTypes$1.FunctionDeclaration.check(node) && node.id !== null) addPattern(path$1.get("id"), bindings);
|
|
37656
37657
|
else if (namedTypes$1.ClassDeclaration && namedTypes$1.ClassDeclaration.check(node) && node.id !== null) {
|
|
37657
|
-
addPattern(path.get("id"), bindings);
|
|
37658
|
-
recursiveScanScope(path.get("typeParameters"), bindings, scopeTypes);
|
|
37659
|
-
} else if (namedTypes$1.InterfaceDeclaration && namedTypes$1.InterfaceDeclaration.check(node) || namedTypes$1.TSInterfaceDeclaration && namedTypes$1.TSInterfaceDeclaration.check(node)) addTypePattern(path.get("id"), scopeTypes);
|
|
37658
|
+
addPattern(path$1.get("id"), bindings);
|
|
37659
|
+
recursiveScanScope(path$1.get("typeParameters"), bindings, scopeTypes);
|
|
37660
|
+
} else if (namedTypes$1.InterfaceDeclaration && namedTypes$1.InterfaceDeclaration.check(node) || namedTypes$1.TSInterfaceDeclaration && namedTypes$1.TSInterfaceDeclaration.check(node)) addTypePattern(path$1.get("id"), scopeTypes);
|
|
37660
37661
|
else if (ScopeType.check(node)) {
|
|
37661
37662
|
if (namedTypes$1.CatchClause.check(node) && namedTypes$1.Identifier.check(node.param)) {
|
|
37662
37663
|
var catchParamName = node.param.name;
|
|
37663
37664
|
var hadBinding = hasOwn$4.call(bindings, catchParamName);
|
|
37664
|
-
recursiveScanScope(path.get("body"), bindings, scopeTypes);
|
|
37665
|
+
recursiveScanScope(path$1.get("body"), bindings, scopeTypes);
|
|
37665
37666
|
if (!hadBinding) delete bindings[catchParamName];
|
|
37666
37667
|
}
|
|
37667
|
-
} else recursiveScanScope(path, bindings, scopeTypes);
|
|
37668
|
+
} else recursiveScanScope(path$1, bindings, scopeTypes);
|
|
37668
37669
|
}
|
|
37669
37670
|
function addPattern(patternPath, bindings) {
|
|
37670
37671
|
var pattern = patternPath.value;
|
|
@@ -37928,39 +37929,39 @@ var require_node_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
37928
37929
|
NPp.firstInStatement = function() {
|
|
37929
37930
|
return firstInStatement(this);
|
|
37930
37931
|
};
|
|
37931
|
-
function firstInStatement(path) {
|
|
37932
|
-
for (var node, parent; path.parent; path = path.parent) {
|
|
37933
|
-
node = path.node;
|
|
37934
|
-
parent = path.parent.node;
|
|
37935
|
-
if (n$5.BlockStatement.check(parent) && path.parent.name === "body" && path.name === 0) {
|
|
37932
|
+
function firstInStatement(path$1) {
|
|
37933
|
+
for (var node, parent; path$1.parent; path$1 = path$1.parent) {
|
|
37934
|
+
node = path$1.node;
|
|
37935
|
+
parent = path$1.parent.node;
|
|
37936
|
+
if (n$5.BlockStatement.check(parent) && path$1.parent.name === "body" && path$1.name === 0) {
|
|
37936
37937
|
if (parent.body[0] !== node) throw new Error("Nodes must be equal");
|
|
37937
37938
|
return true;
|
|
37938
37939
|
}
|
|
37939
|
-
if (n$5.ExpressionStatement.check(parent) && path.name === "expression") {
|
|
37940
|
+
if (n$5.ExpressionStatement.check(parent) && path$1.name === "expression") {
|
|
37940
37941
|
if (parent.expression !== node) throw new Error("Nodes must be equal");
|
|
37941
37942
|
return true;
|
|
37942
37943
|
}
|
|
37943
|
-
if (n$5.SequenceExpression.check(parent) && path.parent.name === "expressions" && path.name === 0) {
|
|
37944
|
+
if (n$5.SequenceExpression.check(parent) && path$1.parent.name === "expressions" && path$1.name === 0) {
|
|
37944
37945
|
if (parent.expressions[0] !== node) throw new Error("Nodes must be equal");
|
|
37945
37946
|
continue;
|
|
37946
37947
|
}
|
|
37947
|
-
if (n$5.CallExpression.check(parent) && path.name === "callee") {
|
|
37948
|
+
if (n$5.CallExpression.check(parent) && path$1.name === "callee") {
|
|
37948
37949
|
if (parent.callee !== node) throw new Error("Nodes must be equal");
|
|
37949
37950
|
continue;
|
|
37950
37951
|
}
|
|
37951
|
-
if (n$5.MemberExpression.check(parent) && path.name === "object") {
|
|
37952
|
+
if (n$5.MemberExpression.check(parent) && path$1.name === "object") {
|
|
37952
37953
|
if (parent.object !== node) throw new Error("Nodes must be equal");
|
|
37953
37954
|
continue;
|
|
37954
37955
|
}
|
|
37955
|
-
if (n$5.ConditionalExpression.check(parent) && path.name === "test") {
|
|
37956
|
+
if (n$5.ConditionalExpression.check(parent) && path$1.name === "test") {
|
|
37956
37957
|
if (parent.test !== node) throw new Error("Nodes must be equal");
|
|
37957
37958
|
continue;
|
|
37958
37959
|
}
|
|
37959
|
-
if (isBinary$1(parent) && path.name === "left") {
|
|
37960
|
+
if (isBinary$1(parent) && path$1.name === "left") {
|
|
37960
37961
|
if (parent.left !== node) throw new Error("Nodes must be equal");
|
|
37961
37962
|
continue;
|
|
37962
37963
|
}
|
|
37963
|
-
if (n$5.UnaryExpression.check(parent) && !parent.prefix && path.name === "argument") {
|
|
37964
|
+
if (n$5.UnaryExpression.check(parent) && !parent.prefix && path$1.name === "argument") {
|
|
37964
37965
|
if (parent.argument !== node) throw new Error("Nodes must be equal");
|
|
37965
37966
|
continue;
|
|
37966
37967
|
}
|
|
@@ -38090,25 +38091,25 @@ var require_path_visitor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38090
38091
|
throw request;
|
|
38091
38092
|
};
|
|
38092
38093
|
PVp.reset = function(_path) {};
|
|
38093
|
-
PVp.visitWithoutReset = function(path) {
|
|
38094
|
-
if (this instanceof this.Context) return this.visitor.visitWithoutReset(path);
|
|
38095
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38096
|
-
var value = path.value;
|
|
38094
|
+
PVp.visitWithoutReset = function(path$1) {
|
|
38095
|
+
if (this instanceof this.Context) return this.visitor.visitWithoutReset(path$1);
|
|
38096
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38097
|
+
var value = path$1.value;
|
|
38097
38098
|
var methodName = value && typeof value === "object" && typeof value.type === "string" && this._methodNameTable[value.type];
|
|
38098
38099
|
if (methodName) {
|
|
38099
|
-
var context = this.acquireContext(path);
|
|
38100
|
+
var context = this.acquireContext(path$1);
|
|
38100
38101
|
try {
|
|
38101
38102
|
return context.invokeVisitorMethod(methodName);
|
|
38102
38103
|
} finally {
|
|
38103
38104
|
this.releaseContext(context);
|
|
38104
38105
|
}
|
|
38105
|
-
} else return visitChildren(path, this);
|
|
38106
|
+
} else return visitChildren(path$1, this);
|
|
38106
38107
|
};
|
|
38107
|
-
function visitChildren(path, visitor) {
|
|
38108
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38108
|
+
function visitChildren(path$1, visitor) {
|
|
38109
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38109
38110
|
if (!(visitor instanceof PathVisitor$1)) throw new Error("");
|
|
38110
|
-
var value = path.value;
|
|
38111
|
-
if (isArray$12.check(value)) path.each(visitor.visitWithoutReset, visitor);
|
|
38111
|
+
var value = path$1.value;
|
|
38112
|
+
if (isArray$12.check(value)) path$1.each(visitor.visitWithoutReset, visitor);
|
|
38112
38113
|
else if (!isObject$10.check(value)) {} else {
|
|
38113
38114
|
var childNames = types$8.getFieldNames(value);
|
|
38114
38115
|
if (visitor._shouldVisitComments && value.comments && childNames.indexOf("comments") < 0) childNames.push("comments");
|
|
@@ -38117,15 +38118,15 @@ var require_path_visitor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38117
38118
|
for (var i$2 = 0; i$2 < childCount; ++i$2) {
|
|
38118
38119
|
var childName = childNames[i$2];
|
|
38119
38120
|
if (!hasOwn$3.call(value, childName)) value[childName] = types$8.getFieldValue(value, childName);
|
|
38120
|
-
childPaths.push(path.get(childName));
|
|
38121
|
+
childPaths.push(path$1.get(childName));
|
|
38121
38122
|
}
|
|
38122
38123
|
for (var i$2 = 0; i$2 < childCount; ++i$2) visitor.visitWithoutReset(childPaths[i$2]);
|
|
38123
38124
|
}
|
|
38124
|
-
return path.value;
|
|
38125
|
+
return path$1.value;
|
|
38125
38126
|
}
|
|
38126
|
-
PVp.acquireContext = function(path) {
|
|
38127
|
-
if (this._reusableContextStack.length === 0) return new this.Context(path);
|
|
38128
|
-
return this._reusableContextStack.pop().reset(path);
|
|
38127
|
+
PVp.acquireContext = function(path$1) {
|
|
38128
|
+
if (this._reusableContextStack.length === 0) return new this.Context(path$1);
|
|
38129
|
+
return this._reusableContextStack.pop().reset(path$1);
|
|
38129
38130
|
};
|
|
38130
38131
|
PVp.releaseContext = function(context) {
|
|
38131
38132
|
if (!(context instanceof this.Context)) throw new Error("");
|
|
@@ -38139,17 +38140,17 @@ var require_path_visitor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38139
38140
|
return this._changeReported;
|
|
38140
38141
|
};
|
|
38141
38142
|
function makeContextConstructor(visitor) {
|
|
38142
|
-
function Context(path) {
|
|
38143
|
+
function Context(path$1) {
|
|
38143
38144
|
if (!(this instanceof Context)) throw new Error("");
|
|
38144
38145
|
if (!(this instanceof PathVisitor$1)) throw new Error("");
|
|
38145
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38146
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38146
38147
|
Object.defineProperty(this, "visitor", {
|
|
38147
38148
|
value: visitor,
|
|
38148
38149
|
writable: false,
|
|
38149
38150
|
enumerable: true,
|
|
38150
38151
|
configurable: false
|
|
38151
38152
|
});
|
|
38152
|
-
this.currentPath = path;
|
|
38153
|
+
this.currentPath = path$1;
|
|
38153
38154
|
this.needToCallTraverse = true;
|
|
38154
38155
|
Object.seal(this);
|
|
38155
38156
|
}
|
|
@@ -38160,10 +38161,10 @@ var require_path_visitor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38160
38161
|
return Context;
|
|
38161
38162
|
}
|
|
38162
38163
|
var sharedContextProtoMethods = Object.create(null);
|
|
38163
|
-
sharedContextProtoMethods.reset = function reset(path) {
|
|
38164
|
+
sharedContextProtoMethods.reset = function reset(path$1) {
|
|
38164
38165
|
if (!(this instanceof this.Context)) throw new Error("");
|
|
38165
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38166
|
-
this.currentPath = path;
|
|
38166
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38167
|
+
this.currentPath = path$1;
|
|
38167
38168
|
this.needToCallTraverse = true;
|
|
38168
38169
|
return this;
|
|
38169
38170
|
};
|
|
@@ -38177,22 +38178,22 @@ var require_path_visitor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38177
38178
|
if (this.needToCallTraverse) this.traverse(this.currentPath);
|
|
38178
38179
|
}
|
|
38179
38180
|
if (this.needToCallTraverse !== false) throw new Error("Must either call this.traverse or return false in " + methodName);
|
|
38180
|
-
var path = this.currentPath;
|
|
38181
|
-
return path && path.value;
|
|
38181
|
+
var path$1 = this.currentPath;
|
|
38182
|
+
return path$1 && path$1.value;
|
|
38182
38183
|
};
|
|
38183
|
-
sharedContextProtoMethods.traverse = function traverse(path, newVisitor) {
|
|
38184
|
+
sharedContextProtoMethods.traverse = function traverse(path$1, newVisitor) {
|
|
38184
38185
|
if (!(this instanceof this.Context)) throw new Error("");
|
|
38185
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38186
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38186
38187
|
if (!(this.currentPath instanceof NodePath$1)) throw new Error("");
|
|
38187
38188
|
this.needToCallTraverse = false;
|
|
38188
|
-
return visitChildren(path, PathVisitor$1.fromMethodsObject(newVisitor || this.visitor));
|
|
38189
|
+
return visitChildren(path$1, PathVisitor$1.fromMethodsObject(newVisitor || this.visitor));
|
|
38189
38190
|
};
|
|
38190
|
-
sharedContextProtoMethods.visit = function visit$5(path, newVisitor) {
|
|
38191
|
+
sharedContextProtoMethods.visit = function visit$5(path$1, newVisitor) {
|
|
38191
38192
|
if (!(this instanceof this.Context)) throw new Error("");
|
|
38192
|
-
if (!(path instanceof NodePath$1)) throw new Error("");
|
|
38193
|
+
if (!(path$1 instanceof NodePath$1)) throw new Error("");
|
|
38193
38194
|
if (!(this.currentPath instanceof NodePath$1)) throw new Error("");
|
|
38194
38195
|
this.needToCallTraverse = false;
|
|
38195
|
-
return PathVisitor$1.fromMethodsObject(newVisitor || this.visitor).visitWithoutReset(path);
|
|
38196
|
+
return PathVisitor$1.fromMethodsObject(newVisitor || this.visitor).visitWithoutReset(path$1);
|
|
38196
38197
|
};
|
|
38197
38198
|
sharedContextProtoMethods.reportChanged = function reportChanged() {
|
|
38198
38199
|
this.visitor.reportChanged();
|
|
@@ -41135,14 +41136,14 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
41135
41136
|
}
|
|
41136
41137
|
exports.urlGenerate = urlGenerate;
|
|
41137
41138
|
function normalize$1(aPath) {
|
|
41138
|
-
var path = aPath;
|
|
41139
|
+
var path$1 = aPath;
|
|
41139
41140
|
var url$1 = urlParse(aPath);
|
|
41140
41141
|
if (url$1) {
|
|
41141
41142
|
if (!url$1.path) return aPath;
|
|
41142
|
-
path = url$1.path;
|
|
41143
|
+
path$1 = url$1.path;
|
|
41143
41144
|
}
|
|
41144
|
-
var isAbsolute = exports.isAbsolute(path);
|
|
41145
|
-
var parts = path.split(/\/+/);
|
|
41145
|
+
var isAbsolute = exports.isAbsolute(path$1);
|
|
41146
|
+
var parts = path$1.split(/\/+/);
|
|
41146
41147
|
for (var part, up = 0, i$2 = parts.length - 1; i$2 >= 0; i$2--) {
|
|
41147
41148
|
part = parts[i$2];
|
|
41148
41149
|
if (part === ".") parts.splice(i$2, 1);
|
|
@@ -41155,13 +41156,13 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
41155
41156
|
up--;
|
|
41156
41157
|
}
|
|
41157
41158
|
}
|
|
41158
|
-
path = parts.join("/");
|
|
41159
|
-
if (path === "") path = isAbsolute ? "/" : ".";
|
|
41159
|
+
path$1 = parts.join("/");
|
|
41160
|
+
if (path$1 === "") path$1 = isAbsolute ? "/" : ".";
|
|
41160
41161
|
if (url$1) {
|
|
41161
|
-
url$1.path = path;
|
|
41162
|
+
url$1.path = path$1;
|
|
41162
41163
|
return urlGenerate(url$1);
|
|
41163
41164
|
}
|
|
41164
|
-
return path;
|
|
41165
|
+
return path$1;
|
|
41165
41166
|
}
|
|
41166
41167
|
exports.normalize = normalize$1;
|
|
41167
41168
|
function join(aRoot, aPath) {
|
|
@@ -42538,9 +42539,9 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
42538
42539
|
return false;
|
|
42539
42540
|
}
|
|
42540
42541
|
exports.isExportDeclaration = isExportDeclaration;
|
|
42541
|
-
function getParentExportDeclaration(path) {
|
|
42542
|
-
var parentNode = path.getParentNode();
|
|
42543
|
-
if (path.getName() === "declaration" && isExportDeclaration(parentNode)) return parentNode;
|
|
42542
|
+
function getParentExportDeclaration(path$1) {
|
|
42543
|
+
var parentNode = path$1.getParentNode();
|
|
42544
|
+
if (path$1.getName() === "declaration" && isExportDeclaration(parentNode)) return parentNode;
|
|
42544
42545
|
return null;
|
|
42545
42546
|
}
|
|
42546
42547
|
exports.getParentExportDeclaration = getParentExportDeclaration;
|
|
@@ -48754,14 +48755,14 @@ var require_comments = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
48754
48755
|
parts.push(print$4(commentPath));
|
|
48755
48756
|
return lines_1$2.concat(parts);
|
|
48756
48757
|
}
|
|
48757
|
-
function printComments(path, print$4) {
|
|
48758
|
-
var value = path.getValue();
|
|
48759
|
-
var innerLines = print$4(path);
|
|
48758
|
+
function printComments(path$1, print$4) {
|
|
48759
|
+
var value = path$1.getValue();
|
|
48760
|
+
var innerLines = print$4(path$1);
|
|
48760
48761
|
var comments = n$1.Node.check(value) && types$7.getFieldValue(value, "comments");
|
|
48761
48762
|
if (!comments || comments.length === 0) return innerLines;
|
|
48762
48763
|
var leadingParts = [];
|
|
48763
48764
|
var trailingParts = [innerLines];
|
|
48764
|
-
path.each(function(commentPath) {
|
|
48765
|
+
path$1.each(function(commentPath) {
|
|
48765
48766
|
var comment = commentPath.getValue();
|
|
48766
48767
|
var leading = types$7.getFieldValue(comment, "leading");
|
|
48767
48768
|
var trailing = types$7.getFieldValue(comment, "trailing");
|
|
@@ -49012,8 +49013,8 @@ var require_fast_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49012
49013
|
var valueIndex = s$2.length - 1;
|
|
49013
49014
|
return s$2.lastIndexOf(s$2[valueIndex], valueIndex - 1) >= 0;
|
|
49014
49015
|
};
|
|
49015
|
-
function getNodeHelper(path, count) {
|
|
49016
|
-
var s$2 = path.stack;
|
|
49016
|
+
function getNodeHelper(path$1, count) {
|
|
49017
|
+
var s$2 = path$1.stack;
|
|
49017
49018
|
for (var i$2 = s$2.length - 1; i$2 >= 0; i$2 -= 2) {
|
|
49018
49019
|
var value = s$2[i$2];
|
|
49019
49020
|
if (n.Node.check(value) && --count < 0) return value;
|
|
@@ -49372,15 +49373,15 @@ var require_patcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49372
49373
|
}, "");
|
|
49373
49374
|
});
|
|
49374
49375
|
};
|
|
49375
|
-
function getReprinter(path) {
|
|
49376
|
-
assert_1$1.default.ok(path instanceof fast_path_1$1.default);
|
|
49377
|
-
var node = path.getValue();
|
|
49376
|
+
function getReprinter(path$1) {
|
|
49377
|
+
assert_1$1.default.ok(path$1 instanceof fast_path_1$1.default);
|
|
49378
|
+
var node = path$1.getValue();
|
|
49378
49379
|
if (!Printable.check(node)) return;
|
|
49379
49380
|
var orig = node.original;
|
|
49380
49381
|
var origLoc = orig && orig.loc;
|
|
49381
49382
|
var lines = origLoc && origLoc.lines;
|
|
49382
49383
|
var reprints = [];
|
|
49383
|
-
if (!lines || !findReprints(path, reprints)) return;
|
|
49384
|
+
if (!lines || !findReprints(path$1, reprints)) return;
|
|
49384
49385
|
return function(print$4) {
|
|
49385
49386
|
var patcher = new Patcher(lines);
|
|
49386
49387
|
reprints.forEach(function(reprint) {
|
|
@@ -49405,7 +49406,7 @@ var require_patcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49405
49406
|
patcher.replace(oldNode.loc, newLines);
|
|
49406
49407
|
});
|
|
49407
49408
|
var patchedLines = patcher.get(origLoc).indentTail(-orig.loc.indent);
|
|
49408
|
-
if (path.needsParens()) return linesModule.concat([
|
|
49409
|
+
if (path$1.needsParens()) return linesModule.concat([
|
|
49409
49410
|
"(",
|
|
49410
49411
|
patchedLines,
|
|
49411
49412
|
")"
|
|
@@ -49562,21 +49563,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49562
49563
|
config$2.sourceFileName = null;
|
|
49563
49564
|
function makePrintFunctionWith(options, overrides) {
|
|
49564
49565
|
options = Object.assign({}, options, overrides);
|
|
49565
|
-
return function(path) {
|
|
49566
|
-
return print$4(path, options);
|
|
49566
|
+
return function(path$1) {
|
|
49567
|
+
return print$4(path$1, options);
|
|
49567
49568
|
};
|
|
49568
49569
|
}
|
|
49569
|
-
function print$4(path, options) {
|
|
49570
|
-
assert_1.default.ok(path instanceof fast_path_1.default);
|
|
49570
|
+
function print$4(path$1, options) {
|
|
49571
|
+
assert_1.default.ok(path$1 instanceof fast_path_1.default);
|
|
49571
49572
|
options = options || {};
|
|
49572
|
-
if (options.includeComments) return comments_1.printComments(path, makePrintFunctionWith(options, { includeComments: false }));
|
|
49573
|
+
if (options.includeComments) return comments_1.printComments(path$1, makePrintFunctionWith(options, { includeComments: false }));
|
|
49573
49574
|
var oldTabWidth = config$2.tabWidth;
|
|
49574
49575
|
if (!explicitTabWidth) {
|
|
49575
|
-
var loc = path.getNode().loc;
|
|
49576
|
+
var loc = path$1.getNode().loc;
|
|
49576
49577
|
if (loc && loc.lines && loc.lines.guessTabWidth) config$2.tabWidth = loc.lines.guessTabWidth();
|
|
49577
49578
|
}
|
|
49578
|
-
var reprinter = patcher_1.getReprinter(path);
|
|
49579
|
-
var lines = reprinter ? reprinter(print$4) : genericPrint(path, config$2, options, makePrintFunctionWith(options, {
|
|
49579
|
+
var reprinter = patcher_1.getReprinter(path$1);
|
|
49580
|
+
var lines = reprinter ? reprinter(print$4) : genericPrint(path$1, config$2, options, makePrintFunctionWith(options, {
|
|
49580
49581
|
includeComments: true,
|
|
49581
49582
|
avoidRootParens: false
|
|
49582
49583
|
}));
|
|
@@ -49593,98 +49594,98 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49593
49594
|
};
|
|
49594
49595
|
this.printGenerically = function(ast) {
|
|
49595
49596
|
if (!ast) return emptyPrintResult;
|
|
49596
|
-
function printGenerically(path$
|
|
49597
|
-
return comments_1.printComments(path$
|
|
49598
|
-
return genericPrint(path$
|
|
49597
|
+
function printGenerically(path$2) {
|
|
49598
|
+
return comments_1.printComments(path$2, function(path$3) {
|
|
49599
|
+
return genericPrint(path$3, config$2, {
|
|
49599
49600
|
includeComments: true,
|
|
49600
49601
|
avoidRootParens: false
|
|
49601
49602
|
}, printGenerically);
|
|
49602
49603
|
});
|
|
49603
49604
|
}
|
|
49604
|
-
var path = fast_path_1.default.from(ast);
|
|
49605
|
+
var path$1 = fast_path_1.default.from(ast);
|
|
49605
49606
|
var oldReuseWhitespace = config$2.reuseWhitespace;
|
|
49606
49607
|
config$2.reuseWhitespace = false;
|
|
49607
|
-
var pr = new PrintResult(printGenerically(path).toString(config$2));
|
|
49608
|
+
var pr = new PrintResult(printGenerically(path$1).toString(config$2));
|
|
49608
49609
|
config$2.reuseWhitespace = oldReuseWhitespace;
|
|
49609
49610
|
return pr;
|
|
49610
49611
|
};
|
|
49611
49612
|
};
|
|
49612
|
-
function genericPrint(path, config$2, options, printPath) {
|
|
49613
|
-
assert_1.default.ok(path instanceof fast_path_1.default);
|
|
49614
|
-
var node = path.getValue();
|
|
49613
|
+
function genericPrint(path$1, config$2, options, printPath) {
|
|
49614
|
+
assert_1.default.ok(path$1 instanceof fast_path_1.default);
|
|
49615
|
+
var node = path$1.getValue();
|
|
49615
49616
|
var parts = [];
|
|
49616
|
-
var linesWithoutParens = genericPrintNoParens(path, config$2, printPath);
|
|
49617
|
+
var linesWithoutParens = genericPrintNoParens(path$1, config$2, printPath);
|
|
49617
49618
|
if (!node || linesWithoutParens.isEmpty()) return linesWithoutParens;
|
|
49618
49619
|
var shouldAddParens = false;
|
|
49619
|
-
var decoratorsLines = printDecorators(path, printPath);
|
|
49620
|
+
var decoratorsLines = printDecorators(path$1, printPath);
|
|
49620
49621
|
if (decoratorsLines.isEmpty()) {
|
|
49621
|
-
if (!options.avoidRootParens) shouldAddParens = path.needsParens();
|
|
49622
|
+
if (!options.avoidRootParens) shouldAddParens = path$1.needsParens();
|
|
49622
49623
|
} else parts.push(decoratorsLines);
|
|
49623
49624
|
if (shouldAddParens) parts.unshift("(");
|
|
49624
49625
|
parts.push(linesWithoutParens);
|
|
49625
49626
|
if (shouldAddParens) parts.push(")");
|
|
49626
49627
|
return lines_1.concat(parts);
|
|
49627
49628
|
}
|
|
49628
|
-
function genericPrintNoParens(path, options, print$4) {
|
|
49629
|
-
var n$5 = path.getValue();
|
|
49629
|
+
function genericPrintNoParens(path$1, options, print$4) {
|
|
49630
|
+
var n$5 = path$1.getValue();
|
|
49630
49631
|
if (!n$5) return lines_1.fromString("");
|
|
49631
49632
|
if (typeof n$5 === "string") return lines_1.fromString(n$5, options);
|
|
49632
49633
|
namedTypes.Printable.assert(n$5);
|
|
49633
49634
|
var parts = [];
|
|
49634
49635
|
switch (n$5.type) {
|
|
49635
|
-
case "File": return path.call(print$4, "program");
|
|
49636
|
+
case "File": return path$1.call(print$4, "program");
|
|
49636
49637
|
case "Program":
|
|
49637
|
-
if (n$5.directives) path.each(function(childPath) {
|
|
49638
|
+
if (n$5.directives) path$1.each(function(childPath) {
|
|
49638
49639
|
parts.push(print$4(childPath), ";\n");
|
|
49639
49640
|
}, "directives");
|
|
49640
|
-
if (n$5.interpreter) parts.push(path.call(print$4, "interpreter"));
|
|
49641
|
-
parts.push(path.call(function(bodyPath) {
|
|
49641
|
+
if (n$5.interpreter) parts.push(path$1.call(print$4, "interpreter"));
|
|
49642
|
+
parts.push(path$1.call(function(bodyPath) {
|
|
49642
49643
|
return printStatementSequence(bodyPath, options, print$4);
|
|
49643
49644
|
}, "body"));
|
|
49644
49645
|
return lines_1.concat(parts);
|
|
49645
49646
|
case "Noop":
|
|
49646
49647
|
case "EmptyStatement": return lines_1.fromString("");
|
|
49647
|
-
case "ExpressionStatement": return lines_1.concat([path.call(print$4, "expression"), ";"]);
|
|
49648
|
+
case "ExpressionStatement": return lines_1.concat([path$1.call(print$4, "expression"), ";"]);
|
|
49648
49649
|
case "ParenthesizedExpression": return lines_1.concat([
|
|
49649
49650
|
"(",
|
|
49650
|
-
path.call(print$4, "expression"),
|
|
49651
|
+
path$1.call(print$4, "expression"),
|
|
49651
49652
|
")"
|
|
49652
49653
|
]);
|
|
49653
49654
|
case "BinaryExpression":
|
|
49654
49655
|
case "LogicalExpression":
|
|
49655
49656
|
case "AssignmentExpression": return lines_1.fromString(" ").join([
|
|
49656
|
-
path.call(print$4, "left"),
|
|
49657
|
+
path$1.call(print$4, "left"),
|
|
49657
49658
|
n$5.operator,
|
|
49658
|
-
path.call(print$4, "right")
|
|
49659
|
+
path$1.call(print$4, "right")
|
|
49659
49660
|
]);
|
|
49660
49661
|
case "AssignmentPattern": return lines_1.concat([
|
|
49661
|
-
path.call(print$4, "left"),
|
|
49662
|
+
path$1.call(print$4, "left"),
|
|
49662
49663
|
" = ",
|
|
49663
|
-
path.call(print$4, "right")
|
|
49664
|
+
path$1.call(print$4, "right")
|
|
49664
49665
|
]);
|
|
49665
49666
|
case "MemberExpression":
|
|
49666
49667
|
case "OptionalMemberExpression":
|
|
49667
|
-
parts.push(path.call(print$4, "object"));
|
|
49668
|
-
var property$2 = path.call(print$4, "property");
|
|
49668
|
+
parts.push(path$1.call(print$4, "object"));
|
|
49669
|
+
var property$2 = path$1.call(print$4, "property");
|
|
49669
49670
|
var optional$1 = types$3.getFieldValue(n$5, "optional");
|
|
49670
49671
|
if (n$5.computed) parts.push(optional$1 ? "?.[" : "[", property$2, "]");
|
|
49671
49672
|
else parts.push(optional$1 ? "?." : ".", property$2);
|
|
49672
49673
|
return lines_1.concat(parts);
|
|
49673
|
-
case "ChainExpression": return path.call(print$4, "expression");
|
|
49674
|
+
case "ChainExpression": return path$1.call(print$4, "expression");
|
|
49674
49675
|
case "MetaProperty": return lines_1.concat([
|
|
49675
|
-
path.call(print$4, "meta"),
|
|
49676
|
+
path$1.call(print$4, "meta"),
|
|
49676
49677
|
".",
|
|
49677
|
-
path.call(print$4, "property")
|
|
49678
|
+
path$1.call(print$4, "property")
|
|
49678
49679
|
]);
|
|
49679
49680
|
case "BindExpression":
|
|
49680
|
-
if (n$5.object) parts.push(path.call(print$4, "object"));
|
|
49681
|
-
parts.push("::", path.call(print$4, "callee"));
|
|
49681
|
+
if (n$5.object) parts.push(path$1.call(print$4, "object"));
|
|
49682
|
+
parts.push("::", path$1.call(print$4, "callee"));
|
|
49682
49683
|
return lines_1.concat(parts);
|
|
49683
49684
|
case "Path": return lines_1.fromString(".").join(n$5.body);
|
|
49684
49685
|
case "Identifier": return lines_1.concat([
|
|
49685
49686
|
lines_1.fromString(n$5.name, options),
|
|
49686
49687
|
n$5.optional ? "?" : "",
|
|
49687
|
-
path.call(print$4, "typeAnnotation")
|
|
49688
|
+
path$1.call(print$4, "typeAnnotation")
|
|
49688
49689
|
]);
|
|
49689
49690
|
case "SpreadElement":
|
|
49690
49691
|
case "SpreadElementPattern":
|
|
@@ -49694,8 +49695,8 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49694
49695
|
case "ObjectTypeSpreadProperty":
|
|
49695
49696
|
case "RestElement": return lines_1.concat([
|
|
49696
49697
|
"...",
|
|
49697
|
-
path.call(print$4, "argument"),
|
|
49698
|
-
path.call(print$4, "typeAnnotation")
|
|
49698
|
+
path$1.call(print$4, "argument"),
|
|
49699
|
+
path$1.call(print$4, "typeAnnotation")
|
|
49699
49700
|
]);
|
|
49700
49701
|
case "FunctionDeclaration":
|
|
49701
49702
|
case "FunctionExpression":
|
|
@@ -49704,87 +49705,87 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49704
49705
|
if (n$5.async) parts.push("async ");
|
|
49705
49706
|
parts.push("function");
|
|
49706
49707
|
if (n$5.generator) parts.push("*");
|
|
49707
|
-
if (n$5.id) parts.push(" ", path.call(print$4, "id"), path.call(print$4, "typeParameters"));
|
|
49708
|
-
else if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
49709
|
-
parts.push("(", printFunctionParams(path, options, print$4), ")", path.call(print$4, "returnType"));
|
|
49710
|
-
if (n$5.body) parts.push(" ", path.call(print$4, "body"));
|
|
49708
|
+
if (n$5.id) parts.push(" ", path$1.call(print$4, "id"), path$1.call(print$4, "typeParameters"));
|
|
49709
|
+
else if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
49710
|
+
parts.push("(", printFunctionParams(path$1, options, print$4), ")", path$1.call(print$4, "returnType"));
|
|
49711
|
+
if (n$5.body) parts.push(" ", path$1.call(print$4, "body"));
|
|
49711
49712
|
return lines_1.concat(parts);
|
|
49712
49713
|
case "ArrowFunctionExpression":
|
|
49713
49714
|
if (n$5.async) parts.push("async ");
|
|
49714
|
-
if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
49715
|
-
if (!options.arrowParensAlways && n$5.params.length === 1 && !n$5.rest && n$5.params[0].type === "Identifier" && !n$5.params[0].typeAnnotation && !n$5.returnType) parts.push(path.call(print$4, "params", 0));
|
|
49716
|
-
else parts.push("(", printFunctionParams(path, options, print$4), ")", path.call(print$4, "returnType"));
|
|
49717
|
-
parts.push(" => ", path.call(print$4, "body"));
|
|
49715
|
+
if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
49716
|
+
if (!options.arrowParensAlways && n$5.params.length === 1 && !n$5.rest && n$5.params[0].type === "Identifier" && !n$5.params[0].typeAnnotation && !n$5.returnType) parts.push(path$1.call(print$4, "params", 0));
|
|
49717
|
+
else parts.push("(", printFunctionParams(path$1, options, print$4), ")", path$1.call(print$4, "returnType"));
|
|
49718
|
+
parts.push(" => ", path$1.call(print$4, "body"));
|
|
49718
49719
|
return lines_1.concat(parts);
|
|
49719
|
-
case "MethodDefinition": return printMethod(path, options, print$4);
|
|
49720
|
+
case "MethodDefinition": return printMethod(path$1, options, print$4);
|
|
49720
49721
|
case "YieldExpression":
|
|
49721
49722
|
parts.push("yield");
|
|
49722
49723
|
if (n$5.delegate) parts.push("*");
|
|
49723
|
-
if (n$5.argument) parts.push(" ", path.call(print$4, "argument"));
|
|
49724
|
+
if (n$5.argument) parts.push(" ", path$1.call(print$4, "argument"));
|
|
49724
49725
|
return lines_1.concat(parts);
|
|
49725
49726
|
case "AwaitExpression":
|
|
49726
49727
|
parts.push("await");
|
|
49727
49728
|
if (n$5.all) parts.push("*");
|
|
49728
|
-
if (n$5.argument) parts.push(" ", path.call(print$4, "argument"));
|
|
49729
|
+
if (n$5.argument) parts.push(" ", path$1.call(print$4, "argument"));
|
|
49729
49730
|
return lines_1.concat(parts);
|
|
49730
49731
|
case "ModuleExpression": return lines_1.concat([
|
|
49731
49732
|
"module {\n",
|
|
49732
|
-
path.call(print$4, "body").indent(options.tabWidth),
|
|
49733
|
+
path$1.call(print$4, "body").indent(options.tabWidth),
|
|
49733
49734
|
"\n}"
|
|
49734
49735
|
]);
|
|
49735
49736
|
case "ModuleDeclaration":
|
|
49736
|
-
parts.push("module", path.call(print$4, "id"));
|
|
49737
|
+
parts.push("module", path$1.call(print$4, "id"));
|
|
49737
49738
|
if (n$5.source) {
|
|
49738
49739
|
assert_1.default.ok(!n$5.body);
|
|
49739
|
-
parts.push("from", path.call(print$4, "source"));
|
|
49740
|
-
} else parts.push(path.call(print$4, "body"));
|
|
49740
|
+
parts.push("from", path$1.call(print$4, "source"));
|
|
49741
|
+
} else parts.push(path$1.call(print$4, "body"));
|
|
49741
49742
|
return lines_1.fromString(" ").join(parts);
|
|
49742
49743
|
case "ImportSpecifier":
|
|
49743
49744
|
if (n$5.importKind && n$5.importKind !== "value") parts.push(n$5.importKind + " ");
|
|
49744
49745
|
if (n$5.imported) {
|
|
49745
|
-
parts.push(path.call(print$4, "imported"));
|
|
49746
|
-
if (n$5.local && n$5.local.name !== n$5.imported.name) parts.push(" as ", path.call(print$4, "local"));
|
|
49746
|
+
parts.push(path$1.call(print$4, "imported"));
|
|
49747
|
+
if (n$5.local && n$5.local.name !== n$5.imported.name) parts.push(" as ", path$1.call(print$4, "local"));
|
|
49747
49748
|
} else if (n$5.id) {
|
|
49748
|
-
parts.push(path.call(print$4, "id"));
|
|
49749
|
-
if (n$5.name) parts.push(" as ", path.call(print$4, "name"));
|
|
49749
|
+
parts.push(path$1.call(print$4, "id"));
|
|
49750
|
+
if (n$5.name) parts.push(" as ", path$1.call(print$4, "name"));
|
|
49750
49751
|
}
|
|
49751
49752
|
return lines_1.concat(parts);
|
|
49752
49753
|
case "ExportSpecifier":
|
|
49753
49754
|
if (n$5.local) {
|
|
49754
|
-
parts.push(path.call(print$4, "local"));
|
|
49755
|
-
if (n$5.exported && n$5.exported.name !== n$5.local.name) parts.push(" as ", path.call(print$4, "exported"));
|
|
49755
|
+
parts.push(path$1.call(print$4, "local"));
|
|
49756
|
+
if (n$5.exported && n$5.exported.name !== n$5.local.name) parts.push(" as ", path$1.call(print$4, "exported"));
|
|
49756
49757
|
} else if (n$5.id) {
|
|
49757
|
-
parts.push(path.call(print$4, "id"));
|
|
49758
|
-
if (n$5.name) parts.push(" as ", path.call(print$4, "name"));
|
|
49758
|
+
parts.push(path$1.call(print$4, "id"));
|
|
49759
|
+
if (n$5.name) parts.push(" as ", path$1.call(print$4, "name"));
|
|
49759
49760
|
}
|
|
49760
49761
|
return lines_1.concat(parts);
|
|
49761
49762
|
case "ExportBatchSpecifier": return lines_1.fromString("*");
|
|
49762
49763
|
case "ImportNamespaceSpecifier":
|
|
49763
49764
|
parts.push("* as ");
|
|
49764
|
-
if (n$5.local) parts.push(path.call(print$4, "local"));
|
|
49765
|
-
else if (n$5.id) parts.push(path.call(print$4, "id"));
|
|
49765
|
+
if (n$5.local) parts.push(path$1.call(print$4, "local"));
|
|
49766
|
+
else if (n$5.id) parts.push(path$1.call(print$4, "id"));
|
|
49766
49767
|
return lines_1.concat(parts);
|
|
49767
49768
|
case "ImportDefaultSpecifier":
|
|
49768
|
-
if (n$5.local) return path.call(print$4, "local");
|
|
49769
|
-
return path.call(print$4, "id");
|
|
49770
|
-
case "TSExportAssignment": return lines_1.concat(["export = ", path.call(print$4, "expression")]);
|
|
49769
|
+
if (n$5.local) return path$1.call(print$4, "local");
|
|
49770
|
+
return path$1.call(print$4, "id");
|
|
49771
|
+
case "TSExportAssignment": return lines_1.concat(["export = ", path$1.call(print$4, "expression")]);
|
|
49771
49772
|
case "ExportDeclaration":
|
|
49772
49773
|
case "ExportDefaultDeclaration":
|
|
49773
|
-
case "ExportNamedDeclaration": return printExportDeclaration(path, options, print$4);
|
|
49774
|
+
case "ExportNamedDeclaration": return printExportDeclaration(path$1, options, print$4);
|
|
49774
49775
|
case "ExportAllDeclaration":
|
|
49775
49776
|
parts.push("export *");
|
|
49776
|
-
if (n$5.exported) parts.push(" as ", path.call(print$4, "exported"));
|
|
49777
|
-
parts.push(" from ", path.call(print$4, "source"), ";");
|
|
49777
|
+
if (n$5.exported) parts.push(" as ", path$1.call(print$4, "exported"));
|
|
49778
|
+
parts.push(" from ", path$1.call(print$4, "source"), ";");
|
|
49778
49779
|
return lines_1.concat(parts);
|
|
49779
49780
|
case "TSNamespaceExportDeclaration":
|
|
49780
|
-
parts.push("export as namespace ", path.call(print$4, "id"));
|
|
49781
|
+
parts.push("export as namespace ", path$1.call(print$4, "id"));
|
|
49781
49782
|
return maybeAddSemicolon(lines_1.concat(parts));
|
|
49782
|
-
case "ExportNamespaceSpecifier": return lines_1.concat(["* as ", path.call(print$4, "exported")]);
|
|
49783
|
-
case "ExportDefaultSpecifier": return path.call(print$4, "exported");
|
|
49783
|
+
case "ExportNamespaceSpecifier": return lines_1.concat(["* as ", path$1.call(print$4, "exported")]);
|
|
49784
|
+
case "ExportDefaultSpecifier": return path$1.call(print$4, "exported");
|
|
49784
49785
|
case "Import": return lines_1.fromString("import", options);
|
|
49785
49786
|
case "ImportExpression": return lines_1.concat([
|
|
49786
49787
|
"import(",
|
|
49787
|
-
path.call(print$4, "source"),
|
|
49788
|
+
path$1.call(print$4, "source"),
|
|
49788
49789
|
")"
|
|
49789
49790
|
]);
|
|
49790
49791
|
case "ImportDeclaration":
|
|
@@ -49793,7 +49794,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49793
49794
|
if (n$5.specifiers && n$5.specifiers.length > 0) {
|
|
49794
49795
|
var unbracedSpecifiers_1 = [];
|
|
49795
49796
|
var bracedSpecifiers_1 = [];
|
|
49796
|
-
path.each(function(specifierPath) {
|
|
49797
|
+
path$1.each(function(specifierPath) {
|
|
49797
49798
|
var spec = specifierPath.getValue();
|
|
49798
49799
|
if (spec.type === "ImportSpecifier") bracedSpecifiers_1.push(print$4(specifierPath));
|
|
49799
49800
|
else if (spec.type === "ImportDefaultSpecifier" || spec.type === "ImportNamespaceSpecifier") unbracedSpecifiers_1.push(print$4(specifierPath));
|
|
@@ -49812,16 +49813,16 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49812
49813
|
}
|
|
49813
49814
|
parts.push(" from ");
|
|
49814
49815
|
}
|
|
49815
|
-
parts.push(path.call(print$4, "source"), maybePrintImportAssertions(path, options, print$4), ";");
|
|
49816
|
+
parts.push(path$1.call(print$4, "source"), maybePrintImportAssertions(path$1, options, print$4), ";");
|
|
49816
49817
|
return lines_1.concat(parts);
|
|
49817
49818
|
case "ImportAttribute": return lines_1.concat([
|
|
49818
|
-
path.call(print$4, "key"),
|
|
49819
|
+
path$1.call(print$4, "key"),
|
|
49819
49820
|
": ",
|
|
49820
|
-
path.call(print$4, "value")
|
|
49821
|
+
path$1.call(print$4, "value")
|
|
49821
49822
|
]);
|
|
49822
49823
|
case "StaticBlock": parts.push("static ");
|
|
49823
49824
|
case "BlockStatement":
|
|
49824
|
-
var naked_1 = path.call(function(bodyPath) {
|
|
49825
|
+
var naked_1 = path$1.call(function(bodyPath) {
|
|
49825
49826
|
return printStatementSequence(bodyPath, options, print$4);
|
|
49826
49827
|
}, "body");
|
|
49827
49828
|
if (naked_1.isEmpty()) {
|
|
@@ -49831,7 +49832,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49831
49832
|
}
|
|
49832
49833
|
}
|
|
49833
49834
|
parts.push("{\n");
|
|
49834
|
-
if (n$5.directives) path.each(function(childPath) {
|
|
49835
|
+
if (n$5.directives) path$1.each(function(childPath) {
|
|
49835
49836
|
parts.push(maybeAddSemicolon(print$4(childPath).indent(options.tabWidth)), n$5.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
|
|
49836
49837
|
}, "directives");
|
|
49837
49838
|
parts.push(naked_1.indent(options.tabWidth));
|
|
@@ -49840,7 +49841,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49840
49841
|
case "ReturnStatement":
|
|
49841
49842
|
parts.push("return");
|
|
49842
49843
|
if (n$5.argument) {
|
|
49843
|
-
var argLines = path.call(print$4, "argument");
|
|
49844
|
+
var argLines = path$1.call(print$4, "argument");
|
|
49844
49845
|
if (argLines.startsWithComment() || argLines.length > 1 && namedTypes.JSXElement && namedTypes.JSXElement.check(n$5.argument)) parts.push(" (\n", argLines.indent(options.tabWidth), "\n)");
|
|
49845
49846
|
else parts.push(" ", argLines);
|
|
49846
49847
|
}
|
|
@@ -49848,11 +49849,11 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49848
49849
|
return lines_1.concat(parts);
|
|
49849
49850
|
case "CallExpression":
|
|
49850
49851
|
case "OptionalCallExpression":
|
|
49851
|
-
parts.push(path.call(print$4, "callee"));
|
|
49852
|
-
if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
49853
|
-
if (n$5.typeArguments) parts.push(path.call(print$4, "typeArguments"));
|
|
49852
|
+
parts.push(path$1.call(print$4, "callee"));
|
|
49853
|
+
if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
49854
|
+
if (n$5.typeArguments) parts.push(path$1.call(print$4, "typeArguments"));
|
|
49854
49855
|
if (types$3.getFieldValue(n$5, "optional")) parts.push("?.");
|
|
49855
|
-
parts.push(printArgumentsList(path, options, print$4));
|
|
49856
|
+
parts.push(printArgumentsList(path$1, options, print$4));
|
|
49856
49857
|
return lines_1.concat(parts);
|
|
49857
49858
|
case "RecordExpression": parts.push("#");
|
|
49858
49859
|
case "ObjectExpression":
|
|
@@ -49878,7 +49879,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49878
49879
|
var leftBraceIndex = parts.length - 1;
|
|
49879
49880
|
var i_1 = 0;
|
|
49880
49881
|
fields.forEach(function(field) {
|
|
49881
|
-
path.each(function(childPath) {
|
|
49882
|
+
path$1.each(function(childPath) {
|
|
49882
49883
|
var lines$1 = print$4(childPath);
|
|
49883
49884
|
if (!oneLine_1) lines$1 = lines$1.indent(options.tabWidth);
|
|
49884
49885
|
var multiLine = !isTypeAnnotation_1 && lines$1.length > 1;
|
|
@@ -49904,39 +49905,39 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49904
49905
|
parts[leftBraceIndex] = leftBrace + " ";
|
|
49905
49906
|
parts[parts.length - 1] = " " + rightBrace;
|
|
49906
49907
|
}
|
|
49907
|
-
if (n$5.typeAnnotation) parts.push(path.call(print$4, "typeAnnotation"));
|
|
49908
|
+
if (n$5.typeAnnotation) parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
49908
49909
|
return lines_1.concat(parts);
|
|
49909
49910
|
case "PropertyPattern": return lines_1.concat([
|
|
49910
|
-
path.call(print$4, "key"),
|
|
49911
|
+
path$1.call(print$4, "key"),
|
|
49911
49912
|
": ",
|
|
49912
|
-
path.call(print$4, "pattern")
|
|
49913
|
+
path$1.call(print$4, "pattern")
|
|
49913
49914
|
]);
|
|
49914
49915
|
case "ObjectProperty":
|
|
49915
49916
|
case "Property":
|
|
49916
|
-
if (n$5.method || n$5.kind === "get" || n$5.kind === "set") return printMethod(path, options, print$4);
|
|
49917
|
-
if (n$5.shorthand && n$5.value.type === "AssignmentPattern") return path.call(print$4, "value");
|
|
49918
|
-
var key = path.call(print$4, "key");
|
|
49917
|
+
if (n$5.method || n$5.kind === "get" || n$5.kind === "set") return printMethod(path$1, options, print$4);
|
|
49918
|
+
if (n$5.shorthand && n$5.value.type === "AssignmentPattern") return path$1.call(print$4, "value");
|
|
49919
|
+
var key = path$1.call(print$4, "key");
|
|
49919
49920
|
if (n$5.computed) parts.push("[", key, "]");
|
|
49920
49921
|
else parts.push(key);
|
|
49921
|
-
if (!n$5.shorthand || n$5.key.name !== n$5.value.name) parts.push(": ", path.call(print$4, "value"));
|
|
49922
|
+
if (!n$5.shorthand || n$5.key.name !== n$5.value.name) parts.push(": ", path$1.call(print$4, "value"));
|
|
49922
49923
|
return lines_1.concat(parts);
|
|
49923
49924
|
case "ClassMethod":
|
|
49924
49925
|
case "ObjectMethod":
|
|
49925
49926
|
case "ClassPrivateMethod":
|
|
49926
|
-
case "TSDeclareMethod": return printMethod(path, options, print$4);
|
|
49927
|
-
case "PrivateName": return lines_1.concat(["#", path.call(print$4, "id")]);
|
|
49928
|
-
case "Decorator": return lines_1.concat(["@", path.call(print$4, "expression")]);
|
|
49927
|
+
case "TSDeclareMethod": return printMethod(path$1, options, print$4);
|
|
49928
|
+
case "PrivateName": return lines_1.concat(["#", path$1.call(print$4, "id")]);
|
|
49929
|
+
case "Decorator": return lines_1.concat(["@", path$1.call(print$4, "expression")]);
|
|
49929
49930
|
case "TupleExpression": parts.push("#");
|
|
49930
49931
|
case "ArrayExpression":
|
|
49931
49932
|
case "ArrayPattern":
|
|
49932
49933
|
var len_2 = n$5.elements.length;
|
|
49933
|
-
var printed_1 = path.map(print$4, "elements");
|
|
49934
|
+
var printed_1 = path$1.map(print$4, "elements");
|
|
49934
49935
|
var joined = lines_1.fromString(", ").join(printed_1);
|
|
49935
49936
|
var oneLine_2 = joined.getLineLength(1) <= options.wrapColumn;
|
|
49936
49937
|
if (oneLine_2) if (options.arrayBracketSpacing) parts.push("[ ");
|
|
49937
49938
|
else parts.push("[");
|
|
49938
49939
|
else parts.push("[\n");
|
|
49939
|
-
path.each(function(elemPath) {
|
|
49940
|
+
path$1.each(function(elemPath) {
|
|
49940
49941
|
var i$2 = elemPath.getName();
|
|
49941
49942
|
if (!elemPath.getValue()) parts.push(",");
|
|
49942
49943
|
else {
|
|
@@ -49951,9 +49952,9 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49951
49952
|
}, "elements");
|
|
49952
49953
|
if (oneLine_2 && options.arrayBracketSpacing) parts.push(" ]");
|
|
49953
49954
|
else parts.push("]");
|
|
49954
|
-
if (n$5.typeAnnotation) parts.push(path.call(print$4, "typeAnnotation"));
|
|
49955
|
+
if (n$5.typeAnnotation) parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
49955
49956
|
return lines_1.concat(parts);
|
|
49956
|
-
case "SequenceExpression": return lines_1.fromString(", ").join(path.map(print$4, "expressions"));
|
|
49957
|
+
case "SequenceExpression": return lines_1.fromString(", ").join(path$1.map(print$4, "expressions"));
|
|
49957
49958
|
case "ThisExpression": return lines_1.fromString("this");
|
|
49958
49959
|
case "Super": return lines_1.fromString("super");
|
|
49959
49960
|
case "NullLiteral": return lines_1.fromString("null");
|
|
@@ -49964,7 +49965,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49964
49965
|
case "StringLiteral": return lines_1.fromString(nodeStr(n$5.value, options));
|
|
49965
49966
|
case "BooleanLiteral":
|
|
49966
49967
|
case "Literal": return lines_1.fromString(getPossibleRaw(n$5) || (typeof n$5.value === "string" ? nodeStr(n$5.value, options) : n$5.value), options);
|
|
49967
|
-
case "Directive": return path.call(print$4, "value");
|
|
49968
|
+
case "Directive": return path$1.call(print$4, "value");
|
|
49968
49969
|
case "DirectiveLiteral": return lines_1.fromString(getPossibleRaw(n$5) || nodeStr(n$5.value, options), options);
|
|
49969
49970
|
case "InterpreterDirective": return lines_1.fromString("#!" + n$5.value + "\n", options);
|
|
49970
49971
|
case "ModuleSpecifier":
|
|
@@ -49973,30 +49974,30 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
49973
49974
|
case "UnaryExpression":
|
|
49974
49975
|
parts.push(n$5.operator);
|
|
49975
49976
|
if (/[a-z]$/.test(n$5.operator)) parts.push(" ");
|
|
49976
|
-
parts.push(path.call(print$4, "argument"));
|
|
49977
|
+
parts.push(path$1.call(print$4, "argument"));
|
|
49977
49978
|
return lines_1.concat(parts);
|
|
49978
49979
|
case "UpdateExpression":
|
|
49979
|
-
parts.push(path.call(print$4, "argument"), n$5.operator);
|
|
49980
|
+
parts.push(path$1.call(print$4, "argument"), n$5.operator);
|
|
49980
49981
|
if (n$5.prefix) parts.reverse();
|
|
49981
49982
|
return lines_1.concat(parts);
|
|
49982
49983
|
case "ConditionalExpression": return lines_1.concat([
|
|
49983
|
-
path.call(print$4, "test"),
|
|
49984
|
+
path$1.call(print$4, "test"),
|
|
49984
49985
|
" ? ",
|
|
49985
|
-
path.call(print$4, "consequent"),
|
|
49986
|
+
path$1.call(print$4, "consequent"),
|
|
49986
49987
|
" : ",
|
|
49987
|
-
path.call(print$4, "alternate")
|
|
49988
|
+
path$1.call(print$4, "alternate")
|
|
49988
49989
|
]);
|
|
49989
49990
|
case "NewExpression":
|
|
49990
|
-
parts.push("new ", path.call(print$4, "callee"));
|
|
49991
|
-
if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
49992
|
-
if (n$5.typeArguments) parts.push(path.call(print$4, "typeArguments"));
|
|
49993
|
-
if (n$5.arguments) parts.push(printArgumentsList(path, options, print$4));
|
|
49991
|
+
parts.push("new ", path$1.call(print$4, "callee"));
|
|
49992
|
+
if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
49993
|
+
if (n$5.typeArguments) parts.push(path$1.call(print$4, "typeArguments"));
|
|
49994
|
+
if (n$5.arguments) parts.push(printArgumentsList(path$1, options, print$4));
|
|
49994
49995
|
return lines_1.concat(parts);
|
|
49995
49996
|
case "VariableDeclaration":
|
|
49996
49997
|
if (n$5.declare) parts.push("declare ");
|
|
49997
49998
|
parts.push(n$5.kind, " ");
|
|
49998
49999
|
var maxLen_1 = 0;
|
|
49999
|
-
var printed = path.map(function(childPath) {
|
|
50000
|
+
var printed = path$1.map(function(childPath) {
|
|
50000
50001
|
var lines$1 = print$4(childPath);
|
|
50001
50002
|
maxLen_1 = Math.max(lines$1.length, maxLen_1);
|
|
50002
50003
|
return lines$1;
|
|
@@ -50004,36 +50005,36 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50004
50005
|
if (maxLen_1 === 1) parts.push(lines_1.fromString(", ").join(printed));
|
|
50005
50006
|
else if (printed.length > 1) parts.push(lines_1.fromString(",\n").join(printed).indentTail(n$5.kind.length + 1));
|
|
50006
50007
|
else parts.push(printed[0]);
|
|
50007
|
-
var parentNode = path.getParentNode();
|
|
50008
|
+
var parentNode = path$1.getParentNode();
|
|
50008
50009
|
if (!namedTypes.ForStatement.check(parentNode) && !namedTypes.ForInStatement.check(parentNode) && !(namedTypes.ForOfStatement && namedTypes.ForOfStatement.check(parentNode)) && !(namedTypes.ForAwaitStatement && namedTypes.ForAwaitStatement.check(parentNode))) parts.push(";");
|
|
50009
50010
|
return lines_1.concat(parts);
|
|
50010
|
-
case "VariableDeclarator": return n$5.init ? lines_1.fromString(" = ").join([path.call(print$4, "id"), path.call(print$4, "init")]) : path.call(print$4, "id");
|
|
50011
|
+
case "VariableDeclarator": return n$5.init ? lines_1.fromString(" = ").join([path$1.call(print$4, "id"), path$1.call(print$4, "init")]) : path$1.call(print$4, "id");
|
|
50011
50012
|
case "WithStatement": return lines_1.concat([
|
|
50012
50013
|
"with (",
|
|
50013
|
-
path.call(print$4, "object"),
|
|
50014
|
+
path$1.call(print$4, "object"),
|
|
50014
50015
|
") ",
|
|
50015
|
-
path.call(print$4, "body")
|
|
50016
|
+
path$1.call(print$4, "body")
|
|
50016
50017
|
]);
|
|
50017
50018
|
case "IfStatement":
|
|
50018
|
-
var con = adjustClause(path.call(print$4, "consequent"), options);
|
|
50019
|
-
parts.push("if (", path.call(print$4, "test"), ")", con);
|
|
50020
|
-
if (n$5.alternate) parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path.call(print$4, "alternate"), options));
|
|
50019
|
+
var con = adjustClause(path$1.call(print$4, "consequent"), options);
|
|
50020
|
+
parts.push("if (", path$1.call(print$4, "test"), ")", con);
|
|
50021
|
+
if (n$5.alternate) parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path$1.call(print$4, "alternate"), options));
|
|
50021
50022
|
return lines_1.concat(parts);
|
|
50022
50023
|
case "ForStatement":
|
|
50023
|
-
var init = path.call(print$4, "init");
|
|
50024
|
+
var init = path$1.call(print$4, "init");
|
|
50024
50025
|
var sep = init.length > 1 ? ";\n" : "; ";
|
|
50025
50026
|
var forParen = "for (";
|
|
50026
50027
|
var indented = lines_1.fromString(sep).join([
|
|
50027
50028
|
init,
|
|
50028
|
-
path.call(print$4, "test"),
|
|
50029
|
-
path.call(print$4, "update")
|
|
50029
|
+
path$1.call(print$4, "test"),
|
|
50030
|
+
path$1.call(print$4, "update")
|
|
50030
50031
|
]).indentTail(forParen.length);
|
|
50031
50032
|
var head = lines_1.concat([
|
|
50032
50033
|
forParen,
|
|
50033
50034
|
indented,
|
|
50034
50035
|
")"
|
|
50035
50036
|
]);
|
|
50036
|
-
var clause = adjustClause(path.call(print$4, "body"), options);
|
|
50037
|
+
var clause = adjustClause(path$1.call(print$4, "body"), options);
|
|
50037
50038
|
parts.push(head);
|
|
50038
50039
|
if (head.length > 1) {
|
|
50039
50040
|
parts.push("\n");
|
|
@@ -50043,33 +50044,33 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50043
50044
|
return lines_1.concat(parts);
|
|
50044
50045
|
case "WhileStatement": return lines_1.concat([
|
|
50045
50046
|
"while (",
|
|
50046
|
-
path.call(print$4, "test"),
|
|
50047
|
+
path$1.call(print$4, "test"),
|
|
50047
50048
|
")",
|
|
50048
|
-
adjustClause(path.call(print$4, "body"), options)
|
|
50049
|
+
adjustClause(path$1.call(print$4, "body"), options)
|
|
50049
50050
|
]);
|
|
50050
50051
|
case "ForInStatement": return lines_1.concat([
|
|
50051
50052
|
n$5.each ? "for each (" : "for (",
|
|
50052
|
-
path.call(print$4, "left"),
|
|
50053
|
+
path$1.call(print$4, "left"),
|
|
50053
50054
|
" in ",
|
|
50054
|
-
path.call(print$4, "right"),
|
|
50055
|
+
path$1.call(print$4, "right"),
|
|
50055
50056
|
")",
|
|
50056
|
-
adjustClause(path.call(print$4, "body"), options)
|
|
50057
|
+
adjustClause(path$1.call(print$4, "body"), options)
|
|
50057
50058
|
]);
|
|
50058
50059
|
case "ForOfStatement":
|
|
50059
50060
|
case "ForAwaitStatement":
|
|
50060
50061
|
parts.push("for ");
|
|
50061
50062
|
if (n$5.await || n$5.type === "ForAwaitStatement") parts.push("await ");
|
|
50062
|
-
parts.push("(", path.call(print$4, "left"), " of ", path.call(print$4, "right"), ")", adjustClause(path.call(print$4, "body"), options));
|
|
50063
|
+
parts.push("(", path$1.call(print$4, "left"), " of ", path$1.call(print$4, "right"), ")", adjustClause(path$1.call(print$4, "body"), options));
|
|
50063
50064
|
return lines_1.concat(parts);
|
|
50064
50065
|
case "DoWhileStatement":
|
|
50065
|
-
var doBody = lines_1.concat(["do", adjustClause(path.call(print$4, "body"), options)]);
|
|
50066
|
+
var doBody = lines_1.concat(["do", adjustClause(path$1.call(print$4, "body"), options)]);
|
|
50066
50067
|
parts.push(doBody);
|
|
50067
50068
|
if (endsWithBrace(doBody)) parts.push(" while");
|
|
50068
50069
|
else parts.push("\nwhile");
|
|
50069
|
-
parts.push(" (", path.call(print$4, "test"), ");");
|
|
50070
|
+
parts.push(" (", path$1.call(print$4, "test"), ");");
|
|
50070
50071
|
return lines_1.concat(parts);
|
|
50071
50072
|
case "DoExpression":
|
|
50072
|
-
var statements = path.call(function(bodyPath) {
|
|
50073
|
+
var statements = path$1.call(function(bodyPath) {
|
|
50073
50074
|
return printStatementSequence(bodyPath, options, print$4);
|
|
50074
50075
|
}, "body");
|
|
50075
50076
|
return lines_1.concat([
|
|
@@ -50079,86 +50080,86 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50079
50080
|
]);
|
|
50080
50081
|
case "BreakStatement":
|
|
50081
50082
|
parts.push("break");
|
|
50082
|
-
if (n$5.label) parts.push(" ", path.call(print$4, "label"));
|
|
50083
|
+
if (n$5.label) parts.push(" ", path$1.call(print$4, "label"));
|
|
50083
50084
|
parts.push(";");
|
|
50084
50085
|
return lines_1.concat(parts);
|
|
50085
50086
|
case "ContinueStatement":
|
|
50086
50087
|
parts.push("continue");
|
|
50087
|
-
if (n$5.label) parts.push(" ", path.call(print$4, "label"));
|
|
50088
|
+
if (n$5.label) parts.push(" ", path$1.call(print$4, "label"));
|
|
50088
50089
|
parts.push(";");
|
|
50089
50090
|
return lines_1.concat(parts);
|
|
50090
50091
|
case "LabeledStatement": return lines_1.concat([
|
|
50091
|
-
path.call(print$4, "label"),
|
|
50092
|
+
path$1.call(print$4, "label"),
|
|
50092
50093
|
":\n",
|
|
50093
|
-
path.call(print$4, "body")
|
|
50094
|
+
path$1.call(print$4, "body")
|
|
50094
50095
|
]);
|
|
50095
50096
|
case "TryStatement":
|
|
50096
|
-
parts.push("try ", path.call(print$4, "block"));
|
|
50097
|
-
if (n$5.handler) parts.push(" ", path.call(print$4, "handler"));
|
|
50098
|
-
else if (n$5.handlers) path.each(function(handlerPath) {
|
|
50097
|
+
parts.push("try ", path$1.call(print$4, "block"));
|
|
50098
|
+
if (n$5.handler) parts.push(" ", path$1.call(print$4, "handler"));
|
|
50099
|
+
else if (n$5.handlers) path$1.each(function(handlerPath) {
|
|
50099
50100
|
parts.push(" ", print$4(handlerPath));
|
|
50100
50101
|
}, "handlers");
|
|
50101
|
-
if (n$5.finalizer) parts.push(" finally ", path.call(print$4, "finalizer"));
|
|
50102
|
+
if (n$5.finalizer) parts.push(" finally ", path$1.call(print$4, "finalizer"));
|
|
50102
50103
|
return lines_1.concat(parts);
|
|
50103
50104
|
case "CatchClause":
|
|
50104
50105
|
parts.push("catch ");
|
|
50105
|
-
if (n$5.param) parts.push("(", path.call(print$4, "param"));
|
|
50106
|
-
if (n$5.guard) parts.push(" if ", path.call(print$4, "guard"));
|
|
50106
|
+
if (n$5.param) parts.push("(", path$1.call(print$4, "param"));
|
|
50107
|
+
if (n$5.guard) parts.push(" if ", path$1.call(print$4, "guard"));
|
|
50107
50108
|
if (n$5.param) parts.push(") ");
|
|
50108
|
-
parts.push(path.call(print$4, "body"));
|
|
50109
|
+
parts.push(path$1.call(print$4, "body"));
|
|
50109
50110
|
return lines_1.concat(parts);
|
|
50110
50111
|
case "ThrowStatement": return lines_1.concat([
|
|
50111
50112
|
"throw ",
|
|
50112
|
-
path.call(print$4, "argument"),
|
|
50113
|
+
path$1.call(print$4, "argument"),
|
|
50113
50114
|
";"
|
|
50114
50115
|
]);
|
|
50115
50116
|
case "SwitchStatement": return lines_1.concat([
|
|
50116
50117
|
"switch (",
|
|
50117
|
-
path.call(print$4, "discriminant"),
|
|
50118
|
+
path$1.call(print$4, "discriminant"),
|
|
50118
50119
|
") {\n",
|
|
50119
|
-
lines_1.fromString("\n").join(path.map(print$4, "cases")),
|
|
50120
|
+
lines_1.fromString("\n").join(path$1.map(print$4, "cases")),
|
|
50120
50121
|
"\n}"
|
|
50121
50122
|
]);
|
|
50122
50123
|
case "SwitchCase":
|
|
50123
|
-
if (n$5.test) parts.push("case ", path.call(print$4, "test"), ":");
|
|
50124
|
+
if (n$5.test) parts.push("case ", path$1.call(print$4, "test"), ":");
|
|
50124
50125
|
else parts.push("default:");
|
|
50125
|
-
if (n$5.consequent.length > 0) parts.push("\n", path.call(function(consequentPath) {
|
|
50126
|
+
if (n$5.consequent.length > 0) parts.push("\n", path$1.call(function(consequentPath) {
|
|
50126
50127
|
return printStatementSequence(consequentPath, options, print$4);
|
|
50127
50128
|
}, "consequent").indent(options.tabWidth));
|
|
50128
50129
|
return lines_1.concat(parts);
|
|
50129
50130
|
case "DebuggerStatement": return lines_1.fromString("debugger;");
|
|
50130
50131
|
case "JSXAttribute":
|
|
50131
|
-
parts.push(path.call(print$4, "name"));
|
|
50132
|
-
if (n$5.value) parts.push("=", path.call(print$4, "value"));
|
|
50132
|
+
parts.push(path$1.call(print$4, "name"));
|
|
50133
|
+
if (n$5.value) parts.push("=", path$1.call(print$4, "value"));
|
|
50133
50134
|
return lines_1.concat(parts);
|
|
50134
50135
|
case "JSXIdentifier": return lines_1.fromString(n$5.name, options);
|
|
50135
|
-
case "JSXNamespacedName": return lines_1.fromString(":").join([path.call(print$4, "namespace"), path.call(print$4, "name")]);
|
|
50136
|
-
case "JSXMemberExpression": return lines_1.fromString(".").join([path.call(print$4, "object"), path.call(print$4, "property")]);
|
|
50136
|
+
case "JSXNamespacedName": return lines_1.fromString(":").join([path$1.call(print$4, "namespace"), path$1.call(print$4, "name")]);
|
|
50137
|
+
case "JSXMemberExpression": return lines_1.fromString(".").join([path$1.call(print$4, "object"), path$1.call(print$4, "property")]);
|
|
50137
50138
|
case "JSXSpreadAttribute": return lines_1.concat([
|
|
50138
50139
|
"{...",
|
|
50139
|
-
path.call(print$4, "argument"),
|
|
50140
|
+
path$1.call(print$4, "argument"),
|
|
50140
50141
|
"}"
|
|
50141
50142
|
]);
|
|
50142
50143
|
case "JSXSpreadChild": return lines_1.concat([
|
|
50143
50144
|
"{...",
|
|
50144
|
-
path.call(print$4, "expression"),
|
|
50145
|
+
path$1.call(print$4, "expression"),
|
|
50145
50146
|
"}"
|
|
50146
50147
|
]);
|
|
50147
50148
|
case "JSXExpressionContainer": return lines_1.concat([
|
|
50148
50149
|
"{",
|
|
50149
|
-
path.call(print$4, "expression"),
|
|
50150
|
+
path$1.call(print$4, "expression"),
|
|
50150
50151
|
"}"
|
|
50151
50152
|
]);
|
|
50152
50153
|
case "JSXElement":
|
|
50153
50154
|
case "JSXFragment":
|
|
50154
50155
|
var openingPropName = "opening" + (n$5.type === "JSXElement" ? "Element" : "Fragment");
|
|
50155
50156
|
var closingPropName = "closing" + (n$5.type === "JSXElement" ? "Element" : "Fragment");
|
|
50156
|
-
var openingLines = path.call(print$4, openingPropName);
|
|
50157
|
+
var openingLines = path$1.call(print$4, openingPropName);
|
|
50157
50158
|
if (n$5[openingPropName].selfClosing) {
|
|
50158
50159
|
assert_1.default.ok(!n$5[closingPropName], "unexpected " + closingPropName + " element in self-closing " + n$5.type);
|
|
50159
50160
|
return openingLines;
|
|
50160
50161
|
}
|
|
50161
|
-
var childLines = lines_1.concat(path.map(function(childPath) {
|
|
50162
|
+
var childLines = lines_1.concat(path$1.map(function(childPath) {
|
|
50162
50163
|
var child = childPath.getValue();
|
|
50163
50164
|
if (namedTypes.Literal.check(child) && typeof child.value === "string") {
|
|
50164
50165
|
if (/\S/.test(child.value)) return child.value.replace(/^\s+|\s+$/g, "");
|
|
@@ -50166,16 +50167,16 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50166
50167
|
}
|
|
50167
50168
|
return print$4(childPath);
|
|
50168
50169
|
}, "children")).indentTail(options.tabWidth);
|
|
50169
|
-
var closingLines = path.call(print$4, closingPropName);
|
|
50170
|
+
var closingLines = path$1.call(print$4, closingPropName);
|
|
50170
50171
|
return lines_1.concat([
|
|
50171
50172
|
openingLines,
|
|
50172
50173
|
childLines,
|
|
50173
50174
|
closingLines
|
|
50174
50175
|
]);
|
|
50175
50176
|
case "JSXOpeningElement":
|
|
50176
|
-
parts.push("<", path.call(print$4, "name"));
|
|
50177
|
+
parts.push("<", path$1.call(print$4, "name"));
|
|
50177
50178
|
var attrParts_1 = [];
|
|
50178
|
-
path.each(function(attrPath) {
|
|
50179
|
+
path$1.each(function(attrPath) {
|
|
50179
50180
|
attrParts_1.push(" ", print$4(attrPath));
|
|
50180
50181
|
}, "attributes");
|
|
50181
50182
|
var attrLines = lines_1.concat(attrParts_1);
|
|
@@ -50192,7 +50193,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50192
50193
|
return lines_1.concat(parts);
|
|
50193
50194
|
case "JSXClosingElement": return lines_1.concat([
|
|
50194
50195
|
"</",
|
|
50195
|
-
path.call(print$4, "name"),
|
|
50196
|
+
path$1.call(print$4, "name"),
|
|
50196
50197
|
">"
|
|
50197
50198
|
]);
|
|
50198
50199
|
case "JSXOpeningFragment": return lines_1.fromString("<>");
|
|
@@ -50200,21 +50201,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50200
50201
|
case "JSXText": return lines_1.fromString(n$5.value, options);
|
|
50201
50202
|
case "JSXEmptyExpression": return lines_1.fromString("");
|
|
50202
50203
|
case "TypeAnnotatedIdentifier": return lines_1.concat([
|
|
50203
|
-
path.call(print$4, "annotation"),
|
|
50204
|
+
path$1.call(print$4, "annotation"),
|
|
50204
50205
|
" ",
|
|
50205
|
-
path.call(print$4, "identifier")
|
|
50206
|
+
path$1.call(print$4, "identifier")
|
|
50206
50207
|
]);
|
|
50207
50208
|
case "ClassBody":
|
|
50208
50209
|
if (n$5.body.length === 0) return lines_1.fromString("{}");
|
|
50209
50210
|
return lines_1.concat([
|
|
50210
50211
|
"{\n",
|
|
50211
|
-
path.call(function(bodyPath) {
|
|
50212
|
+
path$1.call(function(bodyPath) {
|
|
50212
50213
|
return printStatementSequence(bodyPath, options, print$4);
|
|
50213
50214
|
}, "body").indent(options.tabWidth),
|
|
50214
50215
|
"\n}"
|
|
50215
50216
|
]);
|
|
50216
50217
|
case "ClassPropertyDefinition":
|
|
50217
|
-
parts.push("static ", path.call(print$4, "definition"));
|
|
50218
|
+
parts.push("static ", path$1.call(print$4, "definition"));
|
|
50218
50219
|
if (!namedTypes.MethodDefinition.check(n$5.definition)) parts.push(";");
|
|
50219
50220
|
return lines_1.concat(parts);
|
|
50220
50221
|
case "ClassProperty":
|
|
@@ -50224,25 +50225,25 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50224
50225
|
if (n$5.static) parts.push("static ");
|
|
50225
50226
|
if (n$5.abstract) parts.push("abstract ");
|
|
50226
50227
|
if (n$5.readonly) parts.push("readonly ");
|
|
50227
|
-
var key = path.call(print$4, "key");
|
|
50228
|
+
var key = path$1.call(print$4, "key");
|
|
50228
50229
|
if (n$5.computed) key = lines_1.concat([
|
|
50229
50230
|
"[",
|
|
50230
50231
|
key,
|
|
50231
50232
|
"]"
|
|
50232
50233
|
]);
|
|
50233
|
-
if (n$5.variance) key = lines_1.concat([printVariance(path, print$4), key]);
|
|
50234
|
+
if (n$5.variance) key = lines_1.concat([printVariance(path$1, print$4), key]);
|
|
50234
50235
|
parts.push(key);
|
|
50235
50236
|
if (n$5.optional) parts.push("?");
|
|
50236
50237
|
if (n$5.definite) parts.push("!");
|
|
50237
|
-
if (n$5.typeAnnotation) parts.push(path.call(print$4, "typeAnnotation"));
|
|
50238
|
-
if (n$5.value) parts.push(" = ", path.call(print$4, "value"));
|
|
50238
|
+
if (n$5.typeAnnotation) parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
50239
|
+
if (n$5.value) parts.push(" = ", path$1.call(print$4, "value"));
|
|
50239
50240
|
parts.push(";");
|
|
50240
50241
|
return lines_1.concat(parts);
|
|
50241
50242
|
case "ClassPrivateProperty":
|
|
50242
50243
|
if (n$5.static) parts.push("static ");
|
|
50243
|
-
parts.push(path.call(print$4, "key"));
|
|
50244
|
-
if (n$5.typeAnnotation) parts.push(path.call(print$4, "typeAnnotation"));
|
|
50245
|
-
if (n$5.value) parts.push(" = ", path.call(print$4, "value"));
|
|
50244
|
+
parts.push(path$1.call(print$4, "key"));
|
|
50245
|
+
if (n$5.typeAnnotation) parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
50246
|
+
if (n$5.value) parts.push(" = ", path$1.call(print$4, "value"));
|
|
50246
50247
|
parts.push(";");
|
|
50247
50248
|
return lines_1.concat(parts);
|
|
50248
50249
|
case "ClassDeclaration":
|
|
@@ -50251,26 +50252,26 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50251
50252
|
if (n$5.declare) parts.push("declare ");
|
|
50252
50253
|
if (n$5.abstract) parts.push("abstract ");
|
|
50253
50254
|
parts.push("class");
|
|
50254
|
-
if (n$5.id) parts.push(" ", path.call(print$4, "id"));
|
|
50255
|
-
if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
50256
|
-
if (n$5.superClass) parts.push(" extends ", path.call(print$4, "superClass"), path.call(print$4, "superTypeParameters"));
|
|
50257
|
-
if (n$5.extends && n$5.extends.length > 0) parts.push(" extends ", lines_1.fromString(", ").join(path.map(print$4, "extends")));
|
|
50258
|
-
if (n$5["implements"] && n$5["implements"].length > 0) parts.push(" implements ", lines_1.fromString(", ").join(path.map(print$4, "implements")));
|
|
50259
|
-
parts.push(" ", path.call(print$4, "body"));
|
|
50260
|
-
if (n$5.type === "DeclareClass") return printFlowDeclaration(path, parts);
|
|
50255
|
+
if (n$5.id) parts.push(" ", path$1.call(print$4, "id"));
|
|
50256
|
+
if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
50257
|
+
if (n$5.superClass) parts.push(" extends ", path$1.call(print$4, "superClass"), path$1.call(print$4, "superTypeParameters"));
|
|
50258
|
+
if (n$5.extends && n$5.extends.length > 0) parts.push(" extends ", lines_1.fromString(", ").join(path$1.map(print$4, "extends")));
|
|
50259
|
+
if (n$5["implements"] && n$5["implements"].length > 0) parts.push(" implements ", lines_1.fromString(", ").join(path$1.map(print$4, "implements")));
|
|
50260
|
+
parts.push(" ", path$1.call(print$4, "body"));
|
|
50261
|
+
if (n$5.type === "DeclareClass") return printFlowDeclaration(path$1, parts);
|
|
50261
50262
|
else return lines_1.concat(parts);
|
|
50262
50263
|
case "TemplateElement": return lines_1.fromString(n$5.value.raw, options).lockIndentTail();
|
|
50263
50264
|
case "TemplateLiteral":
|
|
50264
|
-
var expressions_1 = path.map(print$4, "expressions");
|
|
50265
|
+
var expressions_1 = path$1.map(print$4, "expressions");
|
|
50265
50266
|
parts.push("`");
|
|
50266
|
-
path.each(function(childPath) {
|
|
50267
|
+
path$1.each(function(childPath) {
|
|
50267
50268
|
var i$2 = childPath.getName();
|
|
50268
50269
|
parts.push(print$4(childPath));
|
|
50269
50270
|
if (i$2 < expressions_1.length) parts.push("${", expressions_1[i$2], "}");
|
|
50270
50271
|
}, "quasis");
|
|
50271
50272
|
parts.push("`");
|
|
50272
50273
|
return lines_1.concat(parts).lockIndentTail();
|
|
50273
|
-
case "TaggedTemplateExpression": return lines_1.concat([path.call(print$4, "tag"), path.call(print$4, "quasi")]);
|
|
50274
|
+
case "TaggedTemplateExpression": return lines_1.concat([path$1.call(print$4, "tag"), path$1.call(print$4, "quasi")]);
|
|
50274
50275
|
case "Node":
|
|
50275
50276
|
case "Printable":
|
|
50276
50277
|
case "SourceLocation":
|
|
@@ -50303,7 +50304,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50303
50304
|
case "TypeAnnotation":
|
|
50304
50305
|
if (n$5.typeAnnotation) {
|
|
50305
50306
|
if (n$5.typeAnnotation.type !== "FunctionTypeAnnotation") parts.push(": ");
|
|
50306
|
-
parts.push(path.call(print$4, "typeAnnotation"));
|
|
50307
|
+
parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
50307
50308
|
return lines_1.concat(parts);
|
|
50308
50309
|
}
|
|
50309
50310
|
return lines_1.fromString("");
|
|
@@ -50312,15 +50313,15 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50312
50313
|
case "EmptyTypeAnnotation": return lines_1.fromString("empty", options);
|
|
50313
50314
|
case "AnyTypeAnnotation": return lines_1.fromString("any", options);
|
|
50314
50315
|
case "MixedTypeAnnotation": return lines_1.fromString("mixed", options);
|
|
50315
|
-
case "ArrayTypeAnnotation": return lines_1.concat([path.call(print$4, "elementType"), "[]"]);
|
|
50316
|
+
case "ArrayTypeAnnotation": return lines_1.concat([path$1.call(print$4, "elementType"), "[]"]);
|
|
50316
50317
|
case "TupleTypeAnnotation":
|
|
50317
|
-
var printed_2 = path.map(print$4, "types");
|
|
50318
|
+
var printed_2 = path$1.map(print$4, "types");
|
|
50318
50319
|
var joined = lines_1.fromString(", ").join(printed_2);
|
|
50319
50320
|
var oneLine_3 = joined.getLineLength(1) <= options.wrapColumn;
|
|
50320
50321
|
if (oneLine_3) if (options.arrayBracketSpacing) parts.push("[ ");
|
|
50321
50322
|
else parts.push("[");
|
|
50322
50323
|
else parts.push("[\n");
|
|
50323
|
-
path.each(function(elemPath) {
|
|
50324
|
+
path$1.each(function(elemPath) {
|
|
50324
50325
|
var i$2 = elemPath.getName();
|
|
50325
50326
|
if (!elemPath.getValue()) parts.push(",");
|
|
50326
50327
|
else {
|
|
@@ -50342,114 +50343,114 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50342
50343
|
return lines_1.fromString("" + n$5.value, options);
|
|
50343
50344
|
case "InterfaceTypeAnnotation":
|
|
50344
50345
|
parts.push("interface");
|
|
50345
|
-
if (n$5.extends && n$5.extends.length > 0) parts.push(" extends ", lines_1.fromString(", ").join(path.map(print$4, "extends")));
|
|
50346
|
-
parts.push(" ", path.call(print$4, "body"));
|
|
50346
|
+
if (n$5.extends && n$5.extends.length > 0) parts.push(" extends ", lines_1.fromString(", ").join(path$1.map(print$4, "extends")));
|
|
50347
|
+
parts.push(" ", path$1.call(print$4, "body"));
|
|
50347
50348
|
return lines_1.concat(parts);
|
|
50348
|
-
case "DeclareFunction": return printFlowDeclaration(path, [
|
|
50349
|
+
case "DeclareFunction": return printFlowDeclaration(path$1, [
|
|
50349
50350
|
"function ",
|
|
50350
|
-
path.call(print$4, "id"),
|
|
50351
|
+
path$1.call(print$4, "id"),
|
|
50351
50352
|
";"
|
|
50352
50353
|
]);
|
|
50353
|
-
case "DeclareModule": return printFlowDeclaration(path, [
|
|
50354
|
+
case "DeclareModule": return printFlowDeclaration(path$1, [
|
|
50354
50355
|
"module ",
|
|
50355
|
-
path.call(print$4, "id"),
|
|
50356
|
+
path$1.call(print$4, "id"),
|
|
50356
50357
|
" ",
|
|
50357
|
-
path.call(print$4, "body")
|
|
50358
|
+
path$1.call(print$4, "body")
|
|
50358
50359
|
]);
|
|
50359
|
-
case "DeclareModuleExports": return printFlowDeclaration(path, ["module.exports", path.call(print$4, "typeAnnotation")]);
|
|
50360
|
-
case "DeclareVariable": return printFlowDeclaration(path, [
|
|
50360
|
+
case "DeclareModuleExports": return printFlowDeclaration(path$1, ["module.exports", path$1.call(print$4, "typeAnnotation")]);
|
|
50361
|
+
case "DeclareVariable": return printFlowDeclaration(path$1, [
|
|
50361
50362
|
"var ",
|
|
50362
|
-
path.call(print$4, "id"),
|
|
50363
|
+
path$1.call(print$4, "id"),
|
|
50363
50364
|
";"
|
|
50364
50365
|
]);
|
|
50365
50366
|
case "DeclareExportDeclaration":
|
|
50366
|
-
case "DeclareExportAllDeclaration": return lines_1.concat(["declare ", printExportDeclaration(path, options, print$4)]);
|
|
50367
|
+
case "DeclareExportAllDeclaration": return lines_1.concat(["declare ", printExportDeclaration(path$1, options, print$4)]);
|
|
50367
50368
|
case "EnumDeclaration": return lines_1.concat([
|
|
50368
50369
|
"enum ",
|
|
50369
|
-
path.call(print$4, "id"),
|
|
50370
|
-
path.call(print$4, "body")
|
|
50370
|
+
path$1.call(print$4, "id"),
|
|
50371
|
+
path$1.call(print$4, "body")
|
|
50371
50372
|
]);
|
|
50372
50373
|
case "EnumBooleanBody":
|
|
50373
50374
|
case "EnumNumberBody":
|
|
50374
50375
|
case "EnumStringBody":
|
|
50375
50376
|
case "EnumSymbolBody":
|
|
50376
50377
|
if (n$5.type === "EnumSymbolBody" || n$5.explicitType) parts.push(" of ", n$5.type.slice(4, -4).toLowerCase());
|
|
50377
|
-
parts.push(" {\n", lines_1.fromString("\n").join(path.map(print$4, "members")).indent(options.tabWidth), "\n}");
|
|
50378
|
+
parts.push(" {\n", lines_1.fromString("\n").join(path$1.map(print$4, "members")).indent(options.tabWidth), "\n}");
|
|
50378
50379
|
return lines_1.concat(parts);
|
|
50379
|
-
case "EnumDefaultedMember": return lines_1.concat([path.call(print$4, "id"), ","]);
|
|
50380
|
+
case "EnumDefaultedMember": return lines_1.concat([path$1.call(print$4, "id"), ","]);
|
|
50380
50381
|
case "EnumBooleanMember":
|
|
50381
50382
|
case "EnumNumberMember":
|
|
50382
50383
|
case "EnumStringMember": return lines_1.concat([
|
|
50383
|
-
path.call(print$4, "id"),
|
|
50384
|
+
path$1.call(print$4, "id"),
|
|
50384
50385
|
" = ",
|
|
50385
|
-
path.call(print$4, "init"),
|
|
50386
|
+
path$1.call(print$4, "init"),
|
|
50386
50387
|
","
|
|
50387
50388
|
]);
|
|
50388
50389
|
case "InferredPredicate": return lines_1.fromString("%checks", options);
|
|
50389
50390
|
case "DeclaredPredicate": return lines_1.concat([
|
|
50390
50391
|
"%checks(",
|
|
50391
|
-
path.call(print$4, "value"),
|
|
50392
|
+
path$1.call(print$4, "value"),
|
|
50392
50393
|
")"
|
|
50393
50394
|
]);
|
|
50394
50395
|
case "FunctionTypeAnnotation":
|
|
50395
|
-
var parent = path.getParentNode(0);
|
|
50396
|
-
var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method || namedTypes.DeclareFunction.check(path.getParentNode(2)));
|
|
50396
|
+
var parent = path$1.getParentNode(0);
|
|
50397
|
+
var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method || namedTypes.DeclareFunction.check(path$1.getParentNode(2)));
|
|
50397
50398
|
if (isArrowFunctionTypeAnnotation && !namedTypes.FunctionTypeParam.check(parent) && !namedTypes.TypeAlias.check(parent)) parts.push(": ");
|
|
50398
50399
|
var hasTypeParameters = !!n$5.typeParameters;
|
|
50399
50400
|
var needsParens = hasTypeParameters || n$5.params.length !== 1 || n$5.params[0].name;
|
|
50400
|
-
parts.push(hasTypeParameters ? path.call(print$4, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path, options, print$4), needsParens ? ")" : "");
|
|
50401
|
-
if (n$5.returnType) parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path.call(print$4, "returnType"));
|
|
50401
|
+
parts.push(hasTypeParameters ? path$1.call(print$4, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path$1, options, print$4), needsParens ? ")" : "");
|
|
50402
|
+
if (n$5.returnType) parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path$1.call(print$4, "returnType"));
|
|
50402
50403
|
return lines_1.concat(parts);
|
|
50403
50404
|
case "FunctionTypeParam":
|
|
50404
|
-
var name = path.call(print$4, "name");
|
|
50405
|
+
var name = path$1.call(print$4, "name");
|
|
50405
50406
|
parts.push(name);
|
|
50406
50407
|
if (n$5.optional) parts.push("?");
|
|
50407
50408
|
if (name.infos[0].line) parts.push(": ");
|
|
50408
|
-
parts.push(path.call(print$4, "typeAnnotation"));
|
|
50409
|
+
parts.push(path$1.call(print$4, "typeAnnotation"));
|
|
50409
50410
|
return lines_1.concat(parts);
|
|
50410
|
-
case "GenericTypeAnnotation": return lines_1.concat([path.call(print$4, "id"), path.call(print$4, "typeParameters")]);
|
|
50411
|
+
case "GenericTypeAnnotation": return lines_1.concat([path$1.call(print$4, "id"), path$1.call(print$4, "typeParameters")]);
|
|
50411
50412
|
case "DeclareInterface": parts.push("declare ");
|
|
50412
50413
|
case "InterfaceDeclaration":
|
|
50413
50414
|
case "TSInterfaceDeclaration":
|
|
50414
50415
|
if (n$5.declare) parts.push("declare ");
|
|
50415
|
-
parts.push("interface ", path.call(print$4, "id"), path.call(print$4, "typeParameters"), " ");
|
|
50416
|
-
if (n$5["extends"] && n$5["extends"].length > 0) parts.push("extends ", lines_1.fromString(", ").join(path.map(print$4, "extends")), " ");
|
|
50417
|
-
if (n$5.body) parts.push(path.call(print$4, "body"));
|
|
50416
|
+
parts.push("interface ", path$1.call(print$4, "id"), path$1.call(print$4, "typeParameters"), " ");
|
|
50417
|
+
if (n$5["extends"] && n$5["extends"].length > 0) parts.push("extends ", lines_1.fromString(", ").join(path$1.map(print$4, "extends")), " ");
|
|
50418
|
+
if (n$5.body) parts.push(path$1.call(print$4, "body"));
|
|
50418
50419
|
return lines_1.concat(parts);
|
|
50419
50420
|
case "ClassImplements":
|
|
50420
|
-
case "InterfaceExtends": return lines_1.concat([path.call(print$4, "id"), path.call(print$4, "typeParameters")]);
|
|
50421
|
-
case "IntersectionTypeAnnotation": return lines_1.fromString(" & ").join(path.map(print$4, "types"));
|
|
50422
|
-
case "NullableTypeAnnotation": return lines_1.concat(["?", path.call(print$4, "typeAnnotation")]);
|
|
50421
|
+
case "InterfaceExtends": return lines_1.concat([path$1.call(print$4, "id"), path$1.call(print$4, "typeParameters")]);
|
|
50422
|
+
case "IntersectionTypeAnnotation": return lines_1.fromString(" & ").join(path$1.map(print$4, "types"));
|
|
50423
|
+
case "NullableTypeAnnotation": return lines_1.concat(["?", path$1.call(print$4, "typeAnnotation")]);
|
|
50423
50424
|
case "NullLiteralTypeAnnotation": return lines_1.fromString("null", options);
|
|
50424
50425
|
case "ThisTypeAnnotation": return lines_1.fromString("this", options);
|
|
50425
50426
|
case "NumberTypeAnnotation": return lines_1.fromString("number", options);
|
|
50426
|
-
case "ObjectTypeCallProperty": return path.call(print$4, "value");
|
|
50427
|
+
case "ObjectTypeCallProperty": return path$1.call(print$4, "value");
|
|
50427
50428
|
case "ObjectTypeIndexer":
|
|
50428
50429
|
if (n$5.static) parts.push("static ");
|
|
50429
|
-
parts.push(printVariance(path, print$4), "[");
|
|
50430
|
-
if (n$5.id) parts.push(path.call(print$4, "id"), ": ");
|
|
50431
|
-
parts.push(path.call(print$4, "key"), "]: ", path.call(print$4, "value"));
|
|
50430
|
+
parts.push(printVariance(path$1, print$4), "[");
|
|
50431
|
+
if (n$5.id) parts.push(path$1.call(print$4, "id"), ": ");
|
|
50432
|
+
parts.push(path$1.call(print$4, "key"), "]: ", path$1.call(print$4, "value"));
|
|
50432
50433
|
return lines_1.concat(parts);
|
|
50433
50434
|
case "ObjectTypeProperty": return lines_1.concat([
|
|
50434
|
-
printVariance(path, print$4),
|
|
50435
|
-
path.call(print$4, "key"),
|
|
50435
|
+
printVariance(path$1, print$4),
|
|
50436
|
+
path$1.call(print$4, "key"),
|
|
50436
50437
|
n$5.optional ? "?" : "",
|
|
50437
50438
|
": ",
|
|
50438
|
-
path.call(print$4, "value")
|
|
50439
|
+
path$1.call(print$4, "value")
|
|
50439
50440
|
]);
|
|
50440
50441
|
case "ObjectTypeInternalSlot": return lines_1.concat([
|
|
50441
50442
|
n$5.static ? "static " : "",
|
|
50442
50443
|
"[[",
|
|
50443
|
-
path.call(print$4, "id"),
|
|
50444
|
+
path$1.call(print$4, "id"),
|
|
50444
50445
|
"]]",
|
|
50445
50446
|
n$5.optional ? "?" : "",
|
|
50446
50447
|
n$5.value.type !== "FunctionTypeAnnotation" ? ": " : "",
|
|
50447
|
-
path.call(print$4, "value")
|
|
50448
|
+
path$1.call(print$4, "value")
|
|
50448
50449
|
]);
|
|
50449
50450
|
case "QualifiedTypeIdentifier": return lines_1.concat([
|
|
50450
|
-
path.call(print$4, "qualification"),
|
|
50451
|
+
path$1.call(print$4, "qualification"),
|
|
50451
50452
|
".",
|
|
50452
|
-
path.call(print$4, "id")
|
|
50453
|
+
path$1.call(print$4, "id")
|
|
50453
50454
|
]);
|
|
50454
50455
|
case "StringLiteralTypeAnnotation": return lines_1.fromString(nodeStr(n$5.value, options), options);
|
|
50455
50456
|
case "NumberLiteralTypeAnnotation":
|
|
@@ -50461,29 +50462,29 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50461
50462
|
case "DeclareTypeAlias": parts.push("declare ");
|
|
50462
50463
|
case "TypeAlias": return lines_1.concat([
|
|
50463
50464
|
"type ",
|
|
50464
|
-
path.call(print$4, "id"),
|
|
50465
|
-
path.call(print$4, "typeParameters"),
|
|
50465
|
+
path$1.call(print$4, "id"),
|
|
50466
|
+
path$1.call(print$4, "typeParameters"),
|
|
50466
50467
|
" = ",
|
|
50467
|
-
path.call(print$4, "right"),
|
|
50468
|
+
path$1.call(print$4, "right"),
|
|
50468
50469
|
";"
|
|
50469
50470
|
]);
|
|
50470
50471
|
case "DeclareOpaqueType": parts.push("declare ");
|
|
50471
50472
|
case "OpaqueType":
|
|
50472
|
-
parts.push("opaque type ", path.call(print$4, "id"), path.call(print$4, "typeParameters"));
|
|
50473
|
-
if (n$5["supertype"]) parts.push(": ", path.call(print$4, "supertype"));
|
|
50474
|
-
if (n$5["impltype"]) parts.push(" = ", path.call(print$4, "impltype"));
|
|
50473
|
+
parts.push("opaque type ", path$1.call(print$4, "id"), path$1.call(print$4, "typeParameters"));
|
|
50474
|
+
if (n$5["supertype"]) parts.push(": ", path$1.call(print$4, "supertype"));
|
|
50475
|
+
if (n$5["impltype"]) parts.push(" = ", path$1.call(print$4, "impltype"));
|
|
50475
50476
|
parts.push(";");
|
|
50476
50477
|
return lines_1.concat(parts);
|
|
50477
50478
|
case "TypeCastExpression": return lines_1.concat([
|
|
50478
50479
|
"(",
|
|
50479
|
-
path.call(print$4, "expression"),
|
|
50480
|
-
path.call(print$4, "typeAnnotation"),
|
|
50480
|
+
path$1.call(print$4, "expression"),
|
|
50481
|
+
path$1.call(print$4, "typeAnnotation"),
|
|
50481
50482
|
")"
|
|
50482
50483
|
]);
|
|
50483
50484
|
case "TypeParameterDeclaration":
|
|
50484
50485
|
case "TypeParameterInstantiation": return lines_1.concat([
|
|
50485
50486
|
"<",
|
|
50486
|
-
lines_1.fromString(", ").join(path.map(print$4, "params")),
|
|
50487
|
+
lines_1.fromString(", ").join(path$1.map(print$4, "params")),
|
|
50487
50488
|
">"
|
|
50488
50489
|
]);
|
|
50489
50490
|
case "Variance":
|
|
@@ -50491,21 +50492,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50491
50492
|
if (n$5.kind === "minus") return lines_1.fromString("-");
|
|
50492
50493
|
return lines_1.fromString("");
|
|
50493
50494
|
case "TypeParameter":
|
|
50494
|
-
if (n$5.variance) parts.push(printVariance(path, print$4));
|
|
50495
|
-
parts.push(path.call(print$4, "name"));
|
|
50496
|
-
if (n$5.bound) parts.push(path.call(print$4, "bound"));
|
|
50497
|
-
if (n$5["default"]) parts.push("=", path.call(print$4, "default"));
|
|
50495
|
+
if (n$5.variance) parts.push(printVariance(path$1, print$4));
|
|
50496
|
+
parts.push(path$1.call(print$4, "name"));
|
|
50497
|
+
if (n$5.bound) parts.push(path$1.call(print$4, "bound"));
|
|
50498
|
+
if (n$5["default"]) parts.push("=", path$1.call(print$4, "default"));
|
|
50498
50499
|
return lines_1.concat(parts);
|
|
50499
|
-
case "TypeofTypeAnnotation": return lines_1.concat([lines_1.fromString("typeof ", options), path.call(print$4, "argument")]);
|
|
50500
|
+
case "TypeofTypeAnnotation": return lines_1.concat([lines_1.fromString("typeof ", options), path$1.call(print$4, "argument")]);
|
|
50500
50501
|
case "IndexedAccessType":
|
|
50501
50502
|
case "OptionalIndexedAccessType": return lines_1.concat([
|
|
50502
|
-
path.call(print$4, "objectType"),
|
|
50503
|
+
path$1.call(print$4, "objectType"),
|
|
50503
50504
|
n$5.optional ? "?." : "",
|
|
50504
50505
|
"[",
|
|
50505
|
-
path.call(print$4, "indexType"),
|
|
50506
|
+
path$1.call(print$4, "indexType"),
|
|
50506
50507
|
"]"
|
|
50507
50508
|
]);
|
|
50508
|
-
case "UnionTypeAnnotation": return lines_1.fromString(" | ").join(path.map(print$4, "types"));
|
|
50509
|
+
case "UnionTypeAnnotation": return lines_1.fromString(" | ").join(path$1.map(print$4, "types"));
|
|
50509
50510
|
case "VoidTypeAnnotation": return lines_1.fromString("void", options);
|
|
50510
50511
|
case "NullTypeAnnotation": return lines_1.fromString("null", options);
|
|
50511
50512
|
case "SymbolTypeAnnotation": return lines_1.fromString("symbol", options);
|
|
@@ -50525,39 +50526,39 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50525
50526
|
case "TSUndefinedKeyword": return lines_1.fromString("undefined", options);
|
|
50526
50527
|
case "TSUnknownKeyword": return lines_1.fromString("unknown", options);
|
|
50527
50528
|
case "TSNeverKeyword": return lines_1.fromString("never", options);
|
|
50528
|
-
case "TSArrayType": return lines_1.concat([path.call(print$4, "elementType"), "[]"]);
|
|
50529
|
-
case "TSLiteralType": return path.call(print$4, "literal");
|
|
50530
|
-
case "TSUnionType": return lines_1.fromString(" | ").join(path.map(print$4, "types"));
|
|
50531
|
-
case "TSIntersectionType": return lines_1.fromString(" & ").join(path.map(print$4, "types"));
|
|
50529
|
+
case "TSArrayType": return lines_1.concat([path$1.call(print$4, "elementType"), "[]"]);
|
|
50530
|
+
case "TSLiteralType": return path$1.call(print$4, "literal");
|
|
50531
|
+
case "TSUnionType": return lines_1.fromString(" | ").join(path$1.map(print$4, "types"));
|
|
50532
|
+
case "TSIntersectionType": return lines_1.fromString(" & ").join(path$1.map(print$4, "types"));
|
|
50532
50533
|
case "TSConditionalType":
|
|
50533
|
-
parts.push(path.call(print$4, "checkType"), " extends ", path.call(print$4, "extendsType"), " ? ", path.call(print$4, "trueType"), " : ", path.call(print$4, "falseType"));
|
|
50534
|
+
parts.push(path$1.call(print$4, "checkType"), " extends ", path$1.call(print$4, "extendsType"), " ? ", path$1.call(print$4, "trueType"), " : ", path$1.call(print$4, "falseType"));
|
|
50534
50535
|
return lines_1.concat(parts);
|
|
50535
50536
|
case "TSInferType":
|
|
50536
|
-
parts.push("infer ", path.call(print$4, "typeParameter"));
|
|
50537
|
+
parts.push("infer ", path$1.call(print$4, "typeParameter"));
|
|
50537
50538
|
return lines_1.concat(parts);
|
|
50538
50539
|
case "TSParenthesizedType": return lines_1.concat([
|
|
50539
50540
|
"(",
|
|
50540
|
-
path.call(print$4, "typeAnnotation"),
|
|
50541
|
+
path$1.call(print$4, "typeAnnotation"),
|
|
50541
50542
|
")"
|
|
50542
50543
|
]);
|
|
50543
50544
|
case "TSFunctionType": return lines_1.concat([
|
|
50544
|
-
path.call(print$4, "typeParameters"),
|
|
50545
|
+
path$1.call(print$4, "typeParameters"),
|
|
50545
50546
|
"(",
|
|
50546
|
-
printFunctionParams(path, options, print$4),
|
|
50547
|
+
printFunctionParams(path$1, options, print$4),
|
|
50547
50548
|
") => ",
|
|
50548
|
-
path.call(print$4, "typeAnnotation", "typeAnnotation")
|
|
50549
|
+
path$1.call(print$4, "typeAnnotation", "typeAnnotation")
|
|
50549
50550
|
]);
|
|
50550
50551
|
case "TSConstructorType": return lines_1.concat([
|
|
50551
50552
|
"new ",
|
|
50552
|
-
path.call(print$4, "typeParameters"),
|
|
50553
|
+
path$1.call(print$4, "typeParameters"),
|
|
50553
50554
|
"(",
|
|
50554
|
-
printFunctionParams(path, options, print$4),
|
|
50555
|
+
printFunctionParams(path$1, options, print$4),
|
|
50555
50556
|
") => ",
|
|
50556
|
-
path.call(print$4, "typeAnnotation", "typeAnnotation")
|
|
50557
|
+
path$1.call(print$4, "typeAnnotation", "typeAnnotation")
|
|
50557
50558
|
]);
|
|
50558
50559
|
case "TSMappedType":
|
|
50559
|
-
parts.push(n$5.readonly ? "readonly " : "", "[", path.call(print$4, "typeParameter"), "]", n$5.optional ? "?" : "");
|
|
50560
|
-
if (n$5.typeAnnotation) parts.push(": ", path.call(print$4, "typeAnnotation"), ";");
|
|
50560
|
+
parts.push(n$5.readonly ? "readonly " : "", "[", path$1.call(print$4, "typeParameter"), "]", n$5.optional ? "?" : "");
|
|
50561
|
+
if (n$5.typeAnnotation) parts.push(": ", path$1.call(print$4, "typeAnnotation"), ";");
|
|
50561
50562
|
return lines_1.concat([
|
|
50562
50563
|
"{\n",
|
|
50563
50564
|
lines_1.concat(parts).indent(options.tabWidth),
|
|
@@ -50565,126 +50566,126 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50565
50566
|
]);
|
|
50566
50567
|
case "TSTupleType": return lines_1.concat([
|
|
50567
50568
|
"[",
|
|
50568
|
-
lines_1.fromString(", ").join(path.map(print$4, "elementTypes")),
|
|
50569
|
+
lines_1.fromString(", ").join(path$1.map(print$4, "elementTypes")),
|
|
50569
50570
|
"]"
|
|
50570
50571
|
]);
|
|
50571
50572
|
case "TSNamedTupleMember":
|
|
50572
|
-
parts.push(path.call(print$4, "label"));
|
|
50573
|
+
parts.push(path$1.call(print$4, "label"));
|
|
50573
50574
|
if (n$5.optional) parts.push("?");
|
|
50574
|
-
parts.push(": ", path.call(print$4, "elementType"));
|
|
50575
|
+
parts.push(": ", path$1.call(print$4, "elementType"));
|
|
50575
50576
|
return lines_1.concat(parts);
|
|
50576
|
-
case "TSRestType": return lines_1.concat(["...", path.call(print$4, "typeAnnotation")]);
|
|
50577
|
-
case "TSOptionalType": return lines_1.concat([path.call(print$4, "typeAnnotation"), "?"]);
|
|
50577
|
+
case "TSRestType": return lines_1.concat(["...", path$1.call(print$4, "typeAnnotation")]);
|
|
50578
|
+
case "TSOptionalType": return lines_1.concat([path$1.call(print$4, "typeAnnotation"), "?"]);
|
|
50578
50579
|
case "TSIndexedAccessType": return lines_1.concat([
|
|
50579
|
-
path.call(print$4, "objectType"),
|
|
50580
|
+
path$1.call(print$4, "objectType"),
|
|
50580
50581
|
"[",
|
|
50581
|
-
path.call(print$4, "indexType"),
|
|
50582
|
+
path$1.call(print$4, "indexType"),
|
|
50582
50583
|
"]"
|
|
50583
50584
|
]);
|
|
50584
50585
|
case "TSTypeOperator": return lines_1.concat([
|
|
50585
|
-
path.call(print$4, "operator"),
|
|
50586
|
+
path$1.call(print$4, "operator"),
|
|
50586
50587
|
" ",
|
|
50587
|
-
path.call(print$4, "typeAnnotation")
|
|
50588
|
+
path$1.call(print$4, "typeAnnotation")
|
|
50588
50589
|
]);
|
|
50589
50590
|
case "TSTypeLiteral":
|
|
50590
|
-
var memberLines = lines_1.fromString("\n").join(path.map(print$4, "members"));
|
|
50591
|
+
var memberLines = lines_1.fromString("\n").join(path$1.map(print$4, "members"));
|
|
50591
50592
|
if (memberLines.isEmpty()) return lines_1.fromString("{}", options);
|
|
50592
50593
|
parts.push("{\n", memberLines.indent(options.tabWidth), "\n}");
|
|
50593
50594
|
return lines_1.concat(parts);
|
|
50594
50595
|
case "TSEnumMember":
|
|
50595
|
-
parts.push(path.call(print$4, "id"));
|
|
50596
|
-
if (n$5.initializer) parts.push(" = ", path.call(print$4, "initializer"));
|
|
50596
|
+
parts.push(path$1.call(print$4, "id"));
|
|
50597
|
+
if (n$5.initializer) parts.push(" = ", path$1.call(print$4, "initializer"));
|
|
50597
50598
|
return lines_1.concat(parts);
|
|
50598
|
-
case "TSTypeQuery": return lines_1.concat(["typeof ", path.call(print$4, "exprName")]);
|
|
50599
|
+
case "TSTypeQuery": return lines_1.concat(["typeof ", path$1.call(print$4, "exprName")]);
|
|
50599
50600
|
case "TSParameterProperty":
|
|
50600
50601
|
if (n$5.accessibility) parts.push(n$5.accessibility, " ");
|
|
50601
50602
|
if (n$5.export) parts.push("export ");
|
|
50602
50603
|
if (n$5.static) parts.push("static ");
|
|
50603
50604
|
if (n$5.readonly) parts.push("readonly ");
|
|
50604
|
-
parts.push(path.call(print$4, "parameter"));
|
|
50605
|
+
parts.push(path$1.call(print$4, "parameter"));
|
|
50605
50606
|
return lines_1.concat(parts);
|
|
50606
|
-
case "TSTypeReference": return lines_1.concat([path.call(print$4, "typeName"), path.call(print$4, "typeParameters")]);
|
|
50607
|
+
case "TSTypeReference": return lines_1.concat([path$1.call(print$4, "typeName"), path$1.call(print$4, "typeParameters")]);
|
|
50607
50608
|
case "TSQualifiedName": return lines_1.concat([
|
|
50608
|
-
path.call(print$4, "left"),
|
|
50609
|
+
path$1.call(print$4, "left"),
|
|
50609
50610
|
".",
|
|
50610
|
-
path.call(print$4, "right")
|
|
50611
|
+
path$1.call(print$4, "right")
|
|
50611
50612
|
]);
|
|
50612
50613
|
case "TSAsExpression":
|
|
50613
|
-
var expression = path.call(print$4, "expression");
|
|
50614
|
-
parts.push(expression, lines_1.fromString(" as "), path.call(print$4, "typeAnnotation"));
|
|
50614
|
+
var expression = path$1.call(print$4, "expression");
|
|
50615
|
+
parts.push(expression, lines_1.fromString(" as "), path$1.call(print$4, "typeAnnotation"));
|
|
50615
50616
|
return lines_1.concat(parts);
|
|
50616
|
-
case "TSNonNullExpression": return lines_1.concat([path.call(print$4, "expression"), "!"]);
|
|
50617
|
-
case "TSTypeAnnotation": return lines_1.concat([": ", path.call(print$4, "typeAnnotation")]);
|
|
50617
|
+
case "TSNonNullExpression": return lines_1.concat([path$1.call(print$4, "expression"), "!"]);
|
|
50618
|
+
case "TSTypeAnnotation": return lines_1.concat([": ", path$1.call(print$4, "typeAnnotation")]);
|
|
50618
50619
|
case "TSIndexSignature": return lines_1.concat([
|
|
50619
50620
|
n$5.readonly ? "readonly " : "",
|
|
50620
50621
|
"[",
|
|
50621
|
-
path.map(print$4, "parameters"),
|
|
50622
|
+
path$1.map(print$4, "parameters"),
|
|
50622
50623
|
"]",
|
|
50623
|
-
path.call(print$4, "typeAnnotation")
|
|
50624
|
+
path$1.call(print$4, "typeAnnotation")
|
|
50624
50625
|
]);
|
|
50625
50626
|
case "TSPropertySignature":
|
|
50626
|
-
parts.push(printVariance(path, print$4), n$5.readonly ? "readonly " : "");
|
|
50627
|
-
if (n$5.computed) parts.push("[", path.call(print$4, "key"), "]");
|
|
50628
|
-
else parts.push(path.call(print$4, "key"));
|
|
50629
|
-
parts.push(n$5.optional ? "?" : "", path.call(print$4, "typeAnnotation"));
|
|
50627
|
+
parts.push(printVariance(path$1, print$4), n$5.readonly ? "readonly " : "");
|
|
50628
|
+
if (n$5.computed) parts.push("[", path$1.call(print$4, "key"), "]");
|
|
50629
|
+
else parts.push(path$1.call(print$4, "key"));
|
|
50630
|
+
parts.push(n$5.optional ? "?" : "", path$1.call(print$4, "typeAnnotation"));
|
|
50630
50631
|
return lines_1.concat(parts);
|
|
50631
50632
|
case "TSMethodSignature":
|
|
50632
|
-
if (n$5.computed) parts.push("[", path.call(print$4, "key"), "]");
|
|
50633
|
-
else parts.push(path.call(print$4, "key"));
|
|
50633
|
+
if (n$5.computed) parts.push("[", path$1.call(print$4, "key"), "]");
|
|
50634
|
+
else parts.push(path$1.call(print$4, "key"));
|
|
50634
50635
|
if (n$5.optional) parts.push("?");
|
|
50635
|
-
parts.push(path.call(print$4, "typeParameters"), "(", printFunctionParams(path, options, print$4), ")", path.call(print$4, "typeAnnotation"));
|
|
50636
|
+
parts.push(path$1.call(print$4, "typeParameters"), "(", printFunctionParams(path$1, options, print$4), ")", path$1.call(print$4, "typeAnnotation"));
|
|
50636
50637
|
return lines_1.concat(parts);
|
|
50637
50638
|
case "TSTypePredicate":
|
|
50638
50639
|
if (n$5.asserts) parts.push("asserts ");
|
|
50639
|
-
parts.push(path.call(print$4, "parameterName"));
|
|
50640
|
-
if (n$5.typeAnnotation) parts.push(" is ", path.call(print$4, "typeAnnotation", "typeAnnotation"));
|
|
50640
|
+
parts.push(path$1.call(print$4, "parameterName"));
|
|
50641
|
+
if (n$5.typeAnnotation) parts.push(" is ", path$1.call(print$4, "typeAnnotation", "typeAnnotation"));
|
|
50641
50642
|
return lines_1.concat(parts);
|
|
50642
50643
|
case "TSCallSignatureDeclaration": return lines_1.concat([
|
|
50643
|
-
path.call(print$4, "typeParameters"),
|
|
50644
|
+
path$1.call(print$4, "typeParameters"),
|
|
50644
50645
|
"(",
|
|
50645
|
-
printFunctionParams(path, options, print$4),
|
|
50646
|
+
printFunctionParams(path$1, options, print$4),
|
|
50646
50647
|
")",
|
|
50647
|
-
path.call(print$4, "typeAnnotation")
|
|
50648
|
+
path$1.call(print$4, "typeAnnotation")
|
|
50648
50649
|
]);
|
|
50649
50650
|
case "TSConstructSignatureDeclaration":
|
|
50650
|
-
if (n$5.typeParameters) parts.push("new", path.call(print$4, "typeParameters"));
|
|
50651
|
+
if (n$5.typeParameters) parts.push("new", path$1.call(print$4, "typeParameters"));
|
|
50651
50652
|
else parts.push("new ");
|
|
50652
|
-
parts.push("(", printFunctionParams(path, options, print$4), ")", path.call(print$4, "typeAnnotation"));
|
|
50653
|
+
parts.push("(", printFunctionParams(path$1, options, print$4), ")", path$1.call(print$4, "typeAnnotation"));
|
|
50653
50654
|
return lines_1.concat(parts);
|
|
50654
50655
|
case "TSTypeAliasDeclaration": return lines_1.concat([
|
|
50655
50656
|
n$5.declare ? "declare " : "",
|
|
50656
50657
|
"type ",
|
|
50657
|
-
path.call(print$4, "id"),
|
|
50658
|
-
path.call(print$4, "typeParameters"),
|
|
50658
|
+
path$1.call(print$4, "id"),
|
|
50659
|
+
path$1.call(print$4, "typeParameters"),
|
|
50659
50660
|
" = ",
|
|
50660
|
-
path.call(print$4, "typeAnnotation"),
|
|
50661
|
+
path$1.call(print$4, "typeAnnotation"),
|
|
50661
50662
|
";"
|
|
50662
50663
|
]);
|
|
50663
50664
|
case "TSTypeParameter":
|
|
50664
|
-
parts.push(path.call(print$4, "name"));
|
|
50665
|
-
var parent = path.getParentNode(0);
|
|
50665
|
+
parts.push(path$1.call(print$4, "name"));
|
|
50666
|
+
var parent = path$1.getParentNode(0);
|
|
50666
50667
|
var isInMappedType = namedTypes.TSMappedType.check(parent);
|
|
50667
|
-
if (n$5.constraint) parts.push(isInMappedType ? " in " : " extends ", path.call(print$4, "constraint"));
|
|
50668
|
-
if (n$5["default"]) parts.push(" = ", path.call(print$4, "default"));
|
|
50668
|
+
if (n$5.constraint) parts.push(isInMappedType ? " in " : " extends ", path$1.call(print$4, "constraint"));
|
|
50669
|
+
if (n$5["default"]) parts.push(" = ", path$1.call(print$4, "default"));
|
|
50669
50670
|
return lines_1.concat(parts);
|
|
50670
50671
|
case "TSTypeAssertion":
|
|
50671
|
-
parts.push("<", path.call(print$4, "typeAnnotation"), "> ", path.call(print$4, "expression"));
|
|
50672
|
+
parts.push("<", path$1.call(print$4, "typeAnnotation"), "> ", path$1.call(print$4, "expression"));
|
|
50672
50673
|
return lines_1.concat(parts);
|
|
50673
50674
|
case "TSTypeParameterDeclaration":
|
|
50674
50675
|
case "TSTypeParameterInstantiation": return lines_1.concat([
|
|
50675
50676
|
"<",
|
|
50676
|
-
lines_1.fromString(", ").join(path.map(print$4, "params")),
|
|
50677
|
+
lines_1.fromString(", ").join(path$1.map(print$4, "params")),
|
|
50677
50678
|
">"
|
|
50678
50679
|
]);
|
|
50679
50680
|
case "TSEnumDeclaration":
|
|
50680
|
-
parts.push(n$5.declare ? "declare " : "", n$5.const ? "const " : "", "enum ", path.call(print$4, "id"));
|
|
50681
|
-
var memberLines = lines_1.fromString(",\n").join(path.map(print$4, "members"));
|
|
50681
|
+
parts.push(n$5.declare ? "declare " : "", n$5.const ? "const " : "", "enum ", path$1.call(print$4, "id"));
|
|
50682
|
+
var memberLines = lines_1.fromString(",\n").join(path$1.map(print$4, "members"));
|
|
50682
50683
|
if (memberLines.isEmpty()) parts.push(" {}");
|
|
50683
50684
|
else parts.push(" {\n", memberLines.indent(options.tabWidth), "\n}");
|
|
50684
50685
|
return lines_1.concat(parts);
|
|
50685
|
-
case "TSExpressionWithTypeArguments": return lines_1.concat([path.call(print$4, "expression"), path.call(print$4, "typeParameters")]);
|
|
50686
|
+
case "TSExpressionWithTypeArguments": return lines_1.concat([path$1.call(print$4, "expression"), path$1.call(print$4, "typeParameters")]);
|
|
50686
50687
|
case "TSInterfaceBody":
|
|
50687
|
-
var lines = lines_1.fromString("\n").join(path.map(print$4, "body"));
|
|
50688
|
+
var lines = lines_1.fromString("\n").join(path$1.map(print$4, "body"));
|
|
50688
50689
|
if (lines.isEmpty()) return lines_1.fromString("{}", options);
|
|
50689
50690
|
return lines_1.concat([
|
|
50690
50691
|
"{\n",
|
|
@@ -50692,21 +50693,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50692
50693
|
"\n}"
|
|
50693
50694
|
]);
|
|
50694
50695
|
case "TSImportType":
|
|
50695
|
-
parts.push("import(", path.call(print$4, "argument"), ")");
|
|
50696
|
-
if (n$5.qualifier) parts.push(".", path.call(print$4, "qualifier"));
|
|
50697
|
-
if (n$5.typeParameters) parts.push(path.call(print$4, "typeParameters"));
|
|
50696
|
+
parts.push("import(", path$1.call(print$4, "argument"), ")");
|
|
50697
|
+
if (n$5.qualifier) parts.push(".", path$1.call(print$4, "qualifier"));
|
|
50698
|
+
if (n$5.typeParameters) parts.push(path$1.call(print$4, "typeParameters"));
|
|
50698
50699
|
return lines_1.concat(parts);
|
|
50699
50700
|
case "TSImportEqualsDeclaration":
|
|
50700
50701
|
if (n$5.isExport) parts.push("export ");
|
|
50701
|
-
parts.push("import ", path.call(print$4, "id"), " = ", path.call(print$4, "moduleReference"));
|
|
50702
|
+
parts.push("import ", path$1.call(print$4, "id"), " = ", path$1.call(print$4, "moduleReference"));
|
|
50702
50703
|
return maybeAddSemicolon(lines_1.concat(parts));
|
|
50703
50704
|
case "TSExternalModuleReference": return lines_1.concat([
|
|
50704
50705
|
"require(",
|
|
50705
|
-
path.call(print$4, "expression"),
|
|
50706
|
+
path$1.call(print$4, "expression"),
|
|
50706
50707
|
")"
|
|
50707
50708
|
]);
|
|
50708
50709
|
case "TSModuleDeclaration":
|
|
50709
|
-
var parent = path.getParentNode();
|
|
50710
|
+
var parent = path$1.getParentNode();
|
|
50710
50711
|
if (parent.type === "TSModuleDeclaration") parts.push(".");
|
|
50711
50712
|
else {
|
|
50712
50713
|
if (n$5.declare) parts.push("declare ");
|
|
@@ -50715,20 +50716,20 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50715
50716
|
else parts.push("namespace ");
|
|
50716
50717
|
else parts.push("namespace ");
|
|
50717
50718
|
}
|
|
50718
|
-
parts.push(path.call(print$4, "id"));
|
|
50719
|
+
parts.push(path$1.call(print$4, "id"));
|
|
50719
50720
|
if (n$5.body) {
|
|
50720
50721
|
parts.push(" ");
|
|
50721
|
-
parts.push(path.call(print$4, "body"));
|
|
50722
|
+
parts.push(path$1.call(print$4, "body"));
|
|
50722
50723
|
}
|
|
50723
50724
|
return lines_1.concat(parts);
|
|
50724
50725
|
case "TSModuleBlock":
|
|
50725
|
-
var naked = path.call(function(bodyPath) {
|
|
50726
|
+
var naked = path$1.call(function(bodyPath) {
|
|
50726
50727
|
return printStatementSequence(bodyPath, options, print$4);
|
|
50727
50728
|
}, "body");
|
|
50728
50729
|
if (naked.isEmpty()) parts.push("{}");
|
|
50729
50730
|
else parts.push("{\n", naked.indent(options.tabWidth), "\n}");
|
|
50730
50731
|
return lines_1.concat(parts);
|
|
50731
|
-
case "V8IntrinsicIdentifier": return lines_1.concat(["%", path.call(print$4, "name")]);
|
|
50732
|
+
case "V8IntrinsicIdentifier": return lines_1.concat(["%", path$1.call(print$4, "name")]);
|
|
50732
50733
|
case "TopicReference": return lines_1.fromString("#");
|
|
50733
50734
|
case "ClassHeritage":
|
|
50734
50735
|
case "ComprehensionBlock":
|
|
@@ -50763,22 +50764,22 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50763
50764
|
throw new Error("unknown type: " + JSON.stringify(n$5.type));
|
|
50764
50765
|
}
|
|
50765
50766
|
}
|
|
50766
|
-
function printDecorators(path, printPath) {
|
|
50767
|
+
function printDecorators(path$1, printPath) {
|
|
50767
50768
|
var parts = [];
|
|
50768
|
-
var node = path.getValue();
|
|
50769
|
-
if (node.decorators && node.decorators.length > 0 && !util.getParentExportDeclaration(path)) path.each(function(decoratorPath) {
|
|
50769
|
+
var node = path$1.getValue();
|
|
50770
|
+
if (node.decorators && node.decorators.length > 0 && !util.getParentExportDeclaration(path$1)) path$1.each(function(decoratorPath) {
|
|
50770
50771
|
parts.push(printPath(decoratorPath), "\n");
|
|
50771
50772
|
}, "decorators");
|
|
50772
|
-
else if (util.isExportDeclaration(node) && node.declaration && node.declaration.decorators) path.each(function(decoratorPath) {
|
|
50773
|
+
else if (util.isExportDeclaration(node) && node.declaration && node.declaration.decorators) path$1.each(function(decoratorPath) {
|
|
50773
50774
|
parts.push(printPath(decoratorPath), "\n");
|
|
50774
50775
|
}, "declaration", "decorators");
|
|
50775
50776
|
return lines_1.concat(parts);
|
|
50776
50777
|
}
|
|
50777
|
-
function printStatementSequence(path, options, print$4) {
|
|
50778
|
+
function printStatementSequence(path$1, options, print$4) {
|
|
50778
50779
|
var filtered = [];
|
|
50779
50780
|
var sawComment = false;
|
|
50780
50781
|
var sawStatement = false;
|
|
50781
|
-
path.each(function(stmtPath) {
|
|
50782
|
+
path$1.each(function(stmtPath) {
|
|
50782
50783
|
var stmt = stmtPath.getValue();
|
|
50783
50784
|
if (!stmt) return;
|
|
50784
50785
|
if (stmt.type === "EmptyStatement" && !(stmt.comments && stmt.comments.length > 0)) return;
|
|
@@ -50832,8 +50833,8 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50832
50833
|
if (spaceLines2.length > spaceLines1.length) return spaceLines2;
|
|
50833
50834
|
return spaceLines1;
|
|
50834
50835
|
}
|
|
50835
|
-
function printMethod(path, options, print$4) {
|
|
50836
|
-
var node = path.getNode();
|
|
50836
|
+
function printMethod(path$1, options, print$4) {
|
|
50837
|
+
var node = path$1.getNode();
|
|
50837
50838
|
var kind = node.kind;
|
|
50838
50839
|
var parts = [];
|
|
50839
50840
|
var nodeValue = node.value;
|
|
@@ -50847,7 +50848,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50847
50848
|
if (nodeValue.async) parts.push("async ");
|
|
50848
50849
|
if (nodeValue.generator) parts.push("*");
|
|
50849
50850
|
if (kind === "get" || kind === "set") parts.push(kind, " ");
|
|
50850
|
-
var key = path.call(print$4, "key");
|
|
50851
|
+
var key = path$1.call(print$4, "key");
|
|
50851
50852
|
if (node.computed) key = lines_1.concat([
|
|
50852
50853
|
"[",
|
|
50853
50854
|
key,
|
|
@@ -50856,20 +50857,20 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50856
50857
|
parts.push(key);
|
|
50857
50858
|
if (node.optional) parts.push("?");
|
|
50858
50859
|
if (node === nodeValue) {
|
|
50859
|
-
parts.push(path.call(print$4, "typeParameters"), "(", printFunctionParams(path, options, print$4), ")", path.call(print$4, "returnType"));
|
|
50860
|
-
if (node.body) parts.push(" ", path.call(print$4, "body"));
|
|
50860
|
+
parts.push(path$1.call(print$4, "typeParameters"), "(", printFunctionParams(path$1, options, print$4), ")", path$1.call(print$4, "returnType"));
|
|
50861
|
+
if (node.body) parts.push(" ", path$1.call(print$4, "body"));
|
|
50861
50862
|
else parts.push(";");
|
|
50862
50863
|
} else {
|
|
50863
|
-
parts.push(path.call(print$4, "value", "typeParameters"), "(", path.call(function(valuePath) {
|
|
50864
|
+
parts.push(path$1.call(print$4, "value", "typeParameters"), "(", path$1.call(function(valuePath) {
|
|
50864
50865
|
return printFunctionParams(valuePath, options, print$4);
|
|
50865
|
-
}, "value"), ")", path.call(print$4, "value", "returnType"));
|
|
50866
|
-
if (nodeValue.body) parts.push(" ", path.call(print$4, "value", "body"));
|
|
50866
|
+
}, "value"), ")", path$1.call(print$4, "value", "returnType"));
|
|
50867
|
+
if (nodeValue.body) parts.push(" ", path$1.call(print$4, "value", "body"));
|
|
50867
50868
|
else parts.push(";");
|
|
50868
50869
|
}
|
|
50869
50870
|
return lines_1.concat(parts);
|
|
50870
50871
|
}
|
|
50871
|
-
function printArgumentsList(path, options, print$4) {
|
|
50872
|
-
var printed = path.map(print$4, "arguments");
|
|
50872
|
+
function printArgumentsList(path$1, options, print$4) {
|
|
50873
|
+
var printed = path$1.map(print$4, "arguments");
|
|
50873
50874
|
var trailingComma = util.isTrailingCommaEnabled(options, "parameters");
|
|
50874
50875
|
var joined = lines_1.fromString(", ").join(printed);
|
|
50875
50876
|
if (joined.getLineLength(1) > options.wrapColumn) {
|
|
@@ -50886,18 +50887,18 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50886
50887
|
")"
|
|
50887
50888
|
]);
|
|
50888
50889
|
}
|
|
50889
|
-
function printFunctionParams(path, options, print$4) {
|
|
50890
|
-
var fun = path.getValue();
|
|
50890
|
+
function printFunctionParams(path$1, options, print$4) {
|
|
50891
|
+
var fun = path$1.getValue();
|
|
50891
50892
|
var params;
|
|
50892
50893
|
var printed = [];
|
|
50893
50894
|
if (fun.params) {
|
|
50894
50895
|
params = fun.params;
|
|
50895
|
-
printed = path.map(print$4, "params");
|
|
50896
|
+
printed = path$1.map(print$4, "params");
|
|
50896
50897
|
} else if (fun.parameters) {
|
|
50897
50898
|
params = fun.parameters;
|
|
50898
|
-
printed = path.map(print$4, "parameters");
|
|
50899
|
+
printed = path$1.map(print$4, "parameters");
|
|
50899
50900
|
}
|
|
50900
|
-
if (fun.defaults) path.each(function(defExprPath) {
|
|
50901
|
+
if (fun.defaults) path$1.each(function(defExprPath) {
|
|
50901
50902
|
var i$2 = defExprPath.getName();
|
|
50902
50903
|
var p$1 = printed[i$2];
|
|
50903
50904
|
if (p$1 && defExprPath.getValue()) printed[i$2] = lines_1.concat([
|
|
@@ -50906,7 +50907,7 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50906
50907
|
print$4(defExprPath)
|
|
50907
50908
|
]);
|
|
50908
50909
|
}, "defaults");
|
|
50909
|
-
if (fun.rest) printed.push(lines_1.concat(["...", path.call(print$4, "rest")]));
|
|
50910
|
+
if (fun.rest) printed.push(lines_1.concat(["...", path$1.call(print$4, "rest")]));
|
|
50910
50911
|
var joined = lines_1.fromString(", ").join(printed);
|
|
50911
50912
|
if (joined.length > 1 || joined.getLineLength(1) > options.wrapColumn) {
|
|
50912
50913
|
joined = lines_1.fromString(",\n").join(printed);
|
|
@@ -50916,11 +50917,11 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50916
50917
|
}
|
|
50917
50918
|
return joined;
|
|
50918
50919
|
}
|
|
50919
|
-
function maybePrintImportAssertions(path, options, print$4) {
|
|
50920
|
-
var n$5 = path.getValue();
|
|
50920
|
+
function maybePrintImportAssertions(path$1, options, print$4) {
|
|
50921
|
+
var n$5 = path$1.getValue();
|
|
50921
50922
|
if (n$5.assertions && n$5.assertions.length > 0) {
|
|
50922
50923
|
var parts = [" assert {"];
|
|
50923
|
-
var printed = path.map(print$4, "assertions");
|
|
50924
|
+
var printed = path$1.map(print$4, "assertions");
|
|
50924
50925
|
var flat = lines_1.fromString(", ").join(printed);
|
|
50925
50926
|
if (flat.length > 1 || flat.getLineLength(1) > options.wrapColumn) parts.push("\n", lines_1.fromString(",\n").join(printed).indent(options.tabWidth), "\n}");
|
|
50926
50927
|
else parts.push(" ", flat, " }");
|
|
@@ -50928,8 +50929,8 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50928
50929
|
}
|
|
50929
50930
|
return lines_1.fromString("");
|
|
50930
50931
|
}
|
|
50931
|
-
function printExportDeclaration(path, options, print$4) {
|
|
50932
|
-
var decl = path.getValue();
|
|
50932
|
+
function printExportDeclaration(path$1, options, print$4) {
|
|
50933
|
+
var decl = path$1.getValue();
|
|
50933
50934
|
var parts = ["export "];
|
|
50934
50935
|
if (decl.exportKind && decl.exportKind === "type") {
|
|
50935
50936
|
if (!decl.declaration) parts.push("type ");
|
|
@@ -50937,14 +50938,14 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50937
50938
|
var shouldPrintSpaces = options.objectCurlySpacing;
|
|
50938
50939
|
namedTypes.Declaration.assert(decl);
|
|
50939
50940
|
if (decl["default"] || decl.type === "ExportDefaultDeclaration") parts.push("default ");
|
|
50940
|
-
if (decl.declaration) parts.push(path.call(print$4, "declaration"));
|
|
50941
|
+
if (decl.declaration) parts.push(path$1.call(print$4, "declaration"));
|
|
50941
50942
|
else if (decl.specifiers) {
|
|
50942
50943
|
if (decl.specifiers.length === 1 && decl.specifiers[0].type === "ExportBatchSpecifier") parts.push("*");
|
|
50943
50944
|
else if (decl.specifiers.length === 0) parts.push("{}");
|
|
50944
50945
|
else if (decl.specifiers[0].type === "ExportDefaultSpecifier") {
|
|
50945
50946
|
var unbracedSpecifiers_2 = [];
|
|
50946
50947
|
var bracedSpecifiers_2 = [];
|
|
50947
|
-
path.each(function(specifierPath) {
|
|
50948
|
+
path$1.each(function(specifierPath) {
|
|
50948
50949
|
if (specifierPath.getValue().type === "ExportDefaultSpecifier") unbracedSpecifiers_2.push(print$4(specifierPath));
|
|
50949
50950
|
else bracedSpecifiers_2.push(print$4(specifierPath));
|
|
50950
50951
|
}, "specifiers");
|
|
@@ -50960,21 +50961,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
50960
50961
|
else if (options.objectCurlySpacing) parts.push("{ ", lines_2, " }");
|
|
50961
50962
|
else parts.push("{", lines_2, "}");
|
|
50962
50963
|
}
|
|
50963
|
-
} else parts.push(shouldPrintSpaces ? "{ " : "{", lines_1.fromString(", ").join(path.map(print$4, "specifiers")), shouldPrintSpaces ? " }" : "}");
|
|
50964
|
-
if (decl.source) parts.push(" from ", path.call(print$4, "source"), maybePrintImportAssertions(path, options, print$4));
|
|
50964
|
+
} else parts.push(shouldPrintSpaces ? "{ " : "{", lines_1.fromString(", ").join(path$1.map(print$4, "specifiers")), shouldPrintSpaces ? " }" : "}");
|
|
50965
|
+
if (decl.source) parts.push(" from ", path$1.call(print$4, "source"), maybePrintImportAssertions(path$1, options, print$4));
|
|
50965
50966
|
}
|
|
50966
50967
|
var lines = lines_1.concat(parts);
|
|
50967
50968
|
if (lastNonSpaceCharacter(lines) !== ";" && !(decl.declaration && (decl.declaration.type === "FunctionDeclaration" || decl.declaration.type === "ClassDeclaration" || decl.declaration.type === "TSModuleDeclaration" || decl.declaration.type === "TSInterfaceDeclaration" || decl.declaration.type === "TSEnumDeclaration"))) lines = lines_1.concat([lines, ";"]);
|
|
50968
50969
|
return lines;
|
|
50969
50970
|
}
|
|
50970
|
-
function printFlowDeclaration(path, parts) {
|
|
50971
|
-
var parentExportDecl = util.getParentExportDeclaration(path);
|
|
50971
|
+
function printFlowDeclaration(path$1, parts) {
|
|
50972
|
+
var parentExportDecl = util.getParentExportDeclaration(path$1);
|
|
50972
50973
|
if (parentExportDecl) assert_1.default.strictEqual(parentExportDecl.type, "DeclareExportDeclaration");
|
|
50973
50974
|
else parts.unshift("declare ");
|
|
50974
50975
|
return lines_1.concat(parts);
|
|
50975
50976
|
}
|
|
50976
|
-
function printVariance(path, print$4) {
|
|
50977
|
-
return path.call(function(variancePath) {
|
|
50977
|
+
function printVariance(path$1, print$4) {
|
|
50978
|
+
return path$1.call(function(variancePath) {
|
|
50978
50979
|
var value = variancePath.getValue();
|
|
50979
50980
|
if (value) {
|
|
50980
50981
|
if (value === "plus") return lines_1.fromString("+");
|
|
@@ -51069,8 +51070,8 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
51069
51070
|
return runFile(process$1.argv[2], transformer, options);
|
|
51070
51071
|
}
|
|
51071
51072
|
exports.run = run;
|
|
51072
|
-
function runFile(path, transformer, options) {
|
|
51073
|
-
fs_1.default.readFile(path, "utf-8", function(err, code$1) {
|
|
51073
|
+
function runFile(path$1, transformer, options) {
|
|
51074
|
+
fs_1.default.readFile(path$1, "utf-8", function(err, code$1) {
|
|
51074
51075
|
if (err) {
|
|
51075
51076
|
console.error(err);
|
|
51076
51077
|
return;
|
|
@@ -51106,10 +51107,10 @@ const globalIdentifier = import_main$8.builders.identifier(typeof window !== "ob
|
|
|
51106
51107
|
var buildGlobalSwitch = (node, dataNode) => {
|
|
51107
51108
|
return import_main$8.builders.memberExpression(import_main$8.builders.conditionalExpression(import_main$8.builders.binaryExpression("in", import_main$8.builders.literal(node.name), dataNode), dataNode, globalIdentifier), import_main$8.builders.identifier(node.name));
|
|
51108
51109
|
};
|
|
51109
|
-
var isInScope = (path) => {
|
|
51110
|
-
let scope$1 = path.scope;
|
|
51110
|
+
var isInScope = (path$1) => {
|
|
51111
|
+
let scope$1 = path$1.scope;
|
|
51111
51112
|
while (scope$1 !== null) {
|
|
51112
|
-
if (scope$1.declares(path.node.name)) return true;
|
|
51113
|
+
if (scope$1.declares(path$1.node.name)) return true;
|
|
51113
51114
|
scope$1 = scope$1.parent;
|
|
51114
51115
|
}
|
|
51115
51116
|
return false;
|
|
@@ -51119,35 +51120,35 @@ var polyfillExceptions = [
|
|
|
51119
51120
|
"window",
|
|
51120
51121
|
"global"
|
|
51121
51122
|
];
|
|
51122
|
-
var polyfillVar = (path, dataNode, force = false) => {
|
|
51123
|
+
var polyfillVar = (path$1, dataNode, force = false) => {
|
|
51123
51124
|
if (!force) {
|
|
51124
|
-
if (isInScope(path)) return;
|
|
51125
|
+
if (isInScope(path$1)) return;
|
|
51125
51126
|
}
|
|
51126
|
-
if (polyfillExceptions.includes(path.node.name)) return;
|
|
51127
|
-
path.replace(buildGlobalSwitch(path.node, dataNode));
|
|
51127
|
+
if (polyfillExceptions.includes(path$1.node.name)) return;
|
|
51128
|
+
path$1.replace(buildGlobalSwitch(path$1.node, dataNode));
|
|
51128
51129
|
};
|
|
51129
51130
|
var customPatches = {
|
|
51130
|
-
MemberExpression(path, parent, dataNode) {
|
|
51131
|
-
if (parent.object === path.node || parent.computed) polyfillVar(path, dataNode);
|
|
51131
|
+
MemberExpression(path$1, parent, dataNode) {
|
|
51132
|
+
if (parent.object === path$1.node || parent.computed) polyfillVar(path$1, dataNode);
|
|
51132
51133
|
},
|
|
51133
|
-
OptionalMemberExpression(path, parent, dataNode) {
|
|
51134
|
-
if (parent.object === path.node) polyfillVar(path, dataNode);
|
|
51134
|
+
OptionalMemberExpression(path$1, parent, dataNode) {
|
|
51135
|
+
if (parent.object === path$1.node) polyfillVar(path$1, dataNode);
|
|
51135
51136
|
},
|
|
51136
|
-
Property(path, parent, dataNode) {
|
|
51137
|
-
if (path.node !== parent.value) return;
|
|
51138
|
-
const objPattern = path.parent?.parent?.node;
|
|
51137
|
+
Property(path$1, parent, dataNode) {
|
|
51138
|
+
if (path$1.node !== parent.value) return;
|
|
51139
|
+
const objPattern = path$1.parent?.parent?.node;
|
|
51139
51140
|
if (!objPattern) return;
|
|
51140
|
-
const objParent = path.parent.parent.parent?.node;
|
|
51141
|
+
const objParent = path$1.parent.parent.parent?.node;
|
|
51141
51142
|
if (!objParent) return;
|
|
51142
51143
|
if (objParent.type === "VariableDeclarator" && objParent.id === objPattern) return;
|
|
51143
51144
|
parent.shorthand = false;
|
|
51144
|
-
polyfillVar(path, dataNode);
|
|
51145
|
+
polyfillVar(path$1, dataNode);
|
|
51145
51146
|
},
|
|
51146
|
-
AssignmentPattern(path, parent, dataNode) {
|
|
51147
|
-
if (parent.right === path.node) polyfillVar(path, dataNode);
|
|
51147
|
+
AssignmentPattern(path$1, parent, dataNode) {
|
|
51148
|
+
if (parent.right === path$1.node) polyfillVar(path$1, dataNode);
|
|
51148
51149
|
},
|
|
51149
|
-
VariableDeclarator(path, parent, dataNode) {
|
|
51150
|
-
if (parent.init === path.node) polyfillVar(path, dataNode);
|
|
51150
|
+
VariableDeclarator(path$1, parent, dataNode) {
|
|
51151
|
+
if (parent.init === path$1.node) polyfillVar(path$1, dataNode);
|
|
51151
51152
|
}
|
|
51152
51153
|
};
|
|
51153
51154
|
const jsVariablePolyfill = (ast, dataNode) => {
|
|
@@ -51155,10 +51156,10 @@ const jsVariablePolyfill = (ast, dataNode) => {
|
|
|
51155
51156
|
visitImportExpression(_path) {
|
|
51156
51157
|
throw new Error("Imports are not supported");
|
|
51157
51158
|
},
|
|
51158
|
-
visitIdentifier(path) {
|
|
51159
|
-
this.traverse(path);
|
|
51160
|
-
const parent = path.parent.node;
|
|
51161
|
-
if (EXEMPT_IDENTIFIER_LIST.includes(path.node.name)) return;
|
|
51159
|
+
visitIdentifier(path$1) {
|
|
51160
|
+
this.traverse(path$1);
|
|
51161
|
+
const parent = path$1.parent.node;
|
|
51162
|
+
if (EXEMPT_IDENTIFIER_LIST.includes(path$1.node.name)) return;
|
|
51162
51163
|
switch (parent.type) {
|
|
51163
51164
|
case "AssignmentPattern":
|
|
51164
51165
|
case "Property":
|
|
@@ -51166,7 +51167,7 @@ const jsVariablePolyfill = (ast, dataNode) => {
|
|
|
51166
51167
|
case "OptionalMemberExpression":
|
|
51167
51168
|
case "VariableDeclarator":
|
|
51168
51169
|
if (!customPatches[parent.type]) throw new Error(`Couldn\'t find custom patcher for parent type: ${parent.type}`);
|
|
51169
|
-
customPatches[parent.type](path, parent, dataNode);
|
|
51170
|
+
customPatches[parent.type](path$1, parent, dataNode);
|
|
51170
51171
|
break;
|
|
51171
51172
|
case "BinaryExpression":
|
|
51172
51173
|
case "UnaryExpression":
|
|
@@ -51197,7 +51198,7 @@ const jsVariablePolyfill = (ast, dataNode) => {
|
|
|
51197
51198
|
case "ThrowStatement":
|
|
51198
51199
|
case "WithStatement":
|
|
51199
51200
|
case "TupleExpression":
|
|
51200
|
-
polyfillVar(path, dataNode);
|
|
51201
|
+
polyfillVar(path$1, dataNode);
|
|
51201
51202
|
break;
|
|
51202
51203
|
case "Super":
|
|
51203
51204
|
case "Identifier":
|
|
@@ -51304,7 +51305,7 @@ const jsVariablePolyfill = (ast, dataNode) => {
|
|
|
51304
51305
|
case "JSXExpressionContainer": break;
|
|
51305
51306
|
case "ComprehensionExpression":
|
|
51306
51307
|
case "GeneratorExpression":
|
|
51307
|
-
polyfillVar(path, dataNode);
|
|
51308
|
+
polyfillVar(path$1, dataNode);
|
|
51308
51309
|
break;
|
|
51309
51310
|
default:
|
|
51310
51311
|
assertNever(parent);
|
|
@@ -51417,12 +51418,12 @@ var shouldWrapInTry = (node) => {
|
|
|
51417
51418
|
shouldWrap = true;
|
|
51418
51419
|
return false;
|
|
51419
51420
|
},
|
|
51420
|
-
visitIdentifier(path) {
|
|
51421
|
-
if (shouldAlwaysWrapList.includes(path.node.name)) {
|
|
51421
|
+
visitIdentifier(path$1) {
|
|
51422
|
+
if (shouldAlwaysWrapList.includes(path$1.node.name)) {
|
|
51422
51423
|
shouldWrap = true;
|
|
51423
51424
|
return false;
|
|
51424
51425
|
}
|
|
51425
|
-
this.traverse(path);
|
|
51426
|
+
this.traverse(path$1);
|
|
51426
51427
|
}
|
|
51427
51428
|
});
|
|
51428
51429
|
return shouldWrap;
|
|
@@ -51447,12 +51448,12 @@ var hasFunction = (node) => {
|
|
|
51447
51448
|
};
|
|
51448
51449
|
var hasTemplateString = (node) => {
|
|
51449
51450
|
let hasTemp = false;
|
|
51450
|
-
(0, import_main$5.visit)(node, { visitTemplateLiteral(path) {
|
|
51451
|
-
if (path.node.expressions.length) {
|
|
51451
|
+
(0, import_main$5.visit)(node, { visitTemplateLiteral(path$1) {
|
|
51452
|
+
if (path$1.node.expressions.length) {
|
|
51452
51453
|
hasTemp = true;
|
|
51453
51454
|
return false;
|
|
51454
51455
|
}
|
|
51455
|
-
this.traverse(path);
|
|
51456
|
+
this.traverse(path$1);
|
|
51456
51457
|
} });
|
|
51457
51458
|
return hasTemp;
|
|
51458
51459
|
};
|
|
@@ -51470,13 +51471,13 @@ var fixStringNewLines = (node) => {
|
|
|
51470
51471
|
const replace = (str) => {
|
|
51471
51472
|
return str.replace(/\n/g, "\\n");
|
|
51472
51473
|
};
|
|
51473
|
-
(0, import_main$5.visit)(node, { visitTemplateElement(path) {
|
|
51474
|
-
this.traverse(path);
|
|
51474
|
+
(0, import_main$5.visit)(node, { visitTemplateElement(path$1) {
|
|
51475
|
+
this.traverse(path$1);
|
|
51475
51476
|
const el = import_main$6.builders.templateElement({
|
|
51476
|
-
cooked: path.node.value.cooked === null ? null : replace(path.node.value.cooked),
|
|
51477
|
-
raw: replace(path.node.value.raw)
|
|
51478
|
-
}, path.node.tail);
|
|
51479
|
-
path.replace(el);
|
|
51477
|
+
cooked: path$1.node.value.cooked === null ? null : replace(path$1.node.value.cooked),
|
|
51478
|
+
raw: replace(path$1.node.value.raw)
|
|
51479
|
+
}, path$1.node.tail);
|
|
51480
|
+
path$1.replace(el);
|
|
51480
51481
|
} });
|
|
51481
51482
|
return node;
|
|
51482
51483
|
};
|
|
@@ -51951,18 +51952,18 @@ const stripIdentifyingInformation = (expr) => {
|
|
|
51951
51952
|
for (const chunk$1 of chunks) if (chunk$1.type === "text") chunk$1.text = replaceValue(chunk$1.text);
|
|
51952
51953
|
else {
|
|
51953
51954
|
(0, import_main$3.visit)(chunk$1.parsed, {
|
|
51954
|
-
visitLiteral(path) {
|
|
51955
|
-
this.traverse(path);
|
|
51956
|
-
if (typeof path.node.value === "string") path.node.value = replaceValue(path.node.value);
|
|
51955
|
+
visitLiteral(path$1) {
|
|
51956
|
+
this.traverse(path$1);
|
|
51957
|
+
if (typeof path$1.node.value === "string") path$1.node.value = replaceValue(path$1.node.value);
|
|
51957
51958
|
},
|
|
51958
|
-
visitStringLiteral(path) {
|
|
51959
|
-
this.traverse(path);
|
|
51960
|
-
path.node.value = replaceValue(path.node.value);
|
|
51959
|
+
visitStringLiteral(path$1) {
|
|
51960
|
+
this.traverse(path$1);
|
|
51961
|
+
path$1.node.value = replaceValue(path$1.node.value);
|
|
51961
51962
|
},
|
|
51962
|
-
visitTemplateElement(path) {
|
|
51963
|
-
this.traverse(path);
|
|
51964
|
-
if (path.node.value.cooked !== null) path.node.value.cooked = replaceValue(path.node.value.cooked);
|
|
51965
|
-
path.node.value.raw = replaceValue(path.node.value.raw);
|
|
51963
|
+
visitTemplateElement(path$1) {
|
|
51964
|
+
this.traverse(path$1);
|
|
51965
|
+
if (path$1.node.value.cooked !== null) path$1.node.value.cooked = replaceValue(path$1.node.value.cooked);
|
|
51966
|
+
path$1.node.value.raw = replaceValue(path$1.node.value.raw);
|
|
51966
51967
|
}
|
|
51967
51968
|
});
|
|
51968
51969
|
chunk$1.text = (0, import_main$3.print)(chunk$1.parsed).code;
|
|
@@ -52031,32 +52032,32 @@ var isValidDollarPropertyAccess = (expr) => {
|
|
|
52031
52032
|
};
|
|
52032
52033
|
const FunctionThisSanitizer = (ast, dataNode) => {
|
|
52033
52034
|
(0, import_main$1.visit)(ast, {
|
|
52034
|
-
visitCallExpression(path) {
|
|
52035
|
-
const { node } = path;
|
|
52035
|
+
visitCallExpression(path$1) {
|
|
52036
|
+
const { node } = path$1;
|
|
52036
52037
|
if (node.callee.type !== "FunctionExpression") {
|
|
52037
|
-
this.traverse(path);
|
|
52038
|
+
this.traverse(path$1);
|
|
52038
52039
|
return;
|
|
52039
52040
|
}
|
|
52040
52041
|
const fnExpression = node.callee;
|
|
52041
|
-
this.traverse(path);
|
|
52042
|
+
this.traverse(path$1);
|
|
52042
52043
|
const callExpression = import_main$2.builders.callExpression(import_main$2.builders.memberExpression(fnExpression, import_main$2.builders.identifier("call")), [EMPTY_CONTEXT, ...node.arguments]);
|
|
52043
|
-
path.replace(callExpression);
|
|
52044
|
+
path$1.replace(callExpression);
|
|
52044
52045
|
return false;
|
|
52045
52046
|
},
|
|
52046
|
-
visitFunctionExpression(path) {
|
|
52047
|
-
const { node } = path;
|
|
52048
|
-
this.traverse(path);
|
|
52047
|
+
visitFunctionExpression(path$1) {
|
|
52048
|
+
const { node } = path$1;
|
|
52049
|
+
this.traverse(path$1);
|
|
52049
52050
|
const boundFunction = import_main$2.builders.callExpression(import_main$2.builders.memberExpression(node, import_main$2.builders.identifier("bind")), [EMPTY_CONTEXT]);
|
|
52050
|
-
path.replace(boundFunction);
|
|
52051
|
+
path$1.replace(boundFunction);
|
|
52051
52052
|
return false;
|
|
52052
52053
|
}
|
|
52053
52054
|
});
|
|
52054
52055
|
};
|
|
52055
52056
|
const DollarSignValidator = (ast, _dataNode) => {
|
|
52056
|
-
(0, import_main$1.visit)(ast, { visitIdentifier(path) {
|
|
52057
|
-
this.traverse(path);
|
|
52058
|
-
if (path.node.name !== "$") return;
|
|
52059
|
-
const parent = path.parent;
|
|
52057
|
+
(0, import_main$1.visit)(ast, { visitIdentifier(path$1) {
|
|
52058
|
+
this.traverse(path$1);
|
|
52059
|
+
if (path$1.node.name !== "$") return;
|
|
52060
|
+
const parent = path$1.parent;
|
|
52060
52061
|
if (typeof parent !== "object" || parent === null || !("name" in parent)) throw new ExpressionError(DOLLAR_SIGN_ERROR);
|
|
52061
52062
|
if (parent.name === "callee") return;
|
|
52062
52063
|
if (parent.name === "object") throw new ExpressionError(DOLLAR_SIGN_ERROR);
|
|
@@ -52074,19 +52075,19 @@ const DollarSignValidator = (ast, _dataNode) => {
|
|
|
52074
52075
|
};
|
|
52075
52076
|
const PrototypeSanitizer = (ast, dataNode) => {
|
|
52076
52077
|
(0, import_main$1.visit)(ast, {
|
|
52077
|
-
visitMemberExpression(path) {
|
|
52078
|
-
this.traverse(path);
|
|
52079
|
-
const node = path.node;
|
|
52078
|
+
visitMemberExpression(path$1) {
|
|
52079
|
+
this.traverse(path$1);
|
|
52080
|
+
const node = path$1.node;
|
|
52080
52081
|
if (!node.computed) {
|
|
52081
52082
|
if (node.property.type !== "Identifier") throw new ExpressionError(`Unknown property type ${node.property.type} while sanitising expression`);
|
|
52082
52083
|
if (!isSafeObjectProperty(node.property.name)) throw new ExpressionError(`Cannot access "${node.property.name}" due to security concerns`);
|
|
52083
52084
|
} else if (node.property.type === "StringLiteral" || node.property.type === "Literal") {
|
|
52084
52085
|
if (!isSafeObjectProperty(node.property.value)) throw new ExpressionError(`Cannot access "${node.property.value}" due to security concerns`);
|
|
52085
|
-
} else path.replace(import_main$2.builders.memberExpression(node.object, import_main$2.builders.callExpression(import_main$2.builders.memberExpression(dataNode, sanitizerIdentifier), [node.property]), true));
|
|
52086
|
+
} else path$1.replace(import_main$2.builders.memberExpression(node.object, import_main$2.builders.callExpression(import_main$2.builders.memberExpression(dataNode, sanitizerIdentifier), [node.property]), true));
|
|
52086
52087
|
},
|
|
52087
|
-
visitObjectPattern(path) {
|
|
52088
|
-
this.traverse(path);
|
|
52089
|
-
const node = path.node;
|
|
52088
|
+
visitObjectPattern(path$1) {
|
|
52089
|
+
this.traverse(path$1);
|
|
52090
|
+
const node = path$1.node;
|
|
52090
52091
|
for (const prop of node.properties) if (prop.type === "Property") {
|
|
52091
52092
|
let keyName;
|
|
52092
52093
|
if (prop.key.type === "Identifier") keyName = prop.key.name;
|
|
@@ -99713,8 +99714,8 @@ const extendTransform = (expression) => {
|
|
|
99713
99714
|
try {
|
|
99714
99715
|
const ast = (0, import_main.parse)(expression, { parser: { parse: parseWithEsprimaNext } });
|
|
99715
99716
|
let currentChain = 1;
|
|
99716
|
-
(0, import_main.visit)(ast, { visitChainExpression(path) {
|
|
99717
|
-
this.traverse(path);
|
|
99717
|
+
(0, import_main.visit)(ast, { visitChainExpression(path$1) {
|
|
99718
|
+
this.traverse(path$1);
|
|
99718
99719
|
const chainNumber = currentChain;
|
|
99719
99720
|
currentChain += 1;
|
|
99720
99721
|
const globalIdentifier$1 = import_main.types.builders.identifier(typeof window !== "object" ? "global" : "window");
|
|
@@ -99736,7 +99737,7 @@ const extendTransform = (expression) => {
|
|
|
99736
99737
|
const buildCancelAssignWrapper = (node) => {
|
|
99737
99738
|
return import_main.types.builders.assignmentExpression("=", cancelMemberExpression, node);
|
|
99738
99739
|
};
|
|
99739
|
-
let currentNode = path.node.expression;
|
|
99740
|
+
let currentNode = path$1.node.expression;
|
|
99740
99741
|
let currentPatch = null;
|
|
99741
99742
|
let patchTop = null;
|
|
99742
99743
|
let wrapNextTopInOptionalExtend = false;
|
|
@@ -99784,21 +99785,21 @@ const extendTransform = (expression) => {
|
|
|
99784
99785
|
patchedStack[i$2] = node;
|
|
99785
99786
|
}
|
|
99786
99787
|
const sequenceNode = import_main.types.builders.sequenceExpression(patchedStack);
|
|
99787
|
-
path.replace(sequenceNode);
|
|
99788
|
+
path$1.replace(sequenceNode);
|
|
99788
99789
|
} });
|
|
99789
|
-
(0, import_main.visit)(ast, { visitCallExpression(path) {
|
|
99790
|
-
this.traverse(path);
|
|
99791
|
-
if (path.node.callee.type === "MemberExpression" && path.node.callee.property.type === "Identifier" && isExpressionExtension(path.node.callee.property.name)) path.replace(import_main.types.builders.callExpression(import_main.types.builders.identifier(EXPRESSION_EXTENDER), [
|
|
99792
|
-
path.node.callee.object,
|
|
99793
|
-
import_main.types.builders.stringLiteral(path.node.callee.property.name),
|
|
99794
|
-
import_main.types.builders.arrayExpression(path.node.arguments)
|
|
99790
|
+
(0, import_main.visit)(ast, { visitCallExpression(path$1) {
|
|
99791
|
+
this.traverse(path$1);
|
|
99792
|
+
if (path$1.node.callee.type === "MemberExpression" && path$1.node.callee.property.type === "Identifier" && isExpressionExtension(path$1.node.callee.property.name)) path$1.replace(import_main.types.builders.callExpression(import_main.types.builders.identifier(EXPRESSION_EXTENDER), [
|
|
99793
|
+
path$1.node.callee.object,
|
|
99794
|
+
import_main.types.builders.stringLiteral(path$1.node.callee.property.name),
|
|
99795
|
+
import_main.types.builders.arrayExpression(path$1.node.arguments)
|
|
99795
99796
|
]));
|
|
99796
|
-
else if (path.node.callee.type === "Identifier" && path.node.callee.name === "$if" && path.node.arguments.every((v$3) => v$3.type !== "SpreadElement")) {
|
|
99797
|
-
if (path.node.arguments.length < 2) throw new ExpressionExtensionError("$if requires at least 2 parameters: test, value_if_true[, and value_if_false]");
|
|
99798
|
-
const test = path.node.arguments[0];
|
|
99799
|
-
const consequent = path.node.arguments[1];
|
|
99800
|
-
const alternative = path.node.arguments[2] === void 0 ? import_main.types.builders.booleanLiteral(false) : path.node.arguments[2];
|
|
99801
|
-
path.replace(import_main.types.builders.conditionalExpression(test, consequent, alternative));
|
|
99797
|
+
else if (path$1.node.callee.type === "Identifier" && path$1.node.callee.name === "$if" && path$1.node.arguments.every((v$3) => v$3.type !== "SpreadElement")) {
|
|
99798
|
+
if (path$1.node.arguments.length < 2) throw new ExpressionExtensionError("$if requires at least 2 parameters: test, value_if_true[, and value_if_false]");
|
|
99799
|
+
const test = path$1.node.arguments[0];
|
|
99800
|
+
const consequent = path$1.node.arguments[1];
|
|
99801
|
+
const alternative = path$1.node.arguments[2] === void 0 ? import_main.types.builders.booleanLiteral(false) : path$1.node.arguments[2];
|
|
99802
|
+
path$1.replace(import_main.types.builders.conditionalExpression(test, consequent, alternative));
|
|
99802
99803
|
}
|
|
99803
99804
|
} });
|
|
99804
99805
|
return (0, import_main.print)(ast);
|
|
@@ -102970,11 +102971,11 @@ var require__baseHasIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
102970
102971
|
}));
|
|
102971
102972
|
var require__hasPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
102972
102973
|
var castPath$2 = require__castPath(), isArguments$1 = require_isArguments$1(), isArray$2 = require_isArray(), isIndex$1 = require__isIndex(), isLength = require_isLength(), toKey$3 = require__toKey();
|
|
102973
|
-
function hasPath$2(object$1, path, hasFunc) {
|
|
102974
|
-
path = castPath$2(path, object$1);
|
|
102975
|
-
var index = -1, length$1 = path.length, result = false;
|
|
102974
|
+
function hasPath$2(object$1, path$1, hasFunc) {
|
|
102975
|
+
path$1 = castPath$2(path$1, object$1);
|
|
102976
|
+
var index = -1, length$1 = path$1.length, result = false;
|
|
102976
102977
|
while (++index < length$1) {
|
|
102977
|
-
var key = toKey$3(path[index]);
|
|
102978
|
+
var key = toKey$3(path$1[index]);
|
|
102978
102979
|
if (!(result = object$1 != null && hasFunc(object$1, key))) break;
|
|
102979
102980
|
object$1 = object$1[key];
|
|
102980
102981
|
}
|
|
@@ -102986,19 +102987,19 @@ var require__hasPath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
102986
102987
|
}));
|
|
102987
102988
|
var require_hasIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
102988
102989
|
var baseHasIn = require__baseHasIn(), hasPath$1 = require__hasPath();
|
|
102989
|
-
function hasIn$2(object$1, path) {
|
|
102990
|
-
return object$1 != null && hasPath$1(object$1, path, baseHasIn);
|
|
102990
|
+
function hasIn$2(object$1, path$1) {
|
|
102991
|
+
return object$1 != null && hasPath$1(object$1, path$1, baseHasIn);
|
|
102991
102992
|
}
|
|
102992
102993
|
module.exports = hasIn$2;
|
|
102993
102994
|
}));
|
|
102994
102995
|
var require__baseMatchesProperty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
102995
102996
|
var baseIsEqual = require__baseIsEqual(), get = require_get(), hasIn$1 = require_hasIn(), isKey$1 = require__isKey(), isStrictComparable = require__isStrictComparable(), matchesStrictComparable = require__matchesStrictComparable(), toKey$2 = require__toKey();
|
|
102996
102997
|
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
102997
|
-
function baseMatchesProperty$1(path, srcValue) {
|
|
102998
|
-
if (isKey$1(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey$2(path), srcValue);
|
|
102998
|
+
function baseMatchesProperty$1(path$1, srcValue) {
|
|
102999
|
+
if (isKey$1(path$1) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey$2(path$1), srcValue);
|
|
102999
103000
|
return function(object$1) {
|
|
103000
|
-
var objValue = get(object$1, path);
|
|
103001
|
-
return objValue === void 0 && objValue === srcValue ? hasIn$1(object$1, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
103001
|
+
var objValue = get(object$1, path$1);
|
|
103002
|
+
return objValue === void 0 && objValue === srcValue ? hasIn$1(object$1, path$1) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
103002
103003
|
};
|
|
103003
103004
|
}
|
|
103004
103005
|
module.exports = baseMatchesProperty$1;
|
|
@@ -103013,17 +103014,17 @@ var require__baseProperty = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
103013
103014
|
}));
|
|
103014
103015
|
var require__basePropertyDeep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
103015
103016
|
var baseGet$1 = require__baseGet();
|
|
103016
|
-
function basePropertyDeep$1(path) {
|
|
103017
|
+
function basePropertyDeep$1(path$1) {
|
|
103017
103018
|
return function(object$1) {
|
|
103018
|
-
return baseGet$1(object$1, path);
|
|
103019
|
+
return baseGet$1(object$1, path$1);
|
|
103019
103020
|
};
|
|
103020
103021
|
}
|
|
103021
103022
|
module.exports = basePropertyDeep$1;
|
|
103022
103023
|
}));
|
|
103023
103024
|
var require_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
103024
103025
|
var baseProperty = require__baseProperty(), basePropertyDeep = require__basePropertyDeep(), isKey = require__isKey(), toKey$1 = require__toKey();
|
|
103025
|
-
function property$1(path) {
|
|
103026
|
-
return isKey(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
|
|
103026
|
+
function property$1(path$1) {
|
|
103027
|
+
return isKey(path$1) ? baseProperty(toKey$1(path$1)) : basePropertyDeep(path$1);
|
|
103027
103028
|
}
|
|
103028
103029
|
module.exports = property$1;
|
|
103029
103030
|
}));
|
|
@@ -105328,17 +105329,17 @@ function resolveRelativePath(fullPathWithParameters, candidateRelativePath) {
|
|
|
105328
105329
|
}
|
|
105329
105330
|
var require__baseSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
105330
105331
|
var assignValue = require__assignValue(), castPath$1 = require__castPath(), isIndex = require__isIndex(), isObject = require_isObject(), toKey = require__toKey();
|
|
105331
|
-
function baseSet$1(object$1, path, value, customizer) {
|
|
105332
|
+
function baseSet$1(object$1, path$1, value, customizer) {
|
|
105332
105333
|
if (!isObject(object$1)) return object$1;
|
|
105333
|
-
path = castPath$1(path, object$1);
|
|
105334
|
-
var index = -1, length$1 = path.length, lastIndex = length$1 - 1, nested = object$1;
|
|
105334
|
+
path$1 = castPath$1(path$1, object$1);
|
|
105335
|
+
var index = -1, length$1 = path$1.length, lastIndex = length$1 - 1, nested = object$1;
|
|
105335
105336
|
while (nested != null && ++index < length$1) {
|
|
105336
|
-
var key = toKey(path[index]), newValue = value;
|
|
105337
|
+
var key = toKey(path$1[index]), newValue = value;
|
|
105337
105338
|
if (key === "__proto__" || key === "constructor" || key === "prototype") return object$1;
|
|
105338
105339
|
if (index != lastIndex) {
|
|
105339
105340
|
var objValue = nested[key];
|
|
105340
105341
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
105341
|
-
if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
105342
|
+
if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path$1[index + 1]) ? [] : {};
|
|
105342
105343
|
}
|
|
105343
105344
|
assignValue(nested, key, newValue);
|
|
105344
105345
|
nested = nested[key];
|
|
@@ -105352,8 +105353,8 @@ var require__basePickBy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
105352
105353
|
function basePickBy$1(object$1, paths, predicate) {
|
|
105353
105354
|
var index = -1, length$1 = paths.length, result = {};
|
|
105354
105355
|
while (++index < length$1) {
|
|
105355
|
-
var path = paths[index], value = baseGet(object$1, path);
|
|
105356
|
-
if (predicate(value, path)) baseSet(result, castPath(path, object$1), value);
|
|
105356
|
+
var path$1 = paths[index], value = baseGet(object$1, path$1);
|
|
105357
|
+
if (predicate(value, path$1)) baseSet(result, castPath(path$1, object$1), value);
|
|
105357
105358
|
}
|
|
105358
105359
|
return result;
|
|
105359
105360
|
}
|
|
@@ -105362,8 +105363,8 @@ var require__basePickBy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
105362
105363
|
var require__basePick = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
105363
105364
|
var basePickBy = require__basePickBy(), hasIn = require_hasIn();
|
|
105364
105365
|
function basePick$1(object$1, paths) {
|
|
105365
|
-
return basePickBy(object$1, paths, function(value, path) {
|
|
105366
|
-
return hasIn(object$1, path);
|
|
105366
|
+
return basePickBy(object$1, paths, function(value, path$1) {
|
|
105367
|
+
return hasIn(object$1, path$1);
|
|
105367
105368
|
});
|
|
105368
105369
|
}
|
|
105369
105370
|
module.exports = basePick$1;
|