@wix/cli 1.1.48 → 1.1.50
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/build/DevCommand-O2LAA4RH.js +4 -0
- package/build/DevCommand-O2LAA4RH.js.map +1 -0
- package/build/{LoginCommand-NLI4JML5.js → LoginCommand-CVWBK5LH.js} +2 -2
- package/build/{LogoutCommand-C57ZNKT5.js → LogoutCommand-DKEBJ6NZ.js} +2 -2
- package/build/{WhoamiCommand-W7GLY3WG.js → WhoamiCommand-G53BCTLV.js} +2 -2
- package/build/check.js +1 -1
- package/build/{chunk-XHLDYCRC.js → chunk-3N2RGPEO.js} +5 -5
- package/build/chunk-3N2RGPEO.js.map +1 -0
- package/build/chunk-CAVNZXU4.js +4 -0
- package/build/chunk-CAVNZXU4.js.map +1 -0
- package/build/chunk-CYL3Y4I7.js +4 -0
- package/build/chunk-CYL3Y4I7.js.map +1 -0
- package/build/chunk-DGA2THYK.js +4 -0
- package/build/chunk-DGA2THYK.js.map +1 -0
- package/build/chunk-DZP4F4PP.js +14 -0
- package/build/chunk-DZP4F4PP.js.map +1 -0
- package/build/{chunk-AQJFGMCV.js → chunk-EWDYGUEU.js} +4 -4
- package/build/{chunk-AQJFGMCV.js.map → chunk-EWDYGUEU.js.map} +1 -1
- package/build/{chunk-GCM6E6UB.js → chunk-EY7RCO4T.js} +4 -4
- package/build/{chunk-BVN6MXUP.js → chunk-F2WOLODY.js} +2 -2
- package/build/chunk-F2WOLODY.js.map +1 -0
- package/build/{chunk-4Y2R5QID.js → chunk-GHYSGKNT.js} +2 -2
- package/build/chunk-GHYSGKNT.js.map +1 -0
- package/build/{chunk-NRX52J22.js → chunk-HWUPEJKT.js} +2 -2
- package/build/chunk-KXTG6FT3.js +6 -0
- package/build/chunk-KXTG6FT3.js.map +1 -0
- package/build/{chunk-XN36DVPR.js → chunk-L2ARP6U6.js} +2 -2
- package/build/chunk-L2ARP6U6.js.map +1 -0
- package/build/{chunk-UDD4OHCT.js → chunk-LWKR3S3U.js} +3 -3
- package/build/{chunk-UDD4OHCT.js.map → chunk-LWKR3S3U.js.map} +1 -1
- package/build/{chunk-HYMGR3RL.js → chunk-MEE2DVIY.js} +2 -2
- package/build/chunk-MEE2DVIY.js.map +1 -0
- package/build/{chunk-X5FGKR74.js → chunk-OLH3K4XG.js} +2 -2
- package/build/{chunk-ZCXNKYD2.js → chunk-QUB5H5DM.js} +2 -2
- package/build/chunk-QUB5H5DM.js.map +1 -0
- package/build/{chunk-PDKZVNCQ.js → chunk-RA7SC7ZN.js} +2 -2
- package/build/chunk-RA7SC7ZN.js.map +1 -0
- package/build/chunk-SPHZH5LL.js +4 -0
- package/build/chunk-SPHZH5LL.js.map +1 -0
- package/build/{chunk-6TDWVLRD.js → chunk-TMNJT4K2.js} +1 -1
- package/build/{chunk-6TDWVLRD.js.map → chunk-TMNJT4K2.js.map} +1 -1
- package/build/{chunk-ZWFH6MKQ.js → chunk-VTKRZTKJ.js} +2 -2
- package/build/chunk-VTKRZTKJ.js.map +1 -0
- package/build/chunk-W3WL2B3H.js +25 -0
- package/build/chunk-W3WL2B3H.js.map +1 -0
- package/build/{chunk-CNRVJIPG.js → chunk-WX3CWNNN.js} +2 -2
- package/build/chunk-XAYMT57N.js +4 -0
- package/build/chunk-XAYMT57N.js.map +1 -0
- package/build/{dev-XOTPKYHR.js → dev-E3IDFQKC.js} +4 -4
- package/build/dev-E3IDFQKC.js.map +1 -0
- package/build/index.js +5 -26
- package/build/index.js.map +1 -1
- package/build/{install-VNEFWOSA.js → install-ZNSNEIWX.js} +2 -2
- package/build/install-ZNSNEIWX.js.map +1 -0
- package/build/{preview-YCUHLGVE.js → preview-Y3WXIDLO.js} +2 -2
- package/build/preview-Y3WXIDLO.js.map +1 -0
- package/build/{publish-XTLLB6KE.js → publish-YPRUNEKX.js} +2 -2
- package/build/publish-YPRUNEKX.js.map +1 -0
- package/build/render-command-5TPOVVOS.js +4 -0
- package/build/render-command-5TPOVVOS.js.map +1 -0
- package/build/{render-command-GMJJM3EK.js → render-command-JJ2AQM7Q.js} +2 -2
- package/build/{run-command-VVLPCPAA.js → run-command-O2IEOEOD.js} +2 -2
- package/build/run-command-O2IEOEOD.js.map +1 -0
- package/build/src-4XIAVX4E.js +4 -0
- package/build/src-4XIAVX4E.js.map +1 -0
- package/build/{src-CZRQVWWJ.js → src-D4HRJKXU.js} +2 -2
- package/build/{src-YMGQ6GZL.js → src-HCEIAPMW.js} +2 -2
- package/build/{src-7ZO4JB2L.js → src-SUE6BJDY.js} +2 -2
- package/build/src-Z7HIP3VD.js +4 -0
- package/build/src-Z7HIP3VD.js.map +1 -0
- package/build/{src-ZUXRDORN.js → src-ZIMNO3M4.js} +2 -2
- package/build/sync-types-CSACSRJ6.js +4 -0
- package/build/{uninstall-7GXNOJQG.js → uninstall-R3ALTRIA.js} +2 -2
- package/build/uninstall-R3ALTRIA.js.map +1 -0
- package/build/{update-notifier-LCY3CRNY.js → update-notifier-S5PQKIDE.js} +2 -2
- package/package.json +4 -2
- package/build/chunk-2NLIPYRH.js +0 -6
- package/build/chunk-2NLIPYRH.js.map +0 -1
- package/build/chunk-4Y2R5QID.js.map +0 -1
- package/build/chunk-BVN6MXUP.js.map +0 -1
- package/build/chunk-FZFQS2M3.js +0 -4
- package/build/chunk-FZFQS2M3.js.map +0 -1
- package/build/chunk-GIQJZQOY.js +0 -4
- package/build/chunk-GIQJZQOY.js.map +0 -1
- package/build/chunk-HYMGR3RL.js.map +0 -1
- package/build/chunk-MZPTRVWN.js +0 -14
- package/build/chunk-MZPTRVWN.js.map +0 -1
- package/build/chunk-PDKZVNCQ.js.map +0 -1
- package/build/chunk-SYHT5LTW.js +0 -4
- package/build/chunk-SYHT5LTW.js.map +0 -1
- package/build/chunk-T7C26E3I.js +0 -4
- package/build/chunk-T7C26E3I.js.map +0 -1
- package/build/chunk-XHLDYCRC.js.map +0 -1
- package/build/chunk-XN36DVPR.js.map +0 -1
- package/build/chunk-ZCXNKYD2.js.map +0 -1
- package/build/chunk-ZWFH6MKQ.js.map +0 -1
- package/build/dev-XOTPKYHR.js.map +0 -1
- package/build/install-VNEFWOSA.js.map +0 -1
- package/build/preview-YCUHLGVE.js.map +0 -1
- package/build/publish-XTLLB6KE.js.map +0 -1
- package/build/run-command-VVLPCPAA.js.map +0 -1
- package/build/sync-types-IDJJDEEN.js +0 -4
- package/build/uninstall-7GXNOJQG.js.map +0 -1
- /package/build/{LoginCommand-NLI4JML5.js.map → LoginCommand-CVWBK5LH.js.map} +0 -0
- /package/build/{LogoutCommand-C57ZNKT5.js.map → LogoutCommand-DKEBJ6NZ.js.map} +0 -0
- /package/build/{WhoamiCommand-W7GLY3WG.js.map → WhoamiCommand-G53BCTLV.js.map} +0 -0
- /package/build/{chunk-GCM6E6UB.js.map → chunk-EY7RCO4T.js.map} +0 -0
- /package/build/{chunk-NRX52J22.js.map → chunk-HWUPEJKT.js.map} +0 -0
- /package/build/{chunk-X5FGKR74.js.map → chunk-OLH3K4XG.js.map} +0 -0
- /package/build/{chunk-CNRVJIPG.js.map → chunk-WX3CWNNN.js.map} +0 -0
- /package/build/{render-command-GMJJM3EK.js.map → render-command-JJ2AQM7Q.js.map} +0 -0
- /package/build/{src-7ZO4JB2L.js.map → src-D4HRJKXU.js.map} +0 -0
- /package/build/{src-CZRQVWWJ.js.map → src-HCEIAPMW.js.map} +0 -0
- /package/build/{src-YMGQ6GZL.js.map → src-SUE6BJDY.js.map} +0 -0
- /package/build/{src-ZUXRDORN.js.map → src-ZIMNO3M4.js.map} +0 -0
- /package/build/{sync-types-IDJJDEEN.js.map → sync-types-CSACSRJ6.js.map} +0 -0
- /package/build/{update-notifier-LCY3CRNY.js.map → update-notifier-S5PQKIDE.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{v as o}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{v as o}from"./chunk-OLH3K4XG.js";import{i}from"./chunk-UO4ZAUJK.js";i();var n={"site_dev_command_def.option.https":"Start local dev server on https","site_dev_command_def.description":"Open the Local Editor that runs your local code","site_install_command_def.description":"Install a supported NPM package","site_install_command_def.argument.package":"npm package name","site_install_command_def.option.yarn":"yarn","site_install_command_def.option.npm":"npm","site_preview_command_def.description":"Create a shareable version of your site before going live","site_preview_command_def.option.source":"The location of the source files to use for the preview version","site_publish_command_def.description":"Publish your site to production","site_publish_command_def.option.source":"The location of the source files to use for the published version","site_publish_command_def.option.force":"Skip build errors and proceed with the operation","site_publish_command_def.option.approve_preview":"Approve preview automatically","site_uninstall_command_def.description":"Uninstall an NPM package","site_uninstall_command_def.argument.package":"npm package name","site_uninstall_command_def.option.yarn":"yarn","site_uninstall_command_def.option.npm":"npm","general.aborting":"Aborting...","dev_command.syncing_local_code_start":"Syncing local code files with the Local Editor...","dev_command.syncing_local_code_end":"Local code files were synced with the Local Editor","dev_command.failed_to_delete_types_dir":"Failed to delete types data: {cause}","dev_command.revision_created":"Revision {revision} with the latest Editor changes has been created and saved to {configFileName}.","dev_command.syncing_types_to_revision_start":"Syncing types for your local UI version {revision} to local code files\u2026","dev_command.syncing_types_to_revision_end":"Synced types for your local UI version {revision} to local code files","dev_command.syncing_types_to_revision_fail_line1":"An error occurred while loading extension IDs and types.","dev_command.syncing_types_to_revision_fail_line2":"You can continue developing your site but some error checking and auto-completion will be disabled.","dev_command.syncing_types_to_revision_fail_line3":"We are aware of this problem and are working to correct it. Thanks for your patience.","dev_command.syncing_pages_to_revision_start":"Syncing pages for your local UI version {revision} to local code files\u2026","dev_command.syncing_pages_to_revision_end":"Synced pages for your local UI version {revision} to local code files","dev_command.opening_browser":"Opening the Local Editor","dev_command.dev_server_url.approve_cert":"Please approve the local dev server certificate if it is required.","dev_command.no_open_editor":"There is no Local Editor tab open. Press {key} to reopen the Local Editor or open the following link: {link}","dependencies.dependency_installed":"{dependency} was successfully installed.","dependencies.dependency_uninstalled":"{dependency} successfully uninstalled.","dependencies.installing_dependency":"Installing {dependency}...","dependencies.uninstalling_dependency":"Uninstalling {dependency}...","dependencies.all_dependencies_installed":"Dependencies were successfully installed.","dependencies.installing_all_dependencies":"Installing dependencies...","publish_command.prompt_what_to_publish":"What would you like to publish?","publish_command.prompt_what_to_publish_choice_remote":"Remote - {branchName}","publish_command.prompt_what_to_publish_choice_remote_fallback":"Remote - default branch","publish_command.prompt_what_to_publish_choice_local":"Local code","publish_command.prompt_continue_with_publish":"Continue with publish?","publish_command.prompt_publish_with_error":"Are you sure you want to continue with publish?","publish_command.publishing":"Publishing...","publish_command.published":"Your site has been published successfully: {url}","publish_command.publish_aborted":"Publishing aborted","publish_command.publish_details_preview":"Preview your site before publishing:","publish_command.publish_details_about_to_publish":"You are about to publish:","publish_command.publish_details_ui_version":"UI version: {revision}","publish_command.publish_details_newer_editor_version_caution_title":"Caution","publish_command.publish_details_newer_editor_version_caution_details":"The Editor contains newer design changes. To publish the latest UI changes, cancel this operation, click 'Save' in the local Editor, then run `wix publish` again.","publish_command.publish_details_local_caution_title":"Caution","publish_command.publish_details_local_caution_details":"Publishing from the local working copy might publish code that is uncommitted and not synced with the online editor.","publish_command.publish_details_newer_editor_version_link_text":"Learn more about UI versions","publish_command.publish_details_newer_editor_version_link_url":"https://support.wix.com/en/article/velo-working-with-the-local-editor-early-access#about-ui-versions","publish_command.publish_with_errors_caution_title":"Caution","publish_command.publish_with_errors_caution_details":"Build failed with code errors that will impact your published version.","publish_command.publish_pipeline_error_badge":"[ERROR]","publish_command.publish_pipeline_error_title":"Errors in your site\u2019s code were found while trying to build your custom code. See output below:","publish_command.failed_getting_latest_revision":"Failed to get the latest UI revision, continuing without it. Cause: {cause}","publish_command.deploying":"Deploying your code...","publish_command.generic_task_done":"Done","publish_command.generic_task_failed":"Failed","publish_command.creating_preview":"Creating a preview...","publish_command.creating_preview_success":"Preview created successfully","publish_command.creating_preview_failed":"Creating a preview failed","preview_command.prompt_what_to_preview":"What would you like to preview?","preview_command.prompt_what_to_preview_choice_latest":"Latest commit from {branchName}","preview_command.prompt_what_to_preview_choice_latest_fallback":"Latest commit from the default branch","preview_command.prompt_what_to_preview_choice_local":"Local code","preview_command.creating_preview":"Creating preview deployment...","preview_command.preview_created":"Your preview deployment is now available at {url}","preview_command.preview_unsupported":"Preview for unpublished sites is currently unsupported. Please publish your site first.","preview_command.preview_branch_local_code":"Local code","preview_command.preview_branch_remote":"Remote branch: {branchName}","install_command.migrating_to_any_npm":"We\u2019ve noticed you are using an older package installation flow, we\u2019ll be migrating your project to use the updated one. This change includes moving installed packages from dev dependencies to dependencies and replacing the velo.dependencies.json file with a new wix.lock file","install_command.starting_migrating_to_any_npm":"Stating the migration\u2026",migration_to_any_npm_failed:"Migration failed\nCause: ${cause}","install_command.migration_to_any_npm_success":"Migration completed successfully!"};function r(){let e=o(n);return e.t.bind(e)}export{r as a};
|
|
4
|
+
//# sourceMappingURL=chunk-MEE2DVIY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../cli-site-old/src/i18n.ts","../../cli-site-old/src/messages.json"],"sourcesContent":["import { createI18n as externalCreate } from '@wix/cli-i18n';\nimport messages from './messages.json';\n\nexport function createI18nT() {\n const i18n = externalCreate(messages);\n\n return i18n.t.bind(i18n);\n}\n","{\n \"site_dev_command_def.option.https\": \"Start local dev server on https\",\n \"site_dev_command_def.description\": \"Open the Local Editor that runs your local code\",\n \"site_install_command_def.description\": \"Install a supported NPM package\",\n \"site_install_command_def.argument.package\": \"npm package name\",\n \"site_install_command_def.option.yarn\": \"yarn\",\n \"site_install_command_def.option.npm\": \"npm\",\n \"site_preview_command_def.description\": \"Create a shareable version of your site before going live\",\n \"site_preview_command_def.option.source\": \"The location of the source files to use for the preview version\",\n \"site_publish_command_def.description\": \"Publish your site to production\",\n \"site_publish_command_def.option.source\": \"The location of the source files to use for the published version\",\n \"site_publish_command_def.option.force\": \"Skip build errors and proceed with the operation\",\n \"site_publish_command_def.option.approve_preview\": \"Approve preview automatically\",\n \"site_uninstall_command_def.description\": \"Uninstall an NPM package\",\n \"site_uninstall_command_def.argument.package\": \"npm package name\",\n \"site_uninstall_command_def.option.yarn\": \"yarn\",\n \"site_uninstall_command_def.option.npm\": \"npm\",\n \"general.aborting\": \"Aborting...\",\n \"dev_command.syncing_local_code_start\": \"Syncing local code files with the Local Editor...\",\n \"dev_command.syncing_local_code_end\": \"Local code files were synced with the Local Editor\",\n \"dev_command.failed_to_delete_types_dir\": \"Failed to delete types data: {cause}\",\n \"dev_command.revision_created\": \"Revision {revision} with the latest Editor changes has been created and saved to {configFileName}.\",\n \"dev_command.syncing_types_to_revision_start\": \"Syncing types for your local UI version {revision} to local code files…\",\n \"dev_command.syncing_types_to_revision_end\": \"Synced types for your local UI version {revision} to local code files\",\n \"dev_command.syncing_types_to_revision_fail_line1\": \"An error occurred while loading extension IDs and types.\",\n \"dev_command.syncing_types_to_revision_fail_line2\": \"You can continue developing your site but some error checking and auto-completion will be disabled.\",\n \"dev_command.syncing_types_to_revision_fail_line3\": \"We are aware of this problem and are working to correct it. Thanks for your patience.\",\n \"dev_command.syncing_pages_to_revision_start\": \"Syncing pages for your local UI version {revision} to local code files…\",\n \"dev_command.syncing_pages_to_revision_end\": \"Synced pages for your local UI version {revision} to local code files\",\n \"dev_command.opening_browser\": \"Opening the Local Editor\",\n \"dev_command.dev_server_url.approve_cert\": \"Please approve the local dev server certificate if it is required.\",\n \"dev_command.no_open_editor\": \"There is no Local Editor tab open. Press {key} to reopen the Local Editor or open the following link: {link}\",\n \"dependencies.dependency_installed\": \"{dependency} was successfully installed.\",\n \"dependencies.dependency_uninstalled\": \"{dependency} successfully uninstalled.\",\n \"dependencies.installing_dependency\": \"Installing {dependency}...\",\n \"dependencies.uninstalling_dependency\": \"Uninstalling {dependency}...\",\n \"dependencies.all_dependencies_installed\": \"Dependencies were successfully installed.\",\n \"dependencies.installing_all_dependencies\": \"Installing dependencies...\",\n \"publish_command.prompt_what_to_publish\": \"What would you like to publish?\",\n \"publish_command.prompt_what_to_publish_choice_remote\": \"Remote - {branchName}\",\n \"publish_command.prompt_what_to_publish_choice_remote_fallback\": \"Remote - default branch\",\n \"publish_command.prompt_what_to_publish_choice_local\": \"Local code\",\n \"publish_command.prompt_continue_with_publish\": \"Continue with publish?\",\n \"publish_command.prompt_publish_with_error\": \"Are you sure you want to continue with publish?\",\n \"publish_command.publishing\": \"Publishing...\",\n \"publish_command.published\": \"Your site has been published successfully: {url}\",\n \"publish_command.publish_aborted\": \"Publishing aborted\",\n \"publish_command.publish_details_preview\": \"Preview your site before publishing:\",\n \"publish_command.publish_details_about_to_publish\": \"You are about to publish:\",\n \"publish_command.publish_details_ui_version\": \"UI version: {revision}\",\n \"publish_command.publish_details_newer_editor_version_caution_title\": \"Caution\",\n \"publish_command.publish_details_newer_editor_version_caution_details\": \"The Editor contains newer design changes. To publish the latest UI changes, cancel this operation, click 'Save' in the local Editor, then run `wix publish` again.\",\n \"publish_command.publish_details_local_caution_title\": \"Caution\",\n \"publish_command.publish_details_local_caution_details\": \"Publishing from the local working copy might publish code that is uncommitted and not synced with the online editor.\",\n \"publish_command.publish_details_newer_editor_version_link_text\": \"Learn more about UI versions\",\n \"publish_command.publish_details_newer_editor_version_link_url\": \"https://support.wix.com/en/article/velo-working-with-the-local-editor-early-access#about-ui-versions\",\n \"publish_command.publish_with_errors_caution_title\": \"Caution\",\n \"publish_command.publish_with_errors_caution_details\": \"Build failed with code errors that will impact your published version.\",\n \"publish_command.publish_pipeline_error_badge\": \"[ERROR]\",\n \"publish_command.publish_pipeline_error_title\": \"Errors in your site’s code were found while trying to build your custom code. See output below:\",\n \"publish_command.failed_getting_latest_revision\": \"Failed to get the latest UI revision, continuing without it. Cause: {cause}\",\n \"publish_command.deploying\": \"Deploying your code...\",\n \"publish_command.generic_task_done\": \"Done\",\n \"publish_command.generic_task_failed\": \"Failed\",\n \"publish_command.creating_preview\": \"Creating a preview...\",\n \"publish_command.creating_preview_success\": \"Preview created successfully\",\n \"publish_command.creating_preview_failed\": \"Creating a preview failed\",\n \"preview_command.prompt_what_to_preview\": \"What would you like to preview?\",\n \"preview_command.prompt_what_to_preview_choice_latest\": \"Latest commit from {branchName}\",\n \"preview_command.prompt_what_to_preview_choice_latest_fallback\": \"Latest commit from the default branch\",\n \"preview_command.prompt_what_to_preview_choice_local\": \"Local code\",\n \"preview_command.creating_preview\": \"Creating preview deployment...\",\n \"preview_command.preview_created\": \"Your preview deployment is now available at {url}\",\n \"preview_command.preview_unsupported\": \"Preview for unpublished sites is currently unsupported. Please publish your site first.\",\n \"preview_command.preview_branch_local_code\": \"Local code\",\n \"preview_command.preview_branch_remote\": \"Remote branch: {branchName}\",\n \"install_command.migrating_to_any_npm\": \"We’ve noticed you are using an older package installation flow, we’ll be migrating your project to use the updated one. This change includes moving installed packages from dev dependencies to dependencies and replacing the velo.dependencies.json file with a new wix.lock file\",\n \"install_command.starting_migrating_to_any_npm\": \"Stating the migration…\",\n \"migration_to_any_npm_failed\": \"Migration failed\\nCause: ${cause}\",\n \"install_command.migration_to_any_npm_success\": \"Migration completed successfully!\"\n}\n"],"mappings":";;2EAAAA,ICAA,IAAAC,EAAA,CACE,oCAAqC,kCACrC,mCAAoC,kDACpC,uCAAwC,kCACxC,4CAA6C,mBAC7C,uCAAwC,OACxC,sCAAuC,MACvC,uCAAwC,4DACxC,yCAA0C,kEAC1C,uCAAwC,kCACxC,yCAA0C,oEAC1C,wCAAyC,mDACzC,kDAAmD,gCACnD,yCAA0C,2BAC1C,8CAA+C,mBAC/C,yCAA0C,OAC1C,wCAAyC,MACzC,mBAAoB,cACpB,uCAAwC,oDACxC,qCAAsC,qDACtC,yCAA0C,uCAC1C,+BAAgC,qGAChC,8CAA+C,+EAC/C,4CAA6C,wEAC7C,mDAAoD,2DACpD,mDAAoD,sGACpD,mDAAoD,wFACpD,8CAA+C,+EAC/C,4CAA6C,wEAC7C,8BAA+B,2BAC/B,0CAA2C,qEAC3C,6BAA8B,+GAC9B,oCAAqC,2CACrC,sCAAuC,yCACvC,qCAAsC,6BACtC,uCAAwC,+BACxC,0CAA2C,4CAC3C,2CAA4C,6BAC5C,yCAA0C,kCAC1C,uDAAwD,wBACxD,gEAAiE,0BACjE,sDAAuD,aACvD,+CAAgD,yBAChD,4CAA6C,kDAC7C,6BAA8B,gBAC9B,4BAA6B,mDAC7B,kCAAmC,qBACnC,0CAA2C,uCAC3C,mDAAoD,4BACpD,6CAA8C,yBAC9C,qEAAsE,UACtE,uEAAwE,qKACxE,sDAAuD,UACvD,wDAAyD,uHACzD,iEAAkE,+BAClE,gEAAiE,uGACjE,oDAAqD,UACrD,sDAAuD,yEACvD,+CAAgD,UAChD,+CAAgD,uGAChD,iDAAkD,8EAClD,4BAA6B,yBAC7B,oCAAqC,OACrC,sCAAuC,SACvC,mCAAoC,wBACpC,2CAA4C,+BAC5C,0CAA2C,4BAC3C,yCAA0C,kCAC1C,uDAAwD,kCACxD,gEAAiE,wCACjE,sDAAuD,aACvD,mCAAoC,iCACpC,kCAAmC,oDACnC,sCAAuC,0FACvC,4CAA6C,aAC7C,wCAAyC,8BACzC,uCAAwC,gSACxC,gDAAiD,8BACjD,4BAA+B,oCAC/B,+CAAgD,mCAClD,ED7EO,SAASC,GAAc,CAC5B,IAAMC,EAAOC,EAAeC,CAAQ,EAEpC,OAAOF,EAAK,EAAE,KAAKA,CAAI,CACzB","names":["init_esm_shims","messages_default","createI18nT","i18n","createI18n","messages_default"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as D0,b as v0,c as x0,d as Wi,e as ye,f as sp,i as yo,k as zi}from"./chunk-SYHT5LTW.js";import{a as Vn,b as tr,c as C0}from"./chunk-K656WQZA.js";import{a as E0,b as zn,c as Lt,d as y0}from"./chunk-F67LDVCV.js";import{a as g0,b as ji,c as Re}from"./chunk-ZBJRW65P.js";import{b as za}from"./chunk-CUZEHDNU.js";import{a as Xn,c as up,e as op}from"./chunk-AQJFGMCV.js";import{a as m0,c as Ie,e as Q,i as g}from"./chunk-UO4ZAUJK.js";var yp=Ie(he=>{"use strict";g();var Vi=Symbol.for("react.element"),F0=Symbol.for("react.portal"),S0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),N0=Symbol.for("react.profiler"),I0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),_0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),w0=Symbol.for("react.memo"),O0=Symbol.for("react.lazy"),ap=Symbol.iterator;function P0(e){return e===null||typeof e!="object"?null:(e=ap&&e[ap]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,dp={};function Yn(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}Yn.prototype.isReactComponent={};Yn.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Yn.prototype;function Xa(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}var Ya=Xa.prototype=new hp;Ya.constructor=Xa;pp(Ya,Yn.prototype);Ya.isPureReactComponent=!0;var lp=Array.isArray,mp=Object.prototype.hasOwnProperty,$a={current:null},Dp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,r,i){var o,a={},f=null,c=null;if(r!=null)for(o in r.ref!==void 0&&(c=r.ref),r.key!==void 0&&(f=""+r.key),r)mp.call(r,o)&&!Dp.hasOwnProperty(o)&&(a[o]=r[o]);var d=arguments.length-2;if(d===1)a.children=i;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];a.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)a[o]===void 0&&(a[o]=d[o]);return{$$typeof:Vi,type:e,key:f,ref:c,props:a,_owner:$a.current}}function R0(e,r){return{$$typeof:Vi,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function B0(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return r[i]})}var fp=/\/+/g;function Va(e,r){return typeof e=="object"&&e!==null&&e.key!=null?B0(""+e.key):r.toString(36)}function xo(e,r,i,o,a){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(f){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Vi:case F0:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+Va(c,0):o,lp(a)?(i="",e!=null&&(i=e.replace(fp,"$&/")+"/"),xo(a,r,i,"",function(m){return m})):a!=null&&(Qa(a)&&(a=R0(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(fp,"$&/")+"/")+e)),r.push(a)),1;if(c=0,o=o===""?".":o+":",lp(e))for(var d=0;d<e.length;d++){f=e[d];var h=o+Va(f,d);c+=xo(f,r,i,h,a)}else if(h=P0(e),typeof h=="function")for(e=h.call(e),d=0;!(f=e.next()).done;)f=f.value,h=o+Va(f,d++),c+=xo(f,r,i,h,a);else if(f==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function vo(e,r,i){if(e==null)return e;var o=[],a=0;return xo(e,o,"","",function(f){return r.call(i,f,a++)}),o}function b0(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Co={transition:null},k0={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Co,ReactCurrentOwner:$a};function Ep(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:vo,forEach:function(e,r,i){vo(e,function(){r.apply(this,arguments)},i)},count:function(e){var r=0;return vo(e,function(){r++}),r},toArray:function(e){return vo(e,function(r){return r})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Yn;he.Fragment=S0;he.Profiler=N0;he.PureComponent=Xa;he.StrictMode=T0;he.Suspense=L0;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k0;he.act=Ep;he.cloneElement=function(e,r,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=pp({},e.props),a=e.key,f=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(f=r.ref,c=$a.current),r.key!==void 0&&(a=""+r.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in r)mp.call(r,h)&&!Dp.hasOwnProperty(h)&&(o[h]=r[h]===void 0&&d!==void 0?d[h]:r[h])}var h=arguments.length-2;if(h===1)o.children=i;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Vi,type:e.type,key:a,ref:f,props:o,_owner:c}};he.createContext=function(e){return e={$$typeof:A0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I0,_context:e},e.Consumer=e};he.createElement=gp;he.createFactory=function(e){var r=gp.bind(null,e);return r.type=e,r};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:_0,render:e}};he.isValidElement=Qa;he.lazy=function(e){return{$$typeof:O0,_payload:{_status:-1,_result:e},_init:b0}};he.memo=function(e,r){return{$$typeof:w0,type:e,compare:r===void 0?null:r}};he.startTransition=function(e){var r=Co.transition;Co.transition={};try{e()}finally{Co.transition=r}};he.unstable_act=Ep;he.useCallback=function(e,r){return vt.current.useCallback(e,r)};he.useContext=function(e){return vt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};he.useEffect=function(e,r){return vt.current.useEffect(e,r)};he.useId=function(){return vt.current.useId()};he.useImperativeHandle=function(e,r,i){return vt.current.useImperativeHandle(e,r,i)};he.useInsertionEffect=function(e,r){return vt.current.useInsertionEffect(e,r)};he.useLayoutEffect=function(e,r){return vt.current.useLayoutEffect(e,r)};he.useMemo=function(e,r){return vt.current.useMemo(e,r)};he.useReducer=function(e,r,i){return vt.current.useReducer(e,r,i)};he.useRef=function(e){return vt.current.useRef(e)};he.useState=function(e){return vt.current.useState(e)};he.useSyncExternalStore=function(e,r,i){return vt.current.useSyncExternalStore(e,r,i)};he.useTransition=function(){return vt.current.useTransition()};he.version="18.3.1"});var ie=Ie((Qv,vp)=>{"use strict";g();vp.exports=yp()});var Fo=Ie((Jv,xp)=>{"use strict";g();function U0(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}xp.exports=U0});var Fp=Ie((Zv,Cp)=>{"use strict";g();var H0=typeof global=="object"&&global&&global.Object===Object&&global;Cp.exports=H0});var qa=Ie((t2,Sp)=>{"use strict";g();var M0=Fp(),G0=typeof self=="object"&&self&&self.Object===Object&&self,j0=M0||G0||Function("return this")();Sp.exports=j0});var Np=Ie((n2,Tp)=>{"use strict";g();var W0=qa(),z0=function(){return W0.Date.now()};Tp.exports=z0});var Ap=Ie((u2,Ip)=>{"use strict";g();var V0=/\s/;function X0(e){for(var r=e.length;r--&&V0.test(e.charAt(r)););return r}Ip.exports=X0});var Lp=Ie((s2,_p)=>{"use strict";g();var Y0=Ap(),$0=/^\s+/;function Q0(e){return e&&e.slice(0,Y0(e)+1).replace($0,"")}_p.exports=Q0});var Ja=Ie((l2,wp)=>{"use strict";g();var q0=qa(),J0=q0.Symbol;wp.exports=J0});var Bp=Ie((c2,Rp)=>{"use strict";g();var Op=Ja(),Pp=Object.prototype,K0=Pp.hasOwnProperty,Z0=Pp.toString,Xi=Op?Op.toStringTag:void 0;function eE(e){var r=K0.call(e,Xi),i=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var a=Z0.call(e);return o&&(r?e[Xi]=i:delete e[Xi]),a}Rp.exports=eE});var kp=Ie((d2,bp)=>{"use strict";g();var tE=Object.prototype,rE=tE.toString;function nE(e){return rE.call(e)}bp.exports=nE});var Gp=Ie((m2,Mp)=>{"use strict";g();var Up=Ja(),iE=Bp(),uE=kp(),oE="[object Null]",sE="[object Undefined]",Hp=Up?Up.toStringTag:void 0;function aE(e){return e==null?e===void 0?sE:oE:Hp&&Hp in Object(e)?iE(e):uE(e)}Mp.exports=aE});var Wp=Ie((g2,jp)=>{"use strict";g();function lE(e){return e!=null&&typeof e=="object"}jp.exports=lE});var Vp=Ie((y2,zp)=>{"use strict";g();var fE=Gp(),cE=Wp(),pE="[object Symbol]";function dE(e){return typeof e=="symbol"||cE(e)&&fE(e)==pE}zp.exports=dE});var Qp=Ie((x2,$p)=>{"use strict";g();var hE=Lp(),Xp=Fo(),mE=Vp(),Yp=NaN,DE=/^[-+]0x[0-9a-f]+$/i,gE=/^0b[01]+$/i,EE=/^0o[0-7]+$/i,yE=parseInt;function vE(e){if(typeof e=="number")return e;if(mE(e))return Yp;if(Xp(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xp(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=hE(e);var i=gE.test(e);return i||EE.test(e)?yE(e.slice(2),i?2:8):DE.test(e)?Yp:+e}$p.exports=vE});var Kp=Ie((F2,Jp)=>{"use strict";g();var xE=Fo(),Ka=Np(),qp=Qp(),CE="Expected a function",FE=Math.max,SE=Math.min;function TE(e,r,i){var o,a,f,c,d,h,m=0,v=!1,C=!1,x=!0;if(typeof e!="function")throw new TypeError(CE);r=qp(r)||0,xE(i)&&(v=!!i.leading,C="maxWait"in i,f=C?FE(qp(i.maxWait)||0,r):f,x="trailing"in i?!!i.trailing:x);function O(H){var ne=o,Ge=a;return o=a=void 0,m=H,c=e.apply(Ge,ne),c}function R(H){return m=H,d=setTimeout(B,r),v?O(H):c}function k(H){var ne=H-h,Ge=H-m,we=r-ne;return C?SE(we,f-Ge):we}function P(H){var ne=H-h,Ge=H-m;return h===void 0||ne>=r||ne<0||C&&Ge>=f}function B(){var H=Ka();if(P(H))return j(H);d=setTimeout(B,k(H))}function j(H){return d=void 0,x&&o?O(H):(o=a=void 0,c)}function J(){d!==void 0&&clearTimeout(d),m=0,o=h=a=d=void 0}function z(){return d===void 0?c:j(Ka())}function Y(){var H=Ka(),ne=P(H);if(o=arguments,a=this,h=H,ne){if(d===void 0)return R(h);if(C)return clearTimeout(d),d=setTimeout(B,r),O(h)}return d===void 0&&(d=setTimeout(B,r)),c}return Y.cancel=J,Y.flush=z,Y}Jp.exports=TE});var ed=Ie((T2,Zp)=>{"use strict";g();var NE=Kp(),IE=Fo(),AE="Expected a function";function _E(e,r,i){var o=!0,a=!0;if(typeof e!="function")throw new TypeError(AE);return IE(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),NE(e,r,{leading:o,maxWait:r,trailing:a})}Zp.exports=_E});var _h=Ie(Oe=>{"use strict";g();function ol(e,r){var i=e.length;e.push(r);e:for(;0<i;){var o=i-1>>>1,a=e[o];if(0<So(a,r))e[o]=r,e[i]=a,i=o;else break e}}function rr(e){return e.length===0?null:e[0]}function No(e){if(e.length===0)return null;var r=e[0],i=e.pop();if(i!==r){e[0]=i;e:for(var o=0,a=e.length,f=a>>>1;o<f;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>So(d,i))h<a&&0>So(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<a&&0>So(m,i))e[o]=m,e[h]=i,o=h;else break e}}return r}function So(e,r){var i=e.sortIndex-r.sortIndex;return i!==0?i:e.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,Oe.unstable_now=function(){return vh.now()}):(nl=Date,xh=nl.now(),Oe.unstable_now=function(){return nl.now()-xh});var vh,nl,xh,hr=[],Qr=[],kE=1,zt=null,Dt=3,Io=!1,pn=!1,Ji=!1,Sh=typeof setTimeout=="function"?setTimeout:null,Th=typeof clearTimeout=="function"?clearTimeout:null,Ch=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sl(e){for(var r=rr(Qr);r!==null;){if(r.callback===null)No(Qr);else if(r.startTime<=e)No(Qr),r.sortIndex=r.expirationTime,ol(hr,r);else break;r=rr(Qr)}}function al(e){if(Ji=!1,sl(e),!pn)if(rr(hr)!==null)pn=!0,fl(ll);else{var r=rr(Qr);r!==null&&cl(al,r.startTime-e)}}function ll(e,r){pn=!1,Ji&&(Ji=!1,Th(Ki),Ki=-1),Io=!0;var i=Dt;try{for(sl(r),zt=rr(hr);zt!==null&&(!(zt.expirationTime>r)||e&&!Ah());){var o=zt.callback;if(typeof o=="function"){zt.callback=null,Dt=zt.priorityLevel;var a=o(zt.expirationTime<=r);r=Oe.unstable_now(),typeof a=="function"?zt.callback=a:zt===rr(hr)&&No(hr),sl(r)}else No(hr);zt=rr(hr)}if(zt!==null)var f=!0;else{var c=rr(Qr);c!==null&&cl(al,c.startTime-r),f=!1}return f}finally{zt=null,Dt=i,Io=!1}}var Ao=!1,To=null,Ki=-1,Nh=5,Ih=-1;function Ah(){return!(Oe.unstable_now()-Ih<Nh)}function il(){if(To!==null){var e=Oe.unstable_now();Ih=e;var r=!0;try{r=To(!0,e)}finally{r?qi():(Ao=!1,To=null)}}else Ao=!1}var qi;typeof Ch=="function"?qi=function(){Ch(il)}:typeof MessageChannel<"u"?(ul=new MessageChannel,Fh=ul.port2,ul.port1.onmessage=il,qi=function(){Fh.postMessage(null)}):qi=function(){Sh(il,0)};var ul,Fh;function fl(e){To=e,Ao||(Ao=!0,qi())}function cl(e,r){Ki=Sh(function(){e(Oe.unstable_now())},r)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){pn||Io||(pn=!0,fl(ll))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nh=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Dt};Oe.unstable_getFirstCallbackNode=function(){return rr(hr)};Oe.unstable_next=function(e){switch(Dt){case 1:case 2:case 3:var r=3;break;default:r=Dt}var i=Dt;Dt=r;try{return e()}finally{Dt=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Dt;Dt=e;try{return r()}finally{Dt=i}};Oe.unstable_scheduleCallback=function(e,r,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=i+a,e={id:kE++,callback:r,priorityLevel:e,startTime:i,expirationTime:a,sortIndex:-1},i>o?(e.sortIndex=i,ol(Qr,e),rr(hr)===null&&e===rr(Qr)&&(Ji?(Th(Ki),Ki=-1):Ji=!0,cl(al,i-o))):(e.sortIndex=a,ol(hr,e),pn||Io||(pn=!0,fl(ll))),e};Oe.unstable_shouldYield=Ah;Oe.unstable_wrapCallback=function(e){var r=Dt;return function(){var i=Dt;Dt=r;try{return e.apply(this,arguments)}finally{Dt=i}}}});var wh=Ie((Q2,Lh)=>{"use strict";g();Lh.exports=_h()});var Ph=Ie((J2,Oh)=>{"use strict";g();Oh.exports=function(r){var i={},o=ie(),a=wh(),f=Object.assign;function c(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),J=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Y=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case m:return"Portal";case x:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case J:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}function Ge(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(t){var n=t,u=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(u=n.return),t=n.return;while(t)}return n.tag===3?u:null}function _e(t){if(we(t)!==t)throw Error(c(188))}function Ve(t){var n=t.alternate;if(!n){if(n=we(t),n===null)throw Error(c(188));return n!==t?null:t}for(var u=t,s=n;;){var l=u.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){u=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===u)return _e(l),t;if(p===s)return _e(l),n;p=p.sibling}throw Error(c(188))}if(u.return!==s.return)u=l,s=p;else{for(var D=!1,F=l.child;F;){if(F===u){D=!0,u=l,s=p;break}if(F===s){D=!0,s=l,u=p;break}F=F.sibling}if(!D){for(F=p.child;F;){if(F===u){D=!0,u=p,s=l;break}if(F===s){D=!0,s=p,u=l;break}F=F.sibling}if(!D)throw Error(c(189))}}if(u.alternate!==s)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?t:n}function rt(t){return t=Ve(t),t!==null?st(t):null}function st(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=st(t);if(n!==null)return n;t=t.sibling}return null}function Et(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){if(t.tag!==4){var n=Et(t);if(n!==null)return n}t=t.sibling}return null}var Ne=Array.isArray,Rt=r.getPublicInstance,Kr=r.getRootHostContext,qe=r.getChildHostContext,je=r.prepareForCommit,Vt=r.resetAfterCommit,vr=r.createInstance,nr=r.appendInitialChild,ce=r.finalizeInitialChildren,Br=r.prepareUpdate,br=r.shouldSetTextContent,pi=r.createTextInstance,di=r.scheduleTimeout,Je=r.cancelTimeout,xr=r.noTimeout,kr=r.isPrimaryRenderer,Ke=r.supportsMutation,Ct=r.supportsPersistence,ct=r.supportsHydration,Cr=r.getInstanceFromNode,Eu=r.preparePortalMount,yu=r.getCurrentEventPriority,yn=r.detachDeletedInstance,hi=r.supportsMicrotasks,vu=r.scheduleMicrotask,Ur=r.supportsTestSelectors,xu=r.findFiberRoot,vn=r.getBoundingRect,xn=r.getTextContent,Bt=r.isHiddenSubtree,Cn=r.matchAccessibilityRole,mi=r.setFocusIfFocusable,Zr=r.setupIntersectionObserver,Hr=r.appendChild,Fn=r.appendChildToContainer,ir=r.commitTextUpdate,Di=r.commitMount,Xt=r.commitUpdate,gi=r.insertBefore,ur=r.insertInContainerBefore,Ei=r.removeChild,Ns=r.removeChildFromContainer,Sn=r.resetTextContent,Is=r.hideInstance,As=r.hideTextInstance,_s=r.unhideInstance,Yt=r.unhideTextInstance,Tn=r.clearContainer,Cu=r.cloneInstance,Ft=r.createContainerChildSet,yi=r.appendChildToContainerChildSet,Nn=r.finalizeContainerChildren,en=r.replaceContainerChildren,In=r.cloneHiddenInstance,An=r.cloneHiddenTextInstance,vi=r.canHydrateInstance,Ls=r.canHydrateTextInstance,ws=r.canHydrateSuspenseInstance,Fu=r.isSuspenseInstancePending,xi=r.isSuspenseInstanceFallback,Os=r.getSuspenseInstanceFallbackErrorDetails,Ps=r.registerSuspenseInstanceRetry,_n=r.getNextHydratableSibling,Su=r.getFirstHydratableChild,Ln=r.getFirstHydratableChildWithinContainer,Tu=r.getFirstHydratableChildWithinSuspenseInstance,Rs=r.hydrateInstance,Nu=r.hydrateTextInstance,wn=r.hydrateSuspenseInstance,Bs=r.getNextHydratableInstanceAfterSuspenseInstance,Iu=r.commitHydratedContainer,Ci=r.commitHydratedSuspenseInstance,$t=r.clearSuspenseBoundary,Au=r.clearSuspenseBoundaryFromContainer,y=r.shouldDeleteUnhydratedTailInstances,E=r.didNotMatchHydratedContainerTextInstance,T=r.didNotMatchHydratedTextInstance,I;function N(t){if(I===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
3
|
+
import{a as D0,b as v0,c as x0,d as Wi,e as ye,f as sp,i as yo,k as zi}from"./chunk-CAVNZXU4.js";import{a as Vn,b as tr,c as C0}from"./chunk-K656WQZA.js";import{a as E0,b as zn,c as Lt,d as y0}from"./chunk-F67LDVCV.js";import{a as g0,b as ji,c as Re}from"./chunk-ZBJRW65P.js";import{b as za}from"./chunk-CUZEHDNU.js";import{a as Xn,c as up,e as op}from"./chunk-EWDYGUEU.js";import{a as m0,c as Ie,e as Q,i as g}from"./chunk-UO4ZAUJK.js";var yp=Ie(he=>{"use strict";g();var Vi=Symbol.for("react.element"),F0=Symbol.for("react.portal"),S0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),N0=Symbol.for("react.profiler"),I0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),_0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),w0=Symbol.for("react.memo"),O0=Symbol.for("react.lazy"),ap=Symbol.iterator;function P0(e){return e===null||typeof e!="object"?null:(e=ap&&e[ap]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,dp={};function Yn(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}Yn.prototype.isReactComponent={};Yn.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Yn.prototype;function Xa(e,r,i){this.props=e,this.context=r,this.refs=dp,this.updater=i||cp}var Ya=Xa.prototype=new hp;Ya.constructor=Xa;pp(Ya,Yn.prototype);Ya.isPureReactComponent=!0;var lp=Array.isArray,mp=Object.prototype.hasOwnProperty,$a={current:null},Dp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,r,i){var o,a={},f=null,c=null;if(r!=null)for(o in r.ref!==void 0&&(c=r.ref),r.key!==void 0&&(f=""+r.key),r)mp.call(r,o)&&!Dp.hasOwnProperty(o)&&(a[o]=r[o]);var d=arguments.length-2;if(d===1)a.children=i;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];a.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)a[o]===void 0&&(a[o]=d[o]);return{$$typeof:Vi,type:e,key:f,ref:c,props:a,_owner:$a.current}}function R0(e,r){return{$$typeof:Vi,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function B0(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return r[i]})}var fp=/\/+/g;function Va(e,r){return typeof e=="object"&&e!==null&&e.key!=null?B0(""+e.key):r.toString(36)}function xo(e,r,i,o,a){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(f){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Vi:case F0:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+Va(c,0):o,lp(a)?(i="",e!=null&&(i=e.replace(fp,"$&/")+"/"),xo(a,r,i,"",function(m){return m})):a!=null&&(Qa(a)&&(a=R0(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(fp,"$&/")+"/")+e)),r.push(a)),1;if(c=0,o=o===""?".":o+":",lp(e))for(var d=0;d<e.length;d++){f=e[d];var h=o+Va(f,d);c+=xo(f,r,i,h,a)}else if(h=P0(e),typeof h=="function")for(e=h.call(e),d=0;!(f=e.next()).done;)f=f.value,h=o+Va(f,d++),c+=xo(f,r,i,h,a);else if(f==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function vo(e,r,i){if(e==null)return e;var o=[],a=0;return xo(e,o,"","",function(f){return r.call(i,f,a++)}),o}function b0(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Co={transition:null},k0={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Co,ReactCurrentOwner:$a};function Ep(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:vo,forEach:function(e,r,i){vo(e,function(){r.apply(this,arguments)},i)},count:function(e){var r=0;return vo(e,function(){r++}),r},toArray:function(e){return vo(e,function(r){return r})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Yn;he.Fragment=S0;he.Profiler=N0;he.PureComponent=Xa;he.StrictMode=T0;he.Suspense=L0;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k0;he.act=Ep;he.cloneElement=function(e,r,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=pp({},e.props),a=e.key,f=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(f=r.ref,c=$a.current),r.key!==void 0&&(a=""+r.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in r)mp.call(r,h)&&!Dp.hasOwnProperty(h)&&(o[h]=r[h]===void 0&&d!==void 0?d[h]:r[h])}var h=arguments.length-2;if(h===1)o.children=i;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Vi,type:e.type,key:a,ref:f,props:o,_owner:c}};he.createContext=function(e){return e={$$typeof:A0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:I0,_context:e},e.Consumer=e};he.createElement=gp;he.createFactory=function(e){var r=gp.bind(null,e);return r.type=e,r};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:_0,render:e}};he.isValidElement=Qa;he.lazy=function(e){return{$$typeof:O0,_payload:{_status:-1,_result:e},_init:b0}};he.memo=function(e,r){return{$$typeof:w0,type:e,compare:r===void 0?null:r}};he.startTransition=function(e){var r=Co.transition;Co.transition={};try{e()}finally{Co.transition=r}};he.unstable_act=Ep;he.useCallback=function(e,r){return vt.current.useCallback(e,r)};he.useContext=function(e){return vt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};he.useEffect=function(e,r){return vt.current.useEffect(e,r)};he.useId=function(){return vt.current.useId()};he.useImperativeHandle=function(e,r,i){return vt.current.useImperativeHandle(e,r,i)};he.useInsertionEffect=function(e,r){return vt.current.useInsertionEffect(e,r)};he.useLayoutEffect=function(e,r){return vt.current.useLayoutEffect(e,r)};he.useMemo=function(e,r){return vt.current.useMemo(e,r)};he.useReducer=function(e,r,i){return vt.current.useReducer(e,r,i)};he.useRef=function(e){return vt.current.useRef(e)};he.useState=function(e){return vt.current.useState(e)};he.useSyncExternalStore=function(e,r,i){return vt.current.useSyncExternalStore(e,r,i)};he.useTransition=function(){return vt.current.useTransition()};he.version="18.3.1"});var ie=Ie((Qv,vp)=>{"use strict";g();vp.exports=yp()});var Fo=Ie((Jv,xp)=>{"use strict";g();function U0(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}xp.exports=U0});var Fp=Ie((Zv,Cp)=>{"use strict";g();var H0=typeof global=="object"&&global&&global.Object===Object&&global;Cp.exports=H0});var qa=Ie((t2,Sp)=>{"use strict";g();var M0=Fp(),G0=typeof self=="object"&&self&&self.Object===Object&&self,j0=M0||G0||Function("return this")();Sp.exports=j0});var Np=Ie((n2,Tp)=>{"use strict";g();var W0=qa(),z0=function(){return W0.Date.now()};Tp.exports=z0});var Ap=Ie((u2,Ip)=>{"use strict";g();var V0=/\s/;function X0(e){for(var r=e.length;r--&&V0.test(e.charAt(r)););return r}Ip.exports=X0});var Lp=Ie((s2,_p)=>{"use strict";g();var Y0=Ap(),$0=/^\s+/;function Q0(e){return e&&e.slice(0,Y0(e)+1).replace($0,"")}_p.exports=Q0});var Ja=Ie((l2,wp)=>{"use strict";g();var q0=qa(),J0=q0.Symbol;wp.exports=J0});var Bp=Ie((c2,Rp)=>{"use strict";g();var Op=Ja(),Pp=Object.prototype,K0=Pp.hasOwnProperty,Z0=Pp.toString,Xi=Op?Op.toStringTag:void 0;function eE(e){var r=K0.call(e,Xi),i=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var a=Z0.call(e);return o&&(r?e[Xi]=i:delete e[Xi]),a}Rp.exports=eE});var kp=Ie((d2,bp)=>{"use strict";g();var tE=Object.prototype,rE=tE.toString;function nE(e){return rE.call(e)}bp.exports=nE});var Gp=Ie((m2,Mp)=>{"use strict";g();var Up=Ja(),iE=Bp(),uE=kp(),oE="[object Null]",sE="[object Undefined]",Hp=Up?Up.toStringTag:void 0;function aE(e){return e==null?e===void 0?sE:oE:Hp&&Hp in Object(e)?iE(e):uE(e)}Mp.exports=aE});var Wp=Ie((g2,jp)=>{"use strict";g();function lE(e){return e!=null&&typeof e=="object"}jp.exports=lE});var Vp=Ie((y2,zp)=>{"use strict";g();var fE=Gp(),cE=Wp(),pE="[object Symbol]";function dE(e){return typeof e=="symbol"||cE(e)&&fE(e)==pE}zp.exports=dE});var Qp=Ie((x2,$p)=>{"use strict";g();var hE=Lp(),Xp=Fo(),mE=Vp(),Yp=NaN,DE=/^[-+]0x[0-9a-f]+$/i,gE=/^0b[01]+$/i,EE=/^0o[0-7]+$/i,yE=parseInt;function vE(e){if(typeof e=="number")return e;if(mE(e))return Yp;if(Xp(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xp(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=hE(e);var i=gE.test(e);return i||EE.test(e)?yE(e.slice(2),i?2:8):DE.test(e)?Yp:+e}$p.exports=vE});var Kp=Ie((F2,Jp)=>{"use strict";g();var xE=Fo(),Ka=Np(),qp=Qp(),CE="Expected a function",FE=Math.max,SE=Math.min;function TE(e,r,i){var o,a,f,c,d,h,m=0,v=!1,C=!1,x=!0;if(typeof e!="function")throw new TypeError(CE);r=qp(r)||0,xE(i)&&(v=!!i.leading,C="maxWait"in i,f=C?FE(qp(i.maxWait)||0,r):f,x="trailing"in i?!!i.trailing:x);function O(H){var ne=o,Ge=a;return o=a=void 0,m=H,c=e.apply(Ge,ne),c}function R(H){return m=H,d=setTimeout(B,r),v?O(H):c}function k(H){var ne=H-h,Ge=H-m,we=r-ne;return C?SE(we,f-Ge):we}function P(H){var ne=H-h,Ge=H-m;return h===void 0||ne>=r||ne<0||C&&Ge>=f}function B(){var H=Ka();if(P(H))return j(H);d=setTimeout(B,k(H))}function j(H){return d=void 0,x&&o?O(H):(o=a=void 0,c)}function J(){d!==void 0&&clearTimeout(d),m=0,o=h=a=d=void 0}function z(){return d===void 0?c:j(Ka())}function Y(){var H=Ka(),ne=P(H);if(o=arguments,a=this,h=H,ne){if(d===void 0)return R(h);if(C)return clearTimeout(d),d=setTimeout(B,r),O(h)}return d===void 0&&(d=setTimeout(B,r)),c}return Y.cancel=J,Y.flush=z,Y}Jp.exports=TE});var ed=Ie((T2,Zp)=>{"use strict";g();var NE=Kp(),IE=Fo(),AE="Expected a function";function _E(e,r,i){var o=!0,a=!0;if(typeof e!="function")throw new TypeError(AE);return IE(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),NE(e,r,{leading:o,maxWait:r,trailing:a})}Zp.exports=_E});var _h=Ie(Oe=>{"use strict";g();function ol(e,r){var i=e.length;e.push(r);e:for(;0<i;){var o=i-1>>>1,a=e[o];if(0<So(a,r))e[o]=r,e[i]=a,i=o;else break e}}function rr(e){return e.length===0?null:e[0]}function No(e){if(e.length===0)return null;var r=e[0],i=e.pop();if(i!==r){e[0]=i;e:for(var o=0,a=e.length,f=a>>>1;o<f;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>So(d,i))h<a&&0>So(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<a&&0>So(m,i))e[o]=m,e[h]=i,o=h;else break e}}return r}function So(e,r){var i=e.sortIndex-r.sortIndex;return i!==0?i:e.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,Oe.unstable_now=function(){return vh.now()}):(nl=Date,xh=nl.now(),Oe.unstable_now=function(){return nl.now()-xh});var vh,nl,xh,hr=[],Qr=[],kE=1,zt=null,Dt=3,Io=!1,pn=!1,Ji=!1,Sh=typeof setTimeout=="function"?setTimeout:null,Th=typeof clearTimeout=="function"?clearTimeout:null,Ch=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sl(e){for(var r=rr(Qr);r!==null;){if(r.callback===null)No(Qr);else if(r.startTime<=e)No(Qr),r.sortIndex=r.expirationTime,ol(hr,r);else break;r=rr(Qr)}}function al(e){if(Ji=!1,sl(e),!pn)if(rr(hr)!==null)pn=!0,fl(ll);else{var r=rr(Qr);r!==null&&cl(al,r.startTime-e)}}function ll(e,r){pn=!1,Ji&&(Ji=!1,Th(Ki),Ki=-1),Io=!0;var i=Dt;try{for(sl(r),zt=rr(hr);zt!==null&&(!(zt.expirationTime>r)||e&&!Ah());){var o=zt.callback;if(typeof o=="function"){zt.callback=null,Dt=zt.priorityLevel;var a=o(zt.expirationTime<=r);r=Oe.unstable_now(),typeof a=="function"?zt.callback=a:zt===rr(hr)&&No(hr),sl(r)}else No(hr);zt=rr(hr)}if(zt!==null)var f=!0;else{var c=rr(Qr);c!==null&&cl(al,c.startTime-r),f=!1}return f}finally{zt=null,Dt=i,Io=!1}}var Ao=!1,To=null,Ki=-1,Nh=5,Ih=-1;function Ah(){return!(Oe.unstable_now()-Ih<Nh)}function il(){if(To!==null){var e=Oe.unstable_now();Ih=e;var r=!0;try{r=To(!0,e)}finally{r?qi():(Ao=!1,To=null)}}else Ao=!1}var qi;typeof Ch=="function"?qi=function(){Ch(il)}:typeof MessageChannel<"u"?(ul=new MessageChannel,Fh=ul.port2,ul.port1.onmessage=il,qi=function(){Fh.postMessage(null)}):qi=function(){Sh(il,0)};var ul,Fh;function fl(e){To=e,Ao||(Ao=!0,qi())}function cl(e,r){Ki=Sh(function(){e(Oe.unstable_now())},r)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){pn||Io||(pn=!0,fl(ll))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nh=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Dt};Oe.unstable_getFirstCallbackNode=function(){return rr(hr)};Oe.unstable_next=function(e){switch(Dt){case 1:case 2:case 3:var r=3;break;default:r=Dt}var i=Dt;Dt=r;try{return e()}finally{Dt=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Dt;Dt=e;try{return r()}finally{Dt=i}};Oe.unstable_scheduleCallback=function(e,r,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=i+a,e={id:kE++,callback:r,priorityLevel:e,startTime:i,expirationTime:a,sortIndex:-1},i>o?(e.sortIndex=i,ol(Qr,e),rr(hr)===null&&e===rr(Qr)&&(Ji?(Th(Ki),Ki=-1):Ji=!0,cl(al,i-o))):(e.sortIndex=a,ol(hr,e),pn||Io||(pn=!0,fl(ll))),e};Oe.unstable_shouldYield=Ah;Oe.unstable_wrapCallback=function(e){var r=Dt;return function(){var i=Dt;Dt=r;try{return e.apply(this,arguments)}finally{Dt=i}}}});var wh=Ie((Q2,Lh)=>{"use strict";g();Lh.exports=_h()});var Ph=Ie((J2,Oh)=>{"use strict";g();Oh.exports=function(r){var i={},o=ie(),a=wh(),f=Object.assign;function c(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),J=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Y=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case m:return"Portal";case x:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case J:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}function Ge(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(t){var n=t,u=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(u=n.return),t=n.return;while(t)}return n.tag===3?u:null}function _e(t){if(we(t)!==t)throw Error(c(188))}function Ve(t){var n=t.alternate;if(!n){if(n=we(t),n===null)throw Error(c(188));return n!==t?null:t}for(var u=t,s=n;;){var l=u.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){u=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===u)return _e(l),t;if(p===s)return _e(l),n;p=p.sibling}throw Error(c(188))}if(u.return!==s.return)u=l,s=p;else{for(var D=!1,F=l.child;F;){if(F===u){D=!0,u=l,s=p;break}if(F===s){D=!0,s=l,u=p;break}F=F.sibling}if(!D){for(F=p.child;F;){if(F===u){D=!0,u=p,s=l;break}if(F===s){D=!0,s=p,u=l;break}F=F.sibling}if(!D)throw Error(c(189))}}if(u.alternate!==s)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?t:n}function rt(t){return t=Ve(t),t!==null?st(t):null}function st(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=st(t);if(n!==null)return n;t=t.sibling}return null}function Et(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){if(t.tag!==4){var n=Et(t);if(n!==null)return n}t=t.sibling}return null}var Ne=Array.isArray,Rt=r.getPublicInstance,Kr=r.getRootHostContext,qe=r.getChildHostContext,je=r.prepareForCommit,Vt=r.resetAfterCommit,vr=r.createInstance,nr=r.appendInitialChild,ce=r.finalizeInitialChildren,Br=r.prepareUpdate,br=r.shouldSetTextContent,pi=r.createTextInstance,di=r.scheduleTimeout,Je=r.cancelTimeout,xr=r.noTimeout,kr=r.isPrimaryRenderer,Ke=r.supportsMutation,Ct=r.supportsPersistence,ct=r.supportsHydration,Cr=r.getInstanceFromNode,Eu=r.preparePortalMount,yu=r.getCurrentEventPriority,yn=r.detachDeletedInstance,hi=r.supportsMicrotasks,vu=r.scheduleMicrotask,Ur=r.supportsTestSelectors,xu=r.findFiberRoot,vn=r.getBoundingRect,xn=r.getTextContent,Bt=r.isHiddenSubtree,Cn=r.matchAccessibilityRole,mi=r.setFocusIfFocusable,Zr=r.setupIntersectionObserver,Hr=r.appendChild,Fn=r.appendChildToContainer,ir=r.commitTextUpdate,Di=r.commitMount,Xt=r.commitUpdate,gi=r.insertBefore,ur=r.insertInContainerBefore,Ei=r.removeChild,Ns=r.removeChildFromContainer,Sn=r.resetTextContent,Is=r.hideInstance,As=r.hideTextInstance,_s=r.unhideInstance,Yt=r.unhideTextInstance,Tn=r.clearContainer,Cu=r.cloneInstance,Ft=r.createContainerChildSet,yi=r.appendChildToContainerChildSet,Nn=r.finalizeContainerChildren,en=r.replaceContainerChildren,In=r.cloneHiddenInstance,An=r.cloneHiddenTextInstance,vi=r.canHydrateInstance,Ls=r.canHydrateTextInstance,ws=r.canHydrateSuspenseInstance,Fu=r.isSuspenseInstancePending,xi=r.isSuspenseInstanceFallback,Os=r.getSuspenseInstanceFallbackErrorDetails,Ps=r.registerSuspenseInstanceRetry,_n=r.getNextHydratableSibling,Su=r.getFirstHydratableChild,Ln=r.getFirstHydratableChildWithinContainer,Tu=r.getFirstHydratableChildWithinSuspenseInstance,Rs=r.hydrateInstance,Nu=r.hydrateTextInstance,wn=r.hydrateSuspenseInstance,Bs=r.getNextHydratableInstanceAfterSuspenseInstance,Iu=r.commitHydratedContainer,Ci=r.commitHydratedSuspenseInstance,$t=r.clearSuspenseBoundary,Au=r.clearSuspenseBoundaryFromContainer,y=r.shouldDeleteUnhydratedTailInstances,E=r.didNotMatchHydratedContainerTextInstance,T=r.didNotMatchHydratedTextInstance,I;function N(t){if(I===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
4
4
|
`+I+t}var L=!1;function M(t,n){if(!t||L)return"";L=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(W){var s=W}Reflect.construct(t,[],n)}else{try{n.call()}catch(W){s=W}t.call(n.prototype)}else{try{throw Error()}catch(W){s=W}t()}}catch(W){if(W&&s&&typeof W.stack=="string"){for(var l=W.stack.split(`
|
|
5
5
|
`),p=s.stack.split(`
|
|
6
6
|
`),D=l.length-1,F=p.length-1;1<=D&&0<=F&&l[D]!==p[F];)F--;for(;1<=D&&0<=F;D--,F--)if(l[D]!==p[F]){if(D!==1||F!==1)do if(D--,F--,0>F||l[D]!==p[F]){var _=`
|
|
@@ -90,4 +90,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
91
|
*)
|
|
92
92
|
*/
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-OLH3K4XG.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as p,d as D,e as N}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as p,d as D,e as N}from"./chunk-L2ARP6U6.js";import{a as m}from"./chunk-VTKRZTKJ.js";import{a as P,d as y,e as _,f as d,j as h}from"./chunk-KXTG6FT3.js";import{f as w}from"./chunk-CYL3Y4I7.js";import{a as k,b as v,c as R,d as x}from"./chunk-HWUPEJKT.js";import{c as o,e as i}from"./chunk-EWDYGUEU.js";import{i as s}from"./chunk-UO4ZAUJK.js";s();import j from"node:path";var U=async e=>R(j.join(e,"yarn.lock")),X=async e=>await U(e)?"yarn":"npm";s();s();var W={},I={};var Y={},$={};function q(e){var n={"api._api_base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"editor._base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"blocks._base_domain_":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}],"create.editorx":[{srcPath:"/wix-code-user-code-dependencies",destPath:""}]};return y(Object.assign(e,{domainToMappings:n}))}function F(e){var n=d(Y,{}),t=n.toJSON,a=n.fromJSON,r=d($,{}).fromJSON;function c(g){var u=g.host,l=t(e),f={entityFqdn:"wix.velo.npm.v1.npm_package_info",method:"POST",methodFqn:"wix.velo.npm.v1.UserCodeNpmPackages.ResolveNpmDependencies",url:q({protoPath:"/v1/npm/resolve-dependencies",data:l,host:u}),data:l,transformResponse:r};return f}return c.fromReq=a,c.__isAmbassador=!0,c}function O(e){var n=d(W,{}),t=n.toJSON,a=n.fromJSON,r=d(I,{}).fromJSON;function c(g){var u=g.host,l=t(e),f={entityFqdn:"wix.velo.npm.v1.npm_package_info",method:"GET",methodFqn:"wix.velo.npm.v1.UserCodeNpmPackages.GetResolveNpmDependenciesResult",url:q({protoPath:"/v1/npm/resolve-dependencies/{jobId}",data:l,host:u}),params:_(l),transformResponse:r};return f}return c.fromReq=a,c.__isAmbassador=!0,c}s();import{join as J}from"node:path";async function C(e){let n=J(e,"package.json"),t=await v(n);return Object.entries(t.dependencies??{}).map(([a,r])=>({name:a,version:r}))}async function ie(e,n){let t=J(e,"package.json"),a=await v(t);if(a.dependencies&&Object.keys(a.dependencies).length>0)throw new o({code:i.FailedMigrationToAnyNpm()});a.dependencies={},Object.keys(n.dependencies).forEach(r=>{a.devDependencies?.[r]&&delete a.devDependencies[r],a.dependencies[r]=n.dependencies[r]}),await k(t,a)}s();import{join as z}from"node:path";async function S(e,n){let t=z(e,w);try{await x(t,n)}catch(a){throw new o({code:i.FailedToWriteWixLock(),cause:a})}}var V=async(e,{authState:n})=>h(async()=>{try{let{data:t}=await m({type:"editor",authState:n},O({jobId:e})),a=N.parse(t);return h.resolveWith({wixLockFileUrl:a.result.npmDependenciesLockFile})}catch(t){if(P(t)&&t.response?.status===428)return!1;throw new o({code:i.FailedToGetResolveNpmDependenciesResult(),cause:t})}},{interval:3*1e3,timeout:2*60*1e3}),G=async(e,n)=>{let t=await m({type:"standalone"},{url:e});return S(n,t.data)},_e=async(e,{authState:n})=>{try{let t=await C(e),{data:a}=await m({type:"editor",authState:n},F({npmPackageInfos:t})),{jobId:r}=D.parse(a),{wixLockFileUrl:c}=await V(r,{authState:n});await G(c,e)}catch(t){throw new o({code:i.FailedToResolveNpmDependencies(),cause:t})}};s();s();var A=async(e,n,t)=>{let a=["add",`${e}${n?`@${n}`:""}`];return p("yarn",a,{cwd:t})},T=(e,n)=>p("yarn",["remove",e],{cwd:n}),b=e=>p("yarn",["install"],{cwd:e});s();var E=async(e,n,t)=>{let a=["install",`${e}${n?`@${n}`:""}`];return p("npm",a,{cwd:t})},L=(e,n)=>p("npm",["uninstall",e],{cwd:n}),M=e=>p("npm",["install"],{cwd:e});var Ee=async(e,n,t,a)=>{try{a==="yarn"?await A(e,n,t):await E(e,n,t)}catch(r){throw new o({code:i.FailedToInstallPackage({packageName:e,cause:r}),cause:r})}},Le=async(e,n,t)=>{try{t==="yarn"?await T(e,n):await L(e,n)}catch(a){throw new o({code:i.FailedToUninstallPackage({packageName:e,cause:a}),cause:a})}},Me=async(e,n)=>{try{n==="yarn"?await b(e):await M(e)}catch(t){throw new o({code:i.FailedToInstallPackages({cause:t}),cause:t})}};export{X as a,ie as b,_e as c,Ee as d,Le as e,Me as f};
|
|
4
|
+
//# sourceMappingURL=chunk-QUB5H5DM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../cli-site-old/src/dependency-manager/utils.ts","../../cli-site-old/src/dependency-manager/packages-service.ts","../../../node_modules/@wix/ambassador-velo-npm-v1-npm-package-info/http.impl.ts","../../cli-site-old/src/files/package-json.ts","../../cli-site-old/src/files/wix.lock.ts","../../cli-site-old/src/dependency-manager/index.ts","../../cli-site-old/src/dependency-manager/yarn.ts","../../cli-site-old/src/dependency-manager/npm.ts"],"sourcesContent":["import path from 'node:path';\nimport { pathExists } from '@wix/cli-fs';\n\nexport type PackageManager = 'yarn' | 'npm';\n\nconst isYarn = async (root: string) => {\n return pathExists(path.join(root, 'yarn.lock'));\n};\n\nexport const getDefaultPackageManager = async (root: string) => {\n const shouldUseYarn = await isYarn(root);\n return shouldUseYarn ? 'yarn' : 'npm';\n};\n","import {\n resolveNpmDependencies as resolveNpmDependenciesRequest,\n getResolveNpmDependenciesResult,\n} from '@wix/ambassador-velo-npm-v1-npm-package-info/http';\nimport pWaitFor from 'p-wait-for';\nimport type { AuthState } from '@wix/cli-auth';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport { isHttpError } from '@wix/cli-http-client';\nimport { httpRequest } from '../http-request.js';\nimport { getDependencies } from '../files/package-json.js';\nimport { saveWixLock } from '../files/wix.lock.js';\nimport {\n resolveNpmDependenciesSchema,\n npmDependenciesLockFileResponseSchema,\n} from '../schemas.js';\n\ninterface RequestOptions {\n authState: AuthState;\n}\n\nconst waitForInstallationCompleted = async (\n jobId: string,\n { authState }: RequestOptions\n) => {\n return pWaitFor(\n async () => {\n try {\n const { data } = await httpRequest(\n { type: 'editor', authState },\n getResolveNpmDependenciesResult({ jobId })\n );\n\n const npmDependenciesLockFileResponse =\n npmDependenciesLockFileResponseSchema.parse(data);\n\n return pWaitFor.resolveWith({\n wixLockFileUrl:\n npmDependenciesLockFileResponse.result.npmDependenciesLockFile,\n });\n } catch (e) {\n // Continue polling\n if (isHttpError(e) && e.response?.status === 428) {\n return false;\n }\n // Unexpected error - stop polling\n throw new CliError({\n code: CliErrorCode.FailedToGetResolveNpmDependenciesResult(),\n cause: e,\n });\n }\n },\n {\n // Poll each 3 seconds\n interval: 3 * 1000,\n // Fail if 2 minutes passed\n timeout: 2 * 60 * 1000,\n }\n );\n};\n\nconst fetchAndSaveWixLock = async (url: string, root: string) => {\n const wixLockContent = await httpRequest<string>(\n { type: 'standalone' },\n { url }\n );\n return saveWixLock(root, wixLockContent.data);\n};\n\nexport const resolveNpmDependencies = async (\n root: string,\n { authState }: RequestOptions\n) => {\n try {\n const npmPackageInfos = await getDependencies(root);\n\n const { data: resolveNpmDependenciesResponse } = await httpRequest(\n { type: 'editor', authState },\n resolveNpmDependenciesRequest({ npmPackageInfos })\n );\n\n const { jobId } = resolveNpmDependenciesSchema.parse(\n resolveNpmDependenciesResponse\n );\n\n const { wixLockFileUrl } = await waitForInstallationCompleted(jobId, {\n authState,\n });\n\n await fetchAndSaveWixLock(wixLockFileUrl, root);\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToResolveNpmDependencies(),\n cause: e,\n });\n }\n};\n",null,"import { join } from 'node:path';\nimport type { PackageJson } from 'type-fest';\nimport { readJson, writeJson } from '@wix/cli-fs';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport async function getDependencies(projectFolder: string) {\n const packageJsonPath = join(projectFolder, 'package.json');\n const packageJson = (await readJson(packageJsonPath)) as PackageJson;\n return Object.entries(packageJson.dependencies ?? {}).map(\n ([name, version]) => ({ name, version })\n );\n}\n\nexport async function addDependenciesToPackageJson(\n projectFolder: string,\n dependenciesConfig: {\n dependencies: Record<string, string>;\n }\n) {\n const packageJsonPath = join(projectFolder, 'package.json');\n const packageJson = (await readJson(packageJsonPath)) as PackageJson;\n\n if (\n packageJson.dependencies &&\n Object.keys(packageJson.dependencies).length > 0\n ) {\n throw new CliError({\n code: CliErrorCode.FailedMigrationToAnyNpm(),\n });\n }\n\n packageJson.dependencies = {};\n\n Object.keys(dependenciesConfig.dependencies).forEach(\n (dependencyPackageName) => {\n if (packageJson.devDependencies?.[dependencyPackageName]) {\n delete packageJson.devDependencies[dependencyPackageName];\n }\n\n packageJson.dependencies![dependencyPackageName] =\n dependenciesConfig.dependencies[dependencyPackageName];\n }\n );\n\n await writeJson(packageJsonPath, packageJson);\n}\n","import { join } from 'node:path';\nimport { WIX_LOCK_FILENAME } from '@wix/cli-core-definitions';\nimport { outputFile } from '@wix/cli-fs';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport async function saveWixLock(\n projectFolder: string,\n lockFileContent: string\n) {\n const wixLockPath = join(projectFolder, WIX_LOCK_FILENAME);\n try {\n await outputFile(wixLockPath, lockFileContent);\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToWriteWixLock(),\n cause: e,\n });\n }\n}\n","import { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { PackageManager } from './utils.js';\nimport {\n installPackage as installPackageYarn,\n installAll as installAllYarn,\n uninstallPackage as uninstallPackageYarn,\n} from './yarn.js';\nimport {\n installPackage as installPackageNpm,\n installAll as installAllNpm,\n uninstallPackage as uninstallPackageNpm,\n} from './npm.js';\n\nexport const installNpmPackage = async (\n packageName: string,\n version: string | null,\n root: string,\n packageManager: PackageManager\n) => {\n try {\n if (packageManager === 'yarn') {\n await installPackageYarn(packageName, version, root);\n } else {\n await installPackageNpm(packageName, version, root);\n }\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToInstallPackage({ packageName, cause: e }),\n cause: e,\n });\n }\n};\n\nexport const uninstallNpmPackage = async (\n packageName: string,\n root: string,\n packageManager: PackageManager\n) => {\n try {\n if (packageManager === 'yarn') {\n await uninstallPackageYarn(packageName, root);\n } else {\n await uninstallPackageNpm(packageName, root);\n }\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToUninstallPackage({ packageName, cause: e }),\n cause: e,\n });\n }\n};\n\nexport const installAllPackages = async (\n root: string,\n packageManager: PackageManager\n) => {\n try {\n if (packageManager === 'yarn') {\n await installAllYarn(root);\n } else {\n await installAllNpm(root);\n }\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToInstallPackages({ cause: e }),\n cause: e,\n });\n }\n};\n\nexport * from './utils.js';\nexport * from './packages-service.js';\n","import { execa } from 'execa';\n\nexport const installPackage = async (\n packageName: string,\n version: string | null,\n root: string\n) => {\n const args = ['add', `${packageName}${version ? `@${version}` : ''}`];\n\n return execa('yarn', args, {\n cwd: root,\n });\n};\n\nexport const uninstallPackage = (packageName: string, root: string) => {\n return execa('yarn', ['remove', packageName], {\n cwd: root,\n });\n};\n\nexport const installAll = (root: string) => {\n return execa('yarn', ['install'], {\n cwd: root,\n });\n};\n","import { execa } from 'execa';\n\nexport const installPackage = async (\n packageName: string,\n version: string | null,\n root: string\n) => {\n const args = ['install', `${packageName}${version ? `@${version}` : ''}`];\n\n return execa('npm', args, {\n cwd: root,\n });\n};\n\nexport const uninstallPackage = (packageName: string, root: string) => {\n return execa('npm', ['uninstall', packageName], {\n cwd: root,\n });\n};\n\nexport const installAll = (root: string) => {\n return execa('npm', ['install'], {\n cwd: root,\n });\n};\n"],"mappings":"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","names":["init_esm_shims","path","isYarn","root","pathExists","path","getDefaultPackageManager","init_esm_shims","init_esm_shims","_getResolveNpmDependenciesResultRequest","_getResolveNpmDependenciesResultResponse","_resolveNpmDependenciesRequest","_resolveNpmDependenciesResponse","resolveWixVeloNpmV1UserCodeNpmPackagesUrl","opts","domainToMappings","resolveUrl","resolveNpmDependencies","payload","_a","serializer","_resolveNpmDependenciesRequest","toReq","fromReq","fromRes","_resolveNpmDependenciesResponse","__resolveNpmDependencies","host","serializedData","metadata","resolveWixVeloNpmV1UserCodeNpmPackagesUrl","getResolveNpmDependenciesResult","_getResolveNpmDependenciesResultRequest","_getResolveNpmDependenciesResultResponse","__getResolveNpmDependenciesResult","toURLSearchParams","init_esm_shims","join","getDependencies","projectFolder","packageJsonPath","join","packageJson","readJson","name","version","addDependenciesToPackageJson","dependenciesConfig","CliError","CliErrorCode","dependencyPackageName","writeJson","init_esm_shims","join","saveWixLock","projectFolder","lockFileContent","wixLockPath","join","WIX_LOCK_FILENAME","outputFile","e","CliError","CliErrorCode","waitForInstallationCompleted","jobId","authState","pWaitFor","data","httpRequest","getResolveNpmDependenciesResult","npmDependenciesLockFileResponse","npmDependenciesLockFileResponseSchema","e","isHttpError","CliError","CliErrorCode","fetchAndSaveWixLock","url","root","wixLockContent","saveWixLock","resolveNpmDependencies","npmPackageInfos","getDependencies","resolveNpmDependenciesResponse","resolveNpmDependenciesSchema","wixLockFileUrl","init_esm_shims","init_esm_shims","installPackage","packageName","version","root","args","execa","uninstallPackage","installAll","init_esm_shims","installPackage","packageName","version","root","args","execa","uninstallPackage","installAll","installNpmPackage","packageName","version","root","packageManager","installPackage","e","CliError","CliErrorCode","uninstallNpmPackage","uninstallPackage","installAllPackages","installAll"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{c as Bt,d as Wt,f as Zt,g as Kt,j as Xt}from"./chunk-
|
|
3
|
+
import{c as Bt,d as Wt,f as Zt,g as Kt,j as Xt}from"./chunk-DZP4F4PP.js";import{a as Qt,b as ei,c as ti,f as ii}from"./chunk-L2ARP6U6.js";import{a as Ie}from"./chunk-VTKRZTKJ.js";import{d as zt,e as Re,f as Y,j as $e}from"./chunk-KXTG6FT3.js";import{a as Fn,c as X,e as Q}from"./chunk-EWDYGUEU.js";import{a as fe,c as a,e as jn,i as h}from"./chunk-UO4ZAUJK.js";var p=a((Kl,ri)=>{"use strict";h();var{FORCE_COLOR:kn,NODE_DISABLE_COLORS:Nn,TERM:Hn}=process.env,c={enabled:!Nn&&Hn!=="dumb"&&kn!=="0",reset:f(0,0),bold:f(1,22),dim:f(2,22),italic:f(3,23),underline:f(4,24),inverse:f(7,27),hidden:f(8,28),strikethrough:f(9,29),black:f(30,39),red:f(31,39),green:f(32,39),yellow:f(33,39),blue:f(34,39),magenta:f(35,39),cyan:f(36,39),white:f(37,39),gray:f(90,39),grey:f(90,39),bgBlack:f(40,49),bgRed:f(41,49),bgGreen:f(42,49),bgYellow:f(43,49),bgBlue:f(44,49),bgMagenta:f(45,49),bgCyan:f(46,49),bgWhite:f(47,49)};function si(i,e){let t=0,s,n="",r="";for(;t<i.length;t++)s=i[t],n+=s.open,r+=s.close,e.includes(s.close)&&(e=e.replace(s.rgx,s.close+s.open));return n+e+r}function Vn(i,e){let t={has:i,keys:e};return t.reset=c.reset.bind(t),t.bold=c.bold.bind(t),t.dim=c.dim.bind(t),t.italic=c.italic.bind(t),t.underline=c.underline.bind(t),t.inverse=c.inverse.bind(t),t.hidden=c.hidden.bind(t),t.strikethrough=c.strikethrough.bind(t),t.black=c.black.bind(t),t.red=c.red.bind(t),t.green=c.green.bind(t),t.yellow=c.yellow.bind(t),t.blue=c.blue.bind(t),t.magenta=c.magenta.bind(t),t.cyan=c.cyan.bind(t),t.white=c.white.bind(t),t.gray=c.gray.bind(t),t.grey=c.grey.bind(t),t.bgBlack=c.bgBlack.bind(t),t.bgRed=c.bgRed.bind(t),t.bgGreen=c.bgGreen.bind(t),t.bgYellow=c.bgYellow.bind(t),t.bgBlue=c.bgBlue.bind(t),t.bgMagenta=c.bgMagenta.bind(t),t.bgCyan=c.bgCyan.bind(t),t.bgWhite=c.bgWhite.bind(t),t}function f(i,e){let t={open:`\x1B[${i}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(s){return this!==void 0&&this.has!==void 0?(this.has.includes(i)||(this.has.push(i),this.keys.push(t)),s===void 0?this:c.enabled?si(this.keys,s+""):s+""):s===void 0?Vn([i],[t]):c.enabled?si([t],s+""):s+""}}ri.exports=c});var oi=a((Ql,ni)=>{"use strict";h();ni.exports=(i,e)=>{if(!(i.meta&&i.name!=="escape")){if(i.ctrl){if(i.name==="a")return"first";if(i.name==="c"||i.name==="d")return"abort";if(i.name==="e")return"last";if(i.name==="g")return"reset"}if(e){if(i.name==="j")return"down";if(i.name==="k")return"up"}return i.name==="return"||i.name==="enter"?"submit":i.name==="backspace"?"delete":i.name==="delete"?"deleteForward":i.name==="abort"?"abort":i.name==="escape"?"exit":i.name==="tab"?"next":i.name==="pagedown"?"nextPage":i.name==="pageup"?"prevPage":i.name==="home"?"home":i.name==="end"?"end":i.name==="up"?"up":i.name==="down"?"down":i.name==="right"?"right":i.name==="left"?"left":!1}}});var pe=a((tu,hi)=>{"use strict";h();hi.exports=i=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),t=new RegExp(e,"g");return typeof i=="string"?i.replace(t,""):i}});var g=a((su,li)=>{"use strict";h();var Ce="\x1B",m=`${Ce}[`,Yn="\x07",Ae={to(i,e){return e?`${m}${e+1};${i+1}H`:`${m}${i+1}G`},move(i,e){let t="";return i<0?t+=`${m}${-i}D`:i>0&&(t+=`${m}${i}C`),e<0?t+=`${m}${-e}A`:e>0&&(t+=`${m}${e}B`),t},up:(i=1)=>`${m}${i}A`,down:(i=1)=>`${m}${i}B`,forward:(i=1)=>`${m}${i}C`,backward:(i=1)=>`${m}${i}D`,nextLine:(i=1)=>`${m}E`.repeat(i),prevLine:(i=1)=>`${m}F`.repeat(i),left:`${m}G`,hide:`${m}?25l`,show:`${m}?25h`,save:`${Ce}7`,restore:`${Ce}8`},Jn={up:(i=1)=>`${m}S`.repeat(i),down:(i=1)=>`${m}T`.repeat(i)},Ln={screen:`${m}2J`,up:(i=1)=>`${m}1J`.repeat(i),down:(i=1)=>`${m}J`.repeat(i),line:`${m}2K`,lineEnd:`${m}K`,lineStart:`${m}1K`,lines(i){let e="";for(let t=0;t<i;t++)e+=this.line+(t<i-1?Ae.up():"");return i&&(e+=Ae.left),e}};li.exports={cursor:Ae,scroll:Jn,erase:Ln,beep:Yn}});var fi=a((nu,ci)=>{"use strict";h();function Gn(i,e){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Un(i))||e&&i&&typeof i.length=="number"){t&&(i=t);var s=0,n=function(){};return{s:n,n:function(){return s>=i.length?{done:!0}:{done:!1,value:i[s++]}},e:function(d){throw d},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r=!0,o=!1,l;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return r=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!r&&t.return!=null&&t.return()}finally{if(o)throw l}}}}function Un(i,e){if(i){if(typeof i=="string")return ui(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ui(i,e)}}function ui(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=i[t];return s}var zn=pe(),di=g(),ai=di.erase,Bn=di.cursor,Wn=i=>[...zn(i)].length;ci.exports=function(i,e){if(!e)return ai.line+Bn.to(0);let t=0,s=i.split(/\r?\n/);var n=Gn(s),r;try{for(n.s();!(r=n.n()).done;){let o=r.value;t+=1+Math.floor(Math.max(Wn(o)-1,0)/e)}}catch(o){n.e(o)}finally{n.f()}return ai.lines(t)}});var Ee=a((hu,pi)=>{"use strict";h();var ee={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Zn={arrowUp:ee.arrowUp,arrowDown:ee.arrowDown,arrowLeft:ee.arrowLeft,arrowRight:ee.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Kn=process.platform==="win32"?Zn:ee;pi.exports=Kn});var gi=a((uu,mi)=>{"use strict";h();var G=p(),J=Ee(),je=Object.freeze({password:{scale:1,render:i=>"*".repeat(i.length)},emoji:{scale:2,render:i=>"\u{1F603}".repeat(i.length)},invisible:{scale:0,render:i=>""},default:{scale:1,render:i=>`${i}`}}),Xn=i=>je[i]||je.default,te=Object.freeze({aborted:G.red(J.cross),done:G.green(J.tick),exited:G.yellow(J.cross),default:G.cyan("?")}),Qn=(i,e,t)=>e?te.aborted:t?te.exited:i?te.done:te.default,eo=i=>G.gray(i?J.ellipsis:J.pointerSmall),to=(i,e)=>G.gray(i?e?J.pointerSmall:"+":J.line);mi.exports={styles:je,render:Xn,symbols:te,symbol:Qn,delimiter:eo,item:to}});var yi=a((du,vi)=>{"use strict";h();var io=pe();vi.exports=function(i,e){let t=String(io(i)||"").split(/\r?\n/);return e?t.map(s=>Math.ceil(s.length/e)).reduce((s,n)=>s+n):t.length}});var wi=a((fu,bi)=>{"use strict";h();bi.exports=(i,e={})=>{let t=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",s=e.width;return(i||"").split(/\r?\n/g).map(n=>n.split(/\s+/g).reduce((r,o)=>(o.length+t.length>=s||r[r.length-1].length+o.length+1<s?r[r.length-1]+=` ${o}`:r.push(`${t}${o}`),r),[t]).join(`
|
|
5
5
|
`)).join(`
|
|
6
6
|
`)}});var Si=a((mu,xi)=>{"use strict";h();xi.exports=(i,e,t)=>{t=t||e;let s=Math.min(e-t,i-Math.floor(t/2));s<0&&(s=0);let n=Math.min(s+t,e);return{startIndex:s,endIndex:n}}});var w=a((vu,qi)=>{"use strict";h();qi.exports={action:oi(),clear:fi(),style:gi(),strip:pe(),figures:Ee(),lines:yi(),wrap:wi(),entriesToDisplay:Si()}});var R=a((bu,Di)=>{"use strict";h();var _i=fe("readline"),so=w(),ro=so.action,no=fe("events"),Oi=g(),oo=Oi.beep,ho=Oi.cursor,lo=p(),Fe=class extends no{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let t=_i.createInterface({input:this.in,escapeCodeTimeout:50});_i.emitKeypressEvents(this.in,t),this.in.isTTY&&this.in.setRawMode(!0);let s=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(r,o)=>{let l=ro(o,s);l===!1?this._&&this._(r,o):typeof this[l]=="function"?this[l](o):this.bell()};this.close=()=>{this.out.write(ho.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),t.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(oo)}render(){this.onRender(lo),this.firstRender&&(this.firstRender=!1)}};Di.exports=Fe});var $i=a((xu,Ri)=>{"use strict";h();function Pi(i,e,t,s,n,r,o){try{var l=i[r](o),u=l.value}catch(d){t(d);return}l.done?e(u):Promise.resolve(u).then(s,n)}function Ti(i){return function(){var e=this,t=arguments;return new Promise(function(s,n){var r=i.apply(e,t);function o(u){Pi(r,s,n,o,l,"next",u)}function l(u){Pi(r,s,n,o,l,"throw",u)}o(void 0)})}}var me=p(),uo=R(),Mi=g(),ao=Mi.erase,ie=Mi.cursor,ge=w(),ke=ge.style,Ne=ge.clear,co=ge.lines,fo=ge.figures,He=class extends uo{constructor(e={}){super(e),this.transform=ke.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Ne("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=me.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
@@ -97,4 +97,4 @@ Filtered results for: ${this.inputValue?this.inputValue:j.gray("Enter something
|
|
|
97
97
|
`}renderOption(e,t,s){let n;return t.disabled?n=e===s?j.gray().underline(t.title):j.strikethrough().gray(t.title):n=e===s?j.cyan().underline(t.title):t.title,(t.selected?j.green(B.radioOn):B.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(t=>t.selected).map(t=>t.title).join(", ");let e=[j.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(j.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write($l.hide),super.render();let e=[vn.symbol(this.done,this.aborted),j.bold(this.msg),vn.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=j.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=gn(e,this.out.columns)}};yn.exports=Vt});var _n=a((fd,qn)=>{"use strict";h();var wn=p(),Cl=A(),{style:xn,clear:Al}=x(),{erase:El,cursor:Sn}=g(),Yt=class extends Cl{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
98
98
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
99
99
|
`),this.close()}_(e,t){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Sn.hide):this.out.write(Al(this.outputText,this.out.columns)),super.render(),this.outputText=[xn.symbol(this.done,this.aborted),wn.bold(this.msg),xn.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:wn.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(El.line+Sn.to(0)+this.outputText))}};qn.exports=Yt});var Dn=a((md,On)=>{"use strict";h();On.exports={TextPrompt:Sr(),SelectPrompt:Dr(),TogglePrompt:Rr(),DatePrompt:sn(),NumberPrompt:hn(),MultiselectPrompt:Ft(),AutocompletePrompt:mn(),AutocompleteMultiselectPrompt:bn(),ConfirmPrompt:_n()}});var Tn=a(Pn=>{"use strict";h();var b=Pn,jl=Dn(),Me=i=>i;function T(i,e,t={}){return new Promise((s,n)=>{let r=new jl[i](e),o=t.onAbort||Me,l=t.onSubmit||Me,u=t.onExit||Me;r.on("state",e.onState||Me),r.on("submit",d=>s(l(d))),r.on("exit",d=>s(u(d))),r.on("abort",d=>n(o(d)))})}b.text=i=>T("TextPrompt",i);b.password=i=>(i.style="password",b.text(i));b.invisible=i=>(i.style="invisible",b.text(i));b.number=i=>T("NumberPrompt",i);b.date=i=>T("DatePrompt",i);b.confirm=i=>T("ConfirmPrompt",i);b.list=i=>{let e=i.separator||",";return T("TextPrompt",i,{onSubmit:t=>t.split(e).map(s=>s.trim())})};b.toggle=i=>T("TogglePrompt",i);b.select=i=>T("SelectPrompt",i);b.multiselect=i=>{i.choices=[].concat(i.choices||[]);let e=t=>t.filter(s=>s.selected).map(s=>s.value);return T("MultiselectPrompt",i,{onAbort:e,onSubmit:e})};b.autocompleteMultiselect=i=>{i.choices=[].concat(i.choices||[]);let e=t=>t.filter(s=>s.selected).map(s=>s.value);return T("AutocompleteMultiselectPrompt",i,{onAbort:e,onSubmit:e})};var Fl=(i,e)=>Promise.resolve(e.filter(t=>t.title.slice(0,i.length).toLowerCase()===i.toLowerCase()));b.autocomplete=i=>(i.suggest=i.suggest||Fl,i.choices=[].concat(i.choices||[]),T("AutocompletePrompt",i))});var $n=a((bd,Rn)=>{"use strict";h();var Jt=Tn(),kl=["suggest","format","onState","validate","onRender","type"],Mn=()=>{};async function V(i=[],{onSubmit:e=Mn,onCancel:t=Mn}={}){let s={},n=V._override||{};i=[].concat(i);let r,o,l,u,d,Z,K=async(v,S,de=!1)=>{if(!(!de&&v.validate&&v.validate(S)!==!0))return v.format?await v.format(S,s):S};for(o of i)if({name:u,type:d}=o,typeof d=="function"&&(d=await d(r,{...s},o),o.type=d),!!d){for(let v in o){if(kl.includes(v))continue;let S=o[v];o[v]=typeof S=="function"?await S(r,{...s},Z):S}if(Z=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:u,type:d}=o,Jt[d]===void 0)throw new Error(`prompt type (${d}) is not defined`);if(n[o.name]!==void 0&&(r=await K(o,n[o.name]),r!==void 0)){s[u]=r;continue}try{r=V._injected?Nl(V._injected,o.initial):await Jt[d](o),s[u]=r=await K(o,r,!0),l=await e(o,r,s)}catch{l=!await t(o,s)}if(l)return s}return s}function Nl(i,e){let t=i.shift();if(t instanceof Error)throw t;return t===void 0?e:t}function Hl(i){V._injected=(V._injected||[]).concat(i)}function Vl(i){V._override=Object.assign({},i)}Rn.exports=Object.assign(V,{prompt:V,prompts:Jt,inject:Hl,override:Vl})});var Jl=a((xd,In)=>{"use strict";h();function Yl(i){i=(Array.isArray(i)?i:i.split(".")).map(Number);let e=0,t=process.versions.node.split(".").map(Number);for(;e<i.length;e++){if(t[e]>i[e])return!1;if(i[e]>t[e])return!0}return!1}In.exports=Yl("8.6.0")?ir():$n()});h();var Cn="refs/remotes/",Ll="origin/",_d=async i=>{try{let{stdout:e}=await Qt("git",["symbolic-ref",`${Cn}${Ll}HEAD`]);return e.replace(Cn,"")}catch(e){return i(e),null}};h();var An={updatedDate:"google.protobuf.Timestamp",createdDate:"google.protobuf.Timestamp"},Gl={},Ul={},zl={},Bl={deployment:"_deployment"};var Wl={},Zl={deployment:"_deployment"};function Lt(i){var e={"www._base_domain_":[{srcPath:"/_api/editor-deployments",destPath:""}],"editor._base_domain_":[{srcPath:"/_api/editor-deployments",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/editor-deployments",destPath:""}],"create.editorx":[{srcPath:"/_api/editor-deployments",destPath:""}]};return zt(Object.assign(i,{domainToMappings:e}))}function En(i){var e=Y(zl,{}),t=e.toJSON,s=e.fromJSON,n=Y(Bl,{_deployment:An}).fromJSON;function r(o){var l=o.host,u=t(i),d={entityFqdn:"wix.document_management.editor_deployments.v1.deployment",method:"GET",methodFqn:"wix.editor.deployments.v1.DeploymentsService.GetDeployment",url:Lt({protoPath:"/v1/deployments/{deploymentId}",data:u,host:l}),params:Re(u),transformResponse:n};return d}return r.fromReq=s,r.__isAmbassador=!0,r}function Rd(i){var e=Y(Wl,{}),t=e.toJSON,s=e.fromJSON,n=Y(Zl,{_deployment:An}).fromJSON;function r(o){var l=o.host,u=t(i),d={entityFqdn:"wix.document_management.editor_deployments.v1.deployment",method:"POST",methodFqn:"wix.editor.deployments.v1.DeploymentsService.PublishDeployment",url:Lt({protoPath:"/v1/deployments/{deploymentId}",data:u,host:l}),data:u,transformResponse:n};return d}return r.fromReq=s,r.__isAmbassador=!0,r}function $d(i){var e=Y(Gl,{}),t=e.toJSON,s=e.fromJSON,n=Y(Ul,{}).fromJSON;function r(o){var l=o.host,u=t(i),d={entityFqdn:"wix.document_management.editor_deployments.v1.deployment",method:"GET",methodFqn:"wix.editor.deployments.v1.DeploymentsService.GetDeploymentPipelineDescription",url:Lt({protoPath:"/v1/deployments/pipeline/{deploymentId}",data:u,host:l}),params:Re(u),transformResponse:n};return d}return r.fromReq=s,r.__isAmbassador=!0,r}h();var W=jn(Fn(),1);var Jd=(0,W.variant)({local:{},remote:(0,W.fields)()});async function Ld(i){let e=await(0,W.match)(i.source,{local:async()=>({deploymentData:{revision:i.model.revision,content:await Xt(i.model.projectFolder)}}),remote:({branch:t})=>({gitBranch:t})});try{let{data:t}=await Ie({type:"code",authState:i.authState},Bt({deploymentOperation:i.operation,appType:Wt.VELO_ISOLATED,...e,...i.operation===Zt.RC&&{rcDeploymentParams:{rcLabel:Kt.WIX_CLI}}}),{retries:3,maxTimeout:3e3}),s=ti.safeParse(t);if(!s.success)throw new X({code:Q.InvalidDeployAppResponse(),info:{data:t}});return s.data.deploymentInfo}catch(t){throw new X({code:Q.FailedToDeploySite(),cause:t})}}async function Gd({deploymentId:i,authState:e}){return await $e(async()=>{try{let{data:s}=await Ie({type:"editor",authState:e},En({deploymentId:i}),{retries:2}),n=ii.safeParse(s);if(!n.success)throw new X({code:Q.InvalidGetDeploymentResponse(),info:{data:s}});let r=n.data.deployment.deploymentPipelinesStatus;return r===ei.IN_PROGRESS?!1:$e.resolveWith(r)}catch(s){throw new X({code:Q.FailedToGetDeploymentStatus(),cause:s})}},{interval:2e3,timeout:12e4})}export{Jl as a,_d as b,Rd as c,$d as d,Jd as e,Ld as f,Gd as g};
|
|
100
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-RA7SC7ZN.js.map
|