@ynput/ayon-frontend-shared 0.3.34 → 0.3.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/_virtual/index.cjs12.js +1 -1
  2. package/dist/_virtual/index.cjs13.js +1 -1
  3. package/dist/_virtual/index.cjs15.js +1 -1
  4. package/dist/_virtual/index.cjs18.js +1 -1
  5. package/dist/_virtual/index.cjs19.js +1 -1
  6. package/dist/_virtual/index.cjs4.js +1 -1
  7. package/dist/_virtual/index.cjs6.js +1 -1
  8. package/dist/_virtual/index.cjs9.js +1 -1
  9. package/dist/_virtual/index.es12.js +5 -2
  10. package/dist/_virtual/index.es12.js.map +1 -1
  11. package/dist/_virtual/index.es13.js +5 -2
  12. package/dist/_virtual/index.es13.js.map +1 -1
  13. package/dist/_virtual/index.es14.js +2 -2
  14. package/dist/_virtual/index.es15.js +2 -2
  15. package/dist/_virtual/index.es16.js +2 -2
  16. package/dist/_virtual/index.es17.js +2 -2
  17. package/dist/_virtual/index.es18.js +2 -2
  18. package/dist/_virtual/index.es19.js +2 -2
  19. package/dist/_virtual/index.es4.js +2 -5
  20. package/dist/_virtual/index.es4.js.map +1 -1
  21. package/dist/_virtual/index.es6.js +2 -2
  22. package/dist/_virtual/index.es7.js +2 -2
  23. package/dist/_virtual/index.es9.js +2 -5
  24. package/dist/_virtual/index.es9.js.map +1 -1
  25. package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
  26. package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js.map +1 -1
  27. package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
  28. package/dist/node_modules/parse-numeric-range/index.cjs.js +1 -1
  29. package/dist/node_modules/parse-numeric-range/index.es.js +1 -1
  30. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  31. package/dist/node_modules/remove-accents/index.cjs.js.map +1 -1
  32. package/dist/node_modules/remove-accents/index.es.js +1 -1
  33. package/dist/shared/node_modules/@module-federation/error-codes/dist/index.cjs.js +1 -1
  34. package/dist/shared/node_modules/@module-federation/error-codes/dist/index.es.js +1 -1
  35. package/dist/shared/node_modules/@module-federation/runtime/dist/index.cjs.js +1 -1
  36. package/dist/shared/node_modules/@module-federation/runtime/dist/index.es.js +1 -1
  37. package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.cjs.js +1 -1
  38. package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.es.js +1 -1
  39. package/dist/shared/node_modules/@module-federation/runtime-core/dist/module/index.cjs.js +1 -1
  40. package/dist/shared/node_modules/@module-federation/runtime-core/dist/module/index.cjs.js.map +1 -1
  41. package/dist/shared/node_modules/@module-federation/runtime-core/dist/module/index.es.js +1 -1
  42. package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.cjs.js +1 -1
  43. package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.es.js +1 -1
  44. package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.cjs.js +1 -1
  45. package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.es.js +1 -1
  46. package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.cjs.js +1 -1
  47. package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.es.js +1 -1
  48. package/dist/shared/node_modules/@module-federation/runtime-core/dist/type/index.cjs.js +1 -1
  49. package/dist/shared/node_modules/@module-federation/runtime-core/dist/type/index.es.js +1 -1
  50. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.cjs.js +1 -1
  51. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.es.js +1 -1
  52. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/index.cjs.js +1 -1
  53. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/index.cjs.js.map +1 -1
  54. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/index.es.js +1 -1
  55. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs.js +1 -1
  56. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs.js.map +1 -1
  57. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.es.js +1 -1
  58. package/dist/shared/node_modules/@module-federation/sdk/dist/index.cjs.js +1 -1
  59. package/dist/shared/node_modules/@module-federation/sdk/dist/index.es.js +1 -1
  60. package/dist/shared/node_modules/prop-types/index.cjs.js +1 -1
  61. package/dist/shared/node_modules/prop-types/index.es.js +1 -1
  62. package/dist/shared/node_modules/react-is/index.cjs.js +1 -1
  63. package/dist/shared/node_modules/react-is/index.es.js +1 -1
  64. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.cjs.js +1 -1
  65. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.cjs.js.map +1 -1
  66. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.es.js +1 -1
  67. package/dist/shared/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
  68. package/dist/shared/node_modules/react-transition-group/esm/Transition.cjs.js.map +1 -1
  69. package/dist/shared/node_modules/react-transition-group/esm/Transition.es.js +1 -1
  70. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js +1 -1
  71. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js.map +1 -1
  72. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.es.js +1 -1
  73. package/dist/shared/src/containers/Feed/Feed.cjs.js +1 -1
  74. package/dist/shared/src/containers/Feed/Feed.cjs.js.map +1 -1
  75. package/dist/shared/src/containers/Feed/Feed.es.js +7 -10
  76. package/dist/shared/src/containers/Feed/Feed.es.js.map +1 -1
  77. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js +1 -1
  78. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js.map +1 -1
  79. package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.cjs.js +1 -1
  80. package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.cjs.js.map +1 -1
  81. package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.es.js +9 -5
  82. package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.es.js.map +1 -1
  83. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js +2 -2
  84. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js.map +1 -1
  85. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js +207 -233
  86. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js.map +1 -1
  87. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.cjs.js +5 -10
  88. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.cjs.js.map +1 -1
  89. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.es.js +12 -17
  90. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.es.js.map +1 -1
  91. package/dist/shared/src/containers/Feed/components/CommentInput/VersionReviewPill.cjs.js +1 -1
  92. package/dist/shared/src/containers/Feed/components/CommentInput/VersionReviewPill.cjs.js.map +1 -1
  93. package/dist/shared/src/containers/Feed/components/CommentInput/VersionReviewPill.es.js +16 -22
  94. package/dist/shared/src/containers/Feed/components/CommentInput/VersionReviewPill.es.js.map +1 -1
  95. package/dist/shared/src/containers/Feed/components/CommentInput/types.cjs.js +2 -0
  96. package/dist/shared/src/containers/Feed/components/CommentInput/types.cjs.js.map +1 -0
  97. package/dist/shared/src/containers/Feed/components/CommentInput/types.es.js +18 -0
  98. package/dist/shared/src/containers/Feed/components/CommentInput/types.es.js.map +1 -0
  99. package/dist/shared/src/containers/Feed/hooks/useCommentMutations.cjs.js.map +1 -1
  100. package/dist/shared/src/containers/Feed/hooks/useCommentMutations.es.js.map +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js +1 -1
  102. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js.map +1 -1
  103. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js +67 -64
  104. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js.map +1 -1
  105. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -1
  106. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
  107. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +13 -11
  108. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js.map +1 -1
  109. package/dist/types/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.d.ts +1 -1
  110. package/dist/types/containers/Feed/components/CommentInput/CommentInput.d.ts +1 -16
  111. package/dist/types/containers/Feed/components/CommentInput/VersionReviewPill.d.ts +1 -2
  112. package/dist/types/containers/Feed/components/CommentInput/index.d.ts +2 -0
  113. package/dist/types/containers/Feed/components/CommentInput/types.d.ts +16 -0
  114. package/dist/types/containers/Feed/hooks/useCommentMutations.d.ts +1 -1
  115. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/@module-federation/runtime-core/dist/module/index.cjs"],"sourcesContent":["const require_logger = require('../utils/logger.cjs');\nconst require_tool = require('../utils/tool.cjs');\nconst require_load = require('../utils/load.cjs');\nconst require_context = require('../utils/context.cjs');\nrequire('../utils/index.cjs');\nlet _module_federation_sdk = require(\"@module-federation/sdk\");\nlet _module_federation_error_codes = require(\"@module-federation/error-codes\");\n\n//#region src/module/index.ts\nfunction createRemoteEntryInitOptions(remoteInfo, hostShareScopeMap, rawInitScope) {\n\tconst localShareScopeMap = hostShareScopeMap;\n\tconst shareScopeKeys = Array.isArray(remoteInfo.shareScope) ? remoteInfo.shareScope : [remoteInfo.shareScope];\n\tif (!shareScopeKeys.length) shareScopeKeys.push(\"default\");\n\tshareScopeKeys.forEach((shareScopeKey) => {\n\t\tif (!localShareScopeMap[shareScopeKey]) localShareScopeMap[shareScopeKey] = {};\n\t});\n\tconst remoteEntryInitOptions = {\n\t\tversion: remoteInfo.version || \"\",\n\t\tshareScopeKeys: Array.isArray(remoteInfo.shareScope) ? shareScopeKeys : remoteInfo.shareScope || \"default\"\n\t};\n\tObject.defineProperty(remoteEntryInitOptions, \"shareScopeMap\", {\n\t\tvalue: localShareScopeMap,\n\t\tenumerable: false\n\t});\n\treturn {\n\t\tremoteEntryInitOptions,\n\t\tshareScope: localShareScopeMap[shareScopeKeys[0]],\n\t\tinitScope: rawInitScope ?? []\n\t};\n}\nvar Module = class {\n\tconstructor({ remoteInfo, host }) {\n\t\tthis.inited = false;\n\t\tthis.initing = false;\n\t\tthis.lib = void 0;\n\t\tthis.remoteInfo = remoteInfo;\n\t\tthis.host = host;\n\t}\n\tasync getEntry() {\n\t\tif (this.remoteEntryExports) return this.remoteEntryExports;\n\t\tconst remoteEntryExports = await require_load.getRemoteEntry({\n\t\t\torigin: this.host,\n\t\t\tremoteInfo: this.remoteInfo,\n\t\t\tremoteEntryExports: this.remoteEntryExports\n\t\t});\n\t\trequire_logger.assert(remoteEntryExports, `remoteEntryExports is undefined \\n ${(0, _module_federation_sdk.safeToString)(this.remoteInfo)}`);\n\t\tthis.remoteEntryExports = remoteEntryExports;\n\t\treturn this.remoteEntryExports;\n\t}\n\tasync init(id, remoteSnapshot, rawInitScope) {\n\t\tconst remoteEntryExports = await this.getEntry();\n\t\tif (this.inited) return remoteEntryExports;\n\t\tif (this.initPromise) {\n\t\t\tawait this.initPromise;\n\t\t\treturn remoteEntryExports;\n\t\t}\n\t\tthis.initing = true;\n\t\tthis.initPromise = (async () => {\n\t\t\tconst { remoteEntryInitOptions, shareScope, initScope } = createRemoteEntryInitOptions(this.remoteInfo, this.host.shareScopeMap, rawInitScope);\n\t\t\tconst initContainerOptions = await this.host.hooks.lifecycle.beforeInitContainer.emit({\n\t\t\t\tshareScope,\n\t\t\t\tremoteEntryInitOptions,\n\t\t\t\tinitScope,\n\t\t\t\tremoteInfo: this.remoteInfo,\n\t\t\t\torigin: this.host\n\t\t\t});\n\t\t\tif (typeof remoteEntryExports?.init === \"undefined\") require_logger.error(_module_federation_error_codes.RUNTIME_002, _module_federation_error_codes.runtimeDescMap, {\n\t\t\t\thostName: this.host.name,\n\t\t\t\tremoteName: this.remoteInfo.name,\n\t\t\t\tremoteEntryUrl: this.remoteInfo.entry,\n\t\t\t\tremoteEntryKey: this.remoteInfo.entryGlobalName\n\t\t\t}, void 0, require_context.optionsToMFContext(this.host.options));\n\t\t\tawait remoteEntryExports.init(initContainerOptions.shareScope, initContainerOptions.initScope, initContainerOptions.remoteEntryInitOptions);\n\t\t\tawait this.host.hooks.lifecycle.initContainer.emit({\n\t\t\t\t...initContainerOptions,\n\t\t\t\tid,\n\t\t\t\tremoteSnapshot,\n\t\t\t\tremoteEntryExports\n\t\t\t});\n\t\t\tthis.inited = true;\n\t\t})();\n\t\ttry {\n\t\t\tawait this.initPromise;\n\t\t} finally {\n\t\t\tthis.initing = false;\n\t\t\tthis.initPromise = void 0;\n\t\t}\n\t\treturn remoteEntryExports;\n\t}\n\tasync get(id, expose, options, remoteSnapshot) {\n\t\tconst { loadFactory = true } = options || { loadFactory: true };\n\t\tconst remoteEntryExports = await this.init(id, remoteSnapshot);\n\t\tthis.lib = remoteEntryExports;\n\t\tlet moduleFactory;\n\t\tmoduleFactory = await this.host.loaderHook.lifecycle.getModuleFactory.emit({\n\t\t\tremoteEntryExports,\n\t\t\texpose,\n\t\t\tmoduleInfo: this.remoteInfo\n\t\t});\n\t\tif (!moduleFactory) moduleFactory = await remoteEntryExports.get(expose);\n\t\trequire_logger.assert(moduleFactory, `${require_tool.getFMId(this.remoteInfo)} remote don't export ${expose}.`);\n\t\tconst symbolName = require_tool.processModuleAlias(this.remoteInfo.name, expose);\n\t\tconst wrapModuleFactory = this.wraperFactory(moduleFactory, symbolName);\n\t\tif (!loadFactory) return wrapModuleFactory;\n\t\treturn await wrapModuleFactory();\n\t}\n\twraperFactory(moduleFactory, id) {\n\t\tfunction defineModuleId(res, id) {\n\t\t\tif (res && typeof res === \"object\" && Object.isExtensible(res) && !Object.getOwnPropertyDescriptor(res, Symbol.for(\"mf_module_id\"))) Object.defineProperty(res, Symbol.for(\"mf_module_id\"), {\n\t\t\t\tvalue: id,\n\t\t\t\tenumerable: false\n\t\t\t});\n\t\t}\n\t\tif (moduleFactory instanceof Promise) return async () => {\n\t\t\tconst res = await moduleFactory();\n\t\t\tdefineModuleId(res, id);\n\t\t\treturn res;\n\t\t};\n\t\telse return () => {\n\t\t\tconst res = moduleFactory();\n\t\t\tdefineModuleId(res, id);\n\t\t\treturn res;\n\t\t};\n\t}\n};\n\n//#endregion\nexports.Module = Module;\n//# sourceMappingURL=index.cjs.map"],"names":["require_logger","require$$0","require_tool","require$$1","require_load","require$$2","require_context","require$$3","require$$4","_module_federation_sdk","require$$5","_module_federation_error_codes","require$$6","createRemoteEntryInitOptions","remoteInfo","hostShareScopeMap","rawInitScope","localShareScopeMap","shareScopeKeys","shareScopeKey","remoteEntryInitOptions","Module","host","remoteEntryExports","id","remoteSnapshot","shareScope","initScope","initContainerOptions","expose","options","loadFactory","moduleFactory","symbolName","wrapModuleFactory","defineModuleId","res","module"],"mappings":"4cAAA,MAAMA,EAAiBC,EAAAA,UAAA,EACjBC,EAAeC,EAAAA,UAAA,EACfC,EAAeC,EAAAA,UAAA,EACfC,EAAkBC,EAAAA,UAAA,EACxBC,YAAA,EACA,IAAIC,EAAyBC,EAAAA,UAAA,EACzBC,EAAiCC,EAAAA,UAAA,EAGrC,SAASC,EAA6BC,EAAYC,EAAmBC,EAAc,CAClF,MAAMC,EAAqBF,EACrBG,EAAiB,MAAM,QAAQJ,EAAW,UAAU,EAAIA,EAAW,WAAa,CAACA,EAAW,UAAU,EACvGI,EAAe,QAAQA,EAAe,KAAK,SAAS,EACzDA,EAAe,QAASC,GAAkB,CACp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BY,GAAO,OAAOA,GAAQ,UAAY,OAAO,aAAaA,CAAG,GAAK,CAAC,OAAO,yBAAyBA,EAAK,OAAO,IAAI,cAAc,CAAC,GAAG,OAAO,eAAeA,EAAK,OAAO,IAAI,cAAc,EAAG,CAC3L,MAAOZ,EACP,WAAY,EAChB,CAAI,CACJ,CACE,OAAIQ,aAAyB,QAAgB,SAAY,CACxD,MAAMI,EAAM,MAAMJ,EAAa,EAC/B,OAAAG,EAAeC,EAAKZ,CAAE,EACfY,CACV,EACc,IAAM,CACjB,MAAMA,EAAMJ,EAAa,EACzB,OAAAG,EAAeC,EAAKZ,CAAE,EACfY,CACV,CACA,GAIAC,OAAAA,EAAAA,UAAA,OAAiBhB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/@module-federation/runtime-core/dist/module/index.cjs"],"sourcesContent":["const require_logger = require('../utils/logger.cjs');\nconst require_tool = require('../utils/tool.cjs');\nconst require_load = require('../utils/load.cjs');\nconst require_context = require('../utils/context.cjs');\nrequire('../utils/index.cjs');\nlet _module_federation_sdk = require(\"@module-federation/sdk\");\nlet _module_federation_error_codes = require(\"@module-federation/error-codes\");\n\n//#region src/module/index.ts\nfunction createRemoteEntryInitOptions(remoteInfo, hostShareScopeMap, rawInitScope) {\n\tconst localShareScopeMap = hostShareScopeMap;\n\tconst shareScopeKeys = Array.isArray(remoteInfo.shareScope) ? remoteInfo.shareScope : [remoteInfo.shareScope];\n\tif (!shareScopeKeys.length) shareScopeKeys.push(\"default\");\n\tshareScopeKeys.forEach((shareScopeKey) => {\n\t\tif (!localShareScopeMap[shareScopeKey]) localShareScopeMap[shareScopeKey] = {};\n\t});\n\tconst remoteEntryInitOptions = {\n\t\tversion: remoteInfo.version || \"\",\n\t\tshareScopeKeys: Array.isArray(remoteInfo.shareScope) ? shareScopeKeys : remoteInfo.shareScope || \"default\"\n\t};\n\tObject.defineProperty(remoteEntryInitOptions, \"shareScopeMap\", {\n\t\tvalue: localShareScopeMap,\n\t\tenumerable: false\n\t});\n\treturn {\n\t\tremoteEntryInitOptions,\n\t\tshareScope: localShareScopeMap[shareScopeKeys[0]],\n\t\tinitScope: rawInitScope ?? []\n\t};\n}\nvar Module = class {\n\tconstructor({ remoteInfo, host }) {\n\t\tthis.inited = false;\n\t\tthis.initing = false;\n\t\tthis.lib = void 0;\n\t\tthis.remoteInfo = remoteInfo;\n\t\tthis.host = host;\n\t}\n\tasync getEntry() {\n\t\tif (this.remoteEntryExports) return this.remoteEntryExports;\n\t\tconst remoteEntryExports = await require_load.getRemoteEntry({\n\t\t\torigin: this.host,\n\t\t\tremoteInfo: this.remoteInfo,\n\t\t\tremoteEntryExports: this.remoteEntryExports\n\t\t});\n\t\trequire_logger.assert(remoteEntryExports, `remoteEntryExports is undefined \\n ${(0, _module_federation_sdk.safeToString)(this.remoteInfo)}`);\n\t\tthis.remoteEntryExports = remoteEntryExports;\n\t\treturn this.remoteEntryExports;\n\t}\n\tasync init(id, remoteSnapshot, rawInitScope) {\n\t\tconst remoteEntryExports = await this.getEntry();\n\t\tif (this.inited) return remoteEntryExports;\n\t\tif (this.initPromise) {\n\t\t\tawait this.initPromise;\n\t\t\treturn remoteEntryExports;\n\t\t}\n\t\tthis.initing = true;\n\t\tthis.initPromise = (async () => {\n\t\t\tconst { remoteEntryInitOptions, shareScope, initScope } = createRemoteEntryInitOptions(this.remoteInfo, this.host.shareScopeMap, rawInitScope);\n\t\t\tconst initContainerOptions = await this.host.hooks.lifecycle.beforeInitContainer.emit({\n\t\t\t\tshareScope,\n\t\t\t\tremoteEntryInitOptions,\n\t\t\t\tinitScope,\n\t\t\t\tremoteInfo: this.remoteInfo,\n\t\t\t\torigin: this.host\n\t\t\t});\n\t\t\tif (typeof remoteEntryExports?.init === \"undefined\") require_logger.error(_module_federation_error_codes.RUNTIME_002, _module_federation_error_codes.runtimeDescMap, {\n\t\t\t\thostName: this.host.name,\n\t\t\t\tremoteName: this.remoteInfo.name,\n\t\t\t\tremoteEntryUrl: this.remoteInfo.entry,\n\t\t\t\tremoteEntryKey: this.remoteInfo.entryGlobalName\n\t\t\t}, void 0, require_context.optionsToMFContext(this.host.options));\n\t\t\tawait remoteEntryExports.init(initContainerOptions.shareScope, initContainerOptions.initScope, initContainerOptions.remoteEntryInitOptions);\n\t\t\tawait this.host.hooks.lifecycle.initContainer.emit({\n\t\t\t\t...initContainerOptions,\n\t\t\t\tid,\n\t\t\t\tremoteSnapshot,\n\t\t\t\tremoteEntryExports\n\t\t\t});\n\t\t\tthis.inited = true;\n\t\t})();\n\t\ttry {\n\t\t\tawait this.initPromise;\n\t\t} finally {\n\t\t\tthis.initing = false;\n\t\t\tthis.initPromise = void 0;\n\t\t}\n\t\treturn remoteEntryExports;\n\t}\n\tasync get(id, expose, options, remoteSnapshot) {\n\t\tconst { loadFactory = true } = options || { loadFactory: true };\n\t\tconst remoteEntryExports = await this.init(id, remoteSnapshot);\n\t\tthis.lib = remoteEntryExports;\n\t\tlet moduleFactory;\n\t\tmoduleFactory = await this.host.loaderHook.lifecycle.getModuleFactory.emit({\n\t\t\tremoteEntryExports,\n\t\t\texpose,\n\t\t\tmoduleInfo: this.remoteInfo\n\t\t});\n\t\tif (!moduleFactory) moduleFactory = await remoteEntryExports.get(expose);\n\t\trequire_logger.assert(moduleFactory, `${require_tool.getFMId(this.remoteInfo)} remote don't export ${expose}.`);\n\t\tconst symbolName = require_tool.processModuleAlias(this.remoteInfo.name, expose);\n\t\tconst wrapModuleFactory = this.wraperFactory(moduleFactory, symbolName);\n\t\tif (!loadFactory) return wrapModuleFactory;\n\t\treturn await wrapModuleFactory();\n\t}\n\twraperFactory(moduleFactory, id) {\n\t\tfunction defineModuleId(res, id) {\n\t\t\tif (res && typeof res === \"object\" && Object.isExtensible(res) && !Object.getOwnPropertyDescriptor(res, Symbol.for(\"mf_module_id\"))) Object.defineProperty(res, Symbol.for(\"mf_module_id\"), {\n\t\t\t\tvalue: id,\n\t\t\t\tenumerable: false\n\t\t\t});\n\t\t}\n\t\tif (moduleFactory instanceof Promise) return async () => {\n\t\t\tconst res = await moduleFactory();\n\t\t\tdefineModuleId(res, id);\n\t\t\treturn res;\n\t\t};\n\t\telse return () => {\n\t\t\tconst res = moduleFactory();\n\t\t\tdefineModuleId(res, id);\n\t\t\treturn res;\n\t\t};\n\t}\n};\n\n//#endregion\nexports.Module = Module;\n//# sourceMappingURL=index.cjs.map"],"names":["require_logger","require$$0","require_tool","require$$1","require_load","require$$2","require_context","require$$3","require$$4","_module_federation_sdk","require$$5","_module_federation_error_codes","require$$6","createRemoteEntryInitOptions","remoteInfo","hostShareScopeMap","rawInitScope","localShareScopeMap","shareScopeKeys","shareScopeKey","remoteEntryInitOptions","Module","host","remoteEntryExports","id","remoteSnapshot","shareScope","initScope","initContainerOptions","expose","options","loadFactory","moduleFactory","symbolName","wrapModuleFactory","defineModuleId","res","module"],"mappings":"2cAAA,MAAMA,EAAiBC,EAAAA,UAAA,EACjBC,EAAeC,EAAAA,UAAA,EACfC,EAAeC,EAAAA,UAAA,EACfC,EAAkBC,EAAAA,UAAA,EACxBC,YAAA,EACA,IAAIC,EAAyBC,EAAAA,UAAA,EACzBC,EAAiCC,EAAAA,UAAA,EAGrC,SAASC,EAA6BC,EAAYC,EAAmBC,EAAc,CAClF,MAAMC,EAAqBF,EACrBG,EAAiB,MAAM,QAAQJ,EAAW,UAAU,EAAIA,EAAW,WAAa,CAACA,EAAW,UAAU,EACvGI,EAAe,QAAQA,EAAe,KAAK,SAAS,EACzDA,EAAe,QAASC,GAAkB,CACpCF,EAAmBE,CAAa,IAAGF,EAAmBE,CAAa,EAAI,CAAA,EAC9E,CAAE,EACD,MAAMC,EAAyB,CAC9B,QAASN,EAAW,SAAW,GAC/B,eAAgB,MAAM,QAAQA,EAAW,UAAU,EAAII,EAAiBJ,EAAW,YAAc,WAElG,cAAO,eAAeM,EAAwB,gBAAiB,CAC9D,MAAOH,EACP,WAAY,EACd,CAAE,EACM,CACN,uBAAAG,EACA,WAAYH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AAAG,EAAeC,EAAKZ,CAAE,EACfY,CACV,EACc,IAAM,CACjB,MAAMA,EAAMJ,EAAa,EACzB,OAAAG,EAAeC,EAAKZ,CAAE,EACfY,CACV,CACA,GAIAC,OAAAA,EAAAA,UAAA,OAAiBhB","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as h } from "../../../../../../_virtual/index.es12.js";
1
+ import { __exports as h } from "../../../../../../_virtual/index.es9.js";
2
2
  import { __require as q } from "../utils/logger.es.js";
3
3
  import { __require as g } from "../utils/tool.es.js";
4
4
  import { __require as S } from "../utils/load.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../../../../_virtual/index.cjs17.js"),R=require("../../utils/logger.cjs.js"),x=require("../../utils/tool.cjs.js"),b=require("../../utils/index.cjs.js"),v=require("../../utils/preload.cjs.js"),E=require("../../../../sdk/dist/index.cjs.js"),N=require("../../../../error-codes/dist/index.cjs.js");var d;function P(){if(d)return n.__exports;d=1;const f=R.__require(),i=x.__require();b.__require();const m=v.__require();let u=E.__require(),_=N.__require();function c(e,r){const o=i.getRemoteEntryInfoFromSnapshot(r);o.url||f.error(_.RUNTIME_011,_.runtimeDescMap,{remoteName:e.name});let t=(0,u.getResourceUrl)(r,o.url);!u.isBrowserEnvValue&&!t.startsWith("http")&&(t=`https:${t}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=t,e.version=r.version,e.buildVersion=r.buildVersion}function q(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:r,pkgNameOrAlias:o,expose:t,origin:s,remoteInfo:a,id:g}=e;if(!i.isRemoteInfoWithEntry(r)||!i.isPureRemoteEntry(r)){const{remoteSnapshot:l,globalSnapshot:y}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r,id:g});c(a,l);const h={remote:r,preloadConfig:{nameOrAlias:o,exposes:[t],resourceCategory:"sync",share:!1,depsRemote:!1}},p=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:h,remoteInfo:a,remote:r,remoteSnapshot:l,globalSnapshot:y});return p&&m.preloadAssets(a,s,p,!1),{...e,remoteSnapshot:l}}return e}}}return n.__exports.assignRemoteInfo=c,n.__exports.snapshotPlugin=q,n.__exports}exports.__require=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../../../../_virtual/index.cjs15.js"),R=require("../../utils/logger.cjs.js"),x=require("../../utils/tool.cjs.js"),b=require("../../utils/index.cjs.js"),v=require("../../utils/preload.cjs.js"),E=require("../../../../sdk/dist/index.cjs.js"),N=require("../../../../error-codes/dist/index.cjs.js");var d;function P(){if(d)return n.__exports;d=1;const f=R.__require(),i=x.__require();b.__require();const m=v.__require();let u=E.__require(),_=N.__require();function c(e,r){const o=i.getRemoteEntryInfoFromSnapshot(r);o.url||f.error(_.RUNTIME_011,_.runtimeDescMap,{remoteName:e.name});let t=(0,u.getResourceUrl)(r,o.url);!u.isBrowserEnvValue&&!t.startsWith("http")&&(t=`https:${t}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=t,e.version=r.version,e.buildVersion=r.buildVersion}function q(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:r,pkgNameOrAlias:o,expose:t,origin:s,remoteInfo:a,id:g}=e;if(!i.isRemoteInfoWithEntry(r)||!i.isPureRemoteEntry(r)){const{remoteSnapshot:l,globalSnapshot:y}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r,id:g});c(a,l);const h={remote:r,preloadConfig:{nameOrAlias:o,exposes:[t],resourceCategory:"sync",share:!1,depsRemote:!1}},p=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:h,remoteInfo:a,remote:r,remoteSnapshot:l,globalSnapshot:y});return p&&m.preloadAssets(a,s,p,!1),{...e,remoteSnapshot:l}}return e}}}return n.__exports.assignRemoteInfo=c,n.__exports.snapshotPlugin=q,n.__exports}exports.__require=P;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as i } from "../../../../../../../_virtual/index.es17.js";
1
+ import { __exports as i } from "../../../../../../../_virtual/index.es15.js";
2
2
  import { __require as R } from "../../utils/logger.es.js";
3
3
  import { __require as E } from "../../utils/tool.es.js";
4
4
  import { __require as b } from "../../utils/index.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../../../../../../_virtual/index.cjs19.js"),U=require("../utils/logger.cjs.js"),K=require("../global.cjs.js"),V=require("../constant.cjs.js"),B=require("../utils/share.cjs.js"),z=require("../utils/manifest.cjs.js"),Y=require("../utils/load.cjs.js"),J=require("../utils/context.cjs.js"),Q=require("../utils/index.cjs.js"),X=require("../utils/preload.cjs.js"),Z=require("../module/index.cjs.js"),ee=require("../utils/hooks/syncHook.cjs.js"),oe=require("../utils/hooks/asyncHook.cjs.js"),te=require("../utils/hooks/syncWaterfallHook.cjs.js"),re=require("../utils/hooks/asyncWaterfallHooks.cjs.js"),se=require("../utils/hooks/pluginSystem.cjs.js"),ne=require("../utils/hooks/index.cjs.js"),ie=require("../plugins/snapshot/SnapshotHandler.cjs.js"),ae=require("../../../sdk/dist/index.cjs.js"),le=require("../../../error-codes/dist/index.cjs.js");var N;function ce(){if(N)return x.__exports;N=1;const I=U.__require(),c=K.__require(),T=V.__require(),P=B.__require(),W=z.__require(),b=Y.__require(),C=J.__require();Q.__require();const M=X.__require(),v=Z.__require(),G=ee.__require(),p=oe.__require(),H=te.__require(),L=re.__require(),F=se.__require();ne.__require();const D=ie.__require();let k=ae.__require(),O=le.__require();var $=class{constructor(e){this.hooks=new F.PluginSystem({beforeRegisterRemote:new H.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new H.SyncWaterfallHook("registerRemote"),beforeRequest:new L.AsyncWaterfallHook("beforeRequest"),onLoad:new p.AsyncHook("onLoad"),handlePreloadModule:new G.SyncHook("handlePreloadModule"),errorLoadRemote:new p.AsyncHook("errorLoadRemote"),beforePreloadRemote:new p.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new p.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new p.AsyncHook,loadEntry:new p.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,o){return(o.remotes||[]).reduce((i,r)=>(this.registerRemote(r,i,{force:!1}),i),e.remotes)}setIdToRemoteMap(e,o){const{remote:i,expose:r}=o,{name:s,alias:t}=i;if(this.idToRemoteMap[e]={name:i.name,expose:r},t&&e.startsWith(s)){const n=e.replace(s,t);this.idToRemoteMap[n]={name:i.name,expose:r};return}if(t&&e.startsWith(t)){const n=e.replace(t,s);this.idToRemoteMap[n]={name:i.name,expose:r}}}async loadRemote(e,o){const{host:i}=this;try{const{loadFactory:r=!0}=o||{loadFactory:!0},{module:s,moduleOptions:t,remoteMatchInfo:n}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:l,expose:f,id:u,remoteSnapshot:a}=n,m=await s.get(u,f,o,a),_=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:d,expose:f,exposeModule:r?m:void 0,exposeModuleFactory:r?void 0:m,remote:l,options:t,moduleInstance:s,origin:i});return this.setIdToRemoteMap(e,n),typeof _=="function"?_:m}catch(r){const{from:s="runtime"}=o||{from:"runtime"},t=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:s,lifecycle:"onLoad",origin:i});if(!t)throw r;return t}}async preloadRemote(e){const{host:o}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:o.options,origin:o});const i=M.formatPreloadArgs(o.options.remotes,e);await Promise.all(i.map(async r=>{const{remote:s}=r,t=b.getRemoteInfo(s),{globalSnapshot:n,remoteSnapshot:d}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:s}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:r,remote:s,remoteInfo:t,globalSnapshot:n,remoteSnapshot:d});l&&M.preloadAssets(t,o,l)}))}registerRemotes(e,o){const{host:i}=this;e.forEach(r=>{this.registerRemote(r,i.options.remotes,{force:o?.force})})}async getRemoteModuleAndOptions(e){const{host:o}=this,{id:i}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:i,options:o.options,origin:o})}catch(_){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:i,options:o.options,origin:o,from:"runtime",error:_,lifecycle:"beforeRequest"}),!r)throw _}const{id:s}=r,t=W.matchRemoteWithNameAndExpose(o.options.remotes,s);t||I.error(O.RUNTIME_004,O.runtimeDescMap,{hostName:o.options.name,requestId:s},void 0,C.optionsToMFContext(o.options));const{remote:n}=t,d=b.getRemoteInfo(n),l=await o.sharedHandler.hooks.lifecycle.afterResolve.emit({id:s,...t,options:o.options,origin:o,remoteInfo:d}),{remote:f,expose:u}=l;I.assert(f&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${s}.`);let a=o.moduleCache.get(f.name);const m={host:o,remoteInfo:d};return a||(a=new v.Module(m),o.moduleCache.set(f.name,a)),{module:a,moduleOptions:m,remoteMatchInfo:l}}registerRemote(e,o,i){const{host:r}=this,s=()=>{if(e.alias){const n=o.find(d=>e.alias&&(d.name.startsWith(e.alias)||d.alias?.startsWith(e.alias)));I.assert(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}"entry"in e&&k.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=T.DEFAULT_SCOPE),e.type||(e.type=T.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});const t=o.find(n=>n.name===e.name);if(!t)s(),o.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r});else{const n=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];i?.force&&(this.removeRemote(t),s(),o.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),(0,k.warn)(n.join(" ")))}}removeRemote(e){try{const{host:o}=this,{name:i}=e,r=o.options.remotes.findIndex(t=>t.name===i);r!==-1&&o.options.remotes.splice(r,1);const s=o.moduleCache.get(e.name);if(s){const t=s.remoteInfo,n=t.entryGlobalName;c.CurrentGlobal[n]&&(Object.getOwnPropertyDescriptor(c.CurrentGlobal,n)?.configurable?delete c.CurrentGlobal[n]:c.CurrentGlobal[n]=void 0);const d=b.getRemoteEntryUniqueKey(s.remoteInfo);c.globalLoading[d]&&delete c.globalLoading[d],o.snapshotHandler.manifestCache.delete(t.entry);let l=t.buildVersion?(0,k.composeKeyWithSeparator)(t.name,t.buildVersion):t.name;const f=c.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(a=>t.buildVersion?a.options.id===l:a.name===l);if(f!==-1){const a=c.CurrentGlobal.__FEDERATION__.__INSTANCES__[f];l=a.options.id||l;const m=P.getGlobalShareScope();let _=!0;const w=[];Object.keys(m).forEach(y=>{const g=m[y];g&&Object.keys(g).forEach(q=>{const R=g[q];R&&Object.keys(R).forEach(E=>{const S=R[E];S&&Object.keys(S).forEach(A=>{const h=S[A];h&&typeof h=="object"&&h.from===t.name&&(h.loaded||h.loading?(h.useIn=h.useIn.filter(j=>j!==t.name),h.useIn.length?_=!1:w.push([y,q,E,A])):w.push([y,q,E,A]))})})})}),_&&(a.shareScopeMap={},delete m[l]),w.forEach(([y,g,q,R])=>{delete m[y]?.[g]?.[q]?.[R]}),c.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(f,1)}const{hostGlobalSnapshot:u}=D.getGlobalRemoteInfo(e,o);if(u){const a=u&&"remotesInfo"in u&&u.remotesInfo&&c.getInfoWithoutType(u.remotesInfo,e.name).key;a&&(delete u.remotesInfo[a],c.Global.__FEDERATION__.__MANIFEST_LOADING__[a]&&delete c.Global.__FEDERATION__.__MANIFEST_LOADING__[a])}o.moduleCache.delete(e.name)}}catch(o){I.logger.error(`removeRemote failed: ${o instanceof Error?o.message:String(o)}`)}}};return x.__exports.RemoteHandler=$,x.__exports}exports.__require=ce;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../../../../../../_virtual/index.cjs17.js"),U=require("../utils/logger.cjs.js"),K=require("../global.cjs.js"),V=require("../constant.cjs.js"),B=require("../utils/share.cjs.js"),z=require("../utils/manifest.cjs.js"),Y=require("../utils/load.cjs.js"),J=require("../utils/context.cjs.js"),Q=require("../utils/index.cjs.js"),X=require("../utils/preload.cjs.js"),Z=require("../module/index.cjs.js"),ee=require("../utils/hooks/syncHook.cjs.js"),oe=require("../utils/hooks/asyncHook.cjs.js"),te=require("../utils/hooks/syncWaterfallHook.cjs.js"),re=require("../utils/hooks/asyncWaterfallHooks.cjs.js"),se=require("../utils/hooks/pluginSystem.cjs.js"),ne=require("../utils/hooks/index.cjs.js"),ie=require("../plugins/snapshot/SnapshotHandler.cjs.js"),ae=require("../../../sdk/dist/index.cjs.js"),le=require("../../../error-codes/dist/index.cjs.js");var N;function ce(){if(N)return x.__exports;N=1;const I=U.__require(),c=K.__require(),T=V.__require(),P=B.__require(),W=z.__require(),b=Y.__require(),C=J.__require();Q.__require();const M=X.__require(),v=Z.__require(),G=ee.__require(),p=oe.__require(),H=te.__require(),L=re.__require(),F=se.__require();ne.__require();const D=ie.__require();let k=ae.__require(),O=le.__require();var $=class{constructor(e){this.hooks=new F.PluginSystem({beforeRegisterRemote:new H.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new H.SyncWaterfallHook("registerRemote"),beforeRequest:new L.AsyncWaterfallHook("beforeRequest"),onLoad:new p.AsyncHook("onLoad"),handlePreloadModule:new G.SyncHook("handlePreloadModule"),errorLoadRemote:new p.AsyncHook("errorLoadRemote"),beforePreloadRemote:new p.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new p.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new p.AsyncHook,loadEntry:new p.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,o){return(o.remotes||[]).reduce((i,r)=>(this.registerRemote(r,i,{force:!1}),i),e.remotes)}setIdToRemoteMap(e,o){const{remote:i,expose:r}=o,{name:s,alias:t}=i;if(this.idToRemoteMap[e]={name:i.name,expose:r},t&&e.startsWith(s)){const n=e.replace(s,t);this.idToRemoteMap[n]={name:i.name,expose:r};return}if(t&&e.startsWith(t)){const n=e.replace(t,s);this.idToRemoteMap[n]={name:i.name,expose:r}}}async loadRemote(e,o){const{host:i}=this;try{const{loadFactory:r=!0}=o||{loadFactory:!0},{module:s,moduleOptions:t,remoteMatchInfo:n}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:l,expose:f,id:u,remoteSnapshot:a}=n,m=await s.get(u,f,o,a),_=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:d,expose:f,exposeModule:r?m:void 0,exposeModuleFactory:r?void 0:m,remote:l,options:t,moduleInstance:s,origin:i});return this.setIdToRemoteMap(e,n),typeof _=="function"?_:m}catch(r){const{from:s="runtime"}=o||{from:"runtime"},t=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:s,lifecycle:"onLoad",origin:i});if(!t)throw r;return t}}async preloadRemote(e){const{host:o}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:o.options,origin:o});const i=M.formatPreloadArgs(o.options.remotes,e);await Promise.all(i.map(async r=>{const{remote:s}=r,t=b.getRemoteInfo(s),{globalSnapshot:n,remoteSnapshot:d}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:s}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:r,remote:s,remoteInfo:t,globalSnapshot:n,remoteSnapshot:d});l&&M.preloadAssets(t,o,l)}))}registerRemotes(e,o){const{host:i}=this;e.forEach(r=>{this.registerRemote(r,i.options.remotes,{force:o?.force})})}async getRemoteModuleAndOptions(e){const{host:o}=this,{id:i}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:i,options:o.options,origin:o})}catch(_){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:i,options:o.options,origin:o,from:"runtime",error:_,lifecycle:"beforeRequest"}),!r)throw _}const{id:s}=r,t=W.matchRemoteWithNameAndExpose(o.options.remotes,s);t||I.error(O.RUNTIME_004,O.runtimeDescMap,{hostName:o.options.name,requestId:s},void 0,C.optionsToMFContext(o.options));const{remote:n}=t,d=b.getRemoteInfo(n),l=await o.sharedHandler.hooks.lifecycle.afterResolve.emit({id:s,...t,options:o.options,origin:o,remoteInfo:d}),{remote:f,expose:u}=l;I.assert(f&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${s}.`);let a=o.moduleCache.get(f.name);const m={host:o,remoteInfo:d};return a||(a=new v.Module(m),o.moduleCache.set(f.name,a)),{module:a,moduleOptions:m,remoteMatchInfo:l}}registerRemote(e,o,i){const{host:r}=this,s=()=>{if(e.alias){const n=o.find(d=>e.alias&&(d.name.startsWith(e.alias)||d.alias?.startsWith(e.alias)));I.assert(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}"entry"in e&&k.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=T.DEFAULT_SCOPE),e.type||(e.type=T.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});const t=o.find(n=>n.name===e.name);if(!t)s(),o.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r});else{const n=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];i?.force&&(this.removeRemote(t),s(),o.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),(0,k.warn)(n.join(" ")))}}removeRemote(e){try{const{host:o}=this,{name:i}=e,r=o.options.remotes.findIndex(t=>t.name===i);r!==-1&&o.options.remotes.splice(r,1);const s=o.moduleCache.get(e.name);if(s){const t=s.remoteInfo,n=t.entryGlobalName;c.CurrentGlobal[n]&&(Object.getOwnPropertyDescriptor(c.CurrentGlobal,n)?.configurable?delete c.CurrentGlobal[n]:c.CurrentGlobal[n]=void 0);const d=b.getRemoteEntryUniqueKey(s.remoteInfo);c.globalLoading[d]&&delete c.globalLoading[d],o.snapshotHandler.manifestCache.delete(t.entry);let l=t.buildVersion?(0,k.composeKeyWithSeparator)(t.name,t.buildVersion):t.name;const f=c.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(a=>t.buildVersion?a.options.id===l:a.name===l);if(f!==-1){const a=c.CurrentGlobal.__FEDERATION__.__INSTANCES__[f];l=a.options.id||l;const m=P.getGlobalShareScope();let _=!0;const w=[];Object.keys(m).forEach(y=>{const g=m[y];g&&Object.keys(g).forEach(q=>{const R=g[q];R&&Object.keys(R).forEach(E=>{const S=R[E];S&&Object.keys(S).forEach(A=>{const h=S[A];h&&typeof h=="object"&&h.from===t.name&&(h.loaded||h.loading?(h.useIn=h.useIn.filter(j=>j!==t.name),h.useIn.length?_=!1:w.push([y,q,E,A])):w.push([y,q,E,A]))})})})}),_&&(a.shareScopeMap={},delete m[l]),w.forEach(([y,g,q,R])=>{delete m[y]?.[g]?.[q]?.[R]}),c.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(f,1)}const{hostGlobalSnapshot:u}=D.getGlobalRemoteInfo(e,o);if(u){const a=u&&"remotesInfo"in u&&u.remotesInfo&&c.getInfoWithoutType(u.remotesInfo,e.name).key;a&&(delete u.remotesInfo[a],c.Global.__FEDERATION__.__MANIFEST_LOADING__[a]&&delete c.Global.__FEDERATION__.__MANIFEST_LOADING__[a])}o.moduleCache.delete(e.name)}}catch(o){I.logger.error(`removeRemote failed: ${o instanceof Error?o.message:String(o)}`)}}};return x.__exports.RemoteHandler=$,x.__exports}exports.__require=ce;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as M } from "../../../../../../_virtual/index.es19.js";
1
+ import { __exports as M } from "../../../../../../_virtual/index.es17.js";
2
2
  import { __require as j } from "../utils/logger.es.js";
3
3
  import { __require as K } from "../global.es.js";
4
4
  import { __require as V } from "../constant.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../../../_virtual/index.cjs18.js"),P=require("../utils/logger.cjs.js"),U=require("../constant.cjs.js"),x=require("../utils/share.cjs.js"),C=require("../utils/context.cjs.js"),L=require("../utils/index.cjs.js"),W=require("../utils/hooks/asyncHook.cjs.js"),A=require("../utils/hooks/syncWaterfallHook.cjs.js"),$=require("../utils/hooks/asyncWaterfallHooks.cjs.js"),O=require("../utils/hooks/pluginSystem.cjs.js"),z=require("../utils/hooks/index.cjs.js"),G=require("../../../error-codes/dist/index.cjs.js");var w;function j(){if(w)return v.__exports;w=1;const q=P.__require(),T=U.__require(),l=x.__require(),k=C.__require();L.__require();const I=W.__require(),M=A.__require(),E=$.__require(),H=O.__require();z.__require();let m=G.__require();var R=class{constructor(o){this.hooks=new H.PluginSystem({beforeRegisterShare:new M.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new E.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new E.AsyncWaterfallHook("beforeLoadShare"),loadShare:new I.AsyncHook,resolveShare:new M.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new M.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=o,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(o.options)}registerShared(o,h){const{newShareInfos:e,allShareInfos:r}=l.formatShareConfigs(o,h);return Object.keys(e).forEach(i=>{e[i].forEach(c=>{c.scope.forEach(d=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:i,shared:c}),this.shareScopeMap[d]?.[i]||this.setShared({pkgName:i,lib:c.lib,get:c.get,loaded:c.loaded||!!c.lib,shared:c,from:h.name})})})}),{newShareInfos:e,allShareInfos:r}}async loadShare(o,h){const{host:e}=this,r=l.getTargetSharedOptions({pkgName:o,extraOptions:h,shareInfos:e.options.shared});r?.scope&&await Promise.all(r.scope.map(async s=>{await Promise.all(this.initializeSharing(s,{strategy:r.strategy}))}));const{shareInfo:i}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:o,shareInfo:r,shared:e.options.shared,origin:e});q.assert(i,`Cannot find shared "${o}" in host "${e.options.name}". Ensure the shared config for "${o}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const{shared:c,useTreesShaking:d}=l.getRegisteredShare(this.shareScopeMap,o,i,this.hooks.lifecycle.resolveShare)||{};if(c){const s=l.directShare(c,d);if(s.lib)return l.addUseIn(s,e.options.name),s.lib;if(s.loading&&!s.loaded){const f=await s.loading;return s.loaded=!0,s.lib||(s.lib=f),l.addUseIn(s,e.options.name),f}else{const S=(async()=>{const p=await s.get();return l.addUseIn(s,e.options.name),s.loaded=!0,s.lib=p,p})();return this.setShared({pkgName:o,loaded:!1,shared:c,from:e.options.name,lib:null,loading:S,treeShaking:d?s:void 0}),S}}else{if(h?.customShareInfo)return!1;const s=l.shouldUseTreeShaking(i.treeShaking),f=l.directShare(i,s),p=(async()=>{const y=await f.get();f.lib=y,f.loaded=!0,l.addUseIn(f,e.options.name);const{shared:n,useTreesShaking:t}=l.getRegisteredShare(this.shareScopeMap,o,i,this.hooks.lifecycle.resolveShare)||{};if(n){const a=l.directShare(n,t);a.lib=y,a.loaded=!0,n.from=i.from}return y})();return this.setShared({pkgName:o,loaded:!1,shared:i,from:e.options.name,lib:null,loading:p,treeShaking:s?f:void 0}),p}}initializeSharing(o=T.DEFAULT_SCOPE,h){const{host:e}=this,r=h?.from,i=h?.strategy;let c=h?.initScope;const d=[];if(r!=="build"){const{initTokens:n}=this;c||(c=[]);let t=n[o];if(t||(t=n[o]={from:this.host.name}),c.indexOf(t)>=0)return d;c.push(t)}const s=this.shareScopeMap,f=e.options.name;s[o]||(s[o]={});const S=s[o],p=(n,t)=>{const{version:a,eager:g}=t;S[n]=S[n]||{};const _=S[n],u=_[a]&&l.directShare(_[a]),b=!!(u&&("eager"in u&&u.eager||"shareConfig"in u&&u.shareConfig?.eager));(!u||u.strategy!=="loaded-first"&&!u.loaded&&(!g!=!b?g:f>_[a].from))&&(_[a]=t)},y=async n=>{const{module:t}=await e.remoteHandler.getRemoteModuleAndOptions({id:n});let a;try{a=await t.getEntry()}catch(g){if(a=await e.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:n,error:g,from:"runtime",lifecycle:"beforeLoadShare",origin:e}),!a)return}finally{a?.init&&!t.initing&&(t.remoteEntryExports=a,await t.init(void 0,void 0,c))}};return Object.keys(e.options.shared).forEach(n=>{e.options.shared[n].forEach(t=>{t.scope.includes(o)&&p(n,t)})}),(e.options.shareStrategy==="version-first"||i==="version-first")&&e.options.remotes.forEach(n=>{n.shareScope===o&&d.push(y(n.name))}),d}loadShareSync(o,h){const{host:e}=this,r=l.getTargetSharedOptions({pkgName:o,extraOptions:h,shareInfos:e.options.shared});r?.scope&&r.scope.forEach(d=>{this.initializeSharing(d,{strategy:r.strategy})});const{shared:i,useTreesShaking:c}=l.getRegisteredShare(this.shareScopeMap,o,r,this.hooks.lifecycle.resolveShare)||{};if(i){if(typeof i.lib=="function")return l.addUseIn(i,e.options.name),i.loaded||(i.loaded=!0,i.from===e.options.name&&(r.loaded=!0)),i.lib;if(typeof i.get=="function"){const d=i.get();if(!(d instanceof Promise))return l.addUseIn(i,e.options.name),this.setShared({pkgName:o,loaded:!0,from:e.options.name,lib:d,shared:i}),d}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){const d=r.get();return d instanceof Promise&&q.error(h?.from==="build"?m.RUNTIME_005:m.RUNTIME_006,m.runtimeDescMap,{hostName:e.options.name,sharedPkgName:o},void 0,k.optionsToMFContext(e.options)),r.lib=d,this.setShared({pkgName:o,loaded:!0,from:e.options.name,lib:r.lib,shared:r}),r.lib}q.error(m.RUNTIME_006,m.runtimeDescMap,{hostName:e.options.name,sharedPkgName:o},void 0,k.optionsToMFContext(e.options))}initShareScopeMap(o,h,e={}){const{host:r}=this;this.shareScopeMap[o]=h,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:h,options:r.options,origin:r,scopeName:o,hostShareScopeMap:e.hostShareScopeMap})}setShared({pkgName:o,shared:h,from:e,lib:r,loading:i,loaded:c,get:d,treeShaking:s}){const{version:f,scope:S="default",...p}=h,y=Array.isArray(S)?S:[S],n=t=>{const a=(_,u,b)=>{b&&!_[u]&&(_[u]=b)},g=s?t.treeShaking:t;a(g,"loaded",c),a(g,"loading",i),a(g,"get",d)};y.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][o]||(this.shareScopeMap[t][o]={}),this.shareScopeMap[t][o][f]||(this.shareScopeMap[t][o][f]={version:f,scope:[t],...p,lib:r});const a=this.shareScopeMap[t][o][f];n(a),e&&a.from!==e&&(a.from=e)})}_setGlobalShareScopeMap(o){const h=l.getGlobalShareScope(),e=o.id||o.name;e&&!h[e]&&(h[e]=this.shareScopeMap)}};return v.__exports.SharedHandler=R,v.__exports}exports.__require=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../../../../../../_virtual/index.cjs16.js"),P=require("../utils/logger.cjs.js"),U=require("../constant.cjs.js"),x=require("../utils/share.cjs.js"),C=require("../utils/context.cjs.js"),L=require("../utils/index.cjs.js"),W=require("../utils/hooks/asyncHook.cjs.js"),A=require("../utils/hooks/syncWaterfallHook.cjs.js"),$=require("../utils/hooks/asyncWaterfallHooks.cjs.js"),O=require("../utils/hooks/pluginSystem.cjs.js"),z=require("../utils/hooks/index.cjs.js"),G=require("../../../error-codes/dist/index.cjs.js");var w;function j(){if(w)return v.__exports;w=1;const q=P.__require(),T=U.__require(),l=x.__require(),k=C.__require();L.__require();const I=W.__require(),M=A.__require(),E=$.__require(),H=O.__require();z.__require();let m=G.__require();var R=class{constructor(o){this.hooks=new H.PluginSystem({beforeRegisterShare:new M.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new E.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new E.AsyncWaterfallHook("beforeLoadShare"),loadShare:new I.AsyncHook,resolveShare:new M.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new M.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=o,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(o.options)}registerShared(o,h){const{newShareInfos:e,allShareInfos:r}=l.formatShareConfigs(o,h);return Object.keys(e).forEach(i=>{e[i].forEach(c=>{c.scope.forEach(d=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:i,shared:c}),this.shareScopeMap[d]?.[i]||this.setShared({pkgName:i,lib:c.lib,get:c.get,loaded:c.loaded||!!c.lib,shared:c,from:h.name})})})}),{newShareInfos:e,allShareInfos:r}}async loadShare(o,h){const{host:e}=this,r=l.getTargetSharedOptions({pkgName:o,extraOptions:h,shareInfos:e.options.shared});r?.scope&&await Promise.all(r.scope.map(async s=>{await Promise.all(this.initializeSharing(s,{strategy:r.strategy}))}));const{shareInfo:i}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:o,shareInfo:r,shared:e.options.shared,origin:e});q.assert(i,`Cannot find shared "${o}" in host "${e.options.name}". Ensure the shared config for "${o}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const{shared:c,useTreesShaking:d}=l.getRegisteredShare(this.shareScopeMap,o,i,this.hooks.lifecycle.resolveShare)||{};if(c){const s=l.directShare(c,d);if(s.lib)return l.addUseIn(s,e.options.name),s.lib;if(s.loading&&!s.loaded){const f=await s.loading;return s.loaded=!0,s.lib||(s.lib=f),l.addUseIn(s,e.options.name),f}else{const S=(async()=>{const p=await s.get();return l.addUseIn(s,e.options.name),s.loaded=!0,s.lib=p,p})();return this.setShared({pkgName:o,loaded:!1,shared:c,from:e.options.name,lib:null,loading:S,treeShaking:d?s:void 0}),S}}else{if(h?.customShareInfo)return!1;const s=l.shouldUseTreeShaking(i.treeShaking),f=l.directShare(i,s),p=(async()=>{const y=await f.get();f.lib=y,f.loaded=!0,l.addUseIn(f,e.options.name);const{shared:n,useTreesShaking:t}=l.getRegisteredShare(this.shareScopeMap,o,i,this.hooks.lifecycle.resolveShare)||{};if(n){const a=l.directShare(n,t);a.lib=y,a.loaded=!0,n.from=i.from}return y})();return this.setShared({pkgName:o,loaded:!1,shared:i,from:e.options.name,lib:null,loading:p,treeShaking:s?f:void 0}),p}}initializeSharing(o=T.DEFAULT_SCOPE,h){const{host:e}=this,r=h?.from,i=h?.strategy;let c=h?.initScope;const d=[];if(r!=="build"){const{initTokens:n}=this;c||(c=[]);let t=n[o];if(t||(t=n[o]={from:this.host.name}),c.indexOf(t)>=0)return d;c.push(t)}const s=this.shareScopeMap,f=e.options.name;s[o]||(s[o]={});const S=s[o],p=(n,t)=>{const{version:a,eager:g}=t;S[n]=S[n]||{};const _=S[n],u=_[a]&&l.directShare(_[a]),b=!!(u&&("eager"in u&&u.eager||"shareConfig"in u&&u.shareConfig?.eager));(!u||u.strategy!=="loaded-first"&&!u.loaded&&(!g!=!b?g:f>_[a].from))&&(_[a]=t)},y=async n=>{const{module:t}=await e.remoteHandler.getRemoteModuleAndOptions({id:n});let a;try{a=await t.getEntry()}catch(g){if(a=await e.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:n,error:g,from:"runtime",lifecycle:"beforeLoadShare",origin:e}),!a)return}finally{a?.init&&!t.initing&&(t.remoteEntryExports=a,await t.init(void 0,void 0,c))}};return Object.keys(e.options.shared).forEach(n=>{e.options.shared[n].forEach(t=>{t.scope.includes(o)&&p(n,t)})}),(e.options.shareStrategy==="version-first"||i==="version-first")&&e.options.remotes.forEach(n=>{n.shareScope===o&&d.push(y(n.name))}),d}loadShareSync(o,h){const{host:e}=this,r=l.getTargetSharedOptions({pkgName:o,extraOptions:h,shareInfos:e.options.shared});r?.scope&&r.scope.forEach(d=>{this.initializeSharing(d,{strategy:r.strategy})});const{shared:i,useTreesShaking:c}=l.getRegisteredShare(this.shareScopeMap,o,r,this.hooks.lifecycle.resolveShare)||{};if(i){if(typeof i.lib=="function")return l.addUseIn(i,e.options.name),i.loaded||(i.loaded=!0,i.from===e.options.name&&(r.loaded=!0)),i.lib;if(typeof i.get=="function"){const d=i.get();if(!(d instanceof Promise))return l.addUseIn(i,e.options.name),this.setShared({pkgName:o,loaded:!0,from:e.options.name,lib:d,shared:i}),d}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){const d=r.get();return d instanceof Promise&&q.error(h?.from==="build"?m.RUNTIME_005:m.RUNTIME_006,m.runtimeDescMap,{hostName:e.options.name,sharedPkgName:o},void 0,k.optionsToMFContext(e.options)),r.lib=d,this.setShared({pkgName:o,loaded:!0,from:e.options.name,lib:r.lib,shared:r}),r.lib}q.error(m.RUNTIME_006,m.runtimeDescMap,{hostName:e.options.name,sharedPkgName:o},void 0,k.optionsToMFContext(e.options))}initShareScopeMap(o,h,e={}){const{host:r}=this;this.shareScopeMap[o]=h,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:h,options:r.options,origin:r,scopeName:o,hostShareScopeMap:e.hostShareScopeMap})}setShared({pkgName:o,shared:h,from:e,lib:r,loading:i,loaded:c,get:d,treeShaking:s}){const{version:f,scope:S="default",...p}=h,y=Array.isArray(S)?S:[S],n=t=>{const a=(_,u,b)=>{b&&!_[u]&&(_[u]=b)},g=s?t.treeShaking:t;a(g,"loaded",c),a(g,"loading",i),a(g,"get",d)};y.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][o]||(this.shareScopeMap[t][o]={}),this.shareScopeMap[t][o][f]||(this.shareScopeMap[t][o][f]={version:f,scope:[t],...p,lib:r});const a=this.shareScopeMap[t][o][f];n(a),e&&a.from!==e&&(a.from=e)})}_setGlobalShareScopeMap(o){const h=l.getGlobalShareScope(),e=o.id||o.name;e&&!h[e]&&(h[e]=this.shareScopeMap)}};return v.__exports.SharedHandler=R,v.__exports}exports.__require=j;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as k } from "../../../../../../_virtual/index.es18.js";
1
+ import { __exports as k } from "../../../../../../_virtual/index.es16.js";
2
2
  import { __require as P } from "../utils/logger.es.js";
3
3
  import { __require as U } from "../constant.es.js";
4
4
  import { __require as C } from "../utils/share.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs13.js"),i=require("../_virtual/_rolldown/runtime.cjs.js");var r;function n(){return r||(r=1,(function(t){var u=i.__require().__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return u}})})(e.__exports)),e.__exports}exports.__require=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs10.js"),i=require("../_virtual/_rolldown/runtime.cjs.js");var r;function n(){return r||(r=1,(function(t){var u=i.__require().__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return u}})})(e.__exports)),e.__exports}exports.__require=n;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "../../../../../../_virtual/index.es13.js";
1
+ import { __exports as e } from "../../../../../../_virtual/index.es10.js";
2
2
  import { __require as i } from "../_virtual/_rolldown/runtime.es.js";
3
3
  var r;
4
4
  function _() {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../../_virtual/index.cjs16.js"),o=require("./syncHook.cjs.js"),i=require("./asyncHook.cjs.js"),u=require("./syncWaterfallHook.cjs.js"),t=require("./asyncWaterfallHooks.cjs.js"),s=require("./pluginSystem.cjs.js");var r;function n(){return r||(r=1,o.__require(),i.__require(),u.__require(),t.__require(),s.__require()),e.__exports}exports.__require=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../../_virtual/index.cjs14.js"),o=require("./syncHook.cjs.js"),i=require("./asyncHook.cjs.js"),u=require("./syncWaterfallHook.cjs.js"),t=require("./asyncWaterfallHooks.cjs.js"),s=require("./pluginSystem.cjs.js");var r;function n(){return r||(r=1,o.__require(),i.__require(),u.__require(),t.__require(),s.__require()),e.__exports}exports.__require=n;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../../../../../_virtual/index.es16.js";
1
+ import { __exports as r } from "../../../../../../../_virtual/index.es14.js";
2
2
  import { __require as o } from "./syncHook.es.js";
3
3
  import { __require as i } from "./asyncHook.es.js";
4
4
  import { __require as u } from "./syncWaterfallHook.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs11.js"),i=require("./logger.cjs.js"),t=require("./tool.cjs.js"),u=require("./env.cjs.js"),o=require("./manifest.cjs.js"),_=require("./plugin.cjs.js"),n=require("./load.cjs.js"),q=require("./context.cjs.js");var r;function s(){return r||(r=1,i.__require(),t.__require(),u.__require(),o.__require(),_.__require(),n.__require(),q.__require()),e.__exports}exports.__require=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs8.js"),i=require("./logger.cjs.js"),t=require("./tool.cjs.js"),u=require("./env.cjs.js"),o=require("./manifest.cjs.js"),_=require("./plugin.cjs.js"),n=require("./load.cjs.js"),q=require("./context.cjs.js");var r;function s(){return r||(r=1,i.__require(),t.__require(),u.__require(),o.__require(),_.__require(),n.__require(),q.__require()),e.__exports}exports.__require=s;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/@module-federation/runtime-core/dist/utils/index.cjs"],"sourcesContent":["const require_logger = require('./logger.cjs');\nconst require_tool = require('./tool.cjs');\nconst require_env = require('./env.cjs');\nconst require_manifest = require('./manifest.cjs');\nconst require_plugin = require('./plugin.cjs');\nconst require_load = require('./load.cjs');\nconst require_context = require('./context.cjs');\nlet _module_federation_sdk = require(\"@module-federation/sdk\");\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6"],"mappings":"sXAAuBA,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACDC,EAAAA,UAAA,EACKC,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACGC,EAAAA,UAAA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/@module-federation/runtime-core/dist/utils/index.cjs"],"sourcesContent":["const require_logger = require('./logger.cjs');\nconst require_tool = require('./tool.cjs');\nconst require_env = require('./env.cjs');\nconst require_manifest = require('./manifest.cjs');\nconst require_plugin = require('./plugin.cjs');\nconst require_load = require('./load.cjs');\nconst require_context = require('./context.cjs');\nlet _module_federation_sdk = require(\"@module-federation/sdk\");\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6"],"mappings":"qXAAuBA,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACDC,EAAAA,UAAA,EACKC,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACFC,EAAAA,UAAA,EACGC,EAAAA,UAAA","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as r } from "../../../../../../_virtual/index.es11.js";
1
+ import { __exports as r } from "../../../../../../_virtual/index.es8.js";
2
2
  import { __require as i } from "./logger.es.js";
3
3
  import { __require as o } from "./tool.es.js";
4
4
  import { __require as u } from "./env.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../../_virtual/index.cjs10.js"),V=require("./utils.cjs.js"),k=require("./parser.cjs.js"),E=require("./compare.cjs.js");var x;function A(){if(x)return i.__exports;x=1;const e=V.__require(),r=k.__require(),S=E.__require();function b(t){return e.pipe(r.parseCarets,r.parseTildes,r.parseXRanges,r.parseStar)(t)}function h(t){return e.pipe(r.parseHyphen,r.parseComparatorTrim,r.parseTildeTrim,r.parseCaretTrim)(t.trim()).split(/\s+/).join(" ")}function C(t,j){if(!t)return!1;const p=e.extractComparator(t);if(!p)return!1;const[,T,,c,u,m,f]=p,y={operator:T,version:e.combineVersion(c,u,m,f),major:c,minor:u,patch:m,preRelease:f?.split(".")},M=j.split("||");for(const P of M){const o=P.trim();if(!o||o==="*"||o==="x")return!0;try{const n=h(o);if(!n.trim())return!0;const l=n.split(" ").map(a=>b(a)).join(" ");if(!l.trim())return!0;const g=l.split(/\s+/).map(a=>r.parseGTE0(a)).filter(Boolean);if(g.length===0)continue;let s=!0;for(const a of g){const _=e.extractComparator(a);if(!_){s=!1;break}const[,O,,q,d,v,R]=_;if(!S.compare({operator:O,version:e.combineVersion(q,d,v,R),major:q,minor:d,patch:v,preRelease:R?.split(".")},y)){s=!1;break}}if(s)return!0}catch(n){console.error(`[semver] Error processing range part "${o}":`,n);continue}}return!1}return i.__exports.satisfy=C,i.__exports}exports.__require=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../../_virtual/index.cjs7.js"),V=require("./utils.cjs.js"),k=require("./parser.cjs.js"),E=require("./compare.cjs.js");var x;function A(){if(x)return i.__exports;x=1;const e=V.__require(),r=k.__require(),S=E.__require();function b(t){return e.pipe(r.parseCarets,r.parseTildes,r.parseXRanges,r.parseStar)(t)}function h(t){return e.pipe(r.parseHyphen,r.parseComparatorTrim,r.parseTildeTrim,r.parseCaretTrim)(t.trim()).split(/\s+/).join(" ")}function C(t,j){if(!t)return!1;const p=e.extractComparator(t);if(!p)return!1;const[,T,,c,u,m,f]=p,y={operator:T,version:e.combineVersion(c,u,m,f),major:c,minor:u,patch:m,preRelease:f?.split(".")},M=j.split("||");for(const P of M){const o=P.trim();if(!o||o==="*"||o==="x")return!0;try{const n=h(o);if(!n.trim())return!0;const l=n.split(" ").map(a=>b(a)).join(" ");if(!l.trim())return!0;const g=l.split(/\s+/).map(a=>r.parseGTE0(a)).filter(Boolean);if(g.length===0)continue;let s=!0;for(const a of g){const _=e.extractComparator(a);if(!_){s=!1;break}const[,O,,q,d,v,R]=_;if(!S.compare({operator:O,version:e.combineVersion(q,d,v,R),major:q,minor:d,patch:v,preRelease:R?.split(".")},y)){s=!1;break}}if(s)return!0}catch(n){console.error(`[semver] Error processing range part "${o}":`,n);continue}}return!1}return i.__exports.satisfy=C,i.__exports}exports.__require=A;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs"],"sourcesContent":["const require_utils = require('./utils.cjs');\nconst require_parser = require('./parser.cjs');\nconst require_compare = require('./compare.cjs');\n\n//#region src/utils/semver/index.ts\nfunction parseComparatorString(range) {\n\treturn require_utils.pipe(require_parser.parseCarets, require_parser.parseTildes, require_parser.parseXRanges, require_parser.parseStar)(range);\n}\nfunction parseRange(range) {\n\treturn require_utils.pipe(require_parser.parseHyphen, require_parser.parseComparatorTrim, require_parser.parseTildeTrim, require_parser.parseCaretTrim)(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n\tif (!version) return false;\n\tconst extractedVersion = require_utils.extractComparator(version);\n\tif (!extractedVersion) return false;\n\tconst [, versionOperator, , versionMajor, versionMinor, versionPatch, versionPreRelease] = extractedVersion;\n\tconst versionAtom = {\n\t\toperator: versionOperator,\n\t\tversion: require_utils.combineVersion(versionMajor, versionMinor, versionPatch, versionPreRelease),\n\t\tmajor: versionMajor,\n\t\tminor: versionMinor,\n\t\tpatch: versionPatch,\n\t\tpreRelease: versionPreRelease?.split(\".\")\n\t};\n\tconst orRanges = range.split(\"||\");\n\tfor (const orRange of orRanges) {\n\t\tconst trimmedOrRange = orRange.trim();\n\t\tif (!trimmedOrRange) return true;\n\t\tif (trimmedOrRange === \"*\" || trimmedOrRange === \"x\") return true;\n\t\ttry {\n\t\t\tconst parsedSubRange = parseRange(trimmedOrRange);\n\t\t\tif (!parsedSubRange.trim()) return true;\n\t\t\tconst parsedComparatorString = parsedSubRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n\t\t\tif (!parsedComparatorString.trim()) return true;\n\t\t\tconst comparators = parsedComparatorString.split(/\\s+/).map((comparator) => require_parser.parseGTE0(comparator)).filter(Boolean);\n\t\t\tif (comparators.length === 0) continue;\n\t\t\tlet subRangeSatisfied = true;\n\t\t\tfor (const comparator of comparators) {\n\t\t\t\tconst extractedComparator = require_utils.extractComparator(comparator);\n\t\t\t\tif (!extractedComparator) {\n\t\t\t\t\tsubRangeSatisfied = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tconst [, rangeOperator, , rangeMajor, rangeMinor, rangePatch, rangePreRelease] = extractedComparator;\n\t\t\t\tif (!require_compare.compare({\n\t\t\t\t\toperator: rangeOperator,\n\t\t\t\t\tversion: require_utils.combineVersion(rangeMajor, rangeMinor, rangePatch, rangePreRelease),\n\t\t\t\t\tmajor: rangeMajor,\n\t\t\t\t\tminor: rangeMinor,\n\t\t\t\t\tpatch: rangePatch,\n\t\t\t\t\tpreRelease: rangePreRelease?.split(\".\")\n\t\t\t\t}, versionAtom)) {\n\t\t\t\t\tsubRangeSatisfied = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (subRangeSatisfied) return true;\n\t\t} catch (e) {\n\t\t\tconsole.error(`[semver] Error processing range part \"${trimmedOrRange}\":`, e);\n\t\t\tcontinue;\n\t\t}\n\t}\n\treturn false;\n}\n\n//#endregion\nexports.satisfy = satisfy;\n//# sourceMappingURL=index.cjs.map"],"names":["require_utils","require$$0","require_parser","require$$1","require_compare","require$$2","parseComparatorString","range","parseRange","satisfy","version","extractedVersion","versionOperator","versionMajor","versionMinor","versionPatch","versionPreRelease","versionAtom","orRanges","orRange","trimmedOrRange","parsedSubRange","parsedComparatorString","rangeVersion","comparators","comparator","subRangeSatisfied","extractedComparator","rangeOperator","rangeMajor","rangeMinor","rangePatch","rangePreRelease","e","semver"],"mappings":"sRAAA,MAAMA,EAAgBC,EAAAA,UAAA,EAChBC,EAAiBC,EAAAA,UAAA,EACjBC,EAAkBC,EAAAA,UAAA,EAGxB,SAASC,EAAsBC,EAAO,CACrC,OAAOP,EAAc,KAAKE,EAAe,YAAaA,EAAe,YAAaA,EAAe,aAAcA,EAAe,SAAS,EAAEK,CAAK,CAC/I,CACA,SAASC,EAAWD,EAAO,CAC1B,OAAOP,EAAc,KAAKE,EAAe,YAAaA,EAAe,oBAAqBA,EAAe,eAAgBA,EAAe,cAAc,EAAEK,EAAM,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,GAAG,CAC5L,CACA,SAASE,EAAQC,EAASH,EAAO,CAChC,GAAI,CAACG,EAAS,MAAO,GACrB,MAAMC,EAAmBX,EAAc,kBAAkBU,CAAO,EAChE,GAAI,CAACC,EAAkB,MAAO,GAC9B,KAAM,CAAA,CAAGC,EAAe,CAAIC,EAAcC,EAAcC,EAAcC,CAAiB,EAAIL,EACrFM,EAAc,CACnB,SAAUL,EACV,QAASZ,EAAc,eAAea,EAAcC,EAAcC,EAAcC,CAAiB,EACjG,MAAOH,EACP,MAAOC,EACP,MAAOC,EACP,WAAYC,GAAmB,MAAM,GAAG,GAEnCE,EAAWX,EAAM,MAAM,IAAI,EACjC,UAAWY,KAAWD,EAAU,CAC/B,MAAME,EAAiBD,EAAQ,KAAI,EAEnC,GADI,CAACC,GACDA,IAAmB,KAAOA,IAAmB,IAAK,MAAO,GAC7D,GAAI,CACH,MAAMC,EAAiBb,EAAWY,CAAc,EAChD,GAAI,CAACC,EAAe,KAAI,EAAI,MAAO,GACnC,MAAMC,EAAyBD,EAAe,MAAM,GAAG,EAAE,IAAKE,GAAiBjB,EAAsBiB,CAAY,CAAC,EAAE,KAAK,GAAG,EAC5H,GAAI,CAACD,EAAuB,KAAI,EAAI,MAAO,GAC3C,MAAME,EAAcF,EAAuB,MAAM,KAAK,EAAE,IAAKG,GAAevB,EAAe,UAAUuB,CAAU,CAAC,EAAE,OAAO,OAAO,EAChI,GAAID,EAAY,SAAW,EAAG,SAC9B,IAAIE,EAAoB,GACxB,UAAWD,KAAcD,EAAa,CACrC,MAAMG,EAAsB3B,EAAc,kBAAkByB,CAAU,EACtE,GAAI,CAACE,EAAqB,CACzBD,EAAoB,GACpB,KACL,CACI,KAAM,CAAA,CAAGE,EAAa,CAAIC,EAAYC,EAAYC,EAAYC,CAAe,EAAIL,EACjF,GAAI,CAACvB,EAAgB,QAAQ,CAC5B,SAAUwB,EACV,QAAS5B,EAAc,eAAe6B,EAAYC,EAAYC,EAAYC,CAAe,EACzF,MAAOH,EACP,MAAOC,EACP,MAAOC,EACP,WAAYC,GAAiB,MAAM,GAAG,GACpCf,CAAW,EAAG,CAChBS,EAAoB,GACpB,KACL,CACA,CACG,GAAIA,EAAmB,MAAO,EACjC,OAAWO,EAAG,CACX,QAAQ,MAAM,yCAAyCb,CAAc,KAAMa,CAAC,EAC5E,QACH,CACA,CACC,MAAO,EACR,CAGAC,OAAAA,EAAAA,UAAA,QAAkBzB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs"],"sourcesContent":["const require_utils = require('./utils.cjs');\nconst require_parser = require('./parser.cjs');\nconst require_compare = require('./compare.cjs');\n\n//#region src/utils/semver/index.ts\nfunction parseComparatorString(range) {\n\treturn require_utils.pipe(require_parser.parseCarets, require_parser.parseTildes, require_parser.parseXRanges, require_parser.parseStar)(range);\n}\nfunction parseRange(range) {\n\treturn require_utils.pipe(require_parser.parseHyphen, require_parser.parseComparatorTrim, require_parser.parseTildeTrim, require_parser.parseCaretTrim)(range.trim()).split(/\\s+/).join(\" \");\n}\nfunction satisfy(version, range) {\n\tif (!version) return false;\n\tconst extractedVersion = require_utils.extractComparator(version);\n\tif (!extractedVersion) return false;\n\tconst [, versionOperator, , versionMajor, versionMinor, versionPatch, versionPreRelease] = extractedVersion;\n\tconst versionAtom = {\n\t\toperator: versionOperator,\n\t\tversion: require_utils.combineVersion(versionMajor, versionMinor, versionPatch, versionPreRelease),\n\t\tmajor: versionMajor,\n\t\tminor: versionMinor,\n\t\tpatch: versionPatch,\n\t\tpreRelease: versionPreRelease?.split(\".\")\n\t};\n\tconst orRanges = range.split(\"||\");\n\tfor (const orRange of orRanges) {\n\t\tconst trimmedOrRange = orRange.trim();\n\t\tif (!trimmedOrRange) return true;\n\t\tif (trimmedOrRange === \"*\" || trimmedOrRange === \"x\") return true;\n\t\ttry {\n\t\t\tconst parsedSubRange = parseRange(trimmedOrRange);\n\t\t\tif (!parsedSubRange.trim()) return true;\n\t\t\tconst parsedComparatorString = parsedSubRange.split(\" \").map((rangeVersion) => parseComparatorString(rangeVersion)).join(\" \");\n\t\t\tif (!parsedComparatorString.trim()) return true;\n\t\t\tconst comparators = parsedComparatorString.split(/\\s+/).map((comparator) => require_parser.parseGTE0(comparator)).filter(Boolean);\n\t\t\tif (comparators.length === 0) continue;\n\t\t\tlet subRangeSatisfied = true;\n\t\t\tfor (const comparator of comparators) {\n\t\t\t\tconst extractedComparator = require_utils.extractComparator(comparator);\n\t\t\t\tif (!extractedComparator) {\n\t\t\t\t\tsubRangeSatisfied = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tconst [, rangeOperator, , rangeMajor, rangeMinor, rangePatch, rangePreRelease] = extractedComparator;\n\t\t\t\tif (!require_compare.compare({\n\t\t\t\t\toperator: rangeOperator,\n\t\t\t\t\tversion: require_utils.combineVersion(rangeMajor, rangeMinor, rangePatch, rangePreRelease),\n\t\t\t\t\tmajor: rangeMajor,\n\t\t\t\t\tminor: rangeMinor,\n\t\t\t\t\tpatch: rangePatch,\n\t\t\t\t\tpreRelease: rangePreRelease?.split(\".\")\n\t\t\t\t}, versionAtom)) {\n\t\t\t\t\tsubRangeSatisfied = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (subRangeSatisfied) return true;\n\t\t} catch (e) {\n\t\t\tconsole.error(`[semver] Error processing range part \"${trimmedOrRange}\":`, e);\n\t\t\tcontinue;\n\t\t}\n\t}\n\treturn false;\n}\n\n//#endregion\nexports.satisfy = satisfy;\n//# sourceMappingURL=index.cjs.map"],"names":["require_utils","require$$0","require_parser","require$$1","require_compare","require$$2","parseComparatorString","range","parseRange","satisfy","version","extractedVersion","versionOperator","versionMajor","versionMinor","versionPatch","versionPreRelease","versionAtom","orRanges","orRange","trimmedOrRange","parsedSubRange","parsedComparatorString","rangeVersion","comparators","comparator","subRangeSatisfied","extractedComparator","rangeOperator","rangeMajor","rangeMinor","rangePatch","rangePreRelease","e","semver"],"mappings":"qRAAA,MAAMA,EAAgBC,EAAAA,UAAA,EAChBC,EAAiBC,EAAAA,UAAA,EACjBC,EAAkBC,EAAAA,UAAA,EAGxB,SAASC,EAAsBC,EAAO,CACrC,OAAOP,EAAc,KAAKE,EAAe,YAAaA,EAAe,YAAaA,EAAe,aAAcA,EAAe,SAAS,EAAEK,CAAK,CAC/I,CACA,SAASC,EAAWD,EAAO,CAC1B,OAAOP,EAAc,KAAKE,EAAe,YAAaA,EAAe,oBAAqBA,EAAe,eAAgBA,EAAe,cAAc,EAAEK,EAAM,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,GAAG,CAC5L,CACA,SAASE,EAAQC,EAASH,EAAO,CAChC,GAAI,CAACG,EAAS,MAAO,GACrB,MAAMC,EAAmBX,EAAc,kBAAkBU,CAAO,EAChE,GAAI,CAACC,EAAkB,MAAO,GAC9B,KAAM,CAAA,CAAGC,EAAe,CAAIC,EAAcC,EAAcC,EAAcC,CAAiB,EAAIL,EACrFM,EAAc,C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,EAAAA,UAAA,QAAkBzB","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as n } from "../../../../../../../_virtual/index.es10.js";
1
+ import { __exports as n } from "../../../../../../../_virtual/index.es7.js";
2
2
  import { __require as V } from "./utils.es.js";
3
3
  import { __require as k } from "./parser.es.js";
4
4
  import { __require as E } from "./compare.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../_virtual/index.cjs14.js"),S=require("./constant.cjs.js"),E=require("./types/plugins/ContainerPlugin.cjs.js"),M=require("./types/plugins/ContainerReferencePlugin.cjs.js"),F=require("./types/plugins/ModuleFederationPlugin.cjs.js"),N=require("./types/plugins/SharePlugin.cjs.js"),R=require("./types/plugins/ConsumeSharedPlugin.cjs.js"),T=require("./types/plugins/ProvideSharedPlugin.cjs.js"),h=require("./env.cjs.js"),O=require("./utils.cjs.js"),b=require("./generateSnapshotFromManifest.cjs.js"),v=require("./logger.cjs.js"),y=require("./dom.cjs.js"),C=require("./node.cjs.js"),L=require("./normalizeOptions.cjs.js"),D=require("./createModuleFederationConfig.cjs.js");var l;function I(){return l||(l=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const r=S.__require(),g=E.__require(),s=M.__require(),d=F.__require(),_=N.__require(),m=R.__require(),f=T.__require(),i=h.__require(),n=O.__require(),a=b.__require(),t=v.__require(),u=y.__require(),c=C.__require(),q=L.__require(),P=D.__require();e.BROWSER_LOG_KEY=r.BROWSER_LOG_KEY,e.ENCODE_NAME_PREFIX=r.ENCODE_NAME_PREFIX,e.EncodedNameTransformMap=r.EncodedNameTransformMap,e.FederationModuleManifest=r.FederationModuleManifest,e.MANIFEST_EXT=r.MANIFEST_EXT,e.MFModuleType=r.MFModuleType,e.MFPrefetchCommon=r.MFPrefetchCommon,e.MODULE_DEVTOOL_IDENTIFIER=r.MODULE_DEVTOOL_IDENTIFIER,e.ManifestFileName=r.ManifestFileName,e.NameTransformMap=r.NameTransformMap,e.NameTransformSymbol=r.NameTransformSymbol,e.SEPARATOR=r.SEPARATOR,e.StatsFileName=r.StatsFileName,e.TEMP_DIR=r.TEMP_DIR,e.TreeShakingStatus=r.TreeShakingStatus,e.assert=n.assert,e.bindLoggerToCompiler=t.bindLoggerToCompiler,e.composeKeyWithSeparator=n.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return m.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return g.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return s.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=t.createInfrastructureLogger,e.createLink=u.createLink,e.createLogger=t.createLogger,e.createModuleFederationConfig=P.createModuleFederationConfig,e.createScript=u.createScript,e.createScriptNode=c.createScriptNode,e.decodeName=n.decodeName,e.encodeName=n.encodeName,e.error=n.error,e.generateExposeFilename=n.generateExposeFilename,e.generateShareFilename=n.generateShareFilename,e.generateSnapshotFromManifest=a.generateSnapshotFromManifest,e.getManifestFileName=a.getManifestFileName,e.getProcessEnv=i.getProcessEnv,e.getResourceUrl=n.getResourceUrl,e.inferAutoPublicPath=a.inferAutoPublicPath,e.infrastructureLogger=t.infrastructureLogger,e.isBrowserEnv=i.isBrowserEnv,e.isBrowserEnvValue=i.isBrowserEnvValue,e.isDebugMode=i.isDebugMode,e.isManifestProvider=a.isManifestProvider,e.isReactNativeEnv=i.isReactNativeEnv,e.isRequiredVersion=n.isRequiredVersion,e.isStaticResourcesEqual=u.isStaticResourcesEqual,e.loadScript=u.loadScript,e.loadScriptNode=c.loadScriptNode,e.logger=t.logger,Object.defineProperty(e,"moduleFederationPlugin",{enumerable:!0,get:function(){return d.ModuleFederationPlugin_exports}}),e.normalizeOptions=q.normalizeOptions,e.parseEntry=n.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return f.ProvideSharedPlugin_exports}}),e.safeToString=n.safeToString,e.safeWrapper=u.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return _.SharePlugin_exports}}),e.simpleJoinRemoteEntry=a.simpleJoinRemoteEntry,e.warn=n.warn})(o.__exports)),o.__exports}exports.__require=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../_virtual/index.cjs11.js"),S=require("./constant.cjs.js"),E=require("./types/plugins/ContainerPlugin.cjs.js"),M=require("./types/plugins/ContainerReferencePlugin.cjs.js"),F=require("./types/plugins/ModuleFederationPlugin.cjs.js"),N=require("./types/plugins/SharePlugin.cjs.js"),R=require("./types/plugins/ConsumeSharedPlugin.cjs.js"),T=require("./types/plugins/ProvideSharedPlugin.cjs.js"),h=require("./env.cjs.js"),O=require("./utils.cjs.js"),b=require("./generateSnapshotFromManifest.cjs.js"),v=require("./logger.cjs.js"),y=require("./dom.cjs.js"),C=require("./node.cjs.js"),L=require("./normalizeOptions.cjs.js"),D=require("./createModuleFederationConfig.cjs.js");var l;function I(){return l||(l=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const r=S.__require(),g=E.__require(),s=M.__require(),d=F.__require(),_=N.__require(),m=R.__require(),f=T.__require(),i=h.__require(),n=O.__require(),a=b.__require(),t=v.__require(),u=y.__require(),c=C.__require(),q=L.__require(),P=D.__require();e.BROWSER_LOG_KEY=r.BROWSER_LOG_KEY,e.ENCODE_NAME_PREFIX=r.ENCODE_NAME_PREFIX,e.EncodedNameTransformMap=r.EncodedNameTransformMap,e.FederationModuleManifest=r.FederationModuleManifest,e.MANIFEST_EXT=r.MANIFEST_EXT,e.MFModuleType=r.MFModuleType,e.MFPrefetchCommon=r.MFPrefetchCommon,e.MODULE_DEVTOOL_IDENTIFIER=r.MODULE_DEVTOOL_IDENTIFIER,e.ManifestFileName=r.ManifestFileName,e.NameTransformMap=r.NameTransformMap,e.NameTransformSymbol=r.NameTransformSymbol,e.SEPARATOR=r.SEPARATOR,e.StatsFileName=r.StatsFileName,e.TEMP_DIR=r.TEMP_DIR,e.TreeShakingStatus=r.TreeShakingStatus,e.assert=n.assert,e.bindLoggerToCompiler=t.bindLoggerToCompiler,e.composeKeyWithSeparator=n.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return m.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return g.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return s.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=t.createInfrastructureLogger,e.createLink=u.createLink,e.createLogger=t.createLogger,e.createModuleFederationConfig=P.createModuleFederationConfig,e.createScript=u.createScript,e.createScriptNode=c.createScriptNode,e.decodeName=n.decodeName,e.encodeName=n.encodeName,e.error=n.error,e.generateExposeFilename=n.generateExposeFilename,e.generateShareFilename=n.generateShareFilename,e.generateSnapshotFromManifest=a.generateSnapshotFromManifest,e.getManifestFileName=a.getManifestFileName,e.getProcessEnv=i.getProcessEnv,e.getResourceUrl=n.getResourceUrl,e.inferAutoPublicPath=a.inferAutoPublicPath,e.infrastructureLogger=t.infrastructureLogger,e.isBrowserEnv=i.isBrowserEnv,e.isBrowserEnvValue=i.isBrowserEnvValue,e.isDebugMode=i.isDebugMode,e.isManifestProvider=a.isManifestProvider,e.isReactNativeEnv=i.isReactNativeEnv,e.isRequiredVersion=n.isRequiredVersion,e.isStaticResourcesEqual=u.isStaticResourcesEqual,e.loadScript=u.loadScript,e.loadScriptNode=c.loadScriptNode,e.logger=t.logger,Object.defineProperty(e,"moduleFederationPlugin",{enumerable:!0,get:function(){return d.ModuleFederationPlugin_exports}}),e.normalizeOptions=q.normalizeOptions,e.parseEntry=n.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return f.ProvideSharedPlugin_exports}}),e.safeToString=n.safeToString,e.safeWrapper=u.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return _.SharePlugin_exports}}),e.simpleJoinRemoteEntry=a.simpleJoinRemoteEntry,e.warn=n.warn})(o.__exports)),o.__exports}exports.__require=I;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __exports as u } from "../../../../../_virtual/index.es14.js";
1
+ import { __exports as u } from "../../../../../_virtual/index.es11.js";
2
2
  import { __require as E } from "./constant.es.js";
3
3
  import { __require as S } from "./types/plugins/ContainerPlugin.es.js";
4
4
  import { __require as M } from "./types/plugins/ContainerReferencePlugin.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/index.cjs15.js"),t=require("../react-is/index.cjs.js"),u=require("./factoryWithTypeCheckers.cjs.js"),s=require("./factoryWithThrowingShims.cjs.js");var r;function _(){if(r)return e.__module.exports;if(r=1,process.env.NODE_ENV!=="production"){var o=t.__require(),i=!0;e.__module.exports=u.__require()(o.isElement,i)}else e.__module.exports=s.__require()();return e.__module.exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/index.cjs18.js"),t=require("../react-is/index.cjs.js"),u=require("./factoryWithTypeCheckers.cjs.js"),s=require("./factoryWithThrowingShims.cjs.js");var r;function _(){if(r)return e.__module.exports;if(r=1,process.env.NODE_ENV!=="production"){var o=t.__require(),i=!0;e.__module.exports=u.__require()(o.isElement,i)}else e.__module.exports=s.__require()();return e.__module.exports}exports.__require=_;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../../_virtual/index.es15.js";
1
+ import { __module as r } from "../../../_virtual/index.es18.js";
2
2
  import { __require as s } from "../react-is/index.es.js";
3
3
  import { __require as t } from "./factoryWithTypeCheckers.es.js";
4
4
  import { __require as p } from "./factoryWithThrowingShims.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/index.cjs21.js"),t=require("./cjs/react-is.production.min.cjs.js"),o=require("./cjs/react-is.development.cjs.js");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/index.cjs20.js"),t=require("./cjs/react-is.production.min.cjs.js"),o=require("./cjs/react-is.development.cjs.js");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../_virtual/index.es21.js";
1
+ import { __module as e } from "../../../_virtual/index.es20.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.es.js";
3
3
  import { __require as t } from "./cjs/react-is.development.es.js";
4
4
  var r;
@@ -1,2 +1,2 @@
1
- "use strict";const m=require("../../@babel/runtime/helpers/esm/extends.cjs.js"),h=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs.js"),N=require("../../@babel/runtime/helpers/esm/inheritsLoose.cjs.js"),v=require("../../../../_virtual/index.cjs9.js"),A=require("../../dom-helpers/esm/addClass.cjs.js"),q=require("../../dom-helpers/esm/removeClass.cjs.js"),E=require("react"),g=require("./Transition.cjs.js"),$=require("./utils/PropTypes.cjs.js"),_=require("./utils/reflow.cjs.js");var S=function(i,l){return i&&l&&l.split(" ").forEach(function(e){return A(i,e)})},f=function(i,l){return i&&l&&l.split(" ").forEach(function(e){return q(i,e)})},C=(function(d){N(i,d);function i(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return e=d.call.apply(d,[this].concat(o))||this,e.appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1];e.removeClasses(p,"exit"),e.addClass(p,u?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(s,r)},e.onEntering=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1],c=u?"appear":"enter";e.addClass(p,c,"active"),e.props.onEntering&&e.props.onEntering(s,r)},e.onEntered=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1],c=u?"appear":"enter";e.removeClasses(p,c),e.addClass(p,c,"done"),e.props.onEntered&&e.props.onEntered(s,r)},e.onExit=function(s){var r=e.resolveArguments(s),n=r[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(s)},e.onExiting=function(s){var r=e.resolveArguments(s),n=r[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(s)},e.onExited=function(s){var r=e.resolveArguments(s),n=r[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(s)},e.resolveArguments=function(s,r){return e.props.nodeRef?[e.props.nodeRef.current,s]:[s,r]},e.getClassNames=function(s){var r=e.props.classNames,n=typeof r=="string",p=n&&r?r+"-":"",u=n?""+p+s:r[s],c=n?u+"-active":r[s+"Active"],x=n?u+"-done":r[s+"Done"];return{baseClassName:u,activeClassName:c,doneClassName:x}},e}var l=i.prototype;return l.addClass=function(t,o,a){var s=this.getClassNames(o)[a+"ClassName"],r=this.getClassNames("enter"),n=r.doneClassName;o==="appear"&&a==="done"&&n&&(s+=" "+n),a==="active"&&t&&_.forceReflow(t),s&&(this.appliedClasses[o][a]=s,S(t,s))},l.removeClasses=function(t,o){var a=this.appliedClasses[o],s=a.base,r=a.active,n=a.done;this.appliedClasses[o]={},s&&f(t,s),r&&f(t,r),n&&f(t,n)},l.render=function(){var t=this.props;t.classNames;var o=h(t,["classNames"]);return E.createElement(g.default,m({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i})(E.Component);C.defaultProps={classNames:""};C.propTypes=process.env.NODE_ENV!=="production"?m({},g.default.propTypes,{classNames:$.classNamesShape,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}):{};module.exports=C;
1
+ "use strict";const m=require("../../@babel/runtime/helpers/esm/extends.cjs.js"),h=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs.js"),N=require("../../@babel/runtime/helpers/esm/inheritsLoose.cjs.js"),v=require("../../../../_virtual/index.cjs12.js"),A=require("../../dom-helpers/esm/addClass.cjs.js"),q=require("../../dom-helpers/esm/removeClass.cjs.js"),E=require("react"),g=require("./Transition.cjs.js"),$=require("./utils/PropTypes.cjs.js"),_=require("./utils/reflow.cjs.js");var S=function(i,l){return i&&l&&l.split(" ").forEach(function(e){return A(i,e)})},f=function(i,l){return i&&l&&l.split(" ").forEach(function(e){return q(i,e)})},C=(function(d){N(i,d);function i(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return e=d.call.apply(d,[this].concat(o))||this,e.appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1];e.removeClasses(p,"exit"),e.addClass(p,u?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(s,r)},e.onEntering=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1],c=u?"appear":"enter";e.addClass(p,c,"active"),e.props.onEntering&&e.props.onEntering(s,r)},e.onEntered=function(s,r){var n=e.resolveArguments(s,r),p=n[0],u=n[1],c=u?"appear":"enter";e.removeClasses(p,c),e.addClass(p,c,"done"),e.props.onEntered&&e.props.onEntered(s,r)},e.onExit=function(s){var r=e.resolveArguments(s),n=r[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(s)},e.onExiting=function(s){var r=e.resolveArguments(s),n=r[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(s)},e.onExited=function(s){var r=e.resolveArguments(s),n=r[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(s)},e.resolveArguments=function(s,r){return e.props.nodeRef?[e.props.nodeRef.current,s]:[s,r]},e.getClassNames=function(s){var r=e.props.classNames,n=typeof r=="string",p=n&&r?r+"-":"",u=n?""+p+s:r[s],c=n?u+"-active":r[s+"Active"],x=n?u+"-done":r[s+"Done"];return{baseClassName:u,activeClassName:c,doneClassName:x}},e}var l=i.prototype;return l.addClass=function(t,o,a){var s=this.getClassNames(o)[a+"ClassName"],r=this.getClassNames("enter"),n=r.doneClassName;o==="appear"&&a==="done"&&n&&(s+=" "+n),a==="active"&&t&&_.forceReflow(t),s&&(this.appliedClasses[o][a]=s,S(t,s))},l.removeClasses=function(t,o){var a=this.appliedClasses[o],s=a.base,r=a.active,n=a.done;this.appliedClasses[o]={},s&&f(t,s),r&&f(t,r),n&&f(t,n)},l.render=function(){var t=this.props;t.classNames;var o=h(t,["classNames"]);return E.createElement(g.default,m({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i})(E.Component);C.defaultProps={classNames:""};C.propTypes=process.env.NODE_ENV!=="production"?m({},g.default.propTypes,{classNames:$.classNamesShape,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}):{};module.exports=C;
2
2
  //# sourceMappingURL=CSSTransition.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CSSTransition.cjs.js","sources":["../../../../../node_modules/react-transition-group/esm/CSSTransition.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;"],"names":["_addClass","node","classes","c","addOneClass","removeClass","removeOneClass","CSSTransition","_React$Component","_inheritsLoose","_this","_len","args","_key","maybeNode","maybeAppearing","_this$resolveArgument","appearing","_this$resolveArgument2","type","_this$resolveArgument3","_this$resolveArgument4","_this$resolveArgument5","_this$resolveArgument6","classNames","isStringClassNames","prefix","baseClassName","activeClassName","doneClassName","_proto","phase","className","_this$getClassNames","forceReflow","_this$appliedClasses$","_this$props","props","_objectWithoutPropertiesLoose","React","Transition","_extends","classNamesShape","PropTypes"],"mappings":"2fAWA,IAAIA,EAAY,SAAkBC,EAAMC,EAAS,CAC/C,OAAOD,GAAQC,GAAWA,EAAQ,MAAM,GAAG,EAAE,QAAQ,SAAUC,EAAG,CAChE,OAAOC,EAAYH,EAAME,CAAC,CAC5B,CAAC,CACH,EAEIE,EAAc,SAAqBJ,EAAMC,EAAS,CACpD,OAAOD,GAAQC,GAAWA,EAAQ,MAAM,GAAG,EAAE,QAAQ,SAAUC,EAAG,CAChE,OAAOG,EAAeL,EAAME,CAAC,CAC/B,CAAC,CACH,EAwEII,GAA6B,SAAUC,EAAkB,CAC3DC,EAAeF,EAAeC,CAAgB,EAE9C,SAASD,GAAgB,CAGvB,QAFIG,EAEKC,EAAO,UAAU,OAAQC,EAAO,IAAI,MAAMD,CAAI,EAAGE,EAAO,EAAGA,EAAOF,EAAME,IAC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AAU,IACtB,CAAC,EAAI,CAAA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"CSSTransition.cjs.js","sources":["../../../../../node_modules/react-transition-group/esm/CSSTransition.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport addOneClass from 'dom-helpers/addClass';\nimport removeOneClass from 'dom-helpers/removeClass';\nimport React from 'react';\nimport Transition from './Transition';\nimport { classNamesShape } from './utils/PropTypes';\nimport { forceReflow } from './utils/reflow';\n\nvar _addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return addOneClass(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return removeOneClass(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should\n * use it if you're using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**, so it's\n * important to add `transition` declaration only to them, otherwise transitions\n * might not behave as intended! This might not be obvious when the transitions\n * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in\n * the example above (minus `transition`), but it becomes apparent in more\n * complex transitions.\n *\n * **Note**: If you're using the\n * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)\n * prop, make sure to define styles for `.appear-*` classes as well.\n */\n\n\nvar CSSTransition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.appliedClasses = {\n appear: {},\n enter: {},\n exit: {}\n };\n\n _this.onEnter = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument[0],\n appearing = _this$resolveArgument[1];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, appearing ? 'appear' : 'enter', 'base');\n\n if (_this.props.onEnter) {\n _this.props.onEnter(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntering = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument2[0],\n appearing = _this$resolveArgument2[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.addClass(node, type, 'active');\n\n if (_this.props.onEntering) {\n _this.props.onEntering(maybeNode, maybeAppearing);\n }\n };\n\n _this.onEntered = function (maybeNode, maybeAppearing) {\n var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),\n node = _this$resolveArgument3[0],\n appearing = _this$resolveArgument3[1];\n\n var type = appearing ? 'appear' : 'enter';\n\n _this.removeClasses(node, type);\n\n _this.addClass(node, type, 'done');\n\n if (_this.props.onEntered) {\n _this.props.onEntered(maybeNode, maybeAppearing);\n }\n };\n\n _this.onExit = function (maybeNode) {\n var _this$resolveArgument4 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument4[0];\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n _this.addClass(node, 'exit', 'base');\n\n if (_this.props.onExit) {\n _this.props.onExit(maybeNode);\n }\n };\n\n _this.onExiting = function (maybeNode) {\n var _this$resolveArgument5 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument5[0];\n\n _this.addClass(node, 'exit', 'active');\n\n if (_this.props.onExiting) {\n _this.props.onExiting(maybeNode);\n }\n };\n\n _this.onExited = function (maybeNode) {\n var _this$resolveArgument6 = _this.resolveArguments(maybeNode),\n node = _this$resolveArgument6[0];\n\n _this.removeClasses(node, 'exit');\n\n _this.addClass(node, 'exit', 'done');\n\n if (_this.props.onExited) {\n _this.props.onExited(maybeNode);\n }\n };\n\n _this.resolveArguments = function (maybeNode, maybeAppearing) {\n return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`\n : [maybeNode, maybeAppearing];\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + \"-\" : '';\n var baseClassName = isStringClassNames ? \"\" + prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? baseClassName + \"-active\" : classNames[type + \"Active\"];\n var doneClassName = isStringClassNames ? baseClassName + \"-done\" : classNames[type + \"Done\"];\n return {\n baseClassName: baseClassName,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.addClass = function addClass(node, type, phase) {\n var className = this.getClassNames(type)[phase + \"ClassName\"];\n\n var _this$getClassNames = this.getClassNames('enter'),\n doneClassName = _this$getClassNames.doneClassName;\n\n if (type === 'appear' && phase === 'done' && doneClassName) {\n className += \" \" + doneClassName;\n } // This is to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n\n\n if (phase === 'active') {\n if (node) forceReflow(node);\n }\n\n if (className) {\n this.appliedClasses[type][phase] = className;\n\n _addClass(node, className);\n }\n };\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$appliedClasses$ = this.appliedClasses[type],\n baseClassName = _this$appliedClasses$.base,\n activeClassName = _this$appliedClasses$.active,\n doneClassName = _this$appliedClasses$.done;\n this.appliedClasses[type] = {};\n\n if (baseClassName) {\n removeClass(node, baseClassName);\n }\n\n if (activeClassName) {\n removeClass(node, activeClassName);\n }\n\n if (doneClassName) {\n removeClass(node, doneClassName);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n _ = _this$props.classNames,\n props = _objectWithoutPropertiesLoose(_this$props, [\"classNames\"]);\n\n return /*#__PURE__*/React.createElement(Transition, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(React.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, Transition.propTypes, {\n /**\n * The animation classNames applied to the component as it appears, enters,\n * exits or has finished the transition. A single name can be provided, which\n * will be suffixed for each stage, e.g. `classNames=\"fade\"` applies:\n *\n * - `fade-appear`, `fade-appear-active`, `fade-appear-done`\n * - `fade-enter`, `fade-enter-active`, `fade-enter-done`\n * - `fade-exit`, `fade-exit-active`, `fade-exit-done`\n *\n * A few details to note about how these classes are applied:\n *\n * 1. They are _joined_ with the ones that are already defined on the child\n * component, so if you want to add some base styles, you can use\n * `className` without worrying that it will be overridden.\n *\n * 2. If the transition component mounts with `in={false}`, no classes are\n * applied yet. You might be expecting `*-exit-done`, but if you think\n * about it, a component cannot finish exiting if it hasn't entered yet.\n *\n * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This\n * allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply\n * an epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nexport default CSSTransition;"],"names":["_addClass","node","classes","c","addOneClass","removeClass","removeOneClass","CSSTransition","_React$Component","_inheritsLoose","_this","_len","args","_key","maybeNode","maybeAppearing","_this$resolveArgument","appearing","_this$resolveArgument2","type","_this$resolveArgument3","_this$resolveArgument4","_this$resolveArgument5","_this$resolveArgument6","classNames","isStringClassNames","prefix","baseClassName","activeClassName","doneClassName","_proto","phase","className","_this$getClassNames","forceReflow","_this$appliedClasses$","_this$props","props","_objectWithoutPropertiesLoose","React","Transition","_extends","classNamesShape","PropTypes"],"mappings":"4fAWA,IAAIA,EAAY,SAAkBC,EAAMC,EAAS,CAC/C,OAAOD,GAAQC,GAAWA,EAAQ,MAAM,GAAG,EAAE,QAAQ,SAAUC,EAAG,CAChE,OAAOC,EAAYH,EAAME,CAAC,CAC5B,CAAC,CACH,EAEIE,EAAc,SAAqBJ,EAAMC,EAAS,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CAAC,CACJ,EAEO9B,CACT,GAAEgC,EAAM,SAAS,EAEjBhC,EAAc,aAAe,CAC3B,WAAY,EACd,EACAA,EAAc,UAAY,QAAQ,IAAI,WAAa,aAAekC,EAAS,CAAA,EAAID,EAAAA,QAAW,UAAW,CAqEnG,WAAYE,EAAAA,gBAUZ,QAASC,EAAU,KAUnB,WAAYA,EAAU,KAUtB,UAAWA,EAAU,KAUrB,OAAQA,EAAU,KASlB,UAAWA,EAAU,KAUrB,SAAUA,EAAU,IACtB,CAAC,EAAI,CAAA","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import C from "../../@babel/runtime/helpers/esm/extends.es.js";
2
2
  import x from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.es.js";
3
3
  import N from "../../@babel/runtime/helpers/esm/inheritsLoose.es.js";
4
- import v from "../../../../_virtual/index.es9.js";
4
+ import v from "../../../../_virtual/index.es12.js";
5
5
  import A from "../../dom-helpers/esm/addClass.es.js";
6
6
  import _ from "../../dom-helpers/esm/removeClass.es.js";
7
7
  import c from "react";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const D=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs.js"),C=require("../../@babel/runtime/helpers/esm/inheritsLoose.cjs.js"),o=require("../../../../_virtual/index.cjs9.js"),v=require("react"),N=require("react-dom"),S=require("./config.cjs.js"),R=require("./utils/PropTypes.cjs.js"),O=require("./TransitionGroupContext.cjs.js"),k=require("./utils/reflow.cjs.js");var x="unmounted",p="exited",f="entering",c="entered",T="exiting",l=(function(d){C(u,d);function u(i,e){var t;t=d.call(this,i,e)||this;var n=e,r=n&&!n.isMounting?i.enter:i.appear,a;return t.appearStatus=null,i.in?r?(a=p,t.appearStatus=f):a=c:i.unmountOnExit||i.mountOnEnter?a=x:a=p,t.state={status:a},t.nextCallback=null,t}u.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===x?{status:p}:null};var s=u.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==c&&(t=f):(n===f||n===c)&&(t=T)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e=this.props.timeout,t,n,r;return t=n=r=e,e!=null&&typeof e!="number"&&(t=e.exit,n=e.enter,r=e.appear!==void 0?e.appear:n),{exit:t,enter:n,appear:r}},s.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);n&&k.forceReflow(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:x})},s.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[N.findDOMNode(this),r],E=a[0],m=a[1],b=this.getTimeouts(),g=r?b.appear:b.enter;if(!e&&!n||S.disabled){this.safeSetState({status:c},function(){t.props.onEntered(E)});return}this.props.onEnter(E,m),this.safeSetState({status:f},function(){t.props.onEntering(E,m),t.onTransitionEnd(g,function(){t.safeSetState({status:c},function(){t.props.onEntered(E,m)})})})},s.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.findDOMNode(this);if(!t||S.disabled){this.safeSetState({status:p},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:T},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(r)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],E=a[0],m=a[1];this.props.addEndListener(E,m)}e!=null&&setTimeout(this.nextCallback,e)},s.render=function(){var e=this.state.status;if(e===x)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=D(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(O.Provider,{value:null},typeof n=="function"?n(e,r):v.cloneElement(v.Children.only(n),r))},u})(v.Component);l.contextType=O;l.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(d,u,s,i,e,t){var n=d[u];return o.instanceOf(n&&"ownerDocument"in n?n.ownerDocument.defaultView.Element:Element)(d,u,s,i,e,t)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(u){var s=R.timeoutsShape;u.addEndListener||(s=s.isRequired);for(var i=arguments.length,e=new Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];return s.apply(void 0,[u].concat(e))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function h(){}l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h};l.UNMOUNTED=x;l.EXITED=p;l.ENTERING=f;l.ENTERED=c;l.EXITING=T;exports.ENTERED=c;exports.ENTERING=f;exports.EXITED=p;exports.EXITING=T;exports.UNMOUNTED=x;exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const D=require("../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs.js"),C=require("../../@babel/runtime/helpers/esm/inheritsLoose.cjs.js"),o=require("../../../../_virtual/index.cjs12.js"),v=require("react"),N=require("react-dom"),S=require("./config.cjs.js"),R=require("./utils/PropTypes.cjs.js"),O=require("./TransitionGroupContext.cjs.js"),k=require("./utils/reflow.cjs.js");var x="unmounted",p="exited",f="entering",c="entered",T="exiting",l=(function(d){C(u,d);function u(i,e){var t;t=d.call(this,i,e)||this;var n=e,r=n&&!n.isMounting?i.enter:i.appear,a;return t.appearStatus=null,i.in?r?(a=p,t.appearStatus=f):a=c:i.unmountOnExit||i.mountOnEnter?a=x:a=p,t.state={status:a},t.nextCallback=null,t}u.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===x?{status:p}:null};var s=u.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==c&&(t=f):(n===f||n===c)&&(t=T)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e=this.props.timeout,t,n,r;return t=n=r=e,e!=null&&typeof e!="number"&&(t=e.exit,n=e.enter,r=e.appear!==void 0?e.appear:n),{exit:t,enter:n,appear:r}},s.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this);n&&k.forceReflow(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:x})},s.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[N.findDOMNode(this),r],E=a[0],m=a[1],b=this.getTimeouts(),g=r?b.appear:b.enter;if(!e&&!n||S.disabled){this.safeSetState({status:c},function(){t.props.onEntered(E)});return}this.props.onEnter(E,m),this.safeSetState({status:f},function(){t.props.onEntering(E,m),t.onTransitionEnd(g,function(){t.safeSetState({status:c},function(){t.props.onEntered(E,m)})})})},s.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.findDOMNode(this);if(!t||S.disabled){this.safeSetState({status:p},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:T},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(r)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],E=a[0],m=a[1];this.props.addEndListener(E,m)}e!=null&&setTimeout(this.nextCallback,e)},s.render=function(){var e=this.state.status;if(e===x)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=D(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(O.Provider,{value:null},typeof n=="function"?n(e,r):v.cloneElement(v.Children.only(n),r))},u})(v.Component);l.contextType=O;l.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(d,u,s,i,e,t){var n=d[u];return o.instanceOf(n&&"ownerDocument"in n?n.ownerDocument.defaultView.Element:Element)(d,u,s,i,e,t)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(u){var s=R.timeoutsShape;u.addEndListener||(s=s.isRequired);for(var i=arguments.length,e=new Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];return s.apply(void 0,[u].concat(e))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function h(){}l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h};l.UNMOUNTED=x;l.EXITED=p;l.ENTERING=f;l.ENTERED=c;l.EXITING=T;exports.ENTERED=c;exports.ENTERING=f;exports.EXITED=p;exports.EXITING=T;exports.UNMOUNTED=x;exports.default=l;
2
2
  //# sourceMappingURL=Transition.cjs.js.map