@yamato-daiwa/automation 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EntryPoint.js +1 -1
- package/README.md +3 -0
- package/package.json +3 -2
package/EntryPoint.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={3245:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(5577);var n;!function(e){let t;!function(e){e.buildProject="build",e.deployProject="deployProject"}(t=e.CommandPhrases||(e.CommandPhrases={})),e.specification={applicationName:"Yamato Daiwa Automation",commandPhrases:{[t.buildProject]:{mode:{newName:"projectBuildingMode",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!0,shortcut:"m",allowedAlternatives:Object.values(s.default)},configurationFile:{newName:"customConfigurationFileName__possiblyWithoutExtension",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!1},selectiveExecution:{newName:"selectiveExecutionID",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!1}}}}}(n||(n={})),t.default=n},4547:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8396)),r=o(i(3245)),n=o(i(6027)),a=o(i(1508)),l=i(1943),c=i(5577),u=o(i(1017));class d{static{l.Logger.setImplementation(c.ConsoleApplicationLogger),l.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI("https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues")}static interpretAndExecuteConsoleCommand(e){l.PoliteErrorsMessagesBuilder.setTechnicalDetailsOnlyModeIf(!1);const t=c.ConsoleCommandsParser.parse(e,r.default.specification),i=process.cwd();switch(a.default.unrollDotYDA_Directory(i),t.phrase){case r.default.CommandPhrases.buildProject:{const e=u.default.resolve(i,s.default);let o;try{o=c.ObjectDataFilesProcessor.processFile({filePath:e})}catch(t){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({customMessage:`Config file not found at: ${e}`}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",wrappableError:t})}n.default.buildProject({consumingProjectRootDirectoryAbsolutePath:i,projectBuildingConfig__fromConsole:{projectBuildingMode:t.projectBuildingMode,selectiveExecutionID:t.selectiveExecutionID},rawConfigFromFile:o});break}case r.default.CommandPhrases.deployProject:l.Logger.logWarning({title:"Not implemented yet",description:"This functionality has not been implemented yet."})}}}t.default=d},6027:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1431)),r=o(i(9830)),n=o(i(5755)),a=o(i(818)),l=o(i(8844)),c=o(i(9750)),u=o(i(6496)),d=o(i(7678)),p=o(i(5525)),g=o(i(5466)),f=o(i(1171)),m=o(i(7057)),h=o(i(9823)),P=o(i(3497)),S=o(i(1691)),y=o(i(7038)),_=i(1943);t.default=class{static buildProject({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,rawConfigFromFile:i}){const o=_.RawObjectDataProcessor.process(i,s.default.getLocalizedSpecification(r.default));o.rawDataIsInvalid&&_.Logger.throwErrorAndLog({errorInstance:new _.InvalidConfigError({mentionToConfig:"@yamato-daiwa/automation (project building)",messageSpecificPart:_.RawObjectDataProcessor.formatValidationErrorsList(o.validationErrorsMessages)}),title:_.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"ProjectBuilder.buildProject(parametersObject)"});const E=o.processedData.projectBuilding,v=n.default.normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,projectBuildingConfig__fromFile__rawValid:E}),F=new a.default(v),b="BUILD_PROJECT";y.default.task(b,y.default.parallel([c.default.provideMarkupLintingIfMust(F),y.default.series([y.default.parallel([u.default.provideTypeScriptImportsForMarkupIfMust(F),d.default.provideStylesProcessingIfMust(F),p.default.provideLogicProcessingIfMust(F),P.default.providePlainCopierIfMust(F)]),g.default.provideImagesProcessingIfMust(F),f.default.provideFontsProcessingIfMust(F),h.default.provideAudiosProcessingIfMust(F),m.default.provideVideosProcessingIfMust(F),l.default.provideMarkupProcessingIfMust(F),...F.mustProvideBrowserLiveReloading?[S.default.provideBrowserLiveReloadingIfMust(F)]:[]])])),y.default.task(b)?.((e=>{(0,_.isNeitherUndefinedNorNull)(e)&&_.Logger.logError({errorType:"UnhandledGulpPipelinesError",title:"Unhandled Gulp pipelines error",description:"Unhandled in Gulp pipelines error occurred",occurrenceLocation:"ProjectBuilder.buildProject(namedParameters)",caughtError:e})}))}}},5962:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2028)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;audiosProcessingSettings__fromFile__rawValid;static normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({audiosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.audiosProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.audiosProcessingSettings__fromFile__rawValid=e.audiosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["mp3","ogg","wma","wav","flac"]}},2238:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Audio";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Audios";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},1573:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.audiosProcessingLocalization})}}(r||(r={})),t.default=r},9823:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2238)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{TASK_NAME_FOR_LOGGING="Audios processing";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="Audio";audiosProcessingConfigRepresentative;static provideAudiosProcessingIfMust(e){const t=e.audiosProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.audiosProcessingConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.audiosProcessingConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.audiosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},9356:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2764)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;fontsProcessingSettings__fromFile__rawValid;static normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({fontsProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.fontsProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.fontsProcessingSettings__fromFile__rawValid=e.fontsProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2764:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["ttf","otf","woff","txt"]}},2871:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Font";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Fonts";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},6757:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.fontsProcessingLocalization})}}(r||(r={})),t.default=r},1171:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2871)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{fontsProcessorConfigRepresentative;TASK_NAME_FOR_LOGGING="活字管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="活字";static provideFontsProcessingIfMust(e){const t=e.fontsProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.fontsProcessorConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.fontsProcessorConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.fontsProcessorConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},1975:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4331)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;imagesProcessingSettings__fromFile__rawValid;static normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({imagesProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.imagesProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.imagesProcessingSettings__fromFile__rawValid=e.imagesProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},4331:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["jpg","png","gif","svg","ico","webp"]}},7066:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Image";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Images";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},3691:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.imagesProcessingLocalization})}}(r||(r={})),t.default=r},5466:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7066)),r=o(i(4758)),n=o(i(7038)),a=o(i(7125)),l=o(i(9952)),c=o(i(4779)),u=o(i(7803)),d=o(i(9298)),p=o(i(3887)),g=i(1943),f=i(2781);class m extends r.default{TASK_NAME_FOR_LOGGING="画像管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="画像";imagesProcessorConfigRepresentative;static provideImagesProcessingIfMust(e){const t=e.imagesProcessingSettingsRepresentative;if((0,g.isUndefined)(t))return()=>(new f.PassThrough).end();const i=new m(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.imagesProcessorConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,l.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,(0,d.default)([d.default.mozjpeg({progressive:!0}),d.default.gifsicle({interlaced:!0}),d.default.svgo({}),(0,p.default)()]))).pipe((0,l.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.imagesProcessorConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&c.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.imagesProcessorConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(u.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),u.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=m},4083:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2097)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;videosProcessingSettings__fromFile__rawValid;static normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({videosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.videosProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.videosProcessingSettings__fromFile__rawValid=e.videosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2097:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["avi","mov","mkv","mp4","avchd","flw","swf"]}},7640:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Video";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Videos";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},7130:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.videosProcessingLocalization})}}(r||(r={})),t.default=r},7057:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7640)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{TASK_NAME_FOR_LOGGING="画像管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="画像";videosProcessingConfigRepresentative;static provideVideosProcessingIfMust(e){const t=e.videosProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.videosProcessingConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.videosProcessingConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.videosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},1691:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7038)),r=o(i(4423)),n=o(i(3918)),a=i(1943),l=o(i(5304));class c{static localization=l.default;masterConfigRepresentative;browserLiveReloadingSettingsRepresentative;static provideBrowserLiveReloadingIfMust(e){const t=e.browserLiveReloadingSettingsRepresentative;if((0,a.isUndefined)(t))return e=>{e()};const i=new c(e,t);return()=>{i.initializeBrowsersync(),i.initializeOutputFilesWatcher()}}constructor(e,t){this.masterConfigRepresentative=e,this.browserLiveReloadingSettingsRepresentative=t}initializeBrowsersync(){r.default.init({...(0,a.isNull)(this.browserLiveReloadingSettingsRepresentative.proxy)?{server:{baseDir:this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,index:this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension}}:{proxy:this.browserLiveReloadingSettingsRepresentative.proxy},https:this.browserLiveReloadingSettingsRepresentative.mustUseHTTPS,cors:this.browserLiveReloadingSettingsRepresentative.mustUseCORS,...(0,a.isNotNull)(this.browserLiveReloadingSettingsRepresentative.localServerCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.localServerCustomPort}:null,watch:!0,ignore:this.browserLiveReloadingSettingsRepresentative.globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored,...this.browserLiveReloadingSettingsRepresentative.targetBrowsers.length>0?{browser:this.browserLiveReloadingSettingsRepresentative.targetBrowsers}:null,ui:!!this.browserLiveReloadingSettingsRepresentative.mustEnableBrowsersyncUserInterface&&{...(0,a.isNotNull)(this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort}:null},logLevel:"warn",notify:this.browserLiveReloadingSettingsRepresentative.mustDisplayBrowsersyncConnectedPopupInBrowser})}initializeOutputFilesWatcher(){let e;s.default.watch(this.masterConfigRepresentative.allOutputFilesGlobSelectors).on("all",((t,i)=>{t!==n.default.EventsNames.directoryAdded&&t!==n.default.EventsNames.directoryDeleted&&(clearTimeout(e),this.browserLiveReloadingSettingsRepresentative.mustLogOutputFileChangeDetection&&a.Logger.logInfo(c.localization.generateOutputFileChangeDetectionLog({filePath:i,eventLocalizedInterpretation:n.default.getEventNameInterpretation(t)})),e=setTimeout((()=>{this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon&&(a.Logger.logInfo(c.localization.browserTabWillBeReloadedSoonLog),r.default.reload())}),(0,a.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds)))}))}}t.default=c},5304:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateOutputFileChangeDetectionLog:e=>({title:"Browser live reloader, file status changing detected",description:`\tEvent : ${e.eventLocalizedInterpretation}\n\t Path : ${e.filePath}\nWaiting for the changing of other output files' status before reload the browser ...`}),browserTabWillBeReloadedSoonLog:{title:"Browser live reloader, browser will be reloaded soon",description:"The waiting period of other files will be saved elapsed. Browser will be reloaded soon."}}},4712:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=class{browserLiveReloadingSettings;constructor(e){this.browserLiveReloadingSettings=e}get targetFilesRootDirectoryAbsolutePath(){return this.browserLiveReloadingSettings.setup.localServer.rootDirectoryAbsolutePath}get startingFileNameWithExtension(){return this.browserLiveReloadingSettings.setup.localServer.startingFileNameWithExtension}get localServerCustomPort(){return this.browserLiveReloadingSettings.setup.localServer.port??null}get globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored(){return[...this.browserLiveReloadingSettings.setup.localServer.ignoredFilesAndDirectoriesRelativePaths]}get mustUseHTTPS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseHTTPS}get mustUseCORS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseCORS}get targetBrowsers(){return(0,o.isNotUndefined)(this.browserLiveReloadingSettings.setup.targetBrowsers)?[...this.browserLiveReloadingSettings.setup.targetBrowsers]:[]}get proxy(){return this.browserLiveReloadingSettings.setup.proxy??null}get periodBetweenFileUpdatingAndBrowserReloading__seconds(){return this.browserLiveReloadingSettings.setup.periodBetweenFileUpdatingAndBrowserReloading__seconds}get mustEnableBrowsersyncUserInterface(){return this.browserLiveReloadingSettings.setup.browserSyncUserInterface.enabled}get browsersyncUserInterfaceCustomPort(){return this.browserLiveReloadingSettings.setup.browserSyncUserInterface.customPort??null}get mustLogOutputFileChangeDetection(){return this.browserLiveReloadingSettings.logging.outputFileChangeDetection}get mustLogBrowserTabWillBeReloadedSoon(){return this.browserLiveReloadingSettings.logging.browserTabWillBeReloadedSoon}get mustDisplayBrowsersyncConnectedPopupInBrowser(){return this.browserLiveReloadingSettings.logging.browsersyncConnection}}},8685:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={setup:{localServer:{startingFileNameWithExtension:"index.html",HTTPS_Usage:!1,CORS_Usage:!1},browserSyncUserInterface:{enabled:!0},periodBetweenFileUpdatingAndBrowserReloading__seconds:.5},logging:{outputFileChangeDetection:!0,browserTabWillBeReloadedSoon:!1,browsersyncConnection:!0}}},7171:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);var s;!function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.setups.KEY]:{newName:"setups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{[e.setups.localServer.KEY]:{newName:"localServer",type:Object,required:!0,properties:{[e.setups.localServer.rootDirectoryRelativePath.KEY]:{newName:"rootDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},[e.setups.localServer.ignoredFilesAndDirectoriesRelativePaths.KEY]:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,required:!1,preValidationModifications:o.nullToUndefined,element:{type:String,minimalCharactersCount:1}},[e.setups.localServer.customPort.KEY]:{newName:"customPort",type:Number,numbersSet:o.RawObjectDataProcessor.NumbersSets.nonNegativeInteger,required:!1,maximalValue:65536},[e.setups.localServer.customStartingFileNameWithExtension.KEY]:{newName:"customStartingFileNameWithExtension",type:String,required:!1,minimalCharactersCount:1},[e.setups.localServer.useHTTPS.KEY]:{newName:"useHTTPS",type:Boolean,required:!1},[e.setups.localServer.useCORS.KEY]:{newName:"useCORS",type:Boolean,required:!1}}},[e.setups.proxy.KEY]:{newName:"proxy",type:String,required:!1,minimalCharactersCount:1},[e.setups.openInBrowsers.KEY]:{newName:"openInBrowsers",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.setups.browserSyncUserInterface.KEY]:{newName:"browserSyncUserInterface",type:Object,required:!1,preValidationModifications:o.nullToUndefined,properties:{[e.setups.browserSyncUserInterface.customPort.KEY]:{newName:"customPort",type:Number,numbersSet:o.RawObjectDataProcessor.NumbersSets.nonNegativeInteger,required:!1,maximalValue:65536},[e.setups.browserSyncUserInterface.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.setups.periodBetweenFileUpdatingAndBrowserReloading__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndBrowserReloading__seconds",type:Number,required:!1,numbersSet:o.RawObjectDataProcessor.NumbersSets.anyRealNumber}}}},[e.logging.KEY]:{newName:"logging",type:Object,required:!1,preValidationModifications:o.nullToUndefined,properties:{[e.logging.outputFileChangeDetection.KEY]:{newName:"outputFileChangeDetection",type:Boolean,required:!1},[e.logging.browserTabWillBeReloadedSoon.KEY]:{newName:"browserTabWillBeReloadedSoon",type:Boolean,required:!1},[e.logging.browsersyncConnection.KEY]:{newName:"browsersyncConnection",type:Boolean,required:!1}}}}}}(s||(s={})),t.default=s},2335:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8685)),r=i(1943),n=o(i(7803)),a=o(i(6896));class l{static localization=a.default;static normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:t,hasSelectiveExecutionBeenDeclared:i,selectedBrowserLiveReloadingSetupID:o}){let a;if((0,r.isNotUndefined)(o))a=e.setups[o],(0,r.isUndefined)(a)&&r.Logger.throwErrorAndLog({errorInstance:new r.InvalidParameterValueError({customMessage:l.localization.generateUndefinedBrowserLiveReloadingSetupID_Message({selectedBrowserLiveReloadingSetupID:o,stringifiedAvailableBrowserLiveReloadingSetupsIDs:(0,r.stringifyAndFormatArbitraryValue)(Object.keys(e))})}),occurrenceLocation:"BrowserLiveReloadingSettingsNormalizer.normalize(namedParameters)",title:r.InvalidParameterValueError.localization.defaultTitle});else{if(i||1!==Object.values(e).length)return;a=Object.values(e.setups)[0]}return{setup:{localServer:{rootDirectoryAbsolutePath:n.default.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.rootDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),ignoredFilesAndDirectoriesRelativePaths:(()=>{const e=a.localServer.ignoredFilesAndDirectoriesRelativePaths;return Array.isArray(e)?e:(0,r.isString)(e)?[e]:[]})(),...(0,r.isNotUndefined)(a.localServer.customPort)?{port:a.localServer.customPort}:null,startingFileNameWithExtension:a.localServer.customStartingFileNameWithExtension??s.default.setup.localServer.startingFileNameWithExtension,mustUseHTTPS:!0===a.localServer.useHTTPS||s.default.setup.localServer.HTTPS_Usage,mustUseCORS:!0===a.localServer.useCORS||s.default.setup.localServer.CORS_Usage},...(0,r.isNotUndefined)(a.proxy)?{proxy:a.proxy}:{},...(0,r.isUndefined)(a.openInBrowsers)?{}:{targetBrowsers:Array.isArray(a.openInBrowsers)?a.openInBrowsers:[a.openInBrowsers]},browserSyncUserInterface:{enabled:s.default.setup.browserSyncUserInterface.enabled,...(0,r.isUndefined)(a.browserSyncUserInterface)||(0,r.isUndefined)(a.browserSyncUserInterface.customPort)?{}:{port:a.browserSyncUserInterface.customPort}},...(0,r.isNonEmptyArbitraryObject)(a.browserSyncUserInterface)?{browserSyncUserInterface:{...(0,r.isNotUndefined)(a.browserSyncUserInterface.customPort)?{port:a.browserSyncUserInterface.customPort}:null,enabled:s.default.setup.browserSyncUserInterface.enabled}}:{},periodBetweenFileUpdatingAndBrowserReloading__seconds:a.periodBetweenFileUpdatingAndBrowserReloading__seconds??s.default.setup.periodBetweenFileUpdatingAndBrowserReloading__seconds},logging:{outputFileChangeDetection:e.logging?.outputFileChangeDetection??s.default.logging.outputFileChangeDetection,browserTabWillBeReloadedSoon:e.logging?.browserTabWillBeReloadedSoon??s.default.logging.browserTabWillBeReloadedSoon,browsersyncConnection:e.logging?.browsersyncConnection??s.default.logging.browsersyncConnection}}}}t.default=l},6896:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUndefinedBrowserLiveReloadingSetupID_Message:e=>`The specified browser setup ID '${e.selectedBrowserLiveReloadingSetupID}' is not defined in configuration file. Below setups IDs has been defined:\n${e.stringifiedAvailableBrowserLiveReloadingSetupsIDs}`}},2106:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991));t.default={revisioning:{mustExecute:e=>e!==s.default.staticPreview&&e!==s.default.localDevelopment,contentHashPostfixSeparator:"--"}}},8396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default="yda.config.yaml"},1259:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(2102),s=i(1943),r=i(5577);t.default=class{static normalize({commonSettings__fromFile__rawValid:e,consumingProjectRootDirectoryAbsolutePath:t,projectBuildingMode:i,actualSelectiveExecution:n}){const a=r.ImprovedPath.replacePathSeparatorsToForwardSlashes(t),l=e.publicDirectoriesRelativePaths?.[i];let c;return(0,s.isNotUndefined)(l)&&(c=r.ImprovedPath.joinPathSegments([a,l],{alwaysForwardSlashSeparators:!0})),{projectRootDirectoryAbsolutePath:a,projectBuildingMode:i,...(0,s.isNotUndefined)(n)?{tasksAndSourceFilesSelection:{markupProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.markupProcessing],stylesProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.stylesProcessing],ECMA_ScriptLogicProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing],imagesProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.imagesProcessing],fontsProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.fontsProcessing],audiosProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.audiosProcessing],plainCopying:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.plainCopying],videosProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.videosProcessing]}}:null,browserLiveReloadingSetupID:n?.browserLiveReloadingSetupID,actualPublicDirectoryAbsolutePath:c}}}},9594:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedSpecification=function({assetsProcessingSettingsGenericPropertiesLocalization:e,revisioningPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i}){return{[e.assetsGroups.KEY]:{newName:"assetsGroups",preValidationModifications:r.nullToUndefined,type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{[e.assetsGroups.sourceFilesTopDirectoryRelativePath.KEY]:{newName:"sourceFilesTopDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},[e.assetsGroups.sourceFilesTopDirectoryPathAliasForReferencingFromHTML.KEY]:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,required:!1,minimalCharactersCount:1},[e.assetsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:s.default.staticPreview,[i.localDevelopment]:s.default.localDevelopment,[i.testing]:s.default.testing,[i.staging]:s.default.staging,[i.production]:s.default.production},value:{type:Object,properties:{[e.assetsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.assetsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,preValidationModifications:r.nullToUndefined,properties:t},[e.assetsGroups.buildingModeDependent.outputPathTransformations.KEY]:{newName:"outputPathTransformations",type:Object,required:!1,properties:{[e.assetsGroups.buildingModeDependent.outputPathTransformations.segmentsWhichMustBeRemoved.KEY]:{newName:"segmentsWhichMustBeRemoved",type:Array,required:!1,element:{type:String,minimalCharactersCount:1}},[e.assetsGroups.buildingModeDependent.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved.KEY]:{newName:"segmentsWhichLastDuplicatesMustBeRemoved",type:Array,required:!1,element:{type:String,minimalCharactersCount:1}}}}}}}}}}}}}(n||(n={})),t.default=n},2102:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectBuildingTasksIDsForConfigFile=void 0,(i=t.ProjectBuildingTasksIDsForConfigFile||(t.ProjectBuildingTasksIDsForConfigFile={})).markupProcessing="markupProcessing",i.stylesProcessing="stylesProcessing",i.ECMA_ScriptLogicProcessing="ECMA_ScriptLogicProcessing",i.imagesProcessing="imagesProcessing",i.fontsProcessing="fontsProcessing",i.audiosProcessing="audiosProcessing",i.videosProcessing="videosProcessing",i.browserLiveReloading="browserLiveReloading",i.plainCopying="plainCopying"},4256:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(2102),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({projectBuildingCommonSettingsLocalization:e,tasksLocalizedIDs:t}){return{[e.selectiveExecutions.KEY]:{newName:"selectiveExecutions",preValidationModifications:n.nullToUndefined,type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,value:{type:Object,properties:{[e.selectiveExecutions.tasksAndSourceFilesSelection.KEY]:{newName:"tasksAndSourceFilesSelection",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(t),keysRenamings:{[t.markupProcessing]:r.ProjectBuildingTasksIDsForConfigFile.markupProcessing,[t.stylesProcessing]:r.ProjectBuildingTasksIDsForConfigFile.stylesProcessing,[t.ECMA_ScriptLogicProcessing]:r.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing,[t.imagesProcessing]:r.ProjectBuildingTasksIDsForConfigFile.imagesProcessing,[t.fontsProcessing]:r.ProjectBuildingTasksIDsForConfigFile.fontsProcessing,[t.audiosProcessing]:r.ProjectBuildingTasksIDsForConfigFile.audiosProcessing,[t.videosProcessing]:r.ProjectBuildingTasksIDsForConfigFile.videosProcessing,[t.plainCopying]:r.ProjectBuildingTasksIDsForConfigFile.plainCopying,[t.browserLiveReloading]:r.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading},value:{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}}},[e.selectiveExecutions.browserLiveReloadingSetupID.KEY]:{newName:"browserLiveReloadingSetupID",type:String,required:!1}}}},[e.publicDirectoriesRelativePaths.KEY]:{newName:"publicDirectoriesRelativePaths",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,allowedKeys:Object.values(s.default),value:{type:String,minimalCharactersCount:1}}}}}(a||(a={})),t.default=a},8365:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.presetFileRelativePath.KEY]:{newName:"presetFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.enabled.KEY]:{newName:"enabled",type:Boolean,required:!1}}}}(i||(i={})),t.default=i},7745:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.disable.KEY]:{newName:"disable",type:Boolean,required:!1},[e.contentHashPostfixSeparator.KEY]:{newName:"contentHashPostfixSeparator",type:String,required:!1,minimalCharactersCount:1}}}}(i||(i={})),t.default=i},9258:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);var s;!function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.topDirectoryRelativePath.KEY]:{newName:"topDirectoryRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.partialsRecognition.KEY]:{newName:"partialsRecognition",preValidationModifications:o.nullToUndefined,type:Object,required:!1,properties:{[e.partialsRecognition.excludeAllSubdirectories.KEY]:{newName:"excludeAllSubdirectories",type:Boolean,required:!1},[e.partialsRecognition.excludeSubdirectoriesWithNames.KEY]:{newName:"excludeSubdirectoriesWithNames",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.partialsRecognition.excludeSubdirectoriesWithPrefixes.KEY]:{newName:"excludeSubdirectoriesWithPrefixes",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.partialsRecognition.excludeFilesWithPrefixes.KEY]:{newName:"excludeFilesWithPrefixes",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String}},{type:String,minimalElementsCount:1}]}}},[e.singleEntryPointRelativePath.KEY]:{newName:"singleEntryPointRelativePath",type:String,requiredIf:{predicate:e=>!(0,o.isNonEmptyString)(e.topDirectoryRelativePath),descriptionForLogging:e.singleEntryPointRelativePath.REQUIREMENT_CONDITION_DESCRIPTION},minimalCharactersCount:1}}}}(s||(s={})),t.default=s},1168:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2106)),r=i(1943),n=o(i(7803)),a=o(i(7184));t.default=class{consumingProjectRootDirectoryAbsolutePath;consumingProjectBuildingMode;assetsGroupsIDsSelection;constructor(e){this.consumingProjectRootDirectoryAbsolutePath=e.consumingProjectRootDirectoryAbsolutePath,this.consumingProjectBuildingMode=e.consumingProjectBuildingMode,this.assetsGroupsIDsSelection=e.assetsGroupsIDsSelection??[]}createNormalizedAssetsGroupsSettings(e,t){const i=new Map;if((0,r.isUndefined)(e))return i;for(const[o,l]of Object.entries(e)){const e=l.buildingModeDependent[this.consumingProjectBuildingMode];if((0,r.isUndefined)(e))continue;const c=n.default.extractDirectoryFromFilePath(n.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,l.sourceFilesTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0})),u=l.sourceFilesTopDirectoryPathAliasForReferencingFromHTML??`@${o}`,d=n.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),p={ID:o,sourceFilesTopDirectoryAbsolutePath:c,sourceFilesGlobSelector:a.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c,fileNamesExtensions:this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots}),sourceFilesTopDirectoryPathAlias:u,outputFilesTopDirectoryAbsolutePath:d,outputPathTransformations:{...(0,r.isNonEmptyArray)(e.outputPathTransformations?.segmentsWhichMustBeRemoved)?{segmentsWhichMustBeRemoved:(0,r.undefinedToEmptyArray)(e.outputPathTransformations?.segmentsWhichMustBeRemoved)}:{},...(0,r.isNonEmptyArray)(e.outputPathTransformations?.segmentsWhichLastDuplicatesMustBeRemoved)?{segmentsWhichLastDuplicatesMustBeRemoved:(0,r.undefinedToEmptyArray)(e.outputPathTransformations?.segmentsWhichLastDuplicatesMustBeRemoved)}:{}},revisioning:{mustExecute:!0!==e.revisioning?.disable&&s.default.revisioning.mustExecute(this.consumingProjectBuildingMode),contentHashPostfixSeparator:e.revisioning?.contentHashPostfixSeparator??s.default.revisioning.contentHashPostfixSeparator}};i.set(o,t(p,l))}return i}}},9418:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7803)),r=o(i(7184)),n=i(1943);t.default=class{projectBuildingCommonSettings__normalized;entryPointsGroupsIDsSelection;constructor(e){this.projectBuildingCommonSettings__normalized=e.projectBuildingCommonSettings__normalized,(0,n.isNonEmptyArray)(e.entryPointsGroupsIDsSelection)&&(this.entryPointsGroupsIDsSelection=e.entryPointsGroupsIDsSelection)}createNormalizedEntryPointsGroupsSettings(e,t){const i=new Map;if((0,n.isUndefined)(e))return i;for(const[o,r]of Object.entries(e)){if((0,n.isNotUndefined)(this.entryPointsGroupsIDsSelection)&&!this.entryPointsGroupsIDsSelection.includes(o))continue;const e=r.buildingModeDependent[this.consumingProjectBuildingMode];if((0,n.isUndefined)(e))continue;let a;const l=[];let c;if("singleEntryPointRelativePath"in r){c=!0;const e=s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,r.singleEntryPointRelativePath],{forwardSlashOnlySeparators:!0});l.push(e),a=s.default.extractDirectoryFromFilePath(e)}else c=!1,a=s.default.extractDirectoryFromFilePath(s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,r.topDirectoryRelativePath],{forwardSlashOnlySeparators:!0})),l.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsSourceFilesDirectoryAbsolutePath:a,partialsRecognition:r.partialsRecognition}));const u={ID:o,sourceFilesTopDirectoryAbsolutePath:a,sourceFilesGlobSelectors:l,isSingeEntryPointGroup:c,outputFilesTopDirectoryAbsolutePath:s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0})};i.set(o,t(u,r))}return i}getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsSourceFilesDirectoryAbsolutePath:e,partialsRecognition:t}){const i=[];if((0,n.isUndefined)(t))i.push(r.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}));else if(!0===t.excludeAllSubdirectories)i.push(r.default.buildAllFilesInCurrentDirectoryButNotBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}));else{const o=r.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots});let s,a,l;i.push(o),Array.isArray(t.excludeFilesWithPrefixes)?s=t.excludeFilesWithPrefixes:(0,n.isString)(t.excludeFilesWithPrefixes)&&(s=[t.excludeFilesWithPrefixes]),(0,n.isNotUndefined)(s)&&i.push(r.default.buildExcludingOfFilesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,filesNamesPrefixes:s,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),Array.isArray(t.excludeSubdirectoriesWithPrefixes)?a=t.excludeSubdirectoriesWithPrefixes:(0,n.isString)(t.excludeSubdirectoriesWithPrefixes)&&(a=[t.excludeSubdirectoriesWithPrefixes]),(0,n.isNotUndefined)(a)&&i.push(r.default.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,subdirectoriesPrefixes:a,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),Array.isArray(t.excludeSubdirectoriesWithNames)?l=t.excludeSubdirectoriesWithNames:(0,n.isString)(t.excludeSubdirectoriesWithNames)&&(l=[t.excludeSubdirectoriesWithNames]),(0,n.isNotUndefined)(l)&&i.push(r.default.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector({basicDirectoryPath:e,subdirectoriesNames:l,filenamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}))}return i}get consumingProjectRootDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.projectBuildingCommonSettings__normalized.projectBuildingMode}get actualPublicDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.actualPublicDirectoryAbsolutePath}}},2991:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.staticPreview="STATIC_PREVIEW",e.localDevelopment="LOCAL_DEVELOPMENT",e.testing="TESTING",e.staging="STAGING",e.production="PRODUCTION"}(i||(i={})),t.default=i},4063:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7803)),n=o(i(7184));t.default=class{sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map;prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";masterConfigRepresentative;static computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e,respectiveAssetsGroupNormalizedSettings:t}){let i=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:r.default.extractDirectoryFromFilePath(e)})],{forwardSlashOnlySeparators:!0});if((0,s.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=r.default.removeSegmentsFromPath(i,t.outputPathTransformations.segmentsWhichMustBeRemoved)),(0,s.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=r.default.splitPathToSegments(i);t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved.forEach((t=>{const i=(0,s.getIndexesOfArrayElementsWhichSatisfiesThePredicate)(e,(e=>e===t));(0,s.removeArrayElementsByIndexes)({targetArray:e,indexes:i[i.length-1],mutably:!0})})),i=r.default.joinPathSegments(e,{forwardSlashOnlySeparators:!0})}return i}constructor(e){this.masterConfigRepresentative=e}get supportedSourceFilesNamesExtensionsWithoutLeadingDots(){return this.assetsProcessingCommonSettings.supportedSourceFilesNamesExtensionsWithoutLeadingDots}get hasAtLeastOneActualAssetsGroup(){return this.actualAssetsGroupsSettings.size>0}get actualAssetsSourceFilesAbsolutePaths(){const e=[];return this.actualAssetsGroupsSettings.forEach((t=>{e.push(...n.default.getFilesAbsolutePathsSynchronously([t.sourceFilesGlobSelector]))})),e}getAssetsNormalizedSettingsActualForTargetSourceFile(e){const t=Array.from(this.actualAssetsGroupsSettings.values()).find((t=>n.default.isFileMatchingWithGlobSelector({filePath:e,globSelector:t.sourceFilesGlobSelector})));return(0,s.isUndefined)(t)&&s.Logger.throwErrorAndLog({errorInstance:new s.UnexpectedEventError(`ファイル:「${e}」に適切な設定が発見されず。設定通りファイルファイルを回収には下記のGlob正規表示が建てられたが、逆に、当ファイルに何方のGlob正規表現とも合っていない。\n${(0,s.stringifyAndFormatArbitraryValue)(Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector)))}`),occurrenceLocation:"AssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(targetSourceFileAbsolutePath: string)",title:s.UnexpectedEventError.localization.defaultTitle}),t}get actualOutputFilesGlobSelectors(){return Array.from(this.actualAssetsGroupsSettings.values()).map((e=>n.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.supportedSourceFilesNamesExtensionsWithoutLeadingDots})))}get assetsGroupsNormalizedSettingsMappedByAssetAliases(){const e=new Map;return this.actualAssetsGroupsSettings.forEach((t=>{e.set(t.sourceFilesTopDirectoryPathAlias,t)})),e}}},6434:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9433)),r=i(1943),n=o(i(7803)),a=o(i(7184)),l=o(i(8523));class c extends s.default{static#e=c.getDefaultLocalization();partialFilesAndEntryPointsRelationsMap=new Map;mustLogPartialFilesAndEntryPointsRelationsMap;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){return t.isSingeEntryPointGroup?t.outputFilesTopDirectoryAbsolutePath:n.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,n.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:n.default.extractDirectoryFromFilePath(e)})],{forwardSlashOnlySeparators:!0})}static setLocalization(e){this.#e=e}constructor(e){super(e.masterConfigRepresentative),this.mustLogPartialFilesAndEntryPointsRelationsMap=e.mustLogPartialFilesAndEntryPointsRelationsMap}get hasAtLeastOneRelevantEntryPointsGroup(){return this.relevantEntryPointsGroupsSettings.size>0}get relevantEntryPointsSourceFilesAbsolutePaths(){const e=[];return this.relevantEntryPointsGroupsSettings.forEach((t=>{e.push(...a.default.getFilesAbsolutePathsSynchronously(t.sourceFilesGlobSelectors))})),e}get relevantEntryPointsSourceDirectoriesAbsolutePaths(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>e.sourceFilesTopDirectoryAbsolutePath))}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values())if(a.default.isFileMatchingWithAllGlobSelectors({filePath:e,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}return(0,r.isUndefined)(t)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(c.#e.generateEntryPointsGroupNormalizedSettingsNotFoundForSpecifiedFilePath({targetSourceFileAbsolutePath:e})),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}initializeOrUpdatePartialFilesAndEntryPointsRelationsMap(){this.partialFilesAndEntryPointsRelationsMap.clear(),(0,r.addMultiplePairsToMap)(this.partialFilesAndEntryPointsRelationsMap,l.default.getPartialFilesAndParentEntryPointsRelationsMap({targetEntryPointsFilesAbsolutePaths:this.relevantEntryPointsSourceFilesAbsolutePaths,sourceFilesTypeLabelForLogging:this.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,masterConfigRepresentative:this.masterConfigRepresentative,loggingIsEnabled:this.mustLogPartialFilesAndEntryPointsRelationsMap}))}static getDefaultLocalization(){return{generateEntryPointsGroupNormalizedSettingsNotFoundForSpecifiedFilePath:({targetSourceFileAbsolutePath:e})=>`No normalized config found for file '${e}'.'`}}}t.default=c},9433:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7184));t.default=class{masterConfigRepresentative;constructor(e){this.masterConfigRepresentative=e}getEntryPointsGroupSettingsByID(e){return this.relevantEntryPointsGroupsSettings.get(e)}get actualOutputFilesGlobSelectors(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>s.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.sourceCodeProcessingCommonSettings.supportedOutputFileNameExtensionsWithoutLeadingDots})))}}},4758:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(7038)),n=o(i(3918)),a=i(1943);class l extends s.default{static WAITING_FOR_OTHER_FILES_WILL_BE_SAVED_PERIOD__SECONDS=1;associatedAssetsProcessingConfigRepresentative;filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing=new Set;waitingForOtherFilesWillBeSavedDuration=null;constructor(e,t){super(e),this.associatedAssetsProcessingConfigRepresentative=t}initializeOrUpdateSourceFilesWatcherIfMust(){(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode)&&r.default.watch(this.associatedAssetsProcessingConfigRepresentative.relevantSourceFilesGlobSelectors).on("all",((e,t)=>{a.Logger.logInfo({title:`${this.SOURCE_FILES_TYPE_LABEL_FOR_LOGGING} files watcher`,description:` Event : ${n.default.getEventNameInterpretation(e)}\n Path : ${t}`}),e!==n.default.EventsNames.directoryAdded&&e!==n.default.EventsNames.directoryDeleted&&e!==n.default.EventsNames.fileDeleted&&((0,a.isNotNull)(this.waitingForOtherFilesWillBeSavedDuration)&&clearTimeout(this.waitingForOtherFilesWillBeSavedDuration),a.Logger.logInfo({title:`${this.SOURCE_FILES_TYPE_LABEL_FOR_LOGGING} files watcher`,description:"Waiting for the saving of same type files..."}),this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.add(t),this.waitingForOtherFilesWillBeSavedDuration=setTimeout((()=>{this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.size>0&&this.processAssets(Array.from(this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing))(),this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.clear()}),(0,a.secondsToMilliseconds)(l.WAITING_FOR_OTHER_FILES_WILL_BE_SAVED_PERIOD__SECONDS)))}))}}t.default=l},4079:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(3918)),n=o(i(7038)),a=i(1943),l=o(i(7803)),c=o(i(7184));class u extends s.default{globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow=[];mutableGlobSelectorsOfSourceFilesWhichWillBeWatched=[];associatedSourceCodeProcessingSettingsRepresentative;sourceFilesActiveWatcher=null;queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged=new Set;constructor(e,t){super(e),this.associatedSourceCodeProcessingSettingsRepresentative=t}initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(){this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow.push(...this.associatedSourceCodeProcessingSettingsRepresentative.relevantEntryPointsSourceDirectoriesAbsolutePaths.map((e=>c.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.associatedSourceCodeProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}))))}initializeOrUpdateWatchedSourceFilesGlobSelectors(){const e=[];for(const t of this.associatedSourceCodeProcessingSettingsRepresentative.partialFilesAndEntryPointsRelationsMap.keys()){let i=!1;for(const e of this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow)if(c.default.isFileMatchingWithGlobSelector({filePath:t,globSelector:e})){i=!0;break}i||e.push(t)}this.mutableGlobSelectorsOfSourceFilesWhichWillBeWatched=this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow.concat(e)}initializeOrUpdateSourceFilesWatcher(){let e;this.sourceFilesActiveWatcher=n.default.watch(this.mutableGlobSelectorsOfSourceFilesWhichWillBeWatched).on("all",((t,i)=>{a.Logger.logInfo({title:`${this.associatedSourceCodeProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM} files watcher`,description:` Event : ${r.default.getEventNameInterpretation(t)}\n File path : ${i}`}),t!==r.default.EventsNames.directoryAdded&&t!==r.default.EventsNames.directoryDeleted&&(clearTimeout(e),a.Logger.logInfo({title:`${this.associatedSourceCodeProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM} files watcher`,description:"Waiting for the saving of same type files..."}),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.add(l.default.replacePathSeparatorsToForwardSlashes(i)),e=setTimeout(this.onFilesSetReadyToProcessing.bind(this),(0,a.secondsToMilliseconds)(this.associatedSourceCodeProcessingSettingsRepresentative.waitingForTheOtherFilesWillBeSavedPeriod__seconds)))}))}onFilesSetReadyToProcessing(){this.associatedSourceCodeProcessingSettingsRepresentative.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap();const e=new Set;for(const t of this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged){const i=this.associatedSourceCodeProcessingSettingsRepresentative.partialFilesAndEntryPointsRelationsMap.get(t);(0,a.isNotUndefined)(i)&&(0,a.addMultipleElementsToSet)(e,Array.from(i))}this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.clear(),e.size>0&&this.processEntryPoints(Array.from(e))(),this.initializeOrUpdateWatchedSourceFilesGlobSelectors();let t=this.sourceFilesActiveWatcher;this.initializeOrUpdateSourceFilesWatcher(),t?.close(),t=null}}t.default=u},173:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8174)),r=o(i(8858)),n=i(1943),a=o(i(8722));t.default=class{masterConfigRepresentative;constructor(e){this.masterConfigRepresentative=e}printProcessedFilesPathsAndQuantity(e={}){return(0,s.default)({title:`Task '${this.TASK_NAME_FOR_LOGGING}${(0,n.insertSubstring)(e.subtaskName,{modifier:e=>` / ${e}`})}':`})}handleErrorIfItWillOccur(e={}){return(0,r.default)({errorHandler:t=>{const i=`Task '${this.TASK_NAME_FOR_LOGGING}${(0,n.insertSubstring)(e.subtaskName,{modifier:e=>` / ${e}`})}', error occurred`;n.Logger.logErrorLikeMessage({title:i,description:t.message}),a.default.notify({title:i,message:"Please check your terminal for the details."})}})}}},1141:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(7038)),n=o(i(3918)),a=i(1943),l=o(i(7803));class c extends s.default{static WAITING_FOR_THE_FILES_OF_SAME_TYPE_WILL_BE_SAVED_PERIOD__SECONDS=1;sourceFilesActiveWatcher=null;queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged=new Set;onActualSourceFileHasBeenDeletedEventListeners=[];initializeOrUpdateSourceFilesWatcher(){let e;this.sourceFilesActiveWatcher=r.default.watch(this.targetFilesGlobSelectors).on("all",((t,i)=>{if(a.Logger.logInfo({title:`Files watcher of "${this.LINTER_NAME}"`,description:` Event : ${n.default.getEventNameInterpretation(t)}\n File path : ${i}`}),t!==n.default.EventsNames.directoryAdded&&t!==n.default.EventsNames.directoryDeleted)if(t!==n.default.EventsNames.fileDeleted)clearTimeout(e),a.Logger.logInfo({title:`Files watcher of "${this.LINTER_NAME}"`,description:"Waiting for the saving of files of same type..."}),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.add(l.default.replacePathSeparatorsToForwardSlashes(i)),e=setTimeout(this.onFilesSetReadyToLinting.bind(this),(0,a.secondsToMilliseconds)(c.WAITING_FOR_THE_FILES_OF_SAME_TYPE_WILL_BE_SAVED_PERIOD__SECONDS));else for(const e of this.onActualSourceFileHasBeenDeletedEventListeners)e()}))}addOnActualSourceFileHasBeenDeletedEventListener(e){this.onActualSourceFileHasBeenDeletedEventListeners.push(e)}onFilesSetReadyToLinting(){this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.size>0&&(this.lint(Array.from(this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged))(),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.clear());let e=this.sourceFilesActiveWatcher;this.initializeOrUpdateSourceFilesWatcher(),e?.close(),e=null}}t.default=c},6263:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6919)),r=o(i(1265)),n=i(5577);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;associatedFilesGroupSettings;constructor(e,t){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=n.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),this.associatedFilesGroupSettings=t}static get outputDirectoryCalculatorForSpecificFile(){return e=>r.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)}}t.default=a},3497:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7038)),r=o(i(1921)),n=o(i(6300)),a=o(i(6263)),l=i(1943),c=i(5577),u=o(i(7184));class d{sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence;static providePlainCopierIfMust(e){return(0,l.isUndefined)(e.plainCopyingSettingsRepresentative)||0===Object.entries(e.plainCopyingSettingsRepresentative.filesGroups).length?(0,n.default)():new d(e.plainCopyingSettingsRepresentative).copyFiles()}constructor(e){const t={};for(const i of Object.values(e.filesGroups)){const e="sourceFileAbsolutePath"in i?[i.sourceFileAbsolutePath]:u.default.getFilesAbsolutePathsSynchronously([u.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.sourceDirectoryAbsolutePath})]);for(const o of e)t[o]=i}this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence=t}copyFiles(){return()=>s.default.src(Object.keys(this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence)).pipe(r.default.modify({onStreamStartedEventCommonHandler:this.replacePlainVinylFileWithPlainCopiedVinylFile.bind(this)})).pipe(s.default.dest(a.default.outputDirectoryCalculatorForSpecificFile))}async replacePlainVinylFileWithPlainCopiedVinylFile(e,t){return t(new a.default(e,this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence[c.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path)])),Promise.resolve(r.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}}t.default=d},9040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943),s=i(5577);t.default=class{static normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=t.tasksAndSourceFilesSelection?.plainCopying??[],r={filesGroups:{}};for(const[n,a]of Object.entries(e.filesGroups)){if(i.length>0&&!i.includes(n))continue;const e=a.buildingModeDependent[t.projectBuildingMode]?.outputTopDirectoryRelativePath;(0,o.isUndefined)(e)||(r.filesGroups[n]={..."sourceFileRelativePath"in a?{sourceFileAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0})}:{sourceDirectoryAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.sourceDirectoryRelativePath],{alwaysForwardSlashSeparators:!0})},...(0,o.isNotUndefined)(a.referenceName)?{referenceName:a.referenceName}:null,outputTopDirectoryAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})})}return r}}},6919:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(5577);t.default=class{filesGroups;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){return"sourceFileAbsolutePath"in t?t.outputTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([t.outputTopDirectoryAbsolutePath,o.ImprovedPath.computeRelativePath({basePath:t.sourceDirectoryAbsolutePath,comparedPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWihtoutDotsAsFileNameWithoutExtension:!1},rootDirectoryNotation:""})})],{alwaysForwardSlashSeparators:!0})}constructor(e){this.filesGroups=e.filesGroups}}},3272:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedPropertiesSpecification=function({plainCopyingLocalization:e,consumingProjectLocalizedPreDefinedBuildingModes:t}){return{[e.filesGroups.KEY]:{newName:"filesGroups",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{[e.sourceFileRelativePath.KEY]:{newName:"sourceFileRelativePath",preValidationModifications:r.nullToUndefined,type:String,required:!1},[e.sourceDirectoryRelativePath.KEY]:{newName:"sourceDirectoryRelativePath",preValidationModifications:r.nullToUndefined,type:String,requiredIf:{predicate:t=>!(0,r.isNonEmptyString)(t[e.sourceFileRelativePath.KEY]),descriptionForLogging:e.sourceDirectoryRelativePath.REQUIREMENT_CONDITION_DESCRIPTION}},[e.referenceName.KEY]:{newName:"referenceName",preValidationModifications:r.nullToUndefined,type:String,required:!1},[e.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(s.default),minimalEntriesCount:1,keysRenamings:{[t.staticPreview]:s.default.staticPreview,[t.localDevelopment]:s.default.localDevelopment,[t.testing]:s.default.testing,[t.staging]:s.default.staging,[t.production]:s.default.production},value:{type:Object,properties:{[e.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0}}}}}}}}}}(n||(n={})),t.default=n},5755:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(2102),r=o(i(1259)),n=o(i(229)),a=o(i(9217)),l=o(i(8545)),c=o(i(1975)),u=o(i(9356)),d=o(i(4083)),p=o(i(5962)),g=o(i(9040)),f=o(i(2335)),m=i(1943),h=i(5577);class P{static localization=P.getDefaultLocalization();static normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromFile__rawValid:t,projectBuildingConfig__fromConsole:i}){const o=t.commonSettings??{},h=P.determineActualSelectiveExecutionID({commonSettings__fromFile__rawValid:o,projectBuildingConfig__fromConsole:i}),S=r.default.normalize({commonSettings__fromFile__rawValid:o,consumingProjectRootDirectoryAbsolutePath:e,projectBuildingMode:i.projectBuildingMode,actualSelectiveExecution:h});return{commonSettings:S,...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.markupProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.markupProcessing)?{}:{markupProcessing:n.default.normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.stylesProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.stylesProcessing)?{}:{stylesProcessing:a.default.normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing)?{}:{ECMA_ScriptLogicProcessing:l.default.normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.imagesProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.imagesProcessing)?{}:{imagesProcessing:c.default.normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.fontsProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.fontsProcessing)?{}:{fontsProcessing:u.default.normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.videosProcessing)?{}:{videosProcessing:d.default.normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.audiosProcessing)?{}:{audiosProcessing:p.default.normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.plainCopying];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.plainCopying)?{}:{plainCopying:g.default.normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading];if((0,m.isUndefined)(e))return{};const i=h?.browserLiveReloadingSetupID;return{browserLiveReloading:f.default.normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:S,hasSelectiveExecutionBeenDeclared:(0,m.isNotUndefined)(h),...(0,m.isNotUndefined)(i)?{selectedBrowserLiveReloadingSetupID:i}:{}})}})()}}static setLocalization(e){P.localization=e}static determineActualSelectiveExecutionID({commonSettings__fromFile__rawValid:e,projectBuildingConfig__fromConsole:t}){const i=e.selectiveExecutions;let o;return(0,m.isNotUndefined)(t.selectiveExecutionID)&&((0,m.isUndefined)(i)&&m.Logger.throwErrorAndLog({errorInstance:new h.InvalidConsoleCommandError({customMessage:P.localization.generateNoSelectiveExecutionsHasBeenDefinedErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecutionID(parametersObject)",title:m.InvalidParameterValueError.localization.defaultTitle}),o=i[t.selectiveExecutionID],(0,m.isUndefined)(o)&&m.Logger.throwErrorAndLog({errorInstance:new h.InvalidConsoleCommandError({customMessage:P.localization.generateUndefinedSelectiveExecutionID_ErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecutionID(parametersObject)",title:m.InvalidParameterValueError.localization.defaultTitle})),o}static getDefaultLocalization(){return{generateNoSelectiveExecutionsHasBeenDefinedErrorMessage:({specifiedInConsoleCommandSelectiveExecutionID:e})=>`The selective execution '${e}' has been demanded in the console command while no selective executions has been defined in configuration file.`,generateUndefinedSelectiveExecutionID_ErrorMessage:({specifiedInConsoleCommandSelectiveExecutionID:e})=>`The selective execution '${e}' is undefined. Please check which selective executions you have defined in configuration file.`}}}t.default=P},9830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={KEY:"projectBuilding",enumerations:{tasksIDs:{markupProcessing:"markupProcessing",stylesProcessing:"stylesProcessing",ECMA_ScriptLogicProcessing:"ECMA_ScriptLogicProcessing",imagesProcessing:"imagesProcessing",fontsProcessing:"fontsProcessing",audiosProcessing:"audiosProcessing",videosProcessing:"videosProcessing",plainCopying:"plainCopying",browserLiveReloading:"browserLiveReloading"},consumingProjectPreDefinedBuildingModes:{staticPreview:"STATIC_PREVIEW",localDevelopment:"LOCAL_DEVELOPMENT",testing:"TESTING",staging:"STAGING",production:"PRODUCTION"}},reusables:{sourceCodeProcessingGenericProperties:{topDirectoryRelativePath:{KEY:"topDirectoryRelativePath"},partialsRecognition:{KEY:"partialsRecognition",excludeAllSubdirectories:{KEY:"excludeAllSubdirectories"},excludeSubdirectoriesWithNames:{KEY:"excludeSubdirectoriesWithNames"},excludeSubdirectoriesWithPrefixes:{KEY:"excludeSubdirectoriesWithPrefixes"},excludeFilesWithPrefixes:{KEY:"excludeFilesWithPrefixes"}},singleEntryPointRelativePath:{KEY:"singleEntryPointRelativePath",REQUIREMENT_CONDITION_DESCRIPTION:"'topDirectoryRelativePath' is not defined"}},revisioning:{disable:{KEY:"disable"},contentHashPostfixSeparator:{KEY:"contentHashPostfixSeparator"}},lintingCommonSettings:{presetFileRelativePath:{KEY:"presetFileRelativePath"},enabled:{KEY:"enabled"}}},commonSettings:{KEY:"commonSettings",properties:{selectiveExecutions:{KEY:"selectiveExecutions",tasksAndSourceFilesSelection:{KEY:"tasksAndSourceFilesSelection"},browserLiveReloadingSetupID:{KEY:"browserLiveReloadingSetupID"}},publicDirectoriesRelativePaths:{KEY:"publicDirectoriesRelativePaths"}}},tasks:{markupProcessing:{common:{KEY:"common",periodBetweenFileUpdatingAndRebuildingStarting__seconds:{KEY:"periodBetweenFileUpdatingAndRebuildingStarting__seconds"},buildingModeDependent:{KEY:"buildingModeDependent",mustResolveResourceReferencesToRelativePaths:{KEY:"mustResolveResourceReferencesToRelativePaths"}}},staticPreview:{KEY:"staticPreview",stateDependentPagesVariationsSpecificationFileRelativePath:{KEY:"stateDependentPagesVariationsSpecificationFileRelativePath"},importsFromStaticDataFiles:{KEY:"importsFromStaticDataFiles",importedVariableName:{KEY:"importedVariableName"},fileRelativePath:{KEY:"fileRelativePath"}},importsFromCompiledTypeScript:{KEY:"importsFromCompiledTypeScript",typeScriptConfigurationFileRelativePath:{KEY:"typeScriptConfigurationFileRelativePath"},files:{KEY:"files",importedNamespace:{KEY:"importedNamespace"},sourceFileRelativePath:{KEY:"sourceFileRelativePath"},outputDirectoryRelativePath:{KEY:"outputDirectoryRelativePath"},customOutputFileNameWithoutLastExtension:{KEY:"customOutputFileNameWithoutLastExtension"}}}},linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",HTML_Validation:{KEY:"HTML_Validation",disable:{KEY:"disable"}},accessibilityInspection:{KEY:"accessibilityInspection",standard:{KEY:"standard"},disable:{KEY:"disable"}},convertToHandlebarsOnNonStaticPreviewModes:{KEY:"convertToHandlebarsOnNonStaticPreviewModes"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"}}},logging:{filesPaths:{KEY:"filesPaths"},filesCount:{KEY:"filesCount"},partialFilesAndParentEntryPointsCorrespondence:{KEY:"partialFilesAndParentEntryPointsCorrespondence"}}},stylesProcessing:{common:{KEY:"common",periodBetweenFileUpdatingAndRebuildingStarting__seconds:{KEY:"periodBetweenFileUpdatingAndRebuildingStarting__seconds"}},linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",customReferenceName:{KEY:"customReferenceName"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"}}}},ECMA_ScriptLogicProcessing:{linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",targetRuntime:{KEY:"targetRuntime",type:{KEY:"type"},minimalVersion:{KEY:"minimalVersion",REQUIREMENT_CONDITION_DESCRIPTION:"Target runtime is NodeJS",major:{KEY:"major"},minor:{KEY:"minor"}}},customReferenceName:{KEY:"customReferenceName"},associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer:{KEY:"associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer"},typeScriptConfigurationFileRelativePath:{KEY:"typeScriptConfigurationFileRelativePath"},distributing:{KEY:"distributing",exposingOfExportsFromEntryPoints:{KEY:"exposingOfExportsFromEntryPoints",mustExpose:{KEY:"mustExpose"},namespace:{KEY:"namespace"}},typeScriptTypesDeclarations:{KEY:"typeScriptTypesDeclarations",mustGenerate:{KEY:"mustGenerate"},fileNameWithoutExtension:{KEY:"outputRelativePath"}}},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},dynamicallyLoadedFilesSubdirectory:{KEY:"dynamicallyLoadedFilesSubdirectory"},dynamicallyLoadedFilesNamesTemplate:{KEY:"dynamicallyLoadedFilesNamesTemplate"}}}},imagesProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},fontsProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},videosProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},audiosProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},plainCopying:{filesGroups:{KEY:"filesGroups"},sourceFileRelativePath:{KEY:"sourceFileRelativePath"},sourceDirectoryRelativePath:{KEY:"sourceDirectoryRelativePath",REQUIREMENT_CONDITION_DESCRIPTION:'"sourceFileRelativePath" is not specified'},referenceName:{KEY:"referenceName"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"}}},browserLiveReloading:{setups:{KEY:"setups",localServer:{KEY:"localServer",rootDirectoryRelativePath:{KEY:"rootDirectoryRelativePath"},ignoredFilesAndDirectoriesRelativePaths:{KEY:"ignoredFilesAndDirectoriesRelativePaths"},customPort:{KEY:"customPort"},customStartingFileNameWithExtension:{KEY:"customStartingFileNameWithExtension"},useHTTPS:{KEY:"useHTTPS"},useCORS:{KEY:"useCORS"}},proxy:{KEY:"proxy"},openInBrowsers:{KEY:"openInBrowsers"},browserSyncUserInterface:{KEY:"browserSyncUserInterface",customPort:{KEY:"customPort"},disable:{KEY:"disable"}},periodBetweenFileUpdatingAndBrowserReloading__seconds:{KEY:"periodBetweenFileUpdatingAndBrowserReloading__seconds"}},logging:{KEY:"logging",outputFileChangeDetection:{KEY:"outputFileChangeDetection"},browserTabWillBeReloadedSoon:{KEY:"browserTabWillBeReloadedSoon"},browsersyncConnection:{KEY:"browsersyncConnection"}}}}}},1431:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4256)),r=o(i(9258)),n=o(i(7745)),a=o(i(8365)),l=o(i(7633)),c=o(i(9018)),u=o(i(7733)),d=o(i(3691)),p=o(i(6757)),g=o(i(7130)),f=o(i(1573)),m=o(i(3272)),h=o(i(7171)),P=i(1943);var S;!function(e){e.getLocalizedSpecification=function(e){const t=r.default.getLocalizedPropertiesSpecification(e.reusables.sourceCodeProcessingGenericProperties),i=e.enumerations.consumingProjectPreDefinedBuildingModes,o=n.default.getLocalizedPropertiesSpecification(e.reusables.revisioning),S=a.default.getLocalizedPropertiesSpecification(e.reusables.lintingCommonSettings);return{nameForLogging:"ProjectBuildingConfig__FromFile__RawValid",subtype:P.RawObjectDataProcessor.ObjectSubtypes.fixedKeyAndValuePairsObject,properties:{[e.KEY]:{newName:"projectBuilding",preValidationModifications:P.nullToUndefined,type:Object,required:!0,properties:{[e.commonSettings.KEY]:{newName:"commonSettings",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:s.default.getLocalizedPropertiesSpecification({projectBuildingCommonSettingsLocalization:e.commonSettings.properties,tasksLocalizedIDs:e.enumerations.tasksIDs})},[e.enumerations.tasksIDs.markupProcessing]:{newName:"markupProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:l.default.getLocalizedPropertiesSpecification({markupProcessingLocalization:e.tasks.markupProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.stylesProcessing]:{newName:"stylesProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:c.default.getLocalizedPropertiesSpecification({stylesProcessingLocalization:e.tasks.stylesProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.ECMA_ScriptLogicProcessing]:{newName:"ECMA_ScriptLogicProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:u.default.getLocalizedPropertiesSpecification({ECMA_ScriptProcessingLocalization:e.tasks.ECMA_ScriptLogicProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.imagesProcessing]:{newName:"imagesProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:d.default.getLocalizedPropertiesSpecification({imagesProcessingLocalization:e.tasks.imagesProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.fontsProcessing]:{newName:"fontsProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:p.default.getLocalizedPropertiesSpecification({fontsProcessingLocalization:e.tasks.fontsProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.videosProcessing]:{newName:"videosProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:g.default.getLocalizedPropertiesSpecification({videosProcessingLocalization:e.tasks.videosProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.audiosProcessing]:{newName:"audiosProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:f.default.getLocalizedPropertiesSpecification({audiosProcessingLocalization:e.tasks.audiosProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.plainCopying]:{newName:"plainCopying",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:m.default.getLocalizedPropertiesSpecification({plainCopyingLocalization:e.tasks.plainCopying,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.browserLiveReloading]:{newName:"browserLiveReloading",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:h.default.getLocalizedPropertiesSpecification(e.tasks.browserLiveReloading)}}}}}}}(S||(S={})),t.default=S},818:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=o(i(2147)),n=o(i(8962)),a=o(i(4714)),l=o(i(7066)),c=o(i(2871)),u=o(i(2238)),d=o(i(7640)),p=o(i(6919)),g=o(i(4712)),f=i(1943);class m{static selfSoleInstance=null;markupProcessingSettingsRepresentative;stylesProcessingSettingsRepresentative;ECMA_ScriptLogicProcessingSettingsRepresentative;imagesProcessingSettingsRepresentative;fontsProcessingSettingsRepresentative;audiosProcessingSettingsRepresentative;videosProcessingSettingsRepresentative;plainCopyingSettingsRepresentative;browserLiveReloadingSettingsRepresentative;commonSettings;static initializeAndGetInstance(e){return(0,f.isNotNull)(m.selfSoleInstance)&&f.Logger.throwErrorAndLog({errorInstance:new f.ClassRedundantSubsequentInitializationError({className:"ProjectBuildingMasterConfigRepresentative"}),title:f.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"ProjectBuildingMasterConfigRepresentative.initializeAndGetInstance(projectBuilderConfig__normalized)"}),m.selfSoleInstance=new m(e),m.selfSoleInstance}constructor(e){this.commonSettings=e.commonSettings,(0,f.isNotUndefined)(e.markupProcessing)&&(this.markupProcessingSettingsRepresentative=new r.default(e.markupProcessing,this)),(0,f.isNotUndefined)(e.stylesProcessing)&&(this.stylesProcessingSettingsRepresentative=new n.default(e.stylesProcessing,this)),(0,f.isNotUndefined)(e.ECMA_ScriptLogicProcessing)&&(this.ECMA_ScriptLogicProcessingSettingsRepresentative=new a.default(e.ECMA_ScriptLogicProcessing,this)),(0,f.isNotUndefined)(e.imagesProcessing)&&(this.imagesProcessingSettingsRepresentative=new l.default(e.imagesProcessing,this)),(0,f.isNotUndefined)(e.fontsProcessing)&&(this.fontsProcessingSettingsRepresentative=new c.default(e.fontsProcessing,this)),(0,f.isNotUndefined)(e.audiosProcessing)&&(this.audiosProcessingSettingsRepresentative=new u.default(e.audiosProcessing,this)),(0,f.isNotUndefined)(e.videosProcessing)&&(this.videosProcessingSettingsRepresentative=new d.default(e.videosProcessing,this)),(0,f.isNotUndefined)(e.plainCopying)&&(this.plainCopyingSettingsRepresentative=new p.default(e.plainCopying)),(0,f.isNotUndefined)(e.browserLiveReloading)&&(this.browserLiveReloadingSettingsRepresentative=new g.default(e.browserLiveReloading))}get consumingProjectRootDirectoryAbsolutePath(){return this.commonSettings.projectRootDirectoryAbsolutePath}get actualPublicDirectoryAbsolutePath(){return this.commonSettings.actualPublicDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.commonSettings.projectBuildingMode}get isStaticPreviewBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.staticPreview}get isLocalDevelopmentBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.localDevelopment}get isTestingBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.testing}get isStagingBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.staging}get isProductionBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.production}get mustProcessMarkup(){return(0,f.isNotUndefined)(this.markupProcessingSettingsRepresentative)&&this.markupProcessingSettingsRepresentative.hasAtLeastOneRelevantEntryPointsGroup}get mustProvideMarkupLinting(){return(0,f.isNotUndefined)(this.markupProcessingSettingsRepresentative)}get mustProcessStyles(){return(0,f.isNotUndefined)(this.stylesProcessingSettingsRepresentative)&&this.stylesProcessingSettingsRepresentative.hasAtLeastOneRelevantEntryPointsGroup}get mustProcessECMA_ScriptBasedLogic(){return(0,f.isNotUndefined)(this.ECMA_ScriptLogicProcessingSettingsRepresentative)}get mustProcessImages(){return(0,f.isNotUndefined)(this.imagesProcessingSettingsRepresentative)}get mustProcessFonts(){return(0,f.isNotUndefined)(this.fontsProcessingSettingsRepresentative)}get mustProcessAudios(){return(0,f.isNotUndefined)(this.audiosProcessingSettingsRepresentative)}get mustProcessVideos(){return(0,f.isNotUndefined)(this.videosProcessingSettingsRepresentative)}get mustProvideBrowserLiveReloading(){return(0,f.isNotUndefined)(this.browserLiveReloadingSettingsRepresentative)&&(this.isStaticPreviewBuildingMode||this.isLocalDevelopmentBuildingMode)}get allOutputFilesGlobSelectors(){return[...this.markupProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.stylesProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.ECMA_ScriptLogicProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.imagesProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.fontsProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.audiosProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.videosProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[]]}}t.default=m},8545:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(29));var r=s.default.SupportedECMA_ScriptRuntimesTypes;const n=o(i(6118)),a=o(i(9418)),l=i(1943),c=i(5577);class u extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new u({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing}:null}),o=e.linting??{};return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots},linting:{mustExecute:e.linting?.enable??n.default.linting.mustExecute,...(0,l.isNotUndefined)(o.presetFileRelativePath)?{presetFileAbsolutePath:c.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,o.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings.bind(i))}}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings(e,t){const i=t.distributing;return{...e,targetRuntime:(()=>{switch(t.targetRuntime.type){case r.browser:return{type:r.browser};case r.webWorker:return{type:r.webWorker};case r.nodeJS:return{type:r.nodeJS,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,l.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.pug:return{type:r.pug}}})(),entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML:`${n.default.entryPointsGroupReferencePrefix}${t.customReferenceName??e.ID}`,...(0,l.isNotUndefined)(t.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer)?{associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer:t.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer}:null,typeScriptConfigurationFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.typeScriptConfigurationFileRelativePath??n.default.typeScriptConfigurationFileRelativePath],{alwaysForwardSlashSeparators:!0}),revisioning:{mustExecute:!0!==t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.disable&&n.default.revisioning.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,targetRuntimeType:t.targetRuntime.type}),contentHashPostfixSeparator:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.contentHashPostfixSeparator??n.default.revisioning.contentHashPostfixSeparator},...(0,l.isNotUndefined)(i)?{distributing:{exposingOfExportsFromEntryPoints:{mustExpose:i.exposingOfExportsFromEntryPoints?.mustExpose??n.default.distributing.exposingOfExportsFromEntryPoints.mustExpose,namespace:i.exposingOfExportsFromEntryPoints?.namespace},typeScriptTypesDeclarations:{mustGenerate:i.typeScriptTypesDeclarations?.mustGenerate??n.default.distributing.typeScriptTypesDeclarations.mustGenerate,fileNameWithoutExtension:i.typeScriptTypesDeclarations?.fileNameWithoutExtension??n.default.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension}}}:null}}}t.default=u},29:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["js","mjs","jsx","ts","tsx"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["js"],function(e){e.browser="BROWSER",e.webWorker="WEB_WORKER",e.nodeJS="NODEJS",e.pug="PUG"}(t=e.SupportedECMA_ScriptRuntimesTypes||(e.SupportedECMA_ScriptRuntimesTypes={}))}(i||(i={})),t.default=i},4714:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9433)),r=i(1943);class n extends s.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Script";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Scripts";prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";relevantEntryPointsGroupsSettings;entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.sourceCodeProcessingCommonSettings=e.common,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,0===this.relevantEntryPointsGroupsSettings.size&&r.Logger.logWarning({title:"The ECMAScript logic processing will not be executed",description:`No files has been found for project building mode "${t.consumingProjectBuildingMode}" `,occurrenceLocation:"ECMA_ScriptLogicProcessingSettingsRepresentative.constructor(...parameters)"}),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots}get entryPointsGroupsNormalizedSettingsMappedByPathAliases(){return new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[`${e.entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML}`,e])))}}t.default=n},6118:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991));var r=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const n={entryPointsGroupReferencePrefix:"@",typeScriptConfigurationFileRelativePath:"tsconfig.json",entryPointsGroupDependent:{areExportsFromEntryPointsAccessible:!1},revisioning:{mustExecute:e=>(e.targetRuntimeType===r.browser||e.targetRuntimeType===r.webWorker)&&e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0},distributing:{exposingOfExportsFromEntryPoints:{mustExpose:!1},typeScriptTypesDeclarations:{mustGenerate:!1,fileNameWithoutExtension:"index.d.ts"}}};t.default=n},7733:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const r=o(i(2991)),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({ECMA_ScriptProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:a}){return{[e.linting.KEY]:{newName:"linting",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:a},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{...t,[e.entryPointsGroups.targetRuntime.KEY]:{newName:"targetRuntime",type:Object,required:!0,properties:{[e.entryPointsGroups.targetRuntime.type.KEY]:{newName:"type",type:String,required:!0,allowedAlternatives:Object.values(s)},[e.entryPointsGroups.targetRuntime.minimalVersion.KEY]:{newName:"minimalVersion",type:Object,requiredIf:{predicate:e=>e.type===s.nodeJS,descriptionForLogging:e.entryPointsGroups.targetRuntime.minimalVersion.REQUIREMENT_CONDITION_DESCRIPTION},properties:{major:{type:Number,required:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber},minor:{type:Number,required:!1,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber}}}}},[e.entryPointsGroups.customReferenceName.KEY]:{newName:"customReferenceName",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer.KEY]:{newName:"associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.typeScriptConfigurationFileRelativePath.KEY]:{newName:"typeScriptConfigurationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.distributing.KEY]:{newName:"distributing",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.KEY]:{newName:"exposingOfExportsFromEntryPoints",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.mustExpose.KEY]:{newName:"mustExpose",type:Boolean,required:!0},[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.namespace.KEY]:{newName:"namespace",type:String,required:!1}}},[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.KEY]:{newName:"typeScriptTypesDeclarations",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.mustGenerate.KEY]:{newName:"mustGenerate",type:Boolean,required:!1},[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension.KEY]:{newName:"fileNameWithoutExtension",type:String,required:!1}}}}},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.entryPointsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,properties:o},[e.entryPointsGroups.buildingModeDependent.dynamicallyLoadedFilesSubdirectory.KEY]:{newName:"dynamicallyLoadedFilesSubdirectory",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.buildingModeDependent.dynamicallyLoadedFilesNamesTemplate.KEY]:{newName:"dynamicallyLoadedFilesNamesTemplate",type:String,required:!1,minimalCharactersCount:1}}}}}}}}}}(a||(a={})),t.default=a},5525:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6247)),r=o(i(101)),n=o(i(9354)),a=o(i(8722)),l=i(1943);class c{TASK_NAME_FOR_LOGGING="ECMAScript logic processing";masterConfigRepresentative;ECMA_ScriptLogicProcessingConfigRepresentative;static provideLogicProcessingIfMust(e){if((0,l.isUndefined)(e.ECMA_ScriptLogicProcessingSettingsRepresentative))return e=>{e()};const t=new c(e,e.ECMA_ScriptLogicProcessingSettingsRepresentative),i=s.default.generateWebpackConfigurationForEachEntryPointsGroup(e.ECMA_ScriptLogicProcessingSettingsRepresentative,e);return e=>{try{(0,n.default)(i,((i,o)=>{let s;(0,l.isNotUndefined)(o)&&process.stdout.write(`${o.toString({colors:!0})}\n`);const n=(0,l.undefinedToEmptyArray)(o?.stats[0]?.compilation.errors);(0,l.isNeitherUndefinedNorNull)(i)?s=i.message:n.length>0&&(s=n.toString()),(0,l.isNotUndefined)(s)&&(l.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:s,occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)"}),a.default.notify({title:"ECMAScript logic processing",message:"Error has occurred. Please check the console."})),(t.masterConfigRepresentative.isStagingBuildingMode||t.masterConfigRepresentative.isProductionBuildingMode)&&(0,l.isNotUndefined)(s)?(l.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:"Unable to production build.",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)"}),e(new Error(s))):((0,l.addMultiplePairsToMap)(t.ECMA_ScriptLogicProcessingConfigRepresentative.entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap,r.default.generate(t.ECMA_ScriptLogicProcessingConfigRepresentative)),e())}))}catch(e){l.Logger.logError({errorType:l.UnexpectedEventError.NAME,title:l.UnexpectedEventError.localization.defaultTitle,description:"依存性の'Webpack'の実行中エラーが発生した。'webpack'関数の呼び出しを'try/catch'に包めなければいけない事に就いて説明書(https://webpack.js.org/api/node/)に書いてはないが、今は'catch'に当たった状態だ。'Gulp'課題鎖が崩れない様に、エラーを再投擲無しで捕まえた。",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)",caughtError:e})}}}constructor(e,t){this.masterConfigRepresentative=e,this.ECMA_ScriptLogicProcessingConfigRepresentative=t}}t.default=c},101:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7803)),n=o(i(7184));class a{static generate(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values()){const e=n.default.getFilesAbsolutePathsSynchronously(i.sourceFilesGlobSelectors);for(const o of e)t.set(o,a.getEntryPointsOutputFileActualAbsolutePath(o,i))}return t}static getEntryPointsOutputFileActualAbsolutePath(e,t){let i;if(t.revisioning.mustExecute){const o=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:r.default.extractDirectoryFromFilePath(e)}),`${r.default.extractFileNameWithoutExtensionFromPath(e)}**.js`],{forwardSlashOnlySeparators:!0}),a=n.default.getFilesAbsolutePathsSynchronously([o]);0===a.length?s.Logger.throwErrorAndLog({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが見つけられなかった。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}):a.length>1&&s.Logger.throwErrorAndLog({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが複数件が発見された:\n${(0,s.stringifyAndFormatArbitraryValue)(a)}\n前の構成は自動的に削除されなかった場合、再構成する前に手動で削除して下さい。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}),i=a[0]}else i=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({comparedPath:r.default.extractDirectoryFromFilePath(e),basePath:t.sourceFilesTopDirectoryAbsolutePath}),`${r.default.extractFileNameWithoutExtensionFromPath(e)}.js`],{forwardSlashOnlySeparators:!0});return i}}t.default=a},6247:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const r=o(i(8783)),n=o(i(6553)),a=o(i(9354)),l=i(3123),c=o(i(3994)),u=o(i(8582)),d=o(i(5977)),p=o(i(1017)),g=o(i(7803)),f=o(i(7184)),m=i(1943);class h{ECMA_ScriptLogicProcessingConfigRepresentative;masterConfigRepresentative;typeScriptConfigurations={};hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided=!1;static generateWebpackConfigurationForEachEntryPointsGroup(e,t){const i=new h(e,t),o=[];for(const e of i.ECMA_ScriptLogicProcessingConfigRepresentative.relevantEntryPointsGroupsSettings.values()){const t=i.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(e);(0,m.isNotNull)(t)&&(o.push(t),i.hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided=!0)}return o}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({sourceFilesGlobSelectors:e,entryPointsGroupID:t,webpackContext:i}){const o={},s=f.default.getFilesAbsolutePathsSynchronously(e);if(0===s.length)return m.Logger.logWarning({title:"Restarting may required",description:`No files has been found for the ECMAScript entry points group with id '${t}'. Please restart the building once these files will be added`}),null;h.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(s);for(const e of s){const t=g.default.computeRelativePath({comparedPath:e,basePath:i});o[g.default.removeFilenameExtensionFromPath(t)]=e}return o}constructor(e,t){this.ECMA_ScriptLogicProcessingConfigRepresentative=e,this.masterConfigRepresentative=t}generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(e){const t=e.sourceFilesTopDirectoryAbsolutePath,i=h.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({entryPointsGroupID:e.ID,sourceFilesGlobSelectors:e.sourceFilesGlobSelectors,webpackContext:t});if((0,m.isNull)(i))return m.Logger.logWarning({title:"Empty entry point group",description:`No files has been found for the group '${e.ID}' of ECMAScript entry points. Please restart the build once new files will be added.`}),null;let o;const f=this.typeScriptConfigurations[e.typeScriptConfigurationFileAbsolutePath];(0,m.isUndefined)(f)?(o=n.default.readTypeScriptConfigurationFileAndGetCompilerOptions(e.typeScriptConfigurationFileAbsolutePath),this.typeScriptConfigurations[e.typeScriptConfigurationFileAbsolutePath]=o):o=f;const P=this.computePublicPathIfPossible(e),S=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.browser,y=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.nodeJS,_=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.pug;return{name:e.ID,context:p.default.normalize(t),target:(()=>{switch(e.targetRuntime.type){case s.browser:case s.pug:return"web";case s.webWorker:return"webworker";case s.nodeJS:return`node${e.targetRuntime.minimalVersion.major}${(0,m.insertSubstringIf)(`.${e.targetRuntime.minimalVersion.minor}`,(0,m.isNotUndefined)(e.targetRuntime.minimalVersion.minor))}`}})(),entry:i,output:{path:p.default.normalize(e.outputFilesTopDirectoryAbsolutePath),...(0,m.isNotUndefined)(P)?{publicPath:P}:{},filename:e.revisioning.mustExecute?`[name]${e.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[name].js",chunkFilename:e.revisioning.mustExecute?`[id]${e.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[id][contenthash].js",...!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose?{library:{type:(()=>{switch(e.targetRuntime.type){case s.browser:return"module";case s.nodeJS:return"commonjs";case s.pug:return"umd";default:m.Logger.throwErrorAndLog({errorInstance:new m.UnexpectedEventError("The web worker could not be the library, while the computing of 'output.library.type' has been requested"),title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"webpackConfigGenerator.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(entryPointsGroupSettings)"})}})(),...y||_?{name:e.distributing.exposingOfExportsFromEntryPoints.namespace}:null}}:null,..._?{globalObject:"globalThis"}:null},...S?{experiments:{outputModule:!0}}:null,mode:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode?"development":"production",watch:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,devtool:!(!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode)&&"eval",...e.targetRuntime.type===s.nodeJS?{node:{__dirname:!0,__filename:!0}}:null,module:{rules:[{test:/\.tsx?$/u,loader:"ts-loader",options:{configFile:e.typeScriptConfigurationFileAbsolutePath,appendTsSuffixTo:[/\.vue$/u]}},{test:/\.vue$/u,loader:"vue-loader"},{test:/\.json5$/u,loader:"json5-loader"},{test:/\.(?:yml|yaml)$/u,use:["yaml-loader"]},{test:/\.pug$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["pug-plain-loader"]},{loader:"@webdiscus/pug-loader",options:{method:"render"}}]},{test:/\.css$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["vue-style-loader",{loader:"css-loader",options:{modules:!0}}]},{use:["style-loader","css-loader"]}]},{test:/\.styl(?:us)?$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["vue-style-loader","css-loader","stylus-loader"]},{use:["style-loader","css-loader","stylus-loader"]}]}]},resolve:{extensions:this.ECMA_ScriptLogicProcessingConfigRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots.map((e=>`.${e}`)),alias:{...r.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:o.paths,typeScriptBasicAbsolutePath:o.baseUrl??g.default.extractDirectoryFromFilePath(e.typeScriptConfigurationFileAbsolutePath)}),vue:"vue/dist/vue.esm-bundler.js"}},resolveLoader:r.default.generateLoadersResolvingSettings(this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath),...e.targetRuntime.type===s.nodeJS?{externals:[(0,d.default)()]}:null,plugins:[new a.default.DefinePlugin({__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__:this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__:this.masterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__:this.masterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__:this.masterConfigRepresentative.isProductionBuildingMode,__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1}),...this.hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided?[]:[new c.default({typescript:{configFile:e.typeScriptConfigurationFileAbsolutePath,extensions:{vue:{enabled:!0,compiler:"@vue/compiler-sfc"}}}})],new l.VueLoaderPlugin,new u.default({extensions:["js","ts","jsx","tsx","vue"],failOnError:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,failOnWarning:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode})],optimization:{minimize:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,emitOnErrors:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode}}}computePublicPathIfPossible(e){return this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode?e.ID.replace(e.ID,"/"):"/"}static checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e){const t=new Set;for(const i of e){const e=g.default.parsePath(i),o=`${e.directory}/${e.getFilenameWithoutExtensionWhichExpectedToBeDefined()}`;t.has(o)?m.Logger.throwErrorAndLog({errorType:"IncompatibleFilesError",description:"Incompatible files",title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"WebpackConfigGenerator.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(entryPointsSourceFilesAbsolutePaths)"}):t.add(o)}}}t.default=h},8404:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["pug"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["html"],function(e){e.WCAG2A="WCAG2A",e.WCAG2AA="WCAG2AA",e.WCAG2AAA="WCAG2AAA"}(t=e.SupportedAccessibilityStandards||(e.SupportedAccessibilityStandards={}))}(i||(i={})),t.default=i},2147:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6434)),r=i(1943),n=i(5577);class a extends s.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Markup";TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Markup";TASK_NAME_FOR_LOGGING="Markup processing";prefixOfEntryPointsGroupReference="@";waitingForTheOtherFilesWillBeSavedPeriod__seconds;entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeLintingCommonSettings;staticPreviewSettings;sourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map;relevantEntryPointsGroupsSettings;mustResolveResourcesReferencesToAbsolutePath;sourceCodeProcessingCommonSettings;constructor(e,t){super({masterConfigRepresentative:t,mustLogPartialFilesAndEntryPointsRelationsMap:e.logging.partialFilesAndParentEntryPointsCorrespondence}),this.sourceCodeProcessingCommonSettings=e.common,this.sourceCodeLintingCommonSettings=e.linting,this.staticPreviewSettings=e.staticPreview,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots,this.waitingForTheOtherFilesWillBeSavedPeriod__seconds=e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[`${this.prefixOfEntryPointsGroupReference}${e.ID}`,e]))),this.mustResolveResourcesReferencesToAbsolutePath=e.common.mustResolveResourcesReferencesToAbsolutePath,super.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap()}getAbsolutePublicPathIfMustToResolveReferencesToAbsolutePath(){return this.mustResolveResourcesReferencesToAbsolutePath?this.masterConfigRepresentative.actualPublicDirectoryAbsolutePath??null:null}getEntryPointStateDependentVariations(e){return this.staticPreviewSettings.stateDependentPagesVariationsSpecification[e]??null}get staticDataForStaticPreview(){return this.staticPreviewSettings.importsFromStaticDataFiles}get compiledTypeScriptImportingSettings(){return this.staticPreviewSettings.compiledTypeScriptImporting}get importedTypeScriptSourceFilesAbsolutePaths(){return(this.compiledTypeScriptImportingSettings?.files??[]).map((e=>e.sourceFileAbsolutePath))}getTypeScriptImportingSettingsExpectedToExistForSpecificOutputJavaScriptFile(e){return(0,r.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.staticPreviewSettings.compiledTypeScriptImporting?.files??[],(t=>n.ImprovedPath.joinPathSegments([t.outputDirectoryAbsolutePath,`${t.outputFileNameWithoutExtension}.js`],{alwaysForwardSlashSeparators:!0})===e),{mustThrowErrorIfElementNotFoundOrMoreThan1:!0})}}t.default=a},6679:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,staticPreview:{typeScriptConfigurationFileRelativePath:"tsconfig.json"},linting:{mustExecute:!0},HTML_Validation:{mustExecute:!0},accessibilityInspection:{mustExecute:!0,standard:o(i(8404)).default.SupportedAccessibilityStandards.WCAG2AAA},logging:{filesPaths:!0,filesCount:!0,partialFilesAndParentEntryPointsCorrespondence:!1}};t.default=s},7633:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8404)),r=o(i(2991)),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({markupProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,lintingCommonSettingsLocalizedPropertiesSpecification:o}){return{[e.common.KEY]:{newName:"common",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,required:!1,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber},[e.common.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.common.buildingModeDependent.mustResolveResourceReferencesToRelativePaths.KEY]:{newName:"mustResolveResourceReferencesToRelativePaths",type:Boolean,required:!1}}}}}},[e.staticPreview.KEY]:{newName:"staticPreview",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.staticPreview.stateDependentPagesVariationsSpecificationFileRelativePath.KEY]:{newName:"stateDependentPagesVariationsSpecificationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.staticPreview.importsFromStaticDataFiles.KEY]:{newName:"importsFromStaticDataFiles",type:Array,required:!1,minimalElementsCount:1,element:{type:Object,properties:{importedVariableName:{newName:"importedVariableName",type:String,required:!0,minimalCharactersCount:1},fileRelativePath:{newName:"fileRelativePath",type:String,required:!0,minimalCharactersCount:1}}}},[e.staticPreview.importsFromCompiledTypeScript.KEY]:{newName:"importsFromCompiledTypeScript",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},files:{newName:"files",type:Array,required:!1,minimalElementsCount:1,element:{type:Object,properties:{importedNamespace:{newName:"importedNamespace",type:String,required:!0,minimalCharactersCount:1},sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,required:!0,minimalCharactersCount:1},outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},customOutputFileNameWithoutLastExtension:{newName:"customOutputFileNameWithoutLastExtension",type:String,required:!1,minimalCharactersCount:1}}}}}}}},[e.linting.KEY]:{newName:"linting",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:o},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{...t,[e.entryPointsGroups.HTML_Validation.KEY]:{newName:"HTML_Validation",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.entryPointsGroups.HTML_Validation.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.entryPointsGroups.accessibilityInspection.KEY]:{newName:"accessibilityInspection",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.entryPointsGroups.accessibilityInspection.standard.KEY]:{newName:"standard",type:String,required:!1,allowedAlternatives:Object.values(s.default.SupportedAccessibilityStandards)},[e.entryPointsGroups.accessibilityInspection.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.entryPointsGroups.convertToHandlebarsOnNonStaticPreviewModes.KEY]:{newName:"convertToHandlebarsOnNonStaticPreviewModes",type:Boolean,required:!1},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0}}}}}}}}}}(a||(a={})),t.default=a},8844:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarkupProcessor=void 0;const s=o(i(2147)),r=o(i(4079)),n=o(i(7038)),a=o(i(2580)),l=o(i(7583)),c=o(i(9952)),u=o(i(882)),d=o(i(7019)),p=o(i(4798)),g=o(i(9419)),f=o(i(1921)),m=o(i(6300)),h=i(1943),P=o(i(1017)),S=o(i(7803)),y=o(i(7184));class _ extends r.default{TASK_NAME_FOR_LOGGING="Markup processing";markupProcessingConfigRepresentative;static provideMarkupProcessingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,h.isUndefined)(t))return(0,m.default)();const i=new _(e,t);return(e.isStaticPreviewBuildingMode||e.isLocalDevelopmentBuildingMode)&&(i.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(),i.initializeOrUpdateWatchedSourceFilesGlobSelectors(),i.initializeOrUpdateSourceFilesWatcher()),i.processEntryPoints(t.relevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super(e,t),this.markupProcessingConfigRepresentative=t}processEntryPoints(e){if(0===e.length)return(0,m.default)();for(const t of y.default.getFilesAbsolutePathsSynchronously(e)){if(this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.has(t))continue;const e=S.default.extractFileNameWithoutExtensionFromPath(t),i=this.markupProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(t),o=i.mustConvertToHandlebarsOnNonStaticPreviewModes&&!this.masterConfigRepresentative.isStaticPreviewBuildingMode?".hbs":".html";this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(t,S.default.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(t,i),`${e}${o}`],{forwardSlashOnlySeparators:!0}));const r=this.markupProcessingConfigRepresentative.getEntryPointStateDependentVariations(t);if(!(0,h.isNull)(r))for(const e of Object.keys(r.derivedPagesAndStatesMap)){const o=S.default.extractFileNameWithoutExtensionFromPath(e);this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e,S.default.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(t,i),`${o}.html`],{forwardSlashOnlySeparators:!0}))}}return()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,c.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe(f.default.modify({onStreamStartedEventCommonHandler:async(e,t)=>{if(!this.masterConfigRepresentative.isStaticPreviewBuildingMode)return Promise.resolve(f.default.CompletionSignals.PASSING_ON);const i=this.markupProcessingConfigRepresentative.getEntryPointStateDependentVariations(String(e.sourceAbsolutePath));if((0,h.isNull)(i))return Promise.resolve(f.default.CompletionSignals.PASSING_ON);e.pageStateDependentData={[i.stateVariableName]:{}};for(const[o,s]of Object.entries(i.derivedPagesAndStatesMap)){const r=e.clone();r.path=P.default.normalize(o),r.sourceAbsolutePath=o,r.pageStateDependentData={[i.stateVariableName]:s},t(r)}return Promise.resolve(f.default.CompletionSignals.PASSING_ON)}})).pipe((0,a.default)((e=>({...e.pageStateDependentData,...this.masterConfigRepresentative.isStaticPreviewBuildingMode?this.markupProcessingConfigRepresentative.staticDataForStaticPreview:null})))).pipe((0,l.default)({locals:{__IS_STATIC_PREVIEW_BUILDING_MODE__:this.masterConfigRepresentative.isStaticPreviewBuildingMode,__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__:this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__:this.masterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__:this.masterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__:this.masterConfigRepresentative.isProductionBuildingMode},filters:{html_special_characters_to_html_entities:_.escapeHTML_Entities}})).pipe((0,c.default)(this.onRawOutputCode.bind(this))).pipe((0,u.default)({indent_char:" ",indent_size:2})).pipe((0,c.default)(this.onPostProcessedCode.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.markupProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path);return e.processingSettings=t,e.sourceAbsolutePath=S.default.replacePathSeparatorsToForwardSlashes(e.path),e.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),e}onRawOutputCode(e){const t=e;return t.contents=Buffer.from(d.default.resolve(t,this.masterConfigRepresentative)),t}onPostProcessedCode(e){const t=e;return t.processingSettings.mustConvertToHandlebarsOnNonStaticPreviewModes&&!this.masterConfigRepresentative.isStaticPreviewBuildingMode?t.extname=".hbs":(t.processingSettings.HTML_Validation.mustExecute&&p.default.validateHTML(t,this.masterConfigRepresentative),t.processingSettings.accessibilityInspection.mustExecute&&g.default.inspectAccessibility(t,this.masterConfigRepresentative)),t}static escapeHTML_Entities(e){return e.replace(/</gu,"<").replace(/>/gu,">").replace(/&/gu,"&").replace(/"/gu,""").replace(/'/gu,"'")}}t.MarkupProcessor=_,t.default=_},9419:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(728)),r=o(i(4330)),n=o(i(8722)),a=o(i(5277)),l=o(i(2004)),c=i(1943),u=o(i(7803)),d=o(i(2076));class p{static localization=s.default;static inspectAccessibility(e,t){const i=(0,a.default)(e),o=u.default.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path});if((0,l.default)(i))return void c.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:o}));const s=(new d.default).startOrRestart();c.Logger.logInfo(p.localization.generateInspectionStartedInfoLog({targetFileRelativePath:o}));try{(0,r.default)((0,a.default)(e),{verbose:!1,accessibilityLevel:e.processingSettings.accessibilityInspection.standard}).then((()=>{const e=s.stop().seconds;c.Logger.logSuccess(p.localization.generateInspectionFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:o,secondsElapsed:e}))})).catch((e=>{n.default.notify(p.localization.issuesFoundNotification);const t=[];for(const i of Object.values(e.reportLogs))for(const e of Object.values(i.messageLog))"ERROR"===e.heading&&t.push(`${e.element.node}\n${p.localization.generateIssueOccurrenceLocationIndication({lineNumber:e.position.lineNumber,columnNumber:e.position.columnNumber})}\n${e.description}\n${p.localization.formattedError.violatedGuidelineItem}${p.localization.formattedError.keyAndValueSeparator}${e.issue}`);c.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:o,formattedErrorsAndWarnings:t.join("\n\n")}))}))}catch(e){if(e instanceof Error&&"pattern is too long"===e.message)return void c.Logger.logWarning(p.localization.generateAccessSniffBugWarning({targetFileRelativePath:o}));throw e}}}t.default=p},728:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateFileIsEmptyWarningLog:e=>({title:"HTML code accessibility inspection terminated",description:`File '${e.targetFileRelativePath}' is empty, nothing to inspect.`}),generateInspectionStartedInfoLog:e=>({title:"HTML code accessibility inspection started",description:`Begin the accessibility inspection of HTML code in the file '${e.targetFileRelativePath}' ...`}),generateInspectionFinishedWithNoIssuesFoundSuccessLog:e=>({title:"HTML code accessibility inspection finished",description:`The HTML code in file '${e.targetFileRelativePath}' has not the accessibility issues.\n${e.secondsElapsed} seconds elapsed.`}),issuesFoundNotification:{title:"HTML code accessibility inspection, issue(s) found",message:"Accessibility issues detected in one or more HTML files. Please check the console for the details."},generateIssueOccurrenceLocationIndication:e=>`Line ${e.lineNumber}, column ${e.columnNumber}`,generateIssuesFoundErrorLog:e=>({customBadgeText:"HTML code accessibility inspection not passed",title:"HTML code accessibility inspection, issue(s) found",description:`HTML file '${e.targetFileRelativePath}' is including the following accessibility issues:\n\n${e.formattedErrorsAndWarnings}\n\n`}),formattedError:{violatedGuidelineItem:"Violated rule",keyAndValueSeparator:":"},generateAccessSniffBugWarning:e=>({title:"Accessibility inspection, the dependency bug occurred",description:`We are sorry, but because of "access-sniff" bug the accessibility inspection has not been executed for the file "${e.targetFileRelativePath}". Would you mind to check the content of this file manually at https://squizlabs.github.io/HTML_CodeSniffer/ ?`})}},4798:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7623)),r=o(i(6949)),n=o(i(5277)),a=o(i(2004)),l=o(i(8722)),c=i(1943),u=o(i(7803)),d=o(i(2076));class p{static localization=s.default;static validateHTML(e,t){const i=(0,n.default)(e),o=u.default.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path});if((0,a.default)(i))return void c.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:o}));const s=(new d.default).startOrRestart();c.Logger.logInfo(p.localization.generateValidationStartedInfoLog({targetFileRelativePath:o})),(0,r.default)({data:i,format:"json"}).then((e=>{const t=s.stop().seconds,i=(0,c.removeArrayElementsByPredicates)({targetArray:e.messages,predicates:p.getPredicatesForHTML_ValidationIssuesFiltering(),mutably:!1}).updatedArray;if(0===i.length)return void c.Logger.logSuccess(p.localization.generateValidationFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:o,secondsElapsed:t}));l.default.notify(p.localization.issuesFoundNotification);const r=[];for(const e of i){let t="";if(p.isValidationMessageLocationObject(e)){const i=e.extract.substring(e.hiliteStart,e.hiliteStart+e.hiliteLength);t=`${e.extract.replace(i,c.Logger.highlightText(i))}\n${p.localization.generateIssueOccurrenceLocationIndication({lineNumber:e.lastLine,startingColumnNumber:e.firstColumn,lastColumnNumber:e.lastColumn})}\n`}switch(e.type){case"error":t=`${t}${p.localization.issuesTypesTitles.grossViolation}${p.localization.issuesTypesTitles.keyAndValueSeparator}`;break;case"info":t=`${t}${p.localization.issuesTypesTitles.recommendationDisregard}${p.localization.issuesTypesTitles.keyAndValueSeparator}`;break;default:t=`${t}${p.localization.issuesTypesTitles.other}${p.localization.issuesTypesTitles.keyAndValueSeparator}`}t=`${t}${e.message}`,r.push(t)}c.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:o,formattedErrorsAndWarnings:r.join("\n\n")}))})).catch((e=>{c.Logger.logError({errorType:c.DataRetrievingFailedError.localization.defaultTitle,...p.localization.validationFailedErrorLog,occurrenceLocation:"HTML_Validator.validateHTML(...parameters)",caughtError:e})}))}static getPredicatesForHTML_ValidationIssuesFiltering(){return[e=>"Attribute “webkitdirectory” not allowed on element “input” at this point."===e.message]}static isValidationMessageLocationObject(e){return(0,c.isArbitraryObject)(e)&&(0,c.isNotUndefined)(e.extract)&&(0,c.isNotUndefined)(e.lastLine)&&(0,c.isNotUndefined)(e.firstColumn)&&(0,c.isNotUndefined)(e.lastColumn)}}t.default=p},7623:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateFileIsEmptyWarningLog:e=>({title:"HTML code validation terminated",description:`File '${e.targetFileRelativePath}' is empty, no HTML to validate.`}),generateValidationStartedInfoLog:e=>({title:"HTML code validation started",description:`Begin the validation of HTML code in the file '${e.targetFileRelativePath}' ...`}),generateValidationFinishedWithNoIssuesFoundSuccessLog:e=>({title:"HTML validation finished",description:`File '${e.targetFileRelativePath}' is fully obeying to W3C rules and recommendations.\n${e.secondsElapsed} seconds elapsed.`}),issuesFoundNotification:{title:"HTML validation, issue(s) found",message:"W3C rules violations and / or recommendations neglect detected. Check the console for the details."},generateIssueOccurrenceLocationIndication:e=>`Line ${e.lineNumber}, columns ${e.startingColumnNumber}-${e.lastColumnNumber}`,issuesTypesTitles:{grossViolation:"Gross violation",recommendationDisregard:"Recommendation disregard",other:"Other issue",keyAndValueSeparator:": "},generateIssuesFoundErrorLog:e=>({customBadgeText:"HTML validation not passed",title:"HTML validation, issue(s) found",description:`File '${e.targetFileRelativePath}' is including the following HTML validity issues:\n\n${e.formattedErrorsAndWarnings}\n\n`}),validationFailedErrorLog:{title:"HTML validation failed",description:"The error occurred during HTML validation"}}},857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUnknownResourceGroupReferenceWarningLog:e=>({title:`Unknown reference to ${e.fileType__pluralForm} files group`,description:`The reference '${e.firstPathSegment}' in path '${e.pickedPathOfTargetResourceFile}' refers to unknown resources group. Below references are available for ${e.fileType__pluralForm} files: \n${e.formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap}`}),generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog:e=>({title:`Unknown path to ${e.fileType__singularForm} file`,description:`The aliased path '${e.pickedPathOfTargetResourceFile}' refers to unknown file. Tried to search at path with all supported filename extensions: ${e.checkedAbsolutePaths__formatted}.`}),generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog:e=>({title:`Unknown path to ${e.fileType__singularForm} file`,description:`No ${e.fileType__singularForm} output file has been found for specified source file path '${e.pickedPathOfTargetResourceFile}' including reference.`})}},7019:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(857)),r=o(i(8048)),n=o(i(5277)),a=i(1943),l=o(i(7803));class c{static localization=s.default;compiledHTML_File;HTML_FileContentCheerioCapturing;masterConfigRepresentative;actualPublicDirectoryAbsolutePath;static resolve(e,t){return new c(e,t).resolveInternalLinks().resolveStylesheetsPathsAliases().resoleScriptsPathsAliases().resolveImagesPathsAliases().resolveVideosPathsAliases().resolveAudiosPathsAliases().HTML_FileContentCheerioCapturing.html({decodeEntities:!1})}constructor(e,t){this.compiledHTML_File=e,this.HTML_FileContentCheerioCapturing=r.default.load((0,n.default)(e)),this.masterConfigRepresentative=t,this.actualPublicDirectoryAbsolutePath=t.markupProcessingSettingsRepresentative?.getAbsolutePublicPathIfMustToResolveReferencesToAbsolutePath()??null}resolveInternalLinks(){if((0,a.isUndefined)(this.masterConfigRepresentative.markupProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.markupProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("a"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfEntryPointsGroupReference,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByReferences,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resolveStylesheetsPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.stylesProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.stylesProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("link[rel='stylesheet']"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByPathAliases,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resoleScriptsPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("script"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByPathAliases,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveImagesPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.imagesProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.imagesProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("img"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}for(const t of Array.from(this.HTML_FileContentCheerioCapturing("picture>source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("srcset");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("srcset",this.buildResourceFileFinalPath(s))}for(const t of Array.from(this.HTML_FileContentCheerioCapturing("link[type='image/x-icon']"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if((0,a.isUndefined)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,imagesProcessingConfigRepresentative:t}){return this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,prefixOfAliasOfTopDirectoryOfResourcesGroup:t.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(t.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:t.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:t.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:t.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM})}resolveVideosPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.videosProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.videosProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("video > source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveAudiosPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.audiosProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.audiosProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("audio > source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if((0,a.isUndefined)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,prefixOfAliasOfTopDirectoryOfResourcesGroup:t,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:i,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:o,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:s,fileTypeForLogging__pluralForm:r}){const n=l.default.splitPathToSegments(e),u=n[0];if((0,a.isUndefined)(u)||!u.startsWith(t))return null;const d=i.get(u);if((0,a.isUndefined)(d))return a.Logger.logWarning(c.localization.generateUnknownResourceGroupReferenceWarningLog({fileType__pluralForm:r,firstPathSegment:u,pickedPathOfTargetResourceFile:e,formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.stringifyAndFormatArbitraryValue)(Array.from(i.entries()))})),null;const p=l.default.joinPathSegments([d,...n.slice(1)],{forwardSlashOnlySeparators:!0}),g=l.default.extractLastFilenameExtensionWithoutFirstDot(p);if((0,a.isNull)(g)||!o.includes(g)){const t=o.map((e=>(0,a.getURI_PartWithoutFragment)((0,a.appendLastFileNameExtension)({targetPath:p,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1})))),i=(0,a.filterMap)(s,(e=>t.includes(e)));return 0===i.size?(a.Logger.logWarning(c.localization.generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r,checkedAbsolutePaths__formatted:(0,a.stringifyAndFormatArbitraryValue)(t)})),null):(0,a.appendFragmentToURI)({targetURI:Array.from(i.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,a.getURI_Fragment)({targetURI:p,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const f=s.get(p);return(0,a.isUndefined)(f)?(a.Logger.logWarning(c.localization.generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r})),null):f}buildResourceFileFinalPath(e){return(0,a.isNotNull)(this.actualPublicDirectoryAbsolutePath)?`/${l.default.computeRelativePath({basePath:this.actualPublicDirectoryAbsolutePath,comparedPath:e})}`:l.default.computeRelativePath({basePath:this.compiledHTML_File.outputDirectoryAbsolutePath,comparedPath:e})}}t.default=c},229:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8404)),r=o(i(2991)),n=o(i(6679)),a=o(i(9418)),l=i(1943),c=i(5577),u=o(i(7803)),d=o(i(4649));class p extends a.default{static localization=d.default;supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;markupProcessingSettings__fromFile__rawValid;static normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new p({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.markupProcessing}:null,markupProcessingSettings__fromFile__rawValid:e});return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,mustResolveResourcesReferencesToAbsolutePath:i.computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(),periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??n.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i.normalizeLintingSettings(),staticPreview:{stateDependentPagesVariationsSpecification:i.normalizeStaticPreviewStateDependentPageVariationsSpecification(),importsFromStaticDataFiles:i.normalizeImportsFromStaticDataFiles(),...i.normalizeImportsFromTypeScriptFiles()},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,p.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings),logging:i.normalizeLoggingSettings()}}constructor(e){super(e),this.markupProcessingSettings__fromFile__rawValid=e.markupProcessingSettings__fromFile__rawValid}computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(){const e=this.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[this.consumingProjectBuildingMode]?.mustResolveResourceReferencesToRelativePaths;return this.consumingProjectBuildingMode===r.default.staticPreview?(!1===e&&l.Logger.logWarning(p.localization.noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog),!1):(0,l.isUndefined)(e)?!(0,l.isUndefined)(this.actualPublicDirectoryAbsolutePath)||(l.Logger.logWarning(p.localization.generateUnableToResolveResourcesReferencesToAbsolutePathLog({consumingProjectBuildingMode:this.consumingProjectBuildingMode})),!1):!e}normalizeLintingSettings(){return(0,l.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting)?{mustExecute:this.markupProcessingSettings__fromFile__rawValid.linting.enable??n.default.linting.mustExecute,...(0,l.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath)?{presetFileAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath],{forwardSlashOnlySeparators:!0})}:null}:{mustExecute:n.default.linting.mustExecute}}normalizeStaticPreviewStateDependentPageVariationsSpecification(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.stateDependentPagesVariationsSpecificationFileRelativePath;if((0,l.isUndefined)(e)||this.consumingProjectBuildingMode!==r.default.staticPreview)return{};const t=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{forwardSlashOnlySeparators:!0});let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:t})}catch(e){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({customMessage:p.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage({staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath:t})}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)",wrappableError:e})}if(!(0,l.isArbitraryObject)(i))return l.Logger.logError({errorType:l.InvalidExternalDataError.NAME,title:l.InvalidExternalDataError.localization.defaultTitle,description:l.PoliteErrorsMessagesBuilder.buildMessage(p.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e,stringifiedRawData:(0,l.stringifyAndFormatArbitraryValue)(i),rawDataActualType:typeof i})),occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),{};const o={};for(const[t,s]of Object.entries(i)){const i=u.default.addFileNameExtensionIfNotPresent({targetFilePath:t,fileNameExtension:"pug"});(0,l.isArbitraryObject)(s)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e,invalidEntryKey:i,invalidEntryValueType:typeof s,invalidEntryStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(s)})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),(0,l.isNonEmptyString)(s.stateObjectTypeVariableName)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateVariableNameMessage({targetMarkupFileRelativePath:i,stringifiedValueOfSpecifiedVariableNameProperty:(0,l.stringifyAndFormatArbitraryValue)(s.stateObjectTypeVariableName),specifiedTypeOfVariableNameProperty:typeof s.stateObjectTypeVariableName})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),(0,l.isArbitraryObject)(s.variations)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateDependentVariationsSpecificationMessage({targetMarkupFileRelativePath:i,actualType:typeof s.variations,actualStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(s.variations)})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"});const r=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,i],{forwardSlashOnlySeparators:!0}),n={};for(const[e,t]of Object.entries(s.variations)){const o=`${u.default.removeFilenameExtensionFromPath(r)}${e}.pug`;(0,l.isArbitraryObject)(t)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateVariableMessage({targetMarkupFileRelativePath:i,actualStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(t),actualType:typeof t})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),n[o]=t}o[r]={stateVariableName:s.stateObjectTypeVariableName,derivedPagesAndStatesMap:n}}return o}normalizeImportsFromStaticDataFiles(){const e={};for(const t of this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromStaticDataFiles??[]){let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.fileRelativePath])})}catch(e){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({filePath:t.fileRelativePath}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.normalizeImportsFromStaticDataFiles()",wrappableError:e})}e[t.importedVariableName]=i}return e}normalizeImportsFromTypeScriptFiles(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromCompiledTypeScript;return(0,l.isUndefined)(e)?{}:{compiledTypeScriptImporting:{typeScriptConfigurationFileAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,(0,l.isNotUndefined)(e.typeScriptConfigurationFileRelativePath)?u.default.addFileNameExtensionIfNotPresent({targetFilePath:e.typeScriptConfigurationFileRelativePath,fileNameExtension:"json"}):n.default.staticPreview.typeScriptConfigurationFileRelativePath],{forwardSlashOnlySeparators:!0}),files:e.files.map((e=>{const t=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{forwardSlashOnlySeparators:!0});return{sourceFileAbsolutePath:t,importedNamespace:e.importedNamespace,outputDirectoryAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),outputFileNameWithoutExtension:e.customOutputFileNameWithoutLastExtension??u.default.extractFileNameWithoutExtensionFromPath(t)}}))}}}normalizeLoggingSettings(){return{filesPaths:this.markupProcessingSettings__fromFile__rawValid.logging?.filesPaths??n.default.logging.filesPaths,filesCount:this.markupProcessingSettings__fromFile__rawValid.logging?.filesCount??n.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:this.markupProcessingSettings__fromFile__rawValid.logging?.partialFilesAndParentEntryPointsCorrespondence??n.default.logging.partialFilesAndParentEntryPointsCorrespondence}}static completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings(e,t){return{...e,HTML_Validation:{mustExecute:!0!==t.HTML_Validation?.disable&&n.default.HTML_Validation.mustExecute},accessibilityInspection:{mustExecute:!0!==t.accessibilityInspection?.disable&&n.default.accessibilityInspection.mustExecute,standard:t.accessibilityInspection?.standard??n.default.accessibilityInspection.standard},mustConvertToHandlebarsOnNonStaticPreviewModes:t.convertToHandlebarsOnNonStaticPreviewModes??!1}}}t.default=p},4649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog:{title:"Redundant configuration detected",description:'For the static preview mode, the resources references could be resolved only to relative paths. You can safely remove "projectBuilding.markupProcessing.common.buildingModeDependent.STATIC_PREVIEW.mustResolveResourceReferencesToRelativePaths" specifying from the configuration.'},generateUnableToResolveResourcesReferencesToAbsolutePathLog:({consumingProjectBuildingMode:e})=>({title:"Unable to resolve the resources references to absolute paths",description:`The public directory ("projectBuilding.commonSettings.publicDirectoriesRelativePaths.[PROJECT_BUILDING_MODE]") that requires for resolving of resources references to absolute paths has not been specified for the "${e}" building mode. The resources references will be resolved to relative paths instead. If you wish these references be resolved to relative path, set "projectBuilding.markupProcessing.common.buildingModeDependent.[PROJECT_BUILDING_MODE].mustResolveResourceReferencesToRelativePaths" to true for the "${e}" building mode.`}),generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage:e=>`Failed to read the static preview state dependent pages variations specification file at '${e.staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath}'.`,generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog:e=>({technicalDetails:`The parsed YAML from static preview state dependent pages variations specification file '[ ProjectDirectory ]${e.staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath}'is not an ECMAScript 'object' and actually has type '${e.rawDataActualType}' and value:${e.stringifiedRawData}\n This data will be ignored.`,politeExplanation:`Reading and parsing of static preview state dependent pages variations specification file, we are expected it will has the object type as parsed YAML, the superset of JSON. Contrary to expectations, it has the '${e.stringifiedRawData}' type. We need to investigate it. We will keep the YDA running however we are sorry, but currently we are unable to inject above data to Pug files.`}),generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage:e=>`The static preview state dependent pages variations specification file ${e.staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath}is including the associative array with invalid value. The value respective to key '${e.invalidEntryKey}' must be the object with 'stateObjectTypeVariableName' and 'variations' properties while actually has type ${e.invalidEntryValueType} and value ${e.invalidEntryStringifiedValue}`,generateInvalidPageStateVariableNameMessage:e=>`Invalid page state variable name ('stateObjectTypeVariableName') has been specified for the markup file '${e.targetMarkupFileRelativePath}' in static preview state dependent pages variations specification file. This variable name must the non-empty string while actually has type '${e.specifiedTypeOfVariableNameProperty}' and value:\n ${e.stringifiedValueOfSpecifiedVariableNameProperty}`,generateInvalidPageStateDependentVariationsSpecificationMessage:e=>`Invalid state dependent page variations has been specified for the markup file '${e.targetMarkupFileRelativePath}'. It must be the associative array like object while actually has type '${e.actualType}' and value: ${e.actualStringifiedValue}`,generateInvalidPageStateVariableMessage:e=>`Invalid page state variable has been specified for the markup file '${e.targetMarkupFileRelativePath}'. It must be the object while actually has type '${e.actualType}' and value: ${e.actualStringifiedValue}`}},6496:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(6300)),n=o(i(7038)),a=o(i(5277)),l=o(i(1921)),c=o(i(8456)),u=o(i(6247)),d=o(i(8783)),p=o(i(3994)),g=o(i(6553)),f=i(1943),m=o(i(7803));class h extends s.default{TASK_NAME_FOR_LOGGING;SUBTASK_NAME_FOR_LOGGING="Importing from TypeScript";markupProcessingSettingsRepresentative;webpackConfigurationForEachTypeScriptFile;hasFirstBuildCompleted=!1;static provideTypeScriptImportsForMarkupIfMust(e){if(!e.isStaticPreviewBuildingMode)return(0,r.default)();const t=e.markupProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,r.default)();const i=t.compiledTypeScriptImportingSettings;if((0,f.isUndefined)(i))return(0,r.default)();const o=new h(e,t,i);return e=>o.provideTypeScriptImports(e)}constructor(e,t,i){super(e),this.markupProcessingSettingsRepresentative=t,this.TASK_NAME_FOR_LOGGING=this.markupProcessingSettingsRepresentative.TASK_NAME_FOR_LOGGING;const o=g.default.readTypeScriptConfigurationFileAndGetCompilerOptions(i.typeScriptConfigurationFileAbsolutePath),s=d.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:o.paths,typeScriptBasicAbsolutePath:o.baseUrl??m.default.extractDirectoryFromFilePath(i.typeScriptConfigurationFileAbsolutePath)}),r=[];for(const e of i.files){const t=h.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({importFromCompiledTypeScriptFileSettings:e,consumingProjectRootDirectoryAbsolutePath:this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,webpackAliasesConfiguration:s});(0,f.isNotNull)(t)&&r.push(t)}this.webpackConfigurationForEachTypeScriptFile=r}provideTypeScriptImports(e){return n.default.src(this.markupProcessingSettingsRepresentative.importedTypeScriptSourceFilesAbsolutePaths).pipe(super.printProcessedFilesPathsAndQuantity({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe(super.handleErrorIfItWillOccur({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe((0,c.default)(this.webpackConfigurationForEachTypeScriptFile[0],null,this.onFirstBuildHasCompleted.bind(this))).pipe(l.default.modify({onStreamStartedEventCommonHandler:async e=>{const t=this.markupProcessingSettingsRepresentative.getTypeScriptImportingSettingsExpectedToExistForSpecificOutputJavaScriptFile(m.default.replacePathSeparatorsToForwardSlashes(e.path)).importedNamespace,i=(0,a.default)(e);return e.contents=Buffer.from(`-\n\t${i}\n\n\tconst ${t} = global.${t}.default;\n`),e.extname=".pug",Promise.resolve(l.default.CompletionSignals.PASSING_ON)}})).pipe(n.default.dest(this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath)).on("data",(()=>{this.hasFirstBuildCompleted&&e()}))}onFirstBuildHasCompleted(e,t){this.hasFirstBuildCompleted=!0,(0,f.isNeitherUndefinedNorNull)(e)||(0,f.isNotUndefined)(t)&&process.stdout.write(`${t.toString({colors:!0})}\n`)}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({importFromCompiledTypeScriptFileSettings:e,consumingProjectRootDirectoryAbsolutePath:t,webpackAliasesConfiguration:i}){const o=u.default.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({entryPointsGroupID:e.importedNamespace,sourceFilesGlobSelectors:[e.sourceFileAbsolutePath],webpackContext:t});return(0,f.isNull)(o)?null:{entry:o,output:{library:{type:"umd",name:e.importedNamespace},globalObject:"globalThis"},watch:!0,mode:"production",optimization:{minimize:!0},module:{rules:[{test:/\.ts$/u,loader:"ts-loader"}]},resolve:{extensions:[".ts",".js"],alias:i},resolveLoader:d.default.generateLoadersResolvingSettings(t),plugins:[new p.default]}}}t.default=h},9750:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1141)),r=o(i(7038)),n=o(i(9024)),a=o(i(6701)),l=o(i(7125)),c=o(i(1921)),u=o(i(6300)),d=i(5436),p=o(i(1508)),g=o(i(7147)),f=o(i(7803)),m=o(i(7184)),h=i(1943),P=o(i(8975)),S=i(5577),y=o(i(8326));class _ extends s.default{static localization=y.default;static LINTING_OPTIMIZATIONS_FILE_NAME_WITH_EXTENSION="MarkupLintingCache.json";static cachedLintingResultsFileContentSpecification={subtype:h.RawObjectDataProcessor.ObjectSubtypes.associativeArray,nameForLogging:"CachedMarkupLintingResultsFileContent",value:{type:Object,properties:{issues:{type:Array,required:!0,element:{type:Object,properties:{code:{type:String,required:!0,minimalCharactersCount:1},message:{type:String,required:!0,minimalCharactersCount:1},sourceListing:{type:String,required:!0},lineNumber:{type:Number,required:!0,numbersSet:h.RawObjectDataProcessor.NumbersSets.nonNegativeInteger},columnNumber:{type:Number,required:!1,numbersSet:h.RawObjectDataProcessor.NumbersSets.nonNegativeInteger}}}},modificationDatetime__ISO_8601:{type:String,required:!0,minimalCharactersCount:1}}}};static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;targetFilesGlobSelectors;TASK_NAME_FOR_LOGGING;SUBTASK_NAME_FOR_LOGGING="Markup linting";LINTER_NAME="Markup source files linter";pugLintInstance=new n.default;pugLintConfig;CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH;cachedLintingResults;static provideMarkupLintingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,h.isUndefined)(t))return(0,u.default)();const i=a.default.load();if((0,h.isUndefined)(i))return h.Logger.logError({errorType:h.ConfigFileNotFoundError.NAME,title:_.localization.pugLintFileNotFoundErrorLog.title,description:h.ConfigFileNotFoundError.localization.generateDescription({targetTechnologyName:"pug-lint",configFilePathOrMultipleOfThem:[".pug-lintrc",".pug-lintrc.js",".pug-lintrc.json","package.json[pugLintConfig]"],messageSpecificPart:_.localization.pugLintFileNotFoundErrorLog.pugLintConfigurationFileRequirementExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideMarkupLintingIfMust(masterConfigRepresentative)"}),(0,u.default)();const o=new _({masterConfigRepresentative:e,markupProcessingSettingsRepresentative:t,pugLintConfig:i});return o.lint(o.targetFilesGlobSelectors)}constructor({masterConfigRepresentative:e,markupProcessingSettingsRepresentative:t,pugLintConfig:i}){if(super(e),this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH=f.default.joinPathSegments([p.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.LINTING_OPTIMIZATIONS_FILE_NAME_WITH_EXTENSION],{forwardSlashOnlySeparators:!0}),g.default.existsSync(this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH))try{this.cachedLintingResults=S.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH,validDataSpecification:_.cachedLintingResultsFileContentSpecification})}catch(e){h.Logger.logError({errorType:h.InvalidExternalDataError.NAME,title:h.InvalidExternalDataError.localization.defaultTitle,description:h.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:h.InvalidExternalDataError.localization.generateDescription({mentionToExpectedData:_.cachedLintingResultsFileContentSpecification.nameForLogging}),politeExplanation:_.localization.invalidCachedLintingResultsDataErrorLog.politeExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideMarkupProcessingIfMust(masterConfigRepresentative)",caughtError:e}),this.cachedLintingResults={}}else this.cachedLintingResults={};this.targetFilesGlobSelectors=[m.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:["pug"]}),...(0,h.isNonEmptyArray)(i.excludeFiles)?i.excludeFiles.map((t=>m.default.buildAbsolutePathBasedGlob({isExclusive:!0,basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath,relativePathBasedGlob:t}))):[]],this.pugLintConfig=i;try{this.pugLintInstance.configure(this.pugLintConfig)}catch(e){h.Logger.throwErrorAndLog({errorInstance:new h.InvalidConfigError({customMessage:_.localization.pugLintConfigurationIsInvalid.description}),title:_.localization.pugLintConfigurationIsInvalid.title,occurrenceLocation:"MarkupSourceCodeLinter.provideMarkupProcessingIfMust(masterConfigRepresentative)",wrappableError:e})}this.TASK_NAME_FOR_LOGGING=t.TASK_NAME_FOR_LOGGING}lint(e){return 0===e.length?(0,u.default)():()=>r.default.src(e,{read:!1}).pipe(super.printProcessedFilesPathsAndQuantity({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe(super.handleErrorIfItWillOccur({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe((0,l.default)((e=>this.hasLintingResultsBeenCachedForSpecificMarkupFile(e)),c.default.modify({onStreamStartedEventCommonHandler:async e=>{const t=f.default.computeRelativePath({comparedPath:e.path,basePath:this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath});return e.lintingResults=this.cachedLintingResults[t]?.issues,Promise.resolve(c.default.CompletionSignals.PASSING_ON)}}),(0,d.obj)(c.default.modify({onStreamStartedEventCommonHandler:async e=>(e.contents=g.default.readFileSync(e.path),Promise.resolve(c.default.CompletionSignals.PASSING_ON))}),c.default.modify({onStreamStartedEventCommonHandler:async e=>{let t;try{t=this.pugLintInstance.checkFile(e.path).map((e=>({code:e.code,message:e.msg,sourceListing:e.src,lineNumber:e.line,columnNumber:e.column})))}catch(e){h.Logger.throwErrorAndLog({errorType:"MarkupLintingError",title:_.localization.pugLintingFailedErrorLog.title,description:h.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:_.localization.pugLintingFailedErrorLog.technicalDetails,politeExplanation:_.localization.pugLintingFailedErrorLog.politeExplanation}),occurrenceLocation:"markupSourceCodeLinter.lint()",wrappableError:e})}return e.lintingIssues=t,Promise.resolve(c.default.CompletionSignals.PASSING_ON)}}),c.default.modify({onStreamStartedEventCommonHandler:async e=>(this.cachedLintingResults[f.default.replacePathSeparatorsToForwardSlashes(e.relative)]={issues:e.lintingIssues,modificationDatetime__ISO_8601:e.stat?.mtime.toJSON()??(new Date).toISOString()},Promise.resolve(c.default.CompletionSignals.PASSING_ON))})))).on("end",(()=>{if(Object.values(this.cachedLintingResults).some((e=>(0,h.isNotUndefined)(e)&&e.issues.length>0))){const e=[];for(const[t,i]of Object.entries(this.cachedLintingResults))(0,h.isUndefined)(i)||0===i.issues.length||e.push(`■ ${t}: ${i.issues.length} issue(s)\n${_.formatIssuesOfSingleFile(i)}`);h.Logger.logErrorLikeMessage({title:"Markup linting, issue(s) found",description:`\n${e.join("\n\n")}`})}g.default.writeFileSync(this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH,(0,h.stringifyAndFormatArbitraryValue)(this.cachedLintingResults))}))}hasLintingResultsBeenCachedForSpecificMarkupFile(e){return this.cachedLintingResults[f.default.replacePathSeparatorsToForwardSlashes(e.relative)]?.modificationDatetime__ISO_8601===e.stat?.mtime.toJSON()}static formatIssuesOfSingleFile(e){return e.issues.map((e=>`------------------------------------------------------------------------------------------------------\n${_.createExtractionFromCodeListingWithHighlightedIssueLine(e)}\n------------------------------------------------------------------------------------------------------\n${e.message} (${e.code})\nat line ${e.lineNumber}${(0,h.insertSubstring)(e.columnNumber,{modifier:e=>`, column ${e}`})}`)).join("\n\n")}static createExtractionFromCodeListingWithHighlightedIssueLine(e){const t=e.sourceListing.split("\n");if((0,h.isUndefined)(e.columnNumber))t[e.lineNumber-1]=h.Logger.highlightText(t[e.lineNumber-1]);else{const i=t[e.lineNumber-1],o=(0,P.default)(i,{startingSymbolNumber__numerationFrom1:e.columnNumber,lastSymbolNumber__numerationFrom0:i.length-1});t[e.lineNumber-1]=i.replace(o,h.Logger.highlightText(o))}let i=e.lineNumber-1-_.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING;i<0&&(i=0);let o=e.lineNumber+_.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING;return o>t.length&&(o=t.length),t.slice(i,o).join("\n")}}t.default=_},8326:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={pugLintFileNotFoundErrorLog:{title:"'pug-lint' configuration file not found",pugLintConfigurationFileRequirementExplanation:"Intended to be used for high quality web/native development, the markup source code linting is enabled by default. If you can not use it for some reason, disable it."},invalidCachedLintingResultsDataErrorLog:{politeExplanation:"The error has occurred during the parsing of the file with previous (cached) markup linting results. Of course the YDA developers has took care about written data matching with expected scheme, however this bug occurrence means that some combination of conditions was not taken into account."},pugLintConfigurationIsInvalid:{title:"'pug-lint' configuration is invalid",description:"The 'pug-lint' utility has not accepted the specified configuration."},pugLintingFailedErrorLog:{title:"Markup linting error",technicalDetails:"The error occurred during execution of 'pugLintInstance.checkFile(filePath)'",politeExplanation:"The Pug linter has thrown the error under unknown for YDA developers combination of conditions."}}},3813:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static normalizeSyntax(e){Buffer.isBuffer(e.contents)&&(e.contents=Buffer.from(e.contents.toString().replaceAll("@media container and","@container")))}}},9217:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8680)),r=o(i(9126)),n=o(i(8592)),a=o(i(9418)),l=i(1943),c=o(i(7803));class u extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=(0,l.isUndefined)(e.linting)?{isCompletelyDisabled:!r.default.linting.mustExecute}:{isCompletelyDisabled:!0===e.linting.enable||!r.default.linting.mustExecute,...(0,l.isNotUndefined)(e.linting.presetFileRelativePath)?{presetFileAbsolutePath:c.default.joinPathSegments([t.projectRootDirectoryAbsolutePath,n.default.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION],{forwardSlashOnlySeparators:!0})}:null},o=new u({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.stylesProcessing}:{},lintingCommonSettings:i});return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,waitingForSubsequentFilesWillBeSavedPeriod__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i,entryPointsGroupsActualForCurrentProjectBuildingMode:o.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,o.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings.bind(o))}}constructor(e){super(e)}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings(e,t){return{...e,entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML:`${r.default.entryPointsGroupReferencePrefix}${t.customReferenceName??e.ID}`,revisioning:{mustExecute:!0!==t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.disable&&r.default.revisioning.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode}),contentHashPostfixSeparator:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.contentHashPostfixSeparator??r.default.revisioning.contentHashPostfixSeparator}}}}t.default=u},8680:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["styl","stylus"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["css"]}(i||(i={})),t.default=i},8962:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6434)),r=o(i(1083)),n=i(1943),a=o(i(7803));class l extends s.default{static#e={targetFilesType:{singularForm:"stylesheet",pluralForm:"stylesheets"},errorsMessagesData:{unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing:{generateTechnicalDetails:({filePath:e})=>`Unable to decide must file '${e}' be processed by Stylus pre-processor or not because this \nfile has no filename extension.`,generatePoliteExplanation:({filePath:e})=>`The styles processor tried to check must file with path ${e} be processed by Stylus pre-processor or no. To check this, it is required to confirm the filename extension, but name of target file has no extension. During normal operation, only files with appropriate filename extensions being included to selection which will be processed while this time file without filename extension has been included to selection. It means we missed something when developed the algorithm or logic mistake in code was made.`}},warningsData:{noRelevantEntryPointsSettings:{title:"Styles processing idle",generateDescription:({projectBuildingMode:e})=>`No styles processing settings has been specified for project building mode '${e}'and/or current selective execution.`}}};supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM=l.#e.targetFilesType.singularForm;TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM=l.#e.targetFilesType.pluralForm;waitingForTheOtherFilesWillBeSavedPeriod__seconds;prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";sourceCodeLintingCommonSettings;sourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map;relevantEntryPointsGroupsSettings;sourceCodeProcessingCommonSettings;static mustFileBeProcessedByStylus(e){const t=a.default.extractLastFilenameExtensionWithoutFirstDot(e);return(0,n.isNull)(t)&&n.Logger.throwErrorAndLog({errorInstance:new n.UnexpectedEventError(n.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:l.#e.errorsMessagesData.unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing.generateTechnicalDetails({filePath:e}),politeExplanation:l.#e.errorsMessagesData.unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing.generatePoliteExplanation({filePath:e})})),occurrenceLocation:"StylesProcessingSettingsRepresentative.mustFileBeProcessedByStylus(targetFilePath)",title:n.UnexpectedEventError.localization.defaultTitle}),r.default.supportedFileNamesExtensionsWithoutPrependedDots.includes(t)}constructor(e,t){super({masterConfigRepresentative:t,mustLogPartialFilesAndEntryPointsRelationsMap:!1}),this.sourceCodeProcessingCommonSettings=e.common,this.sourceCodeLintingCommonSettings=e.linting,this.relevantEntryPointsGroupsSettings=e.entryPointsGroupsActualForCurrentProjectBuildingMode,0===this.relevantEntryPointsGroupsSettings.size&&n.Logger.logWarning({title:l.#e.warningsData.noRelevantEntryPointsSettings.title,description:l.#e.warningsData.noRelevantEntryPointsSettings.generateDescription({projectBuildingMode:this.masterConfigRepresentative.consumingProjectBuildingMode})}),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots,this.waitingForTheOtherFilesWillBeSavedPeriod__seconds=e.common.waitingForSubsequentFilesWillBeSavedPeriod__seconds,super.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap()}get entryPointsGroupsNormalizedSettingsMappedByPathAliases(){return new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[e.entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML,e])))}}t.default=l},9126:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,entryPointsGroupReferencePrefix:"@",revisioning:{mustExecute:e=>e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0}};t.default=r},9018:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedPropertiesSpecification=function({stylesProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:n}){return{[e.common.KEY]:{newName:"common",preValidationModifications:r.nullToUndefined,type:Object,required:!1,properties:{[e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,required:!1,numbersSet:r.RawObjectDataProcessor.NumbersSets.naturalNumber}}},[e.linting.KEY]:{newName:"linting",preValidationModifications:r.nullToUndefined,type:Object,required:!1,properties:n},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{...t,[e.entryPointsGroups.customReferenceName.KEY]:{newName:"customReferenceName",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",preValidationModifications:r.nullToUndefined,type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(s.default),minimalEntriesCount:1,keysRenamings:{[i.localDevelopment]:s.default.staticPreview,[i.localDevelopment]:s.default.localDevelopment,[i.testing]:s.default.testing,[i.staging]:s.default.staging,[i.production]:s.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.entryPointsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,properties:o}}}}}}}}}}(n||(n={})),t.default=n},7678:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StylesProcessor=void 0;const s=o(i(8962)),r=o(i(4079)),n=o(i(7038)),a=o(i(7125)),l=o(i(9952)),c=o(i(8103)),u=o(i(9289)),d=o(i(778)),p=o(i(796)),g=o(i(3506)),f=o(i(4779)),m=o(i(1921)),h=o(i(3813)),P=i(2781),S=i(1943),y=o(i(7803));class _ extends r.default{TASK_NAME_FOR_LOGGING="Styles processing";stylesProcessingConfigRepresentative;static provideStylesProcessingIfMust(e){const t=e.stylesProcessingSettingsRepresentative;if((0,S.isUndefined)(t))return()=>(new P.PassThrough).end();const i=new _(e,t);return(e.isStaticPreviewBuildingMode||e.isLocalDevelopmentBuildingMode)&&(i.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(),i.initializeOrUpdateWatchedSourceFilesGlobSelectors(),i.initializeOrUpdateSourceFilesWatcher()),i.processEntryPoints(t.relevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super(e,t),this.stylesProcessingConfigRepresentative=t}processEntryPoints(e){return 0===e.length?()=>(new P.PassThrough).end():()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,l.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,c.default.init())).pipe((0,a.default)((e=>e.mustBeProcessedByStylus),(0,u.default)({"include css":!0}))).pipe((0,d.default)((()=>({plugins:[p.default,(0,g.default)({preset:["default",{normalizeWhitespace:!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,discardComments:!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode}]})]})))).pipe(m.default.modify({onStreamStartedEventCommonHandler:async e=>(h.default.normalizeSyntax(e),Promise.resolve(m.default.CompletionSignals.PASSING_ON))})).pipe((0,a.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,c.default.write())).pipe((0,l.default)(this.onPostProcessedCode.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path);return e.processingSettings=t,e.sourceAbsolutePath=y.default.replacePathSeparatorsToForwardSlashes(e.path),e.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),e.mustBeProcessedByStylus=s.default.mustFileBeProcessedByStylus(e.path),e}onPostProcessedCode(e){const t=e;return t.processingSettings.revisioning.mustExecute&&f.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.stylesProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(y.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),y.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.StylesProcessor=_,t.default=_},3918:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(3127));class r{static localization=s.default;static getEventNameInterpretation(e){switch(e){case r.EventsNames.fileAdded:return r.localization.eventsNamesInterpretations.fileAdded;case r.EventsNames.fileChanged:return r.localization.eventsNamesInterpretations.fileChanged;case r.EventsNames.fileDeleted:return r.localization.eventsNamesInterpretations.fileDeleted;case r.EventsNames.directoryAdded:return r.localization.eventsNamesInterpretations.directoryAdded;case r.EventsNames.directoryDeleted:return r.localization.eventsNamesInterpretations.fileDeleted;case r.EventsNames.errorOccurred:return r.localization.eventsNamesInterpretations.errorOccurred;case r.EventsNames.initialScanComplete:return r.localization.eventsNamesInterpretations.initialScanComplete;default:return e}}}!function(e){let t;!function(e){e.fileAdded="add",e.fileChanged="change",e.fileDeleted="unlink",e.directoryAdded="addDir",e.directoryDeleted="unlinkDir",e.errorOccurred="error",e.initialScanComplete="ready"}(t=e.EventsNames||(e.EventsNames={}))}(r||(r={})),t.default=r},3127:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={eventsNamesInterpretations:{fileAdded:"File has been added",fileChanged:"File has changed",fileDeleted:"File has been deleted",directoryAdded:"Directory has been added",directoryDeleted:"Directory has been deleted",errorOccurred:"Error occurred",initialScanComplete:"Initial scan complete"}}},723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static supportedFileNamesExtensionsWithoutPrependedDots=["pug"];static partialFilesIncludingDeclarationPatterns=[/^ *(?:include|extends) +(?<filePath>(?:\w|-|\.|\/)+) *$/gmu];static implicitFileNamesExtensionsWithoutPrependedDotsOfPartials=["pug"]}},8592:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION=".stlintrc"}(i||(i={})),t.default=i},1083:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static supportedFileNamesExtensionsWithoutPrependedDots=["styl","stylus"];static partialFilesIncludingDeclarationPatterns=[/^ *@(?:import|require) +['"](?<filePath>(?:\w|-|\.|\/)+?)['"] *;? *$/gmu];static implicitFileNamesExtensionsWithoutPrependedDotsOfPartials=["styl","stylus","css"]}},6553:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4007)),r=i(1943),n=o(i(7803));t.default=class{static readTypeScriptConfigurationFileAndGetCompilerOptions(e){let t,i;try{t=s.default.readConfigFile(e,(e=>s.default.sys.readFile(e)))}catch(t){r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:t})}(0,r.isNotUndefined)(t.error)&&r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:(0,r.isNonEmptyString)(t.error.messageText)?t.error.messageText:t.error.messageText.messageText}),(0,r.isArbitraryObject)(t.config)&&"compilerOptions"in t.config||r.Logger.throwErrorAndLog({errorInstance:new r.InvalidConfigError({mentionToConfig:`TypeScript (${e})`}),title:r.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)"});try{i=s.default.convertCompilerOptionsFromJson(t.config.compilerOptions,n.default.extractDirectoryFromFilePath(e))}catch(t){r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:t})}return i.errors.length>0&&r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:i.errors.map((e=>(0,r.isNonEmptyString)(e.messageText)?e.messageText:e.messageText.messageText)).join("\n")}),i.options}}},8783:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(5577);class s{static convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptBasicAbsolutePath:e,typeScriptPathsSettings:t}){const i={};for(const[s,r]of Object.entries(t??{}))i[s.endsWith("/*")?s.slice(0,-"/*".length):s]=r.map((t=>o.ImprovedPath.joinPathSegments([e,...t.endsWith("/*")?[t.slice(0,-"/*".length)]:[t]],{alwaysForwardSlashSeparators:!0})));return i}static generateLoadersResolvingSettings(e){return{modules:[o.ImprovedPath.joinPathSegments([e,"node_modules"],{alwaysForwardSlashSeparators:!0}),o.ImprovedPath.joinPathSegments([__dirname,"node_modules"],{alwaysForwardSlashSeparators:!0})]}}}!function(e){let t,i,o;!function(e){e.development="development",e.production="production",e.none="none"}(t=e.BuildingModes||(e.BuildingModes={})),function(e){e.eval="eval",e.evalCheapSourceMap="eval-cheap-source-map",e.evalCheapModuleSourceMap="eval-cheap-module-source-map",e.evalSourceMap="eval-source-map",e.evalNoSourcesSourceMap="eval-nosources-source-map",e.evalNoSourcesCheapSourceMap="eval-nosources-cheap-source-map",e.evalNoSourcesCheapModuleSourceMap="eval-nosources-cheap-module-source-map",e.cheapSourceMap="cheap-source-map",e.cheapModuleSourceMap="cheap-module-source-map",e.inlineCheapSourceMap="inline-cheap-source-map",e.inlineCheapModuleSourceMap="inline-cheap-module-source-map",e.inlineSourceMap="inline-source-map",e.inlineNoSourcesSourceMap="inline-nosources-source-map",e.inlineNosourcesCheapSourceMap="inline-nosources-cheap-source-map",e.inlineNoSourcesCheapModuleSourceMap="inline-nosources-cheap-module-source-map",e.sourceMap="source-map",e.hiddenSourceMap="hidden-source-map",e.hiddenNoSourcesSourceMap="hidden-nosources-source-map",e.hiddenNoSourcesCheapSourceMap="hidden-nosources-cheap-source-map",e.hiddenNoSourcesCheapModuleSourceMap="hidden-nosources-cheap-module-source-map",e.hiddenCheapSourceMap="hidden-cheap-source-map",e.hiddenCheapModuleSourceMap="hidden-cheap-module-source-map",e.noSourcesSourceMap="nosources-source-map",e.noSourcesCheapSourceMap="nosources-cheap-source-map",e.noSourcesCheapModuleSourceMap="nosources-cheap-module-source-map"}(i=e.BuildInSourceMapsTypes||(e.BuildInSourceMapsTypes={})),function(e){e.webBrowser="web",e.webWorker="webworker"}(o=e.BuildingTargets||(e.BuildingTargets={}))}(s||(s={})),t.default=s},7184:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4230)),r=o(i(6828)),n=i(1943),a=o(i(603));class l{static getFilesAbsolutePathsSynchronously(e){const t=[],i=[];for(const o of e)l.isExcludingGlobSelector(o)?i.push((0,n.replaceDoubleBackslashesWithForwardSlashes)(o)):t.push((0,n.replaceDoubleBackslashesWithForwardSlashes)(o));const o=[];for(const e of t)o.push(...s.default.sync(e,{ignore:i.map((e=>(0,n.removeNthCharacter)(e,{targetCharacterNumber:1,numerationFrom:1})))}));return o}static isFileMatchingWithGlobSelector(e){return(0,r.default)(e.filePath,e.globSelector)}static isFileMatchingWithAllGlobSelectors(e){for(const t of e.globSelectors)if(!(0,r.default)(e.filePath,t))return!1;return!0}static buildAllFilesInCurrentDirectoryButNotBelowGlobSelector(e){return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/*${l.createMultipleFilenameExtensionsGlobPostfix(e.fileNamesExtensions)}`)}static buildAllFilesInCurrentDirectoryAndBelowGlobSelector(e){const t=e.fileNamesExtensions??[];return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/**${(0,n.insertSubstringIf)(l.createMultipleFilenameExtensionsGlobPostfix(t),t.length>0)}`)}static buildExcludingOfDirectoryAndSubdirectoriesGlobSelector(e){return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`!${(0,a.default)(e,{leading:!1,trailing:!0})}/**/**`)}static buildExcludingOfFilesWithSpecificPrefixesGlobSelector(e){return 0===e.filesNamesPrefixes.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.filesNamesPrefixes",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'filesNamesPrefixes'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector(parametersObject)"}),0===e.filesNamesExtensions.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.filesNamesExtensions",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'filesNamesExtensions'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)(`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/@(${e.filesNamesPrefixes.join("|")})**${l.createMultipleFilenameExtensionsGlobPostfix(e.filesNamesExtensions)}`)}static buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector(e){return 0===e.subdirectoriesPrefixes.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.subdirectoriesPrefixes",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'subdirectoriesPrefixes'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)([`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/`,`@(${e.subdirectoriesPrefixes.join("|")})**/**/**`,...(0,n.isNotUndefined)(e.filesNamesExtensions)&&e.filesNamesExtensions.length>0?`${l.createMultipleFilenameExtensionsGlobPostfix(e.filesNamesExtensions)}`:[]].join(""))}static buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector(e){return 0===e.subdirectoriesNames.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.subdirectoriesNames",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'subdirectoriesNames'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)([`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/`,`@(${e.subdirectoriesNames.join("|")})/**/**`,...(0,n.isNotUndefined)(e.filenamesExtensions)&&e.filenamesExtensions.length>0?`${l.createMultipleFilenameExtensionsGlobPostfix(e.filenamesExtensions)}`:[]].join(""))}static createMultipleFilenameExtensionsGlobPostfix(e){return`.@(${e.join("|").replace(/\./gu,"")})`}static buildAbsolutePathBasedGlob(e){return`${(0,n.insertSubstringIf)("!",!0===e.isExclusive)}${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/${(0,a.default)(e.relativePathBasedGlob,{leading:!0,trailing:!0})}`}static isExcludingGlobSelector(e){return 0!==e.length&&e.startsWith("!")}}t.default=l},7803:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1017)),r=i(1943);class n{static parsePath(e,t){const i=s.default.parse(e),o=!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(i.root):i.root,n=!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(i.dir):i.dir,a=i.base.split(".");let l,c;return a[0].length>0?(l=a[0],c=a.slice(1)):c=a,{...o.length>0?{root:o}:null,getRootWhichExpectedBeDefined(){if((0,r.isString)(this.root))return this.root;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that root in the path '${e}' to be defined, but actually it is undefined.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getRootWhichExpectedBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...n.length>0?{directory:n}:null,getDirectoryWhichExpectedBeDefined(){if((0,r.isString)(this.directory))return this.directory;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that directory in the path '${e}' to be defined, but actually it is undefined.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getDirectoryWhichExpectedBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...(0,r.isString)(l)?{filenameWithoutExtension:l}:null,getFilenameWithoutExtensionWhichExpectedToBeDefined(){if((0,r.isString)(this.filenameWithoutExtension))return this.filenameWithoutExtension;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that file name without extension in '${e}' to be defined, but actually there is extension without file name.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameWithoutExtensionWhichExpectedToBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...Array.isArray(c)?{filenameExtensionsList:c,filenameExtensions:`.${c.join(".")}`}:null,getFilenameExtensionWithoutLeadingDotWhichExpectedToBeDefinedAndSingle(){return(0,r.isUndefined)(this.filenameExtensionsList)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that path '${e}' end with filename with extension, however it has not filename extension.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameExtensionWithoutLeadingDotWhichExpectedToBeDefinedAndSingle()",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList.length>1&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename in path '${e}' has single filename extension, but is has multiple of them.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).filenameExtensionWithoutLeadingDot__mustBeDefinedAndSingle",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList[0]},getFilenameExtensionWithLeadingDotWhichExpectedBeDefinedAndSingle(){return(0,r.isUndefined)(this.filenameExtensionsList)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that path '${e}' end with filename with extension, however it has not filename extension.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameExtensionWithLeadingDotWhichExpectedBeDefinedAndSingle()",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList.length>1&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename in path '${e}' has single filename extension, but is has multiple of them.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).filenameExtensionWithLeadingDot__mustBeDefinedAndSingle",title:r.UnexpectedEventError.localization.defaultTitle}),`.${this.filenameExtensionsList[0]}`},get filenameWithExtension(){let e=(0,r.undefinedToEmptyString)(this.filenameWithoutExtension);const t=this.filenameExtensionsList;return(0,r.isNonEmptyArray)(t)&&(e=`${e}.${t.join(".")}`),e.length>0?e:void 0},getFilenameWithExtensionWhichExpectedToBeDefined(){const t=this.filenameWithExtension;return(0,r.isUndefined)(t)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename and/or extension is being defined in '${e}' however both is not being.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameWithExtensionWhichExpectedToBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle}),t}}}static replacePathSeparatorsToForwardSlashes(e){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(e)}static hasFilenameExtension(e){return s.default.extname(e).length>0}static computeRelativePath(e){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.relative(e.basePath,e.comparedPath))}static joinPathSegments(e,t){return!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.join(...e)):s.default.join(...e)}static splitPathToSegments(e){return s.default.normalize(e).split(s.default.sep)}static extractFileNameWithExtensionFromPath(e){return s.default.basename(e)}static extractFileNameWithoutExtensionFromPath(e){return s.default.parse(e).name}static extractDirectoryFromFilePath(e){return null!==n.extractLastFilenameExtensionBeginsFromDot(e)?(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.parse(e).dir):e}static extractLastFilenameExtensionBeginsFromDot(e){return 0===s.default.extname(e).length?null:s.default.extname(e)}static extractLastFilenameExtensionWithoutFirstDot(e){const t=s.default.extname(e);return 0===t.length?null:(0,r.getURI_PartWithoutFragment)(t.substring(1))}static removeFilenameExtensionFromPath(e){const t=s.default.extname(e);return 0===t.length?e:e.replace(new RegExp(`${t}$`,"u"),"")}static removeSegmentsFromPath(e,t){const i=n.splitPathToSegments(e);return(0,r.removeArrayElementsByPredicates)({targetArray:i,predicate:e=>t.includes(e),mutably:!0}),n.joinPathSegments(i,{forwardSlashOnlySeparators:!0})}static isFilenameExtensionIs(e,t){let i;i=(0,r.isString)(t)?[t]:t;const o=n.extractLastFilenameExtensionWithoutFirstDot(e);return null!==o&&(i.forEach(((e,t)=>{/^./u.test(e)&&(i[t]=e.substring(1))})),i.includes(o))}static getCurrentWorkDirectory(){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(process.cwd())}static addFileNameExtensionIfNotPresent({targetFilePath:e,fileNameExtension:t}){return n.hasFilenameExtension(e)?e:`${e}.${(0,r.removeSpecificCharacterFromCertainPosition)({targetString:t,fromFirstPosition:!0,targetCharacter:"."})}`}}t.default=n},2076:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=class{activationUnixTimestamp__milliseconds=0;deactivationUnixTimestamp__milliseconds=0;startOrRestart(){return 0===this.activationUnixTimestamp__milliseconds&&(this.activationUnixTimestamp__milliseconds=Date.now()),this}stop(){this.deactivationUnixTimestamp__milliseconds=Date.now();const e=this.deactivationUnixTimestamp__milliseconds-this.activationUnixTimestamp__milliseconds;return{seconds:(0,o.millisecondsToSeconds)(e),milliseconds:e}}reset(){this.activationUnixTimestamp__milliseconds=0,this.deactivationUnixTimestamp__milliseconds=0}}},8975:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=function(e,t){let i,s;return"startingSymbolNumber__numerationFrom0"in t?!0===t.fromEnd?(Number.isInteger(t.startingSymbolNumber__numerationFrom0)||o.Logger.throwErrorAndLog({errorInstance:new o.InvalidParameterValueError({customMessage:`'options.startingSymbolNumber__numerationFrom0'は整数であるべきが、実際の値は${t.startingSymbolNumber__numerationFrom0}と成っている。`}),occurrenceLocation:"extractSubstring(targetString, options)",title:o.InvalidParameterValueError.localization.defaultTitle}),i=e.length-t.startingSymbolNumber__numerationFrom0):i=t.startingSymbolNumber__numerationFrom0:i=!0===t.fromEnd?e.length-t.startingSymbolNumber__numerationFrom1-1:t.startingSymbolNumber__numerationFrom1-1,s="lastSymbolNumber__numerationFrom1"in t?!0===t.fromEnd?e.length-t.lastSymbolNumber__numerationFrom1:t.lastSymbolNumber__numerationFrom1:"lastSymbolNumber__numerationFrom0"in t?!0===t.fromEnd?e.length-t.lastSymbolNumber__numerationFrom0-1:t.lastSymbolNumber__numerationFrom0+1:!0===t.fromEnd?i-t.substringLength:i+t.substringLength,Array.from(e).slice(i,s).join("")}},603:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=function(e,t){let i=e;return t.leading&&i.startsWith("/")&&(i=(0,o.removeNthCharacter)(i,{targetCharacterNumber:0,numerationFrom:0})),t.trailing&&i.endsWith("/")&&(i=(0,o.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"/",fromLastPosition:!0})),i}},1508:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7803)),r=o(i(7147)),n=i(1943);class a{static DOT_YDA_DIRECTORY_NAME=".yda";static TEMPORARY_FILES_SUBDIRECTORY_NAME="Temporary";static OPTIMIZATION_FILES_SUBDIRECTORY_NAME="Optimizations";static GIT_IGNORE_FILE_NAME=".gitignore";static selfSoleInstance=null;DOT_YDA_DIRECTORY_ABSOLUTE_PATH;TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH;OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH;GIT_IGNORE_FILE_ABSOLUTE_PATH;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;static unrollDotYDA_Directory(e){(0,n.isNotNull)(a.selfSoleInstance)&&n.Logger.throwErrorAndLog({errorInstance:new n.ClassRedundantSubsequentInitializationError({className:"DotYDA_DirectoryManager"}),title:n.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.unrollDotYDA_Directory(consumingProjectRootDirectoryAbsolutePath)"});const t=new a(e);r.default.existsSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.GIT_IGNORE_FILE_ABSOLUTE_PATH)||r.default.writeFileSync(t.GIT_IGNORE_FILE_ABSOLUTE_PATH,`/${a.TEMPORARY_FILES_SUBDIRECTORY_NAME}/`),a.selfSoleInstance=t}constructor(e){this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e,this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,a.DOT_YDA_DIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.TEMPORARY_FILES_SUBDIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.OPTIMIZATION_FILES_SUBDIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.GIT_IGNORE_FILE_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.GIT_IGNORE_FILE_NAME],{forwardSlashOnlySeparators:!0})}static get DOT_YDA_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().DOT_YDA_DIRECTORY_ABSOLUTE_PATH}static get TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH}static get OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH}static getExpectedToBeInitializedSelfSoleInstance(){return(0,n.isNull)(a.selfSoleInstance)&&n.Logger.throwErrorAndLog({errorInstance:new n.ClassRequiredInitializationHasNotBeenExecutedError({className:"DotYDA_DirectoryManager",initializingMethodName:"unrollDotYDA_Directory"}),title:n.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.getExpectedToBeInitializedSelfSoleInstance()"}),a.selfSoleInstance}}t.default=a},4779:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7804));t.default=class{static appendPostfixIfPossible(e,t){(0,s.isNull)(e.contents)?s.Logger.logWarning({title:"Unable to add revision hash",description:`The 'content' property of Target Vinyl file '${e.path}' is null.`}):(e.contents instanceof Buffer||s.Logger.throwErrorAndLog({errorInstance:new s.UnexpectedEventError(`The 'contents' property of target Vynil file '${e.path}' is not an instance of 'Buffer'.Because usually it is the instance of Buffer, explorations are required.`),title:s.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"FileNameRevisionPostfixer.appendPostfixIfPossible(targetFile, options)",additionalData:e}),e.stem=`${e.stem}${t.contentHashPostfixSeparator}${(0,r.default)(e.contents)}`)}}},1921:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2781)),r=o(i(4648)),n=i(1943);class a{static modify(e){return new s.default.Transform({objectMode:!0,transform(t,i,o){r.default.isVinyl(t)||n.Logger.throwErrorAndLog({errorInstance:new n.UnexpectedEventError(n.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:'The "chunk" parameter is not an instance of Vinyl file',politeExplanation:'According official TypeScript types definitions, the second parameter of native "stream.TransformOptions.transform" method has "any" type. Using it with Gulp, we are expected that "chunk" could be only Vinyl file instances and during tests is was such as. However, this time, it is not the instance of Vinyl file. We need to investigate it and decide what to do with it.'})),title:n.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modify(namedParameters)",additionalData:{chunk:t}});const s=e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)},l=t;let c=!1;for(const[t,i]of e.onStreamStartedEventHandlersForSpecificFileTypes??new Map)l instanceof t&&(c=!0,i(l,s).then((e=>{switch(e){case a.CompletionSignals.PASSING_ON:o(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:o()}})).catch((e=>{o(e)})));if(!c){if((0,n.isUndefined)(e.onStreamStartedEventCommonHandler))return void o(null,l);e.onStreamStartedEventCommonHandler(l,s).then((e=>{switch(e){case a.CompletionSignals.PASSING_ON:o(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:o()}})).catch((e=>{o(e)}))}},flush(t){(0,n.isUndefined)(e.onStreamEndedEventHandler)?t():e.onStreamEndedEventHandler((e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)})).then((()=>{t()})).catch((e=>{t(e)}))}})}}!function(e){let t;!function(e){e.PASSING_ON="PASSING_ON",e.REMOVING_FILE_FROM_STREAM="REMOVING_FILE_FROM_STREAM"}(t=e.CompletionSignals||(e.CompletionSignals={}))}(a||(a={})),t.default=a},8523:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(723)),r=o(i(1083)),n=o(i(7147)),a=o(i(7803)),l=i(1943),c=i(5577),u=o(i(2076));class d{static partialFilesResolutionRules=[{targetFileNamesExtensionsWithoutPrependedDots:s.default.supportedFileNamesExtensionsWithoutPrependedDots,partialFilesIncludingDeclarationPatterns:s.default.partialFilesIncludingDeclarationPatterns,implicitFileNamesExtensionsWithoutPrependedDotsOfPartials:s.default.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials},{targetFileNamesExtensionsWithoutPrependedDots:r.default.supportedFileNamesExtensionsWithoutPrependedDots,partialFilesIncludingDeclarationPatterns:r.default.partialFilesIncludingDeclarationPatterns,implicitFileNamesExtensionsWithoutPrependedDotsOfPartials:r.default.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials}];static getPartialFilesAndParentEntryPointsRelationsMap({targetEntryPointsFilesAbsolutePaths:e,masterConfigRepresentative:t,sourceFilesTypeLabelForLogging:i,loggingIsEnabled:o}){const s=(new u.default).startOrRestart();l.Logger.logInfo({title:"Partial files and parent entry points mapping",description:`Mapping of ${i} entry points and partial files relations started ...`});const r=new Map,n=new Set;for(const t of e){r.set(t,new Set([t])),d.addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:t,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:n});for(const e of n){d.canPartialFilesHasOwnPartials({absolutePathOfTargetPartialFile:e})&&d.addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:e,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:n});const i=r.get(e);(0,l.isUndefined)(i)?r.set(e,new Set([t])):i.add(t)}}return s.stop(),l.Logger.logInfo({title:"Partial files and parent entry points mapping",description:`Mapping of ${i} entry points and partial files relations done. ${s.stop().seconds} seconds elapsed.`}),o&&d.dumpIncludedFilesAndEntryPointsAccordanceMap(r,t.consumingProjectRootDirectoryAbsolutePath),r}static addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:e,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:t}){const i="PartialsFilesMapper.getPartialFilesAndParentEntryPointsRelationsMap(parametersObject) ->addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue(parametersObject)",o=a.default.extractDirectoryFromFilePath(e),s=a.default.extractLastFilenameExtensionWithoutFirstDot(e);if((0,l.isNull)(s))return void l.Logger.logError({errorType:l.AlgorithmMismatchError.NAME,title:l.AlgorithmMismatchError.localization.defaultTitle,description:`The file '${e}' is missing the filename extensions. The partials of this file will not be detected.`,occurrenceLocation:i});const r=d.partialFilesResolutionRules.find((e=>e.targetFileNamesExtensionsWithoutPrependedDots.includes(s)));if((0,l.isUndefined)(r))return void l.Logger.logError({errorType:l.AlgorithmMismatchError.NAME,title:l.AlgorithmMismatchError.localization.defaultTitle,description:`No partial file resolution rules has been found for the file '${e}'. The partials of this file will not be detected.`,occurrenceLocation:i});let u;try{u=n.default.readFileSync(e,"utf-8")}catch(t){(0,c.isErrnoException)(t)&&"ENOENT"===t.code&&l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError(`Target file '${e}' is expecting to be existing, but actually wasnot found.`),title:l.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:i,wrappableError:t}),l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError("不明な理由"),title:l.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"className.methodName(parametersObject)",wrappableError:t})}for(const e of r.partialFilesIncludingDeclarationPatterns)for(const s of u.matchAll(e))(0,l.isUndefined)(s.groups)&&l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError("The named capturing group 'filePath' expected to be present in regular expression matching results, but actually there are no capturing groups."),occurrenceLocation:i,title:l.UnexpectedEventError.localization.defaultTitle}),d.addAbsolutePathOfSingleExistingPartialFileToQueue({targetPartialFilePathRelativeToParentFileDirectory:s.groups.filePath,directoryAbsolutePathOfParentOfTargetPartialFile:o,implicitFilenameExtensionsOfPartialsForCurrentFileType:r.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:t})}static addAbsolutePathOfSingleExistingPartialFileToQueue({targetPartialFilePathRelativeToParentFileDirectory:e,directoryAbsolutePathOfParentOfTargetPartialFile:t,implicitFilenameExtensionsOfPartialsForCurrentFileType:i=[],queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:o}){const s=[],r=a.default.extractLastFilenameExtensionWithoutFirstDot(e);(0,l.isNull)(r)?s.push(...i.map((i=>a.default.joinPathSegments([t,`${e}.${i}`],{forwardSlashOnlySeparators:!0})))):s.push(a.default.joinPathSegments([t,e],{forwardSlashOnlySeparators:!0}));for(const e of s)if(n.default.existsSync(e)){o.add(e);break}}static canPartialFilesHasOwnPartials({absolutePathOfTargetPartialFile:e}){const t=a.default.extractLastFilenameExtensionWithoutFirstDot(e);if((0,l.isNull)(t))return!1;let i;for(const e of d.partialFilesResolutionRules)e.targetFileNamesExtensionsWithoutPrependedDots.includes(t)&&(i=e);return(0,l.isNotUndefined)(i)}static dumpIncludedFilesAndEntryPointsAccordanceMap(e,t){let i="";for(const[o,s]of e.entries()){const e=o.replace(`${t}/`,"");if(1!==s.size||Array.from(s)[0].replace(`${t}/`,"")!==e){i=`${i}\nPartial file: '${e}'\nhas parents:\n`;for(const e of s)i=`${i} ● ${e.replace(`${t}/`,"")}\n`}}l.Logger.logInfo({title:"Partial files and parent entry points accordance map",description:i.length>0?(0,l.removeNthCharacter)(i,{targetCharacterNumber:1,numerationFrom:1}):"No partials files found"})}}t.default=d},1265:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4648)),r=i(1943);class n extends s.default{static getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e){return e instanceof n||r.Logger.throwErrorAndLog({errorInstance:new r.InvalidParameterValueError({parameterName:"targetVinylFile",parameterNumber:1,messageSpecificPart:'The target file is not the instance of "VinylFileClass" that is why can not access the field storing the output directory absolute path.'}),title:r.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"VinylFileClass.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(targetVinylFile"}),e.outputDirectoryAbsolutePath}constructor(e){super({contents:e.contents,path:e.path,base:e.explicitlySpecifiedPathPart})}}t.default=n},6300:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(2781);t.default=function(){return()=>(new o.PassThrough).end()}},5277:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e.contents?"":e.contents instanceof Buffer?e.contents.toString():""}},2004:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8048));t.default=function(e){if(0===e.length)return!0;const t=s.default.load(e);return 0===t("html").length||0===t("head").length||0===t("body").length||0===t("head").html()?.trim().length}},1943:e=>{e.exports=require("@yamato-daiwa/es-extensions")},5577:e=>{e.exports=require("@yamato-daiwa/es-extensions-nodejs")},4330:e=>{e.exports=require("access-sniff")},796:e=>{e.exports=require("autoprefixer")},4423:e=>{e.exports=require("browser-sync")},8048:e=>{e.exports=require("cheerio")},3506:e=>{e.exports=require("cssnano")},8582:e=>{e.exports=require("eslint-webpack-plugin")},3994:e=>{e.exports=require("fork-ts-checker-webpack-plugin")},4230:e=>{e.exports=require("glob")},7038:e=>{e.exports=require("gulp")},2580:e=>{e.exports=require("gulp-data")},8174:e=>{e.exports=require("gulp-debug")},882:e=>{e.exports=require("gulp-html-prettify")},7125:e=>{e.exports=require("gulp-if")},9298:e=>{e.exports=require("gulp-imagemin")},9952:e=>{e.exports=require("gulp-intercept")},8858:e=>{e.exports=require("gulp-plumber")},778:e=>{e.exports=require("gulp-postcss")},7583:e=>{e.exports=require("gulp-pug")},8103:e=>{e.exports=require("gulp-sourcemaps")},9289:e=>{e.exports=require("gulp-stylus")},6949:e=>{e.exports=require("html-validator")},3887:e=>{e.exports=require("imagemin-pngquant")},6828:e=>{e.exports=require("minimatch")},8722:e=>{e.exports=require("node-notifier")},9024:e=>{e.exports=require("pug-lint")},6701:e=>{e.exports=require("pug-lint/lib/config-file")},5436:e=>{e.exports=require("stream-combiner2")},4007:e=>{e.exports=require("typescript")},4648:e=>{e.exports=require("vinyl")},3123:e=>{e.exports=require("vue-loader")},9354:e=>{e.exports=require("webpack")},5977:e=>{e.exports=require("webpack-node-externals")},8456:e=>{e.exports=require("webpack-stream")},7147:e=>{e.exports=require("fs")},1017:e=>{e.exports=require("path")},2781:e=>{e.exports=require("stream")},7804:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});const o=require("node:crypto"),s=require("node:buffer");function r(e){if("string"!=typeof e&&!s.Buffer.isBuffer(e))throw new TypeError("Expected a Buffer or string");return o.createHash("md5").update(e).digest("hex").slice(0,10)}}},t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,i),r.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=i(4547),s=exports;for(var r in o)s[r]=o[r];o.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={3245:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(5577);var n;!function(e){let t;!function(e){e.buildProject="build",e.deployProject="deployProject"}(t=e.CommandPhrases||(e.CommandPhrases={})),e.specification={applicationName:"Yamato Daiwa Automation",commandPhrases:{[t.buildProject]:{mode:{newName:"projectBuildingMode",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!0,shortcut:"m",allowedAlternatives:Object.values(s.default)},configurationFile:{newName:"customConfigurationFileName__possiblyWithoutExtension",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!1},selectiveExecution:{newName:"selectiveExecutionID",type:r.ConsoleCommandsParser.ParametersTypes.string,required:!1}}}}}(n||(n={})),t.default=n},4547:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8396)),r=o(i(3245)),n=o(i(6027)),a=o(i(1508)),l=i(1943),c=i(5577),u=o(i(1017));class d{static{l.Logger.setImplementation(c.ConsoleApplicationLogger),l.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI("https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues")}static interpretAndExecuteConsoleCommand(e){l.PoliteErrorsMessagesBuilder.setTechnicalDetailsOnlyModeIf(!1);const t=c.ConsoleCommandsParser.parse(e,r.default.specification),i=process.cwd();switch(a.default.unrollDotYDA_Directory(i),t.phrase){case r.default.CommandPhrases.buildProject:{const e=u.default.resolve(i,s.default);let o;try{o=c.ObjectDataFilesProcessor.processFile({filePath:e})}catch(t){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({customMessage:`Config file not found at: ${e}`}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",wrappableError:t})}n.default.buildProject({consumingProjectRootDirectoryAbsolutePath:i,projectBuildingConfig__fromConsole:{projectBuildingMode:t.projectBuildingMode,selectiveExecutionID:t.selectiveExecutionID},rawConfigFromFile:o});break}case r.default.CommandPhrases.deployProject:l.Logger.logWarning({title:"Not implemented yet",description:"This functionality has not been implemented yet."})}}}t.default=d},6027:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1431)),r=o(i(9830)),n=o(i(5755)),a=o(i(818)),l=o(i(8844)),c=o(i(9750)),u=o(i(6496)),d=o(i(7678)),p=o(i(5525)),g=o(i(4143)),f=o(i(5466)),m=o(i(1171)),h=o(i(7057)),P=o(i(9823)),S=o(i(3497)),y=o(i(1691)),_=o(i(7038)),E=i(1943);t.default=class{static buildProject({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,rawConfigFromFile:i}){const o=E.RawObjectDataProcessor.process(i,s.default.getLocalizedSpecification(r.default));o.rawDataIsInvalid&&E.Logger.throwErrorAndLog({errorInstance:new E.InvalidConfigError({mentionToConfig:"@yamato-daiwa/automation (project building)",messageSpecificPart:E.RawObjectDataProcessor.formatValidationErrorsList(o.validationErrorsMessages)}),title:E.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"ProjectBuilder.buildProject(parametersObject)"});const v=o.processedData.projectBuilding,F=n.default.normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,projectBuildingConfig__fromFile__rawValid:v}),b=new a.default(F),A="BUILD_PROJECT";_.default.task(A,_.default.parallel([c.default.provideLintingIfMust(b),g.default.provideTypeCheckingIfMust(b),_.default.series([_.default.parallel([u.default.provideTypeScriptImportsForMarkupIfMust(b),d.default.provideStylesProcessingIfMust(b),p.default.provideLogicProcessingIfMust(b),S.default.providePlainCopierIfMust(b)]),f.default.provideImagesProcessingIfMust(b),m.default.provideFontsProcessingIfMust(b),P.default.provideAudiosProcessingIfMust(b),h.default.provideVideosProcessingIfMust(b),l.default.provideMarkupProcessingIfMust(b),...b.mustProvideBrowserLiveReloading?[y.default.provideBrowserLiveReloadingIfMust(b)]:[]])])),_.default.task(A)?.((e=>{(0,E.isNeitherUndefinedNorNull)(e)&&E.Logger.logError({errorType:"UnhandledGulpPipelinesError",title:"Unhandled Gulp pipelines error",description:"Unhandled in Gulp pipelines error occurred",occurrenceLocation:"ProjectBuilder.buildProject(namedParameters)",caughtError:e})}))}}},5962:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2028)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;audiosProcessingSettings__fromFile__rawValid;static normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({audiosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.audiosProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.audiosProcessingSettings__fromFile__rawValid=e.audiosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["mp3","ogg","wma","wav","flac"]}},2238:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Audio";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Audios";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},1573:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.audiosProcessingLocalization})}}(r||(r={})),t.default=r},9823:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2238)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{TASK_NAME_FOR_LOGGING="Audios processing";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="Audio";audiosProcessingConfigRepresentative;static provideAudiosProcessingIfMust(e){const t=e.audiosProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.audiosProcessingConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.audiosProcessingConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.audiosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},9356:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2764)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;fontsProcessingSettings__fromFile__rawValid;static normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({fontsProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.fontsProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.fontsProcessingSettings__fromFile__rawValid=e.fontsProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2764:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["ttf","otf","woff","txt"]}},2871:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Font";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Fonts";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},6757:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.fontsProcessingLocalization})}}(r||(r={})),t.default=r},1171:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2871)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{fontsProcessorConfigRepresentative;TASK_NAME_FOR_LOGGING="活字管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="活字";static provideFontsProcessingIfMust(e){const t=e.fontsProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.fontsProcessorConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.fontsProcessorConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.fontsProcessorConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},1975:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4331)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;imagesProcessingSettings__fromFile__rawValid;static normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({imagesProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.imagesProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.imagesProcessingSettings__fromFile__rawValid=e.imagesProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},4331:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["jpg","png","gif","svg","ico","webp"]}},7066:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Image";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Images";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},3691:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.imagesProcessingLocalization})}}(r||(r={})),t.default=r},5466:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7066)),r=o(i(4758)),n=o(i(7038)),a=o(i(7125)),l=o(i(9952)),c=o(i(4779)),u=o(i(7803)),d=o(i(9298)),p=o(i(3887)),g=i(1943),f=i(2781);class m extends r.default{TASK_NAME_FOR_LOGGING="画像管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="画像";imagesProcessorConfigRepresentative;static provideImagesProcessingIfMust(e){const t=e.imagesProcessingSettingsRepresentative;if((0,g.isUndefined)(t))return()=>(new f.PassThrough).end();const i=new m(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.imagesProcessorConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,l.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,(0,d.default)([d.default.mozjpeg({progressive:!0}),d.default.gifsicle({interlaced:!0}),d.default.svgo({}),(0,p.default)()]))).pipe((0,l.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.imagesProcessorConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&c.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.imagesProcessorConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(u.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),u.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=m},4083:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2097)),r=o(i(1168)),n=i(1943);class a extends r.default{supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=s.default.supportedSourceFileNameExtensionsWithoutLeadingDots;videosProcessingSettings__fromFile__rawValid;static normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new a({videosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,...(0,n.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:{}});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFileNameExtensionsWithoutLeadingDots},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.videosProcessingSettings__fromFile__rawValid.assetsGroups,a.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings)}}constructor(e){super(e),this.videosProcessingSettings__fromFile__rawValid=e.videosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=a},2097:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFileNameExtensionsWithoutLeadingDots:["avi","mov","mkv","mp4","avchd","flw","swf"]}},7640:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4063));class r extends s.default{TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Video";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Videos";relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;actualAssetsGroupsSettings;constructor(e,t){super(t),this.assetsProcessingCommonSettings=e.common,this.actualAssetsGroupsSettings=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector))}}t.default=r},7130:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9594));var r;!function(e){e.getLocalizedPropertiesSpecification=function(e){return s.default.getLocalizedSpecification({...e,assetsProcessingSettingsGenericPropertiesLocalization:e.videosProcessingLocalization})}}(r||(r={})),t.default=r},7057:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7640)),r=o(i(4758)),n=o(i(7038)),a=o(i(9952)),l=o(i(4779)),c=o(i(7803)),u=i(2781),d=i(1943);class p extends r.default{TASK_NAME_FOR_LOGGING="画像管理";SOURCE_FILES_TYPE_LABEL_FOR_LOGGING="画像";videosProcessingConfigRepresentative;static provideVideosProcessingIfMust(e){const t=e.videosProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return()=>(new u.PassThrough).end();const i=new p(e,t);i.initializeOrUpdateSourceFilesWatcherIfMust();const o=t.actualAssetsSourceFilesAbsolutePaths;return i.processAssets(o)}constructor(e,t){super(e,t),this.videosProcessingConfigRepresentative=t}processAssets(e){return 0===e.length?()=>n.default.src("."):()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,a.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.postProcess.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.videosProcessingConfigRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path);return e.processingSettings=t,e.sourceAbsolutePath=e.path,e.outputDirectoryAbsolutePath=s.default.computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e.path,respectiveAssetsGroupNormalizedSettings:t}),e}postProcess(e){const t=e;return t.processingSettings.revisioning.mustExecute&&l.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.videosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(c.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),c.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.default=p},1691:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7038)),r=o(i(4423)),n=o(i(3918)),a=i(1943),l=o(i(5304));class c{static localization=l.default;masterConfigRepresentative;browserLiveReloadingSettingsRepresentative;static provideBrowserLiveReloadingIfMust(e){const t=e.browserLiveReloadingSettingsRepresentative;if((0,a.isUndefined)(t))return e=>{e()};const i=new c(e,t);return()=>{i.initializeBrowsersync(),i.initializeOutputFilesWatcher()}}constructor(e,t){this.masterConfigRepresentative=e,this.browserLiveReloadingSettingsRepresentative=t}initializeBrowsersync(){r.default.init({...(0,a.isNull)(this.browserLiveReloadingSettingsRepresentative.proxy)?{server:{baseDir:this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,index:this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension}}:{proxy:this.browserLiveReloadingSettingsRepresentative.proxy},https:this.browserLiveReloadingSettingsRepresentative.mustUseHTTPS,cors:this.browserLiveReloadingSettingsRepresentative.mustUseCORS,...(0,a.isNotNull)(this.browserLiveReloadingSettingsRepresentative.localServerCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.localServerCustomPort}:null,watch:!0,ignore:this.browserLiveReloadingSettingsRepresentative.globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored,...this.browserLiveReloadingSettingsRepresentative.targetBrowsers.length>0?{browser:this.browserLiveReloadingSettingsRepresentative.targetBrowsers}:null,ui:!!this.browserLiveReloadingSettingsRepresentative.mustEnableBrowsersyncUserInterface&&{...(0,a.isNotNull)(this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort}:null},logLevel:"warn",notify:this.browserLiveReloadingSettingsRepresentative.mustDisplayBrowsersyncConnectedPopupInBrowser})}initializeOutputFilesWatcher(){let e;s.default.watch(this.masterConfigRepresentative.allOutputFilesGlobSelectors).on("all",((t,i)=>{t!==n.default.EventsNames.directoryAdded&&t!==n.default.EventsNames.directoryDeleted&&(clearTimeout(e),this.browserLiveReloadingSettingsRepresentative.mustLogOutputFileChangeDetection&&a.Logger.logInfo(c.localization.generateOutputFileChangeDetectionLog({filePath:i,eventLocalizedInterpretation:n.default.getEventNameInterpretation(t)})),e=setTimeout((()=>{this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon&&(a.Logger.logInfo(c.localization.browserTabWillBeReloadedSoonLog),r.default.reload())}),(0,a.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds)))}))}}t.default=c},5304:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateOutputFileChangeDetectionLog:e=>({title:"Browser live reloader, file status changing detected",description:`\tEvent : ${e.eventLocalizedInterpretation}\n\t Path : ${e.filePath}\nWaiting for the changing of other output files' status before reload the browser ...`}),browserTabWillBeReloadedSoonLog:{title:"Browser live reloader, browser will be reloaded soon",description:"The waiting period of other files will be saved elapsed. Browser will be reloaded soon."}}},4712:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=class{browserLiveReloadingSettings;constructor(e){this.browserLiveReloadingSettings=e}get targetFilesRootDirectoryAbsolutePath(){return this.browserLiveReloadingSettings.setup.localServer.rootDirectoryAbsolutePath}get startingFileNameWithExtension(){return this.browserLiveReloadingSettings.setup.localServer.startingFileNameWithExtension}get localServerCustomPort(){return this.browserLiveReloadingSettings.setup.localServer.port??null}get globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored(){return[...this.browserLiveReloadingSettings.setup.localServer.ignoredFilesAndDirectoriesRelativePaths]}get mustUseHTTPS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseHTTPS}get mustUseCORS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseCORS}get targetBrowsers(){return(0,o.isNotUndefined)(this.browserLiveReloadingSettings.setup.targetBrowsers)?[...this.browserLiveReloadingSettings.setup.targetBrowsers]:[]}get proxy(){return this.browserLiveReloadingSettings.setup.proxy??null}get periodBetweenFileUpdatingAndBrowserReloading__seconds(){return this.browserLiveReloadingSettings.setup.periodBetweenFileUpdatingAndBrowserReloading__seconds}get mustEnableBrowsersyncUserInterface(){return this.browserLiveReloadingSettings.setup.browserSyncUserInterface.enabled}get browsersyncUserInterfaceCustomPort(){return this.browserLiveReloadingSettings.setup.browserSyncUserInterface.customPort??null}get mustLogOutputFileChangeDetection(){return this.browserLiveReloadingSettings.logging.outputFileChangeDetection}get mustLogBrowserTabWillBeReloadedSoon(){return this.browserLiveReloadingSettings.logging.browserTabWillBeReloadedSoon}get mustDisplayBrowsersyncConnectedPopupInBrowser(){return this.browserLiveReloadingSettings.logging.browsersyncConnection}}},8685:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={setup:{localServer:{startingFileNameWithExtension:"index.html",HTTPS_Usage:!1,CORS_Usage:!1},browserSyncUserInterface:{enabled:!0},periodBetweenFileUpdatingAndBrowserReloading__seconds:.5},logging:{outputFileChangeDetection:!0,browserTabWillBeReloadedSoon:!1,browsersyncConnection:!0}}},7171:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);var s;!function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.setups.KEY]:{newName:"setups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{[e.setups.localServer.KEY]:{newName:"localServer",type:Object,required:!0,properties:{[e.setups.localServer.rootDirectoryRelativePath.KEY]:{newName:"rootDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},[e.setups.localServer.ignoredFilesAndDirectoriesRelativePaths.KEY]:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,required:!1,preValidationModifications:o.nullToUndefined,element:{type:String,minimalCharactersCount:1}},[e.setups.localServer.customPort.KEY]:{newName:"customPort",type:Number,numbersSet:o.RawObjectDataProcessor.NumbersSets.nonNegativeInteger,required:!1,maximalValue:65536},[e.setups.localServer.customStartingFileNameWithExtension.KEY]:{newName:"customStartingFileNameWithExtension",type:String,required:!1,minimalCharactersCount:1},[e.setups.localServer.useHTTPS.KEY]:{newName:"useHTTPS",type:Boolean,required:!1},[e.setups.localServer.useCORS.KEY]:{newName:"useCORS",type:Boolean,required:!1}}},[e.setups.proxy.KEY]:{newName:"proxy",type:String,required:!1,minimalCharactersCount:1},[e.setups.openInBrowsers.KEY]:{newName:"openInBrowsers",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.setups.browserSyncUserInterface.KEY]:{newName:"browserSyncUserInterface",type:Object,required:!1,preValidationModifications:o.nullToUndefined,properties:{[e.setups.browserSyncUserInterface.customPort.KEY]:{newName:"customPort",type:Number,numbersSet:o.RawObjectDataProcessor.NumbersSets.nonNegativeInteger,required:!1,maximalValue:65536},[e.setups.browserSyncUserInterface.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.setups.periodBetweenFileUpdatingAndBrowserReloading__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndBrowserReloading__seconds",type:Number,required:!1,numbersSet:o.RawObjectDataProcessor.NumbersSets.anyRealNumber}}}},[e.logging.KEY]:{newName:"logging",type:Object,required:!1,preValidationModifications:o.nullToUndefined,properties:{[e.logging.outputFileChangeDetection.KEY]:{newName:"outputFileChangeDetection",type:Boolean,required:!1},[e.logging.browserTabWillBeReloadedSoon.KEY]:{newName:"browserTabWillBeReloadedSoon",type:Boolean,required:!1},[e.logging.browsersyncConnection.KEY]:{newName:"browsersyncConnection",type:Boolean,required:!1}}}}}}(s||(s={})),t.default=s},2335:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8685)),r=i(1943),n=o(i(7803)),a=o(i(6896));class l{static localization=a.default;static normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:t,hasSelectiveExecutionBeenDeclared:i,selectedBrowserLiveReloadingSetupID:o}){let a;if((0,r.isNotUndefined)(o))a=e.setups[o],(0,r.isUndefined)(a)&&r.Logger.throwErrorAndLog({errorInstance:new r.InvalidParameterValueError({customMessage:l.localization.generateUndefinedBrowserLiveReloadingSetupID_Message({selectedBrowserLiveReloadingSetupID:o,stringifiedAvailableBrowserLiveReloadingSetupsIDs:(0,r.stringifyAndFormatArbitraryValue)(Object.keys(e))})}),occurrenceLocation:"BrowserLiveReloadingSettingsNormalizer.normalize(namedParameters)",title:r.InvalidParameterValueError.localization.defaultTitle});else{if(i||1!==Object.values(e).length)return;a=Object.values(e.setups)[0]}return{setup:{localServer:{rootDirectoryAbsolutePath:n.default.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.rootDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),ignoredFilesAndDirectoriesRelativePaths:(()=>{const e=a.localServer.ignoredFilesAndDirectoriesRelativePaths;return Array.isArray(e)?e:(0,r.isString)(e)?[e]:[]})(),...(0,r.isNotUndefined)(a.localServer.customPort)?{port:a.localServer.customPort}:null,startingFileNameWithExtension:a.localServer.customStartingFileNameWithExtension??s.default.setup.localServer.startingFileNameWithExtension,mustUseHTTPS:!0===a.localServer.useHTTPS||s.default.setup.localServer.HTTPS_Usage,mustUseCORS:!0===a.localServer.useCORS||s.default.setup.localServer.CORS_Usage},...(0,r.isNotUndefined)(a.proxy)?{proxy:a.proxy}:{},...(0,r.isUndefined)(a.openInBrowsers)?{}:{targetBrowsers:Array.isArray(a.openInBrowsers)?a.openInBrowsers:[a.openInBrowsers]},browserSyncUserInterface:{enabled:s.default.setup.browserSyncUserInterface.enabled,...(0,r.isUndefined)(a.browserSyncUserInterface)||(0,r.isUndefined)(a.browserSyncUserInterface.customPort)?{}:{port:a.browserSyncUserInterface.customPort}},...(0,r.isNonEmptyArbitraryObject)(a.browserSyncUserInterface)?{browserSyncUserInterface:{...(0,r.isNotUndefined)(a.browserSyncUserInterface.customPort)?{port:a.browserSyncUserInterface.customPort}:null,enabled:s.default.setup.browserSyncUserInterface.enabled}}:{},periodBetweenFileUpdatingAndBrowserReloading__seconds:a.periodBetweenFileUpdatingAndBrowserReloading__seconds??s.default.setup.periodBetweenFileUpdatingAndBrowserReloading__seconds},logging:{outputFileChangeDetection:e.logging?.outputFileChangeDetection??s.default.logging.outputFileChangeDetection,browserTabWillBeReloadedSoon:e.logging?.browserTabWillBeReloadedSoon??s.default.logging.browserTabWillBeReloadedSoon,browsersyncConnection:e.logging?.browsersyncConnection??s.default.logging.browsersyncConnection}}}}t.default=l},6896:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUndefinedBrowserLiveReloadingSetupID_Message:e=>`The specified browser setup ID '${e.selectedBrowserLiveReloadingSetupID}' is not defined in configuration file. Below setups IDs has been defined:\n${e.stringifiedAvailableBrowserLiveReloadingSetupsIDs}`}},2106:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991));t.default={revisioning:{mustExecute:e=>e!==s.default.staticPreview&&e!==s.default.localDevelopment,contentHashPostfixSeparator:"--"}}},8396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default="yda.config.yaml"},1259:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(2102),s=i(1943),r=i(5577);t.default=class{static normalize({commonSettings__fromFile__rawValid:e,consumingProjectRootDirectoryAbsolutePath:t,projectBuildingMode:i,actualSelectiveExecution:n}){const a=r.ImprovedPath.replacePathSeparatorsToForwardSlashes(t),l=e.publicDirectoriesRelativePaths?.[i];let c;return(0,s.isNotUndefined)(l)&&(c=r.ImprovedPath.joinPathSegments([a,l],{alwaysForwardSlashSeparators:!0})),{projectRootDirectoryAbsolutePath:a,projectBuildingMode:i,...(0,s.isNotUndefined)(n)?{tasksAndSourceFilesSelection:{markupProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.markupProcessing],stylesProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.stylesProcessing],ECMA_ScriptLogicProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing],imagesProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.imagesProcessing],fontsProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.fontsProcessing],audiosProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.audiosProcessing],plainCopying:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.plainCopying],videosProcessing:n.tasksAndSourceFilesSelection[o.ProjectBuildingTasksIDsForConfigFile.videosProcessing]}}:null,browserLiveReloadingSetupID:n?.browserLiveReloadingSetupID,actualPublicDirectoryAbsolutePath:c}}}},9594:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedSpecification=function({assetsProcessingSettingsGenericPropertiesLocalization:e,revisioningPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i}){return{[e.assetsGroups.KEY]:{newName:"assetsGroups",preValidationModifications:r.nullToUndefined,type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{[e.assetsGroups.sourceFilesTopDirectoryRelativePath.KEY]:{newName:"sourceFilesTopDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},[e.assetsGroups.sourceFilesTopDirectoryPathAliasForReferencingFromHTML.KEY]:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,required:!1,minimalCharactersCount:1},[e.assetsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:s.default.staticPreview,[i.localDevelopment]:s.default.localDevelopment,[i.testing]:s.default.testing,[i.staging]:s.default.staging,[i.production]:s.default.production},value:{type:Object,properties:{[e.assetsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.assetsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,preValidationModifications:r.nullToUndefined,properties:t},[e.assetsGroups.buildingModeDependent.outputPathTransformations.KEY]:{newName:"outputPathTransformations",type:Object,required:!1,properties:{[e.assetsGroups.buildingModeDependent.outputPathTransformations.segmentsWhichMustBeRemoved.KEY]:{newName:"segmentsWhichMustBeRemoved",type:Array,required:!1,element:{type:String,minimalCharactersCount:1}},[e.assetsGroups.buildingModeDependent.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved.KEY]:{newName:"segmentsWhichLastDuplicatesMustBeRemoved",type:Array,required:!1,element:{type:String,minimalCharactersCount:1}}}}}}}}}}}}}(n||(n={})),t.default=n},2102:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectBuildingTasksIDsForConfigFile=void 0,(i=t.ProjectBuildingTasksIDsForConfigFile||(t.ProjectBuildingTasksIDsForConfigFile={})).markupProcessing="markupProcessing",i.stylesProcessing="stylesProcessing",i.ECMA_ScriptLogicProcessing="ECMA_ScriptLogicProcessing",i.imagesProcessing="imagesProcessing",i.fontsProcessing="fontsProcessing",i.audiosProcessing="audiosProcessing",i.videosProcessing="videosProcessing",i.browserLiveReloading="browserLiveReloading",i.plainCopying="plainCopying"},4256:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(2102),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({projectBuildingCommonSettingsLocalization:e,tasksLocalizedIDs:t}){return{[e.selectiveExecutions.KEY]:{newName:"selectiveExecutions",preValidationModifications:n.nullToUndefined,type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,value:{type:Object,properties:{[e.selectiveExecutions.tasksAndSourceFilesSelection.KEY]:{newName:"tasksAndSourceFilesSelection",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(t),keysRenamings:{[t.markupProcessing]:r.ProjectBuildingTasksIDsForConfigFile.markupProcessing,[t.stylesProcessing]:r.ProjectBuildingTasksIDsForConfigFile.stylesProcessing,[t.ECMA_ScriptLogicProcessing]:r.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing,[t.imagesProcessing]:r.ProjectBuildingTasksIDsForConfigFile.imagesProcessing,[t.fontsProcessing]:r.ProjectBuildingTasksIDsForConfigFile.fontsProcessing,[t.audiosProcessing]:r.ProjectBuildingTasksIDsForConfigFile.audiosProcessing,[t.videosProcessing]:r.ProjectBuildingTasksIDsForConfigFile.videosProcessing,[t.plainCopying]:r.ProjectBuildingTasksIDsForConfigFile.plainCopying,[t.browserLiveReloading]:r.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading},value:{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}}},[e.selectiveExecutions.browserLiveReloadingSetupID.KEY]:{newName:"browserLiveReloadingSetupID",type:String,required:!1}}}},[e.publicDirectoriesRelativePaths.KEY]:{newName:"publicDirectoriesRelativePaths",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,allowedKeys:Object.values(s.default),value:{type:String,minimalCharactersCount:1}}}}}(a||(a={})),t.default=a},8365:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.presetFileRelativePath.KEY]:{newName:"presetFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.enabled.KEY]:{newName:"enabled",type:Boolean,required:!1}}}}(i||(i={})),t.default=i},7745:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.disable.KEY]:{newName:"disable",type:Boolean,required:!1},[e.contentHashPostfixSeparator.KEY]:{newName:"contentHashPostfixSeparator",type:String,required:!1,minimalCharactersCount:1}}}}(i||(i={})),t.default=i},9258:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);var s;!function(e){e.getLocalizedPropertiesSpecification=function(e){return{[e.topDirectoryRelativePath.KEY]:{newName:"topDirectoryRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.partialsRecognition.KEY]:{newName:"partialsRecognition",preValidationModifications:o.nullToUndefined,type:Object,required:!1,properties:{[e.partialsRecognition.excludeAllSubdirectories.KEY]:{newName:"excludeAllSubdirectories",type:Boolean,required:!1},[e.partialsRecognition.excludeSubdirectoriesWithNames.KEY]:{newName:"excludeSubdirectoriesWithNames",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.partialsRecognition.excludeSubdirectoriesWithPrefixes.KEY]:{newName:"excludeSubdirectoriesWithPrefixes",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},[e.partialsRecognition.excludeFilesWithPrefixes.KEY]:{newName:"excludeFilesWithPrefixes",type:o.RawObjectDataProcessor.ValuesTypesIDs.oneOf,required:!1,alternatives:[{type:Array,minimalElementsCount:1,element:{type:String}},{type:String,minimalElementsCount:1}]}}},[e.singleEntryPointRelativePath.KEY]:{newName:"singleEntryPointRelativePath",type:String,requiredIf:{predicate:e=>!(0,o.isNonEmptyString)(e.topDirectoryRelativePath),descriptionForLogging:e.singleEntryPointRelativePath.REQUIREMENT_CONDITION_DESCRIPTION},minimalCharactersCount:1}}}}(s||(s={})),t.default=s},1168:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2106)),r=i(1943),n=o(i(7803)),a=o(i(7184));t.default=class{consumingProjectRootDirectoryAbsolutePath;consumingProjectBuildingMode;assetsGroupsIDsSelection;constructor(e){this.consumingProjectRootDirectoryAbsolutePath=e.consumingProjectRootDirectoryAbsolutePath,this.consumingProjectBuildingMode=e.consumingProjectBuildingMode,this.assetsGroupsIDsSelection=e.assetsGroupsIDsSelection??[]}createNormalizedAssetsGroupsSettings(e,t){const i=new Map;if((0,r.isUndefined)(e))return i;for(const[o,l]of Object.entries(e)){const e=l.buildingModeDependent[this.consumingProjectBuildingMode];if((0,r.isUndefined)(e))continue;const c=n.default.extractDirectoryFromFilePath(n.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,l.sourceFilesTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0})),u=l.sourceFilesTopDirectoryPathAliasForReferencingFromHTML??`@${o}`,d=n.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),p={ID:o,sourceFilesTopDirectoryAbsolutePath:c,sourceFilesGlobSelector:a.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c,fileNamesExtensions:this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots}),sourceFilesTopDirectoryPathAlias:u,outputFilesTopDirectoryAbsolutePath:d,outputPathTransformations:{...(0,r.isNonEmptyArray)(e.outputPathTransformations?.segmentsWhichMustBeRemoved)?{segmentsWhichMustBeRemoved:(0,r.undefinedToEmptyArray)(e.outputPathTransformations?.segmentsWhichMustBeRemoved)}:{},...(0,r.isNonEmptyArray)(e.outputPathTransformations?.segmentsWhichLastDuplicatesMustBeRemoved)?{segmentsWhichLastDuplicatesMustBeRemoved:(0,r.undefinedToEmptyArray)(e.outputPathTransformations?.segmentsWhichLastDuplicatesMustBeRemoved)}:{}},revisioning:{mustExecute:!0!==e.revisioning?.disable&&s.default.revisioning.mustExecute(this.consumingProjectBuildingMode),contentHashPostfixSeparator:e.revisioning?.contentHashPostfixSeparator??s.default.revisioning.contentHashPostfixSeparator}};i.set(o,t(p,l))}return i}}},9418:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7803)),r=o(i(7184)),n=i(1943);t.default=class{projectBuildingCommonSettings__normalized;entryPointsGroupsIDsSelection;constructor(e){this.projectBuildingCommonSettings__normalized=e.projectBuildingCommonSettings__normalized,(0,n.isNonEmptyArray)(e.entryPointsGroupsIDsSelection)&&(this.entryPointsGroupsIDsSelection=e.entryPointsGroupsIDsSelection)}createNormalizedEntryPointsGroupsSettings(e,t){const i=new Map;if((0,n.isUndefined)(e))return i;for(const[o,r]of Object.entries(e)){if((0,n.isNotUndefined)(this.entryPointsGroupsIDsSelection)&&!this.entryPointsGroupsIDsSelection.includes(o))continue;const e=r.buildingModeDependent[this.consumingProjectBuildingMode];if((0,n.isUndefined)(e))continue;let a;const l=[];let c;if("singleEntryPointRelativePath"in r){c=!0;const e=s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,r.singleEntryPointRelativePath],{forwardSlashOnlySeparators:!0});l.push(e),a=s.default.extractDirectoryFromFilePath(e)}else c=!1,a=s.default.extractDirectoryFromFilePath(s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,r.topDirectoryRelativePath],{forwardSlashOnlySeparators:!0})),l.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsSourceFilesDirectoryAbsolutePath:a,partialsRecognition:r.partialsRecognition}));const u={ID:o,sourceFilesTopDirectoryAbsolutePath:a,sourceFilesGlobSelectors:l,isSingeEntryPointGroup:c,outputFilesTopDirectoryAbsolutePath:s.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{forwardSlashOnlySeparators:!0})};i.set(o,t(u,r))}return i}getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsSourceFilesDirectoryAbsolutePath:e,partialsRecognition:t}){const i=[];if((0,n.isUndefined)(t))i.push(r.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}));else if(!0===t.excludeAllSubdirectories)i.push(r.default.buildAllFilesInCurrentDirectoryButNotBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}));else{const o=r.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots});let s,a,l;i.push(o),Array.isArray(t.excludeFilesWithPrefixes)?s=t.excludeFilesWithPrefixes:(0,n.isString)(t.excludeFilesWithPrefixes)&&(s=[t.excludeFilesWithPrefixes]),(0,n.isNotUndefined)(s)&&i.push(r.default.buildExcludingOfFilesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,filesNamesPrefixes:s,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),Array.isArray(t.excludeSubdirectoriesWithPrefixes)?a=t.excludeSubdirectoriesWithPrefixes:(0,n.isString)(t.excludeSubdirectoriesWithPrefixes)&&(a=[t.excludeSubdirectoriesWithPrefixes]),(0,n.isNotUndefined)(a)&&i.push(r.default.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,subdirectoriesPrefixes:a,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),Array.isArray(t.excludeSubdirectoriesWithNames)?l=t.excludeSubdirectoriesWithNames:(0,n.isString)(t.excludeSubdirectoriesWithNames)&&(l=[t.excludeSubdirectoriesWithNames]),(0,n.isNotUndefined)(l)&&i.push(r.default.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector({basicDirectoryPath:e,subdirectoriesNames:l,filenamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}))}return i}get consumingProjectRootDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.projectBuildingCommonSettings__normalized.projectBuildingMode}get actualPublicDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.actualPublicDirectoryAbsolutePath}}},2991:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.staticPreview="STATIC_PREVIEW",e.localDevelopment="LOCAL_DEVELOPMENT",e.testing="TESTING",e.staging="STAGING",e.production="PRODUCTION"}(i||(i={})),t.default=i},4063:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7803)),n=o(i(7184));t.default=class{sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map;prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";masterConfigRepresentative;static computeActualOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e,respectiveAssetsGroupNormalizedSettings:t}){let i=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:r.default.extractDirectoryFromFilePath(e)})],{forwardSlashOnlySeparators:!0});if((0,s.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=r.default.removeSegmentsFromPath(i,t.outputPathTransformations.segmentsWhichMustBeRemoved)),(0,s.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=r.default.splitPathToSegments(i);t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved.forEach((t=>{const i=(0,s.getIndexesOfArrayElementsWhichSatisfiesThePredicate)(e,(e=>e===t));(0,s.removeArrayElementsByIndexes)({targetArray:e,indexes:i[i.length-1],mutably:!0})})),i=r.default.joinPathSegments(e,{forwardSlashOnlySeparators:!0})}return i}constructor(e){this.masterConfigRepresentative=e}get supportedSourceFilesNamesExtensionsWithoutLeadingDots(){return this.assetsProcessingCommonSettings.supportedSourceFilesNamesExtensionsWithoutLeadingDots}get hasAtLeastOneActualAssetsGroup(){return this.actualAssetsGroupsSettings.size>0}get actualAssetsSourceFilesAbsolutePaths(){const e=[];return this.actualAssetsGroupsSettings.forEach((t=>{e.push(...n.default.getFilesAbsolutePathsSynchronously([t.sourceFilesGlobSelector]))})),e}getAssetsNormalizedSettingsActualForTargetSourceFile(e){const t=Array.from(this.actualAssetsGroupsSettings.values()).find((t=>n.default.isFileMatchingWithGlobSelector({filePath:e,globSelector:t.sourceFilesGlobSelector})));return(0,s.isUndefined)(t)&&s.Logger.throwErrorAndLog({errorInstance:new s.UnexpectedEventError(`ファイル:「${e}」に適切な設定が発見されず。設定通りファイルファイルを回収には下記のGlob正規表示が建てられたが、逆に、当ファイルに何方のGlob正規表現とも合っていない。\n${(0,s.stringifyAndFormatArbitraryValue)(Array.from(this.actualAssetsGroupsSettings.values()).map((e=>e.sourceFilesGlobSelector)))}`),occurrenceLocation:"AssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(targetSourceFileAbsolutePath: string)",title:s.UnexpectedEventError.localization.defaultTitle}),t}get actualOutputFilesGlobSelectors(){return Array.from(this.actualAssetsGroupsSettings.values()).map((e=>n.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.supportedSourceFilesNamesExtensionsWithoutLeadingDots})))}get assetsGroupsNormalizedSettingsMappedByAssetAliases(){const e=new Map;return this.actualAssetsGroupsSettings.forEach((t=>{e.set(t.sourceFilesTopDirectoryPathAlias,t)})),e}}},6434:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9433)),r=i(1943),n=o(i(7803)),a=o(i(7184)),l=o(i(8523));class c extends s.default{static#e=c.getDefaultLocalization();partialFilesAndEntryPointsRelationsMap=new Map;mustLogPartialFilesAndEntryPointsRelationsMap;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){return t.isSingeEntryPointGroup?t.outputFilesTopDirectoryAbsolutePath:n.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,n.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:n.default.extractDirectoryFromFilePath(e)})],{forwardSlashOnlySeparators:!0})}static setLocalization(e){this.#e=e}constructor(e){super(e.masterConfigRepresentative),this.mustLogPartialFilesAndEntryPointsRelationsMap=e.mustLogPartialFilesAndEntryPointsRelationsMap}get hasAtLeastOneRelevantEntryPointsGroup(){return this.relevantEntryPointsGroupsSettings.size>0}get relevantEntryPointsSourceFilesAbsolutePaths(){const e=[];return this.relevantEntryPointsGroupsSettings.forEach((t=>{e.push(...a.default.getFilesAbsolutePathsSynchronously(t.sourceFilesGlobSelectors))})),e}get relevantEntryPointsSourceDirectoriesAbsolutePaths(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>e.sourceFilesTopDirectoryAbsolutePath))}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values())if(a.default.isFileMatchingWithAllGlobSelectors({filePath:e,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}return(0,r.isUndefined)(t)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(c.#e.generateEntryPointsGroupNormalizedSettingsNotFoundForSpecifiedFilePath({targetSourceFileAbsolutePath:e})),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}initializeOrUpdatePartialFilesAndEntryPointsRelationsMap(){this.partialFilesAndEntryPointsRelationsMap.clear(),(0,r.addMultiplePairsToMap)(this.partialFilesAndEntryPointsRelationsMap,l.default.getPartialFilesAndParentEntryPointsRelationsMap({targetEntryPointsFilesAbsolutePaths:this.relevantEntryPointsSourceFilesAbsolutePaths,sourceFilesTypeLabelForLogging:this.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,masterConfigRepresentative:this.masterConfigRepresentative,loggingIsEnabled:this.mustLogPartialFilesAndEntryPointsRelationsMap}))}static getDefaultLocalization(){return{generateEntryPointsGroupNormalizedSettingsNotFoundForSpecifiedFilePath:({targetSourceFileAbsolutePath:e})=>`No normalized config found for file '${e}'.'`}}}t.default=c},9433:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7184));t.default=class{masterConfigRepresentative;constructor(e){this.masterConfigRepresentative=e}getEntryPointsGroupSettingsByID(e){return this.relevantEntryPointsGroupsSettings.get(e)}get actualOutputFilesGlobSelectors(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>s.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.sourceCodeProcessingCommonSettings.supportedOutputFileNameExtensionsWithoutLeadingDots})))}}},4758:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(7038)),n=o(i(3918)),a=i(1943);class l extends s.default{static WAITING_FOR_OTHER_FILES_WILL_BE_SAVED_PERIOD__SECONDS=1;associatedAssetsProcessingConfigRepresentative;filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing=new Set;waitingForOtherFilesWillBeSavedDuration=null;constructor(e,t){super(e),this.associatedAssetsProcessingConfigRepresentative=t}initializeOrUpdateSourceFilesWatcherIfMust(){(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode)&&r.default.watch(this.associatedAssetsProcessingConfigRepresentative.relevantSourceFilesGlobSelectors).on("all",((e,t)=>{a.Logger.logInfo({title:`${this.SOURCE_FILES_TYPE_LABEL_FOR_LOGGING} files watcher`,description:` Event : ${n.default.getEventNameInterpretation(e)}\n Path : ${t}`}),e!==n.default.EventsNames.directoryAdded&&e!==n.default.EventsNames.directoryDeleted&&e!==n.default.EventsNames.fileDeleted&&((0,a.isNotNull)(this.waitingForOtherFilesWillBeSavedDuration)&&clearTimeout(this.waitingForOtherFilesWillBeSavedDuration),a.Logger.logInfo({title:`${this.SOURCE_FILES_TYPE_LABEL_FOR_LOGGING} files watcher`,description:"Waiting for the saving of same type files..."}),this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.add(t),this.waitingForOtherFilesWillBeSavedDuration=setTimeout((()=>{this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.size>0&&this.processAssets(Array.from(this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing))(),this.filesWhichStatusHasBeenChangedAbsolutePathsQueueToProcessing.clear()}),(0,a.secondsToMilliseconds)(l.WAITING_FOR_OTHER_FILES_WILL_BE_SAVED_PERIOD__SECONDS)))}))}}t.default=l},4079:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(3918)),n=o(i(7038)),a=i(1943),l=o(i(7803)),c=o(i(7184));class u extends s.default{globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow=[];mutableGlobSelectorsOfSourceFilesWhichWillBeWatched=[];associatedSourceCodeProcessingSettingsRepresentative;sourceFilesActiveWatcher=null;queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged=new Set;constructor(e,t){super(e),this.associatedSourceCodeProcessingSettingsRepresentative=t}initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(){this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow.push(...this.associatedSourceCodeProcessingSettingsRepresentative.relevantEntryPointsSourceDirectoriesAbsolutePaths.map((e=>c.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.associatedSourceCodeProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}))))}initializeOrUpdateWatchedSourceFilesGlobSelectors(){const e=[];for(const t of this.associatedSourceCodeProcessingSettingsRepresentative.partialFilesAndEntryPointsRelationsMap.keys()){let i=!1;for(const e of this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow)if(c.default.isFileMatchingWithGlobSelector({filePath:t,globSelector:e})){i=!0;break}i||e.push(t)}this.mutableGlobSelectorsOfSourceFilesWhichWillBeWatched=this.globSelectorsOfSourceFilesWithSupportedFilenameExtensionsInEntryPointsGroupRootDirectoryAndBelow.concat(e)}initializeOrUpdateSourceFilesWatcher(){let e;this.sourceFilesActiveWatcher=n.default.watch(this.mutableGlobSelectorsOfSourceFilesWhichWillBeWatched).on("all",((t,i)=>{a.Logger.logInfo({title:`${this.associatedSourceCodeProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM} files watcher`,description:` Event : ${r.default.getEventNameInterpretation(t)}\n File path : ${i}`}),t!==r.default.EventsNames.directoryAdded&&t!==r.default.EventsNames.directoryDeleted&&(clearTimeout(e),a.Logger.logInfo({title:`${this.associatedSourceCodeProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM} files watcher`,description:"Waiting for the saving of same type files..."}),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.add(l.default.replacePathSeparatorsToForwardSlashes(i)),e=setTimeout(this.onFilesSetReadyToProcessing.bind(this),(0,a.secondsToMilliseconds)(this.associatedSourceCodeProcessingSettingsRepresentative.waitingForTheOtherFilesWillBeSavedPeriod__seconds)))}))}onFilesSetReadyToProcessing(){this.associatedSourceCodeProcessingSettingsRepresentative.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap();const e=new Set;for(const t of this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged){const i=this.associatedSourceCodeProcessingSettingsRepresentative.partialFilesAndEntryPointsRelationsMap.get(t);(0,a.isNotUndefined)(i)&&(0,a.addMultipleElementsToSet)(e,Array.from(i))}this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.clear(),e.size>0&&this.processEntryPoints(Array.from(e))(),this.initializeOrUpdateWatchedSourceFilesGlobSelectors();let t=this.sourceFilesActiveWatcher;this.initializeOrUpdateSourceFilesWatcher(),t?.close(),t=null}}t.default=u},173:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8174)),r=o(i(8858)),n=i(1943),a=o(i(8722));t.default=class{masterConfigRepresentative;constructor(e){this.masterConfigRepresentative=e}printProcessedFilesPathsAndQuantity(e={}){return(0,s.default)({title:`Task '${this.TASK_NAME_FOR_LOGGING}${(0,n.insertSubstring)(e.subtaskName,{modifier:e=>` / ${e}`})}':`})}handleErrorIfItWillOccur(e={}){return(0,r.default)({errorHandler:t=>{const i=`Task '${this.TASK_NAME_FOR_LOGGING}${(0,n.insertSubstring)(e.subtaskName,{modifier:e=>` / ${e}`})}', error occurred`;n.Logger.logErrorLikeMessage({title:i,description:t.message}),a.default.notify({title:i,message:"Please check your terminal for the details."})}})}}},1141:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(7038)),n=o(i(3918)),a=i(1943),l=o(i(7803));class c extends s.default{static WAITING_FOR_THE_FILES_OF_SAME_TYPE_WILL_BE_SAVED_PERIOD__SECONDS=1;sourceFilesActiveWatcher=null;queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged=new Set;onActualSourceFileHasBeenDeletedEventListeners=[];initializeOrUpdateSourceFilesWatcher(){let e;this.sourceFilesActiveWatcher=r.default.watch(this.targetFilesGlobSelectors).on("all",((t,i)=>{if(a.Logger.logInfo({title:`Files watcher of "${this.LINTER_NAME}"`,description:` Event : ${n.default.getEventNameInterpretation(t)}\n File path : ${i}`}),t!==n.default.EventsNames.directoryAdded&&t!==n.default.EventsNames.directoryDeleted)if(t!==n.default.EventsNames.fileDeleted)clearTimeout(e),a.Logger.logInfo({title:`Files watcher of "${this.LINTER_NAME}"`,description:"Waiting for the saving of files of same type..."}),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.add(l.default.replacePathSeparatorsToForwardSlashes(i)),e=setTimeout(this.onFilesSetReadyToLinting.bind(this),(0,a.secondsToMilliseconds)(c.WAITING_FOR_THE_FILES_OF_SAME_TYPE_WILL_BE_SAVED_PERIOD__SECONDS));else for(const e of this.onActualSourceFileHasBeenDeletedEventListeners)e()}))}addOnActualSourceFileHasBeenDeletedEventListener(e){this.onActualSourceFileHasBeenDeletedEventListeners.push(e)}onFilesSetReadyToLinting(){this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.size>0&&(this.lint(Array.from(this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged))(),this.queueToProcessingOfAbsolutePathsOfFilesWhichStatusHasChanged.clear());let e=this.sourceFilesActiveWatcher;this.initializeOrUpdateSourceFilesWatcher(),e?.close(),e=null}}t.default=c},6263:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6919)),r=o(i(1265)),n=i(5577);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;associatedFilesGroupSettings;constructor(e,t){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=n.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),this.associatedFilesGroupSettings=t}static get outputDirectoryCalculatorForSpecificFile(){return e=>r.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)}}t.default=a},3497:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7038)),r=o(i(1921)),n=o(i(6300)),a=o(i(6263)),l=i(1943),c=i(5577),u=o(i(7184));class d{sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence;static providePlainCopierIfMust(e){return(0,l.isUndefined)(e.plainCopyingSettingsRepresentative)||0===Object.entries(e.plainCopyingSettingsRepresentative.filesGroups).length?(0,n.default)():new d(e.plainCopyingSettingsRepresentative).copyFiles()}constructor(e){const t={};for(const i of Object.values(e.filesGroups)){const e="sourceFileAbsolutePath"in i?[i.sourceFileAbsolutePath]:u.default.getFilesAbsolutePathsSynchronously([u.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.sourceDirectoryAbsolutePath})]);for(const o of e)t[o]=i}this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence=t}copyFiles(){return()=>s.default.src(Object.keys(this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence)).pipe(r.default.modify({onStreamStartedEventCommonHandler:this.replacePlainVinylFileWithPlainCopiedVinylFile.bind(this)})).pipe(s.default.dest(a.default.outputDirectoryCalculatorForSpecificFile))}async replacePlainVinylFileWithPlainCopiedVinylFile(e,t){return t(new a.default(e,this.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondence[c.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path)])),Promise.resolve(r.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}}t.default=d},9040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943),s=i(5577);t.default=class{static normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=t.tasksAndSourceFilesSelection?.plainCopying??[],r={filesGroups:{}};for(const[n,a]of Object.entries(e.filesGroups)){if(i.length>0&&!i.includes(n))continue;const e=a.buildingModeDependent[t.projectBuildingMode]?.outputTopDirectoryRelativePath;(0,o.isUndefined)(e)||(r.filesGroups[n]={..."sourceFileRelativePath"in a?{sourceFileAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0})}:{sourceDirectoryAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.sourceDirectoryRelativePath],{alwaysForwardSlashSeparators:!0})},...(0,o.isNotUndefined)(a.referenceName)?{referenceName:a.referenceName}:null,outputTopDirectoryAbsolutePath:s.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})})}return r}}},6919:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(5577);t.default=class{filesGroups;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){return"sourceFileAbsolutePath"in t?t.outputTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([t.outputTopDirectoryAbsolutePath,o.ImprovedPath.computeRelativePath({basePath:t.sourceDirectoryAbsolutePath,comparedPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWihtoutDotsAsFileNameWithoutExtension:!1},rootDirectoryNotation:""})})],{alwaysForwardSlashSeparators:!0})}constructor(e){this.filesGroups=e.filesGroups}}},3272:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedPropertiesSpecification=function({plainCopyingLocalization:e,consumingProjectLocalizedPreDefinedBuildingModes:t}){return{[e.filesGroups.KEY]:{newName:"filesGroups",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{[e.sourceFileRelativePath.KEY]:{newName:"sourceFileRelativePath",preValidationModifications:r.nullToUndefined,type:String,required:!1},[e.sourceDirectoryRelativePath.KEY]:{newName:"sourceDirectoryRelativePath",preValidationModifications:r.nullToUndefined,type:String,requiredIf:{predicate:t=>!(0,r.isNonEmptyString)(t[e.sourceFileRelativePath.KEY]),descriptionForLogging:e.sourceDirectoryRelativePath.REQUIREMENT_CONDITION_DESCRIPTION}},[e.referenceName.KEY]:{newName:"referenceName",preValidationModifications:r.nullToUndefined,type:String,required:!1},[e.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(s.default),minimalEntriesCount:1,keysRenamings:{[t.staticPreview]:s.default.staticPreview,[t.localDevelopment]:s.default.localDevelopment,[t.testing]:s.default.testing,[t.staging]:s.default.staging,[t.production]:s.default.production},value:{type:Object,properties:{[e.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0}}}}}}}}}}(n||(n={})),t.default=n},5755:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(2102),r=o(i(1259)),n=o(i(229)),a=o(i(9217)),l=o(i(8545)),c=o(i(1975)),u=o(i(9356)),d=o(i(4083)),p=o(i(5962)),g=o(i(9040)),f=o(i(2335)),m=i(1943),h=i(5577);class P{static localization=P.getDefaultLocalization();static normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromFile__rawValid:t,projectBuildingConfig__fromConsole:i}){const o=t.commonSettings??{},h=P.determineActualSelectiveExecutionID({commonSettings__fromFile__rawValid:o,projectBuildingConfig__fromConsole:i}),S=r.default.normalize({commonSettings__fromFile__rawValid:o,consumingProjectRootDirectoryAbsolutePath:e,projectBuildingMode:i.projectBuildingMode,actualSelectiveExecution:h});return{commonSettings:S,...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.markupProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.markupProcessing)?{}:{markupProcessing:n.default.normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.stylesProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.stylesProcessing)?{}:{stylesProcessing:a.default.normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing)?{}:{ECMA_ScriptLogicProcessing:l.default.normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.imagesProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.imagesProcessing)?{}:{imagesProcessing:c.default.normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.fontsProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.fontsProcessing)?{}:{fontsProcessing:u.default.normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.videosProcessing)?{}:{videosProcessing:d.default.normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.audiosProcessing)?{}:{audiosProcessing:p.default.normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.plainCopying];return(0,m.isUndefined)(e)||(0,m.isNotUndefined)(S.tasksAndSourceFilesSelection)&&(0,m.isUndefined)(S.tasksAndSourceFilesSelection.plainCopying)?{}:{plainCopying:g.default.normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:S})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading];if((0,m.isUndefined)(e))return{};const i=h?.browserLiveReloadingSetupID;return{browserLiveReloading:f.default.normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:S,hasSelectiveExecutionBeenDeclared:(0,m.isNotUndefined)(h),...(0,m.isNotUndefined)(i)?{selectedBrowserLiveReloadingSetupID:i}:{}})}})()}}static setLocalization(e){P.localization=e}static determineActualSelectiveExecutionID({commonSettings__fromFile__rawValid:e,projectBuildingConfig__fromConsole:t}){const i=e.selectiveExecutions;let o;return(0,m.isNotUndefined)(t.selectiveExecutionID)&&((0,m.isUndefined)(i)&&m.Logger.throwErrorAndLog({errorInstance:new h.InvalidConsoleCommandError({customMessage:P.localization.generateNoSelectiveExecutionsHasBeenDefinedErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecutionID(parametersObject)",title:m.InvalidParameterValueError.localization.defaultTitle}),o=i[t.selectiveExecutionID],(0,m.isUndefined)(o)&&m.Logger.throwErrorAndLog({errorInstance:new h.InvalidConsoleCommandError({customMessage:P.localization.generateUndefinedSelectiveExecutionID_ErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecutionID(parametersObject)",title:m.InvalidParameterValueError.localization.defaultTitle})),o}static getDefaultLocalization(){return{generateNoSelectiveExecutionsHasBeenDefinedErrorMessage:({specifiedInConsoleCommandSelectiveExecutionID:e})=>`The selective execution '${e}' has been demanded in the console command while no selective executions has been defined in configuration file.`,generateUndefinedSelectiveExecutionID_ErrorMessage:({specifiedInConsoleCommandSelectiveExecutionID:e})=>`The selective execution '${e}' is undefined. Please check which selective executions you have defined in configuration file.`}}}t.default=P},9830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={KEY:"projectBuilding",enumerations:{tasksIDs:{markupProcessing:"markupProcessing",stylesProcessing:"stylesProcessing",ECMA_ScriptLogicProcessing:"ECMA_ScriptLogicProcessing",imagesProcessing:"imagesProcessing",fontsProcessing:"fontsProcessing",audiosProcessing:"audiosProcessing",videosProcessing:"videosProcessing",plainCopying:"plainCopying",browserLiveReloading:"browserLiveReloading"},consumingProjectPreDefinedBuildingModes:{staticPreview:"STATIC_PREVIEW",localDevelopment:"LOCAL_DEVELOPMENT",testing:"TESTING",staging:"STAGING",production:"PRODUCTION"}},reusables:{sourceCodeProcessingGenericProperties:{topDirectoryRelativePath:{KEY:"topDirectoryRelativePath"},partialsRecognition:{KEY:"partialsRecognition",excludeAllSubdirectories:{KEY:"excludeAllSubdirectories"},excludeSubdirectoriesWithNames:{KEY:"excludeSubdirectoriesWithNames"},excludeSubdirectoriesWithPrefixes:{KEY:"excludeSubdirectoriesWithPrefixes"},excludeFilesWithPrefixes:{KEY:"excludeFilesWithPrefixes"}},singleEntryPointRelativePath:{KEY:"singleEntryPointRelativePath",REQUIREMENT_CONDITION_DESCRIPTION:"'topDirectoryRelativePath' is not defined"}},revisioning:{disable:{KEY:"disable"},contentHashPostfixSeparator:{KEY:"contentHashPostfixSeparator"}},lintingCommonSettings:{presetFileRelativePath:{KEY:"presetFileRelativePath"},enabled:{KEY:"enabled"}}},commonSettings:{KEY:"commonSettings",properties:{selectiveExecutions:{KEY:"selectiveExecutions",tasksAndSourceFilesSelection:{KEY:"tasksAndSourceFilesSelection"},browserLiveReloadingSetupID:{KEY:"browserLiveReloadingSetupID"}},publicDirectoriesRelativePaths:{KEY:"publicDirectoriesRelativePaths"}}},tasks:{markupProcessing:{common:{KEY:"common",periodBetweenFileUpdatingAndRebuildingStarting__seconds:{KEY:"periodBetweenFileUpdatingAndRebuildingStarting__seconds"},buildingModeDependent:{KEY:"buildingModeDependent",mustResolveResourceReferencesToRelativePaths:{KEY:"mustResolveResourceReferencesToRelativePaths"}}},staticPreview:{KEY:"staticPreview",stateDependentPagesVariationsSpecificationFileRelativePath:{KEY:"stateDependentPagesVariationsSpecificationFileRelativePath"},importsFromStaticDataFiles:{KEY:"importsFromStaticDataFiles",importedVariableName:{KEY:"importedVariableName"},fileRelativePath:{KEY:"fileRelativePath"}},importsFromCompiledTypeScript:{KEY:"importsFromCompiledTypeScript",typeScriptConfigurationFileRelativePath:{KEY:"typeScriptConfigurationFileRelativePath"},files:{KEY:"files",importedNamespace:{KEY:"importedNamespace"},sourceFileRelativePath:{KEY:"sourceFileRelativePath"},outputDirectoryRelativePath:{KEY:"outputDirectoryRelativePath"},customOutputFileNameWithoutLastExtension:{KEY:"customOutputFileNameWithoutLastExtension"}}}},linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",HTML_Validation:{KEY:"HTML_Validation",disable:{KEY:"disable"}},accessibilityInspection:{KEY:"accessibilityInspection",standard:{KEY:"standard"},disable:{KEY:"disable"}},convertToHandlebarsOnNonStaticPreviewModes:{KEY:"convertToHandlebarsOnNonStaticPreviewModes"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"}}},logging:{filesPaths:{KEY:"filesPaths"},filesCount:{KEY:"filesCount"},partialFilesAndParentEntryPointsCorrespondence:{KEY:"partialFilesAndParentEntryPointsCorrespondence"}}},stylesProcessing:{common:{KEY:"common",periodBetweenFileUpdatingAndRebuildingStarting__seconds:{KEY:"periodBetweenFileUpdatingAndRebuildingStarting__seconds"}},linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",customReferenceName:{KEY:"customReferenceName"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"}}}},ECMA_ScriptLogicProcessing:{linting:{KEY:"linting"},entryPointsGroups:{KEY:"entryPointsGroups",targetRuntime:{KEY:"targetRuntime",type:{KEY:"type"},minimalVersion:{KEY:"minimalVersion",REQUIREMENT_CONDITION_DESCRIPTION:"Target runtime is NodeJS",major:{KEY:"major"},minor:{KEY:"minor"}}},customReferenceName:{KEY:"customReferenceName"},associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer:{KEY:"associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer"},typeScriptConfigurationFileRelativePath:{KEY:"typeScriptConfigurationFileRelativePath"},distributing:{KEY:"distributing",exposingOfExportsFromEntryPoints:{KEY:"exposingOfExportsFromEntryPoints",mustExpose:{KEY:"mustExpose"},namespace:{KEY:"namespace"}},typeScriptTypesDeclarations:{KEY:"typeScriptTypesDeclarations",mustGenerate:{KEY:"mustGenerate"},fileNameWithoutExtension:{KEY:"outputRelativePath"}}},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},dynamicallyLoadedFilesSubdirectory:{KEY:"dynamicallyLoadedFilesSubdirectory"},dynamicallyLoadedFilesNamesTemplate:{KEY:"dynamicallyLoadedFilesNamesTemplate"}}}},imagesProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},fontsProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},videosProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},audiosProcessing:{assetsGroups:{KEY:"assetsGroups",sourceFilesTopDirectoryRelativePath:{KEY:"sourceFilesTopDirectoryRelativePath"},sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{KEY:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"},revisioning:{KEY:"revisioning"},outputPathTransformations:{KEY:"outputPathTransformations",segmentsWhichMustBeRemoved:{KEY:"segmentsWhichMustBeRemoved"},segmentsWhichLastDuplicatesMustBeRemoved:{KEY:"segmentsWhichLastDuplicatesMustBeRemoved"}}}}},plainCopying:{filesGroups:{KEY:"filesGroups"},sourceFileRelativePath:{KEY:"sourceFileRelativePath"},sourceDirectoryRelativePath:{KEY:"sourceDirectoryRelativePath",REQUIREMENT_CONDITION_DESCRIPTION:'"sourceFileRelativePath" is not specified'},referenceName:{KEY:"referenceName"},buildingModeDependent:{KEY:"buildingModeDependent",outputTopDirectoryRelativePath:{KEY:"outputTopDirectoryRelativePath"}}},browserLiveReloading:{setups:{KEY:"setups",localServer:{KEY:"localServer",rootDirectoryRelativePath:{KEY:"rootDirectoryRelativePath"},ignoredFilesAndDirectoriesRelativePaths:{KEY:"ignoredFilesAndDirectoriesRelativePaths"},customPort:{KEY:"customPort"},customStartingFileNameWithExtension:{KEY:"customStartingFileNameWithExtension"},useHTTPS:{KEY:"useHTTPS"},useCORS:{KEY:"useCORS"}},proxy:{KEY:"proxy"},openInBrowsers:{KEY:"openInBrowsers"},browserSyncUserInterface:{KEY:"browserSyncUserInterface",customPort:{KEY:"customPort"},disable:{KEY:"disable"}},periodBetweenFileUpdatingAndBrowserReloading__seconds:{KEY:"periodBetweenFileUpdatingAndBrowserReloading__seconds"}},logging:{KEY:"logging",outputFileChangeDetection:{KEY:"outputFileChangeDetection"},browserTabWillBeReloadedSoon:{KEY:"browserTabWillBeReloadedSoon"},browsersyncConnection:{KEY:"browsersyncConnection"}}}}}},1431:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4256)),r=o(i(9258)),n=o(i(7745)),a=o(i(8365)),l=o(i(7633)),c=o(i(9018)),u=o(i(7733)),d=o(i(3691)),p=o(i(6757)),g=o(i(7130)),f=o(i(1573)),m=o(i(3272)),h=o(i(7171)),P=i(1943);var S;!function(e){e.getLocalizedSpecification=function(e){const t=r.default.getLocalizedPropertiesSpecification(e.reusables.sourceCodeProcessingGenericProperties),i=e.enumerations.consumingProjectPreDefinedBuildingModes,o=n.default.getLocalizedPropertiesSpecification(e.reusables.revisioning),S=a.default.getLocalizedPropertiesSpecification(e.reusables.lintingCommonSettings);return{nameForLogging:"ProjectBuildingConfig__FromFile__RawValid",subtype:P.RawObjectDataProcessor.ObjectSubtypes.fixedKeyAndValuePairsObject,properties:{[e.KEY]:{newName:"projectBuilding",preValidationModifications:P.nullToUndefined,type:Object,required:!0,properties:{[e.commonSettings.KEY]:{newName:"commonSettings",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:s.default.getLocalizedPropertiesSpecification({projectBuildingCommonSettingsLocalization:e.commonSettings.properties,tasksLocalizedIDs:e.enumerations.tasksIDs})},[e.enumerations.tasksIDs.markupProcessing]:{newName:"markupProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:l.default.getLocalizedPropertiesSpecification({markupProcessingLocalization:e.tasks.markupProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.stylesProcessing]:{newName:"stylesProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:c.default.getLocalizedPropertiesSpecification({stylesProcessingLocalization:e.tasks.stylesProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.ECMA_ScriptLogicProcessing]:{newName:"ECMA_ScriptLogicProcessing",preValidationModifications:P.nullToUndefined,type:Object,required:!1,properties:u.default.getLocalizedPropertiesSpecification({ECMA_ScriptProcessingLocalization:e.tasks.ECMA_ScriptLogicProcessing,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:S})},[e.enumerations.tasksIDs.imagesProcessing]:{newName:"imagesProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:d.default.getLocalizedPropertiesSpecification({imagesProcessingLocalization:e.tasks.imagesProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.fontsProcessing]:{newName:"fontsProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:p.default.getLocalizedPropertiesSpecification({fontsProcessingLocalization:e.tasks.fontsProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.videosProcessing]:{newName:"videosProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:g.default.getLocalizedPropertiesSpecification({videosProcessingLocalization:e.tasks.videosProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.audiosProcessing]:{newName:"audiosProcessing",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:f.default.getLocalizedPropertiesSpecification({audiosProcessingLocalization:e.tasks.audiosProcessing,revisioningPropertiesLocalizedSpecification:o,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.plainCopying]:{newName:"plainCopying",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:m.default.getLocalizedPropertiesSpecification({plainCopyingLocalization:e.tasks.plainCopying,consumingProjectLocalizedPreDefinedBuildingModes:i})},[e.enumerations.tasksIDs.browserLiveReloading]:{newName:"browserLiveReloading",type:Object,required:!1,preValidationModifications:P.nullToUndefined,properties:h.default.getLocalizedPropertiesSpecification(e.tasks.browserLiveReloading)}}}}}}}(S||(S={})),t.default=S},818:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=o(i(2147)),n=o(i(8962)),a=o(i(4714)),l=o(i(7066)),c=o(i(2871)),u=o(i(2238)),d=o(i(7640)),p=o(i(6919)),g=o(i(4712)),f=i(1943);class m{static selfSoleInstance=null;markupProcessingSettingsRepresentative;stylesProcessingSettingsRepresentative;ECMA_ScriptLogicProcessingSettingsRepresentative;imagesProcessingSettingsRepresentative;fontsProcessingSettingsRepresentative;audiosProcessingSettingsRepresentative;videosProcessingSettingsRepresentative;plainCopyingSettingsRepresentative;browserLiveReloadingSettingsRepresentative;commonSettings;static initializeAndGetInstance(e){return(0,f.isNotNull)(m.selfSoleInstance)&&f.Logger.throwErrorAndLog({errorInstance:new f.ClassRedundantSubsequentInitializationError({className:"ProjectBuildingMasterConfigRepresentative"}),title:f.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"ProjectBuildingMasterConfigRepresentative.initializeAndGetInstance(projectBuilderConfig__normalized)"}),m.selfSoleInstance=new m(e),m.selfSoleInstance}constructor(e){this.commonSettings=e.commonSettings,(0,f.isNotUndefined)(e.markupProcessing)&&(this.markupProcessingSettingsRepresentative=new r.default(e.markupProcessing,this)),(0,f.isNotUndefined)(e.stylesProcessing)&&(this.stylesProcessingSettingsRepresentative=new n.default(e.stylesProcessing,this)),(0,f.isNotUndefined)(e.ECMA_ScriptLogicProcessing)&&(this.ECMA_ScriptLogicProcessingSettingsRepresentative=new a.default(e.ECMA_ScriptLogicProcessing,this)),(0,f.isNotUndefined)(e.imagesProcessing)&&(this.imagesProcessingSettingsRepresentative=new l.default(e.imagesProcessing,this)),(0,f.isNotUndefined)(e.fontsProcessing)&&(this.fontsProcessingSettingsRepresentative=new c.default(e.fontsProcessing,this)),(0,f.isNotUndefined)(e.audiosProcessing)&&(this.audiosProcessingSettingsRepresentative=new u.default(e.audiosProcessing,this)),(0,f.isNotUndefined)(e.videosProcessing)&&(this.videosProcessingSettingsRepresentative=new d.default(e.videosProcessing,this)),(0,f.isNotUndefined)(e.plainCopying)&&(this.plainCopyingSettingsRepresentative=new p.default(e.plainCopying)),(0,f.isNotUndefined)(e.browserLiveReloading)&&(this.browserLiveReloadingSettingsRepresentative=new g.default(e.browserLiveReloading))}get consumingProjectRootDirectoryAbsolutePath(){return this.commonSettings.projectRootDirectoryAbsolutePath}get actualPublicDirectoryAbsolutePath(){return this.commonSettings.actualPublicDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.commonSettings.projectBuildingMode}get isStaticPreviewBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.staticPreview}get isLocalDevelopmentBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.localDevelopment}get isTestingBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.testing}get isStagingBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.staging}get isProductionBuildingMode(){return this.commonSettings.projectBuildingMode===s.default.production}get mustProcessMarkup(){return(0,f.isNotUndefined)(this.markupProcessingSettingsRepresentative)&&this.markupProcessingSettingsRepresentative.hasAtLeastOneRelevantEntryPointsGroup}get mustProvideMarkupLinting(){return(0,f.isNotUndefined)(this.markupProcessingSettingsRepresentative)}get mustProcessStyles(){return(0,f.isNotUndefined)(this.stylesProcessingSettingsRepresentative)&&this.stylesProcessingSettingsRepresentative.hasAtLeastOneRelevantEntryPointsGroup}get mustProcessECMA_ScriptBasedLogic(){return(0,f.isNotUndefined)(this.ECMA_ScriptLogicProcessingSettingsRepresentative)}get mustProcessImages(){return(0,f.isNotUndefined)(this.imagesProcessingSettingsRepresentative)}get mustProcessFonts(){return(0,f.isNotUndefined)(this.fontsProcessingSettingsRepresentative)}get mustProcessAudios(){return(0,f.isNotUndefined)(this.audiosProcessingSettingsRepresentative)}get mustProcessVideos(){return(0,f.isNotUndefined)(this.videosProcessingSettingsRepresentative)}get mustProvideBrowserLiveReloading(){return(0,f.isNotUndefined)(this.browserLiveReloadingSettingsRepresentative)&&(this.isStaticPreviewBuildingMode||this.isLocalDevelopmentBuildingMode)}get allOutputFilesGlobSelectors(){return[...this.markupProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.stylesProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.ECMA_ScriptLogicProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.imagesProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.fontsProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.audiosProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[],...this.videosProcessingSettingsRepresentative?.actualOutputFilesGlobSelectors??[]]}}t.default=m},8545:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(29));var r=s.default.SupportedECMA_ScriptRuntimesTypes;const n=o(i(6118)),a=o(i(9418)),l=i(1943),c=i(5577);class u extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new u({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing}:null}),o=e.linting??{};return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots},linting:{mustExecute:e.linting?.enable??n.default.linting.mustExecute,...(0,l.isNotUndefined)(o.presetFileRelativePath)?{presetFileAbsolutePath:c.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,o.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings.bind(i))}}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings(e,t){const i=t.distributing;return{...e,targetRuntime:(()=>{switch(t.targetRuntime.type){case r.browser:return{type:r.browser};case r.webWorker:return{type:r.webWorker};case r.nodeJS:return{type:r.nodeJS,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,l.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.pug:return{type:r.pug}}})(),entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML:`${n.default.entryPointsGroupReferencePrefix}${t.customReferenceName??e.ID}`,...(0,l.isNotUndefined)(t.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer)?{associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer:t.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer}:null,typeScriptConfigurationFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.typeScriptConfigurationFileRelativePath??n.default.typeScriptConfigurationFileRelativePath],{alwaysForwardSlashSeparators:!0}),revisioning:{mustExecute:!0!==t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.disable&&n.default.revisioning.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,targetRuntimeType:t.targetRuntime.type}),contentHashPostfixSeparator:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.contentHashPostfixSeparator??n.default.revisioning.contentHashPostfixSeparator},...(0,l.isNotUndefined)(i)?{distributing:{exposingOfExportsFromEntryPoints:{mustExpose:i.exposingOfExportsFromEntryPoints?.mustExpose??n.default.distributing.exposingOfExportsFromEntryPoints.mustExpose,namespace:i.exposingOfExportsFromEntryPoints?.namespace},typeScriptTypesDeclarations:{mustGenerate:i.typeScriptTypesDeclarations?.mustGenerate??n.default.distributing.typeScriptTypesDeclarations.mustGenerate,fileNameWithoutExtension:i.typeScriptTypesDeclarations?.fileNameWithoutExtension??n.default.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension}}}:null}}}t.default=u},29:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["js","mjs","jsx","ts","tsx"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["js"],function(e){e.browser="BROWSER",e.webWorker="WEB_WORKER",e.nodeJS="NODEJS",e.pug="PUG"}(t=e.SupportedECMA_ScriptRuntimesTypes||(e.SupportedECMA_ScriptRuntimesTypes={}))}(i||(i={})),t.default=i},4714:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(9433)),r=i(1943);class n extends s.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Script";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Scripts";prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";relevantEntryPointsGroupsSettings;entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.sourceCodeProcessingCommonSettings=e.common,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,0===this.relevantEntryPointsGroupsSettings.size&&r.Logger.logWarning({title:"The ECMAScript logic processing will not be executed",description:`No files has been found for project building mode "${t.consumingProjectBuildingMode}" `,occurrenceLocation:"ECMA_ScriptLogicProcessingSettingsRepresentative.constructor(...parameters)"}),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots}get entryPointsGroupsNormalizedSettingsMappedByPathAliases(){return new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[`${e.entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML}`,e])))}}t.default=n},6118:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991));var r=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const n={entryPointsGroupReferencePrefix:"@",typeScriptConfigurationFileRelativePath:"tsconfig.json",entryPointsGroupDependent:{areExportsFromEntryPointsAccessible:!1},revisioning:{mustExecute:e=>(e.targetRuntimeType===r.browser||e.targetRuntimeType===r.webWorker)&&e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0},distributing:{exposingOfExportsFromEntryPoints:{mustExpose:!1},typeScriptTypesDeclarations:{mustGenerate:!1,fileNameWithoutExtension:"index.d.ts"}}};t.default=n},7733:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const r=o(i(2991)),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({ECMA_ScriptProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:a}){return{[e.linting.KEY]:{newName:"linting",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:a},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{...t,[e.entryPointsGroups.targetRuntime.KEY]:{newName:"targetRuntime",type:Object,required:!0,properties:{[e.entryPointsGroups.targetRuntime.type.KEY]:{newName:"type",type:String,required:!0,allowedAlternatives:Object.values(s)},[e.entryPointsGroups.targetRuntime.minimalVersion.KEY]:{newName:"minimalVersion",type:Object,requiredIf:{predicate:e=>e.type===s.nodeJS,descriptionForLogging:e.entryPointsGroups.targetRuntime.minimalVersion.REQUIREMENT_CONDITION_DESCRIPTION},properties:{major:{type:Number,required:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber},minor:{type:Number,required:!1,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber}}}}},[e.entryPointsGroups.customReferenceName.KEY]:{newName:"customReferenceName",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer.KEY]:{newName:"associatedMarkupEntryPointsGroupID_ForModulesDynamicLoadingWithoutDevelopmentServer",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.typeScriptConfigurationFileRelativePath.KEY]:{newName:"typeScriptConfigurationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.distributing.KEY]:{newName:"distributing",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.KEY]:{newName:"exposingOfExportsFromEntryPoints",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.mustExpose.KEY]:{newName:"mustExpose",type:Boolean,required:!0},[e.entryPointsGroups.distributing.exposingOfExportsFromEntryPoints.namespace.KEY]:{newName:"namespace",type:String,required:!1}}},[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.KEY]:{newName:"typeScriptTypesDeclarations",type:Object,required:!1,properties:{[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.mustGenerate.KEY]:{newName:"mustGenerate",type:Boolean,required:!1},[e.entryPointsGroups.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension.KEY]:{newName:"fileNameWithoutExtension",type:String,required:!1}}}}},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.entryPointsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,properties:o},[e.entryPointsGroups.buildingModeDependent.dynamicallyLoadedFilesSubdirectory.KEY]:{newName:"dynamicallyLoadedFilesSubdirectory",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.buildingModeDependent.dynamicallyLoadedFilesNamesTemplate.KEY]:{newName:"dynamicallyLoadedFilesNamesTemplate",type:String,required:!1,minimalCharactersCount:1}}}}}}}}}}(a||(a={})),t.default=a},5525:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6247)),r=o(i(101)),n=o(i(9354)),a=o(i(8722)),l=i(1943);class c{TASK_NAME_FOR_LOGGING="ECMAScript logic processing";masterConfigRepresentative;ECMA_ScriptLogicProcessingConfigRepresentative;static provideLogicProcessingIfMust(e){if((0,l.isUndefined)(e.ECMA_ScriptLogicProcessingSettingsRepresentative))return e=>{e()};const t=new c(e,e.ECMA_ScriptLogicProcessingSettingsRepresentative),i=s.default.generateWebpackConfigurationForEachEntryPointsGroup(e.ECMA_ScriptLogicProcessingSettingsRepresentative,e);return e=>{try{(0,n.default)(i,((i,o)=>{let s;(0,l.isNotUndefined)(o)&&process.stdout.write(`${o.toString({colors:!0})}\n`);const n=(0,l.undefinedToEmptyArray)(o?.stats[0]?.compilation.errors);(0,l.isNeitherUndefinedNorNull)(i)?s=i.message:n.length>0&&(s=n.toString()),(0,l.isNotUndefined)(s)&&(l.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:s,occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)"}),a.default.notify({title:"ECMAScript logic processing",message:"Error has occurred. Please check the console."})),(t.masterConfigRepresentative.isStagingBuildingMode||t.masterConfigRepresentative.isProductionBuildingMode)&&(0,l.isNotUndefined)(s)?(l.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:"Unable to production build.",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)"}),e(new Error(s))):((0,l.addMultiplePairsToMap)(t.ECMA_ScriptLogicProcessingConfigRepresentative.entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap,r.default.generate(t.ECMA_ScriptLogicProcessingConfigRepresentative)),e())}))}catch(e){l.Logger.logError({errorType:l.UnexpectedEventError.NAME,title:l.UnexpectedEventError.localization.defaultTitle,description:"依存性の'Webpack'の実行中エラーが発生した。'webpack'関数の呼び出しを'try/catch'に包めなければいけない事に就いて説明書(https://webpack.js.org/api/node/)に書いてはないが、今は'catch'に当たった状態だ。'Gulp'課題鎖が崩れない様に、エラーを再投擲無しで捕まえた。",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(masterConfigRepresentative)",caughtError:e})}}}constructor(e,t){this.masterConfigRepresentative=e,this.ECMA_ScriptLogicProcessingConfigRepresentative=t}}t.default=c},4143:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(6300));t.default=class{static provideTypeCheckingIfMust(e){return(0,s.isUndefined)(e.ECMA_ScriptLogicProcessingSettingsRepresentative),(0,r.default)()}}},101:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7803)),n=o(i(7184));class a{static generate(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values()){const e=n.default.getFilesAbsolutePathsSynchronously(i.sourceFilesGlobSelectors);for(const o of e)t.set(o,a.getEntryPointsOutputFileActualAbsolutePath(o,i))}return t}static getEntryPointsOutputFileActualAbsolutePath(e,t){let i;if(t.revisioning.mustExecute){const o=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:r.default.extractDirectoryFromFilePath(e)}),`${r.default.extractFileNameWithoutExtensionFromPath(e)}**.js`],{forwardSlashOnlySeparators:!0}),a=n.default.getFilesAbsolutePathsSynchronously([o]);0===a.length?s.Logger.throwErrorAndLog({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが見つけられなかった。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}):a.length>1&&s.Logger.throwErrorAndLog({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが複数件が発見された:\n${(0,s.stringifyAndFormatArbitraryValue)(a)}\n前の構成は自動的に削除されなかった場合、再構成する前に手動で削除して下さい。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}),i=a[0]}else i=r.default.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.default.computeRelativePath({comparedPath:r.default.extractDirectoryFromFilePath(e),basePath:t.sourceFilesTopDirectoryAbsolutePath}),`${r.default.extractFileNameWithoutExtensionFromPath(e)}.js`],{forwardSlashOnlySeparators:!0});return i}}t.default=a},6247:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(i(29)).default.SupportedECMA_ScriptRuntimesTypes;const r=o(i(8783)),n=o(i(6553)),a=o(i(9354)),l=i(3123),c=o(i(3994)),u=o(i(8582)),d=o(i(5977)),p=o(i(1017)),g=o(i(7803)),f=o(i(7184)),m=i(1943);class h{ECMA_ScriptLogicProcessingConfigRepresentative;masterConfigRepresentative;typeScriptConfigurations={};hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided=!1;static generateWebpackConfigurationForEachEntryPointsGroup(e,t){const i=new h(e,t),o=[];for(const e of i.ECMA_ScriptLogicProcessingConfigRepresentative.relevantEntryPointsGroupsSettings.values()){const t=i.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(e);(0,m.isNotNull)(t)&&(o.push(t),i.hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided=!0)}return o}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({sourceFilesGlobSelectors:e,entryPointsGroupID:t,webpackContext:i}){const o={},s=f.default.getFilesAbsolutePathsSynchronously(e);if(0===s.length)return m.Logger.logWarning({title:"Restarting may required",description:`No files has been found for the ECMAScript entry points group with id '${t}'. Please restart the building once these files will be added`}),null;h.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(s);for(const e of s){const t=g.default.computeRelativePath({comparedPath:e,basePath:i});o[g.default.removeFilenameExtensionFromPath(t)]=e}return o}constructor(e,t){this.ECMA_ScriptLogicProcessingConfigRepresentative=e,this.masterConfigRepresentative=t}generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(e){const t=e.sourceFilesTopDirectoryAbsolutePath,i=h.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({entryPointsGroupID:e.ID,sourceFilesGlobSelectors:e.sourceFilesGlobSelectors,webpackContext:t});if((0,m.isNull)(i))return m.Logger.logWarning({title:"Empty entry point group",description:`No files has been found for the group '${e.ID}' of ECMAScript entry points. Please restart the build once new files will be added.`}),null;let o;const f=this.typeScriptConfigurations[e.typeScriptConfigurationFileAbsolutePath];(0,m.isUndefined)(f)?(o=n.default.readTypeScriptConfigurationFileAndGetCompilerOptions(e.typeScriptConfigurationFileAbsolutePath),this.typeScriptConfigurations[e.typeScriptConfigurationFileAbsolutePath]=o):o=f;const P=this.computePublicPathIfPossible(e),S=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.browser,y=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.nodeJS,_=!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&e.targetRuntime.type===s.pug;return{name:e.ID,context:p.default.normalize(t),target:(()=>{switch(e.targetRuntime.type){case s.browser:case s.pug:return"web";case s.webWorker:return"webworker";case s.nodeJS:return`node${e.targetRuntime.minimalVersion.major}${(0,m.insertSubstringIf)(`.${e.targetRuntime.minimalVersion.minor}`,(0,m.isNotUndefined)(e.targetRuntime.minimalVersion.minor))}`}})(),entry:i,output:{path:p.default.normalize(e.outputFilesTopDirectoryAbsolutePath),...(0,m.isNotUndefined)(P)?{publicPath:P}:{},filename:e.revisioning.mustExecute?`[name]${e.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[name].js",chunkFilename:e.revisioning.mustExecute?`[id]${e.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[id][contenthash].js",...!0===e.distributing?.exposingOfExportsFromEntryPoints.mustExpose?{library:{type:(()=>{switch(e.targetRuntime.type){case s.browser:return"module";case s.nodeJS:return"commonjs";case s.pug:return"umd";default:m.Logger.throwErrorAndLog({errorInstance:new m.UnexpectedEventError("The web worker could not be the library, while the computing of 'output.library.type' has been requested"),title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"webpackConfigGenerator.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(entryPointsGroupSettings)"})}})(),...y||_?{name:e.distributing.exposingOfExportsFromEntryPoints.namespace}:null}}:null,..._?{globalObject:"globalThis"}:null},...S?{experiments:{outputModule:!0}}:null,mode:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode?"development":"production",watch:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,devtool:!(!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode)&&"eval",...e.targetRuntime.type===s.nodeJS?{node:{__dirname:!0,__filename:!0}}:null,module:{rules:[{test:/\.tsx?$/u,loader:"ts-loader",options:{configFile:e.typeScriptConfigurationFileAbsolutePath,appendTsSuffixTo:[/\.vue$/u]}},{test:/\.vue$/u,loader:"vue-loader"},{test:/\.json5$/u,loader:"json5-loader"},{test:/\.(?:yml|yaml)$/u,use:["yaml-loader"]},{test:/\.pug$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["pug-plain-loader"]},{loader:"@webdiscus/pug-loader",options:{method:"render"}}]},{test:/\.css$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["vue-style-loader",{loader:"css-loader",options:{modules:!0}}]},{use:["style-loader","css-loader"]}]},{test:/\.styl(?:us)?$/u,oneOf:[{resourceQuery:/^\?vue/u,use:["vue-style-loader","css-loader","stylus-loader"]},{use:["style-loader","css-loader","stylus-loader"]}]}]},resolve:{extensions:this.ECMA_ScriptLogicProcessingConfigRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots.map((e=>`.${e}`)),alias:{...r.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:o.paths,typeScriptBasicAbsolutePath:o.baseUrl??g.default.extractDirectoryFromFilePath(e.typeScriptConfigurationFileAbsolutePath)}),vue:"vue/dist/vue.esm-bundler.js"}},resolveLoader:r.default.generateLoadersResolvingSettings(this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath),...e.targetRuntime.type===s.nodeJS?{externals:[(0,d.default)()]}:null,plugins:[new a.default.DefinePlugin({__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__:this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__:this.masterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__:this.masterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__:this.masterConfigRepresentative.isProductionBuildingMode,__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1}),...this.hasTypeScriptTypeCheckingFunctionalityAlreadyBeenProvided?[]:[new c.default({typescript:{configFile:e.typeScriptConfigurationFileAbsolutePath,extensions:{vue:{enabled:!0,compiler:"@vue/compiler-sfc"}}}})],new l.VueLoaderPlugin,new u.default({extensions:["js","ts","jsx","tsx","vue"],failOnError:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,failOnWarning:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode})],optimization:{minimize:this.masterConfigRepresentative.isStagingBuildingMode||this.masterConfigRepresentative.isProductionBuildingMode,emitOnErrors:this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode}}}computePublicPathIfPossible(e){return this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode?e.ID.replace(e.ID,"/"):"/"}static checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e){const t=new Set;for(const i of e){const e=g.default.parsePath(i),o=`${e.directory}/${e.getFilenameWithoutExtensionWhichExpectedToBeDefined()}`;t.has(o)?m.Logger.throwErrorAndLog({errorType:"IncompatibleFilesError",description:"Incompatible files",title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"WebpackConfigGenerator.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(entryPointsSourceFilesAbsolutePaths)"}):t.add(o)}}}t.default=h},8404:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["pug"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["html"],function(e){e.WCAG2A="WCAG2A",e.WCAG2AA="WCAG2AA",e.WCAG2AAA="WCAG2AAA"}(t=e.SupportedAccessibilityStandards||(e.SupportedAccessibilityStandards={}))}(i||(i={})),t.default=i},2147:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6434)),r=i(1943),n=i(5577);class a extends s.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Markup";TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Markup";TASK_NAME_FOR_LOGGING="Markup processing";prefixOfEntryPointsGroupReference="@";waitingForTheOtherFilesWillBeSavedPeriod__seconds;entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeLintingCommonSettings;staticPreviewSettings;sourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map;relevantEntryPointsGroupsSettings;mustResolveResourcesReferencesToAbsolutePath;sourceCodeProcessingCommonSettings;constructor(e,t){super({masterConfigRepresentative:t,mustLogPartialFilesAndEntryPointsRelationsMap:e.logging.partialFilesAndParentEntryPointsCorrespondence}),this.sourceCodeProcessingCommonSettings=e.common,this.sourceCodeLintingCommonSettings=e.linting,this.staticPreviewSettings=e.staticPreview,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots,this.waitingForTheOtherFilesWillBeSavedPeriod__seconds=e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[`${this.prefixOfEntryPointsGroupReference}${e.ID}`,e]))),this.mustResolveResourcesReferencesToAbsolutePath=e.common.mustResolveResourcesReferencesToAbsolutePath,super.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap()}getAbsolutePublicPathIfMustToResolveReferencesToAbsolutePath(){return this.mustResolveResourcesReferencesToAbsolutePath?this.masterConfigRepresentative.actualPublicDirectoryAbsolutePath??null:null}getEntryPointStateDependentVariations(e){return this.staticPreviewSettings.stateDependentPagesVariationsSpecification[e]??null}get staticDataForStaticPreview(){return this.staticPreviewSettings.importsFromStaticDataFiles}get compiledTypeScriptImportingSettings(){return this.staticPreviewSettings.compiledTypeScriptImporting}get importedTypeScriptSourceFilesAbsolutePaths(){return(this.compiledTypeScriptImportingSettings?.files??[]).map((e=>e.sourceFileAbsolutePath))}getTypeScriptImportingSettingsExpectedToExistForSpecificOutputJavaScriptFile(e){return(0,r.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.staticPreviewSettings.compiledTypeScriptImporting?.files??[],(t=>n.ImprovedPath.joinPathSegments([t.outputDirectoryAbsolutePath,`${t.outputFileNameWithoutExtension}.js`],{alwaysForwardSlashSeparators:!0})===e),{mustThrowErrorIfElementNotFoundOrMoreThan1:!0})}}t.default=a},6679:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,staticPreview:{typeScriptConfigurationFileRelativePath:"tsconfig.json"},linting:{mustExecute:!0},HTML_Validation:{mustExecute:!0},accessibilityInspection:{mustExecute:!0,standard:o(i(8404)).default.SupportedAccessibilityStandards.WCAG2AAA},logging:{filesPaths:!0,filesCount:!0,partialFilesAndParentEntryPointsCorrespondence:!1}};t.default=s},7633:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8404)),r=o(i(2991)),n=i(1943);var a;!function(e){e.getLocalizedPropertiesSpecification=function({markupProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,lintingCommonSettingsLocalizedPropertiesSpecification:o}){return{[e.common.KEY]:{newName:"common",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,required:!1,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber},[e.common.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!1,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.common.buildingModeDependent.mustResolveResourceReferencesToRelativePaths.KEY]:{newName:"mustResolveResourceReferencesToRelativePaths",type:Boolean,required:!1}}}}}},[e.staticPreview.KEY]:{newName:"staticPreview",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.staticPreview.stateDependentPagesVariationsSpecificationFileRelativePath.KEY]:{newName:"stateDependentPagesVariationsSpecificationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},[e.staticPreview.importsFromStaticDataFiles.KEY]:{newName:"importsFromStaticDataFiles",type:Array,required:!1,minimalElementsCount:1,element:{type:Object,properties:{importedVariableName:{newName:"importedVariableName",type:String,required:!0,minimalCharactersCount:1},fileRelativePath:{newName:"fileRelativePath",type:String,required:!0,minimalCharactersCount:1}}}},[e.staticPreview.importsFromCompiledTypeScript.KEY]:{newName:"importsFromCompiledTypeScript",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,required:!1,minimalCharactersCount:1},files:{newName:"files",type:Array,required:!1,minimalElementsCount:1,element:{type:Object,properties:{importedNamespace:{newName:"importedNamespace",type:String,required:!0,minimalCharactersCount:1},sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,required:!0,minimalCharactersCount:1},outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,required:!0,minimalCharactersCount:1},customOutputFileNameWithoutLastExtension:{newName:"customOutputFileNameWithoutLastExtension",type:String,required:!1,minimalCharactersCount:1}}}}}}}},[e.linting.KEY]:{newName:"linting",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:o},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,minimalEntriesCount:1,value:{type:Object,properties:{...t,[e.entryPointsGroups.HTML_Validation.KEY]:{newName:"HTML_Validation",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.entryPointsGroups.HTML_Validation.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.entryPointsGroups.accessibilityInspection.KEY]:{newName:"accessibilityInspection",preValidationModifications:n.nullToUndefined,type:Object,required:!1,properties:{[e.entryPointsGroups.accessibilityInspection.standard.KEY]:{newName:"standard",type:String,required:!1,allowedAlternatives:Object.values(s.default.SupportedAccessibilityStandards)},[e.entryPointsGroups.accessibilityInspection.disable.KEY]:{newName:"disable",type:Boolean,required:!1}}},[e.entryPointsGroups.convertToHandlebarsOnNonStaticPreviewModes.KEY]:{newName:"convertToHandlebarsOnNonStaticPreviewModes",type:Boolean,required:!1},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(r.default),minimalEntriesCount:1,keysRenamings:{[i.staticPreview]:r.default.staticPreview,[i.localDevelopment]:r.default.localDevelopment,[i.testing]:r.default.testing,[i.staging]:r.default.staging,[i.production]:r.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0}}}}}}}}}}(a||(a={})),t.default=a},8844:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarkupProcessor=void 0;const s=o(i(2147)),r=o(i(4079)),n=o(i(7038)),a=o(i(2580)),l=o(i(7583)),c=o(i(9952)),u=o(i(882)),d=o(i(7019)),p=o(i(4798)),g=o(i(9419)),f=o(i(1921)),m=o(i(6300)),h=i(1943),P=o(i(1017)),S=o(i(7803)),y=o(i(7184));class _ extends r.default{TASK_NAME_FOR_LOGGING="Markup processing";markupProcessingConfigRepresentative;static provideMarkupProcessingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,h.isUndefined)(t))return(0,m.default)();const i=new _(e,t);return(e.isStaticPreviewBuildingMode||e.isLocalDevelopmentBuildingMode)&&(i.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(),i.initializeOrUpdateWatchedSourceFilesGlobSelectors(),i.initializeOrUpdateSourceFilesWatcher()),i.processEntryPoints(t.relevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super(e,t),this.markupProcessingConfigRepresentative=t}processEntryPoints(e){if(0===e.length)return(0,m.default)();for(const t of y.default.getFilesAbsolutePathsSynchronously(e)){if(this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.has(t))continue;const e=S.default.extractFileNameWithoutExtensionFromPath(t),i=this.markupProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(t),o=i.mustConvertToHandlebarsOnNonStaticPreviewModes&&!this.masterConfigRepresentative.isStaticPreviewBuildingMode?".hbs":".html";this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(t,S.default.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(t,i),`${e}${o}`],{forwardSlashOnlySeparators:!0}));const r=this.markupProcessingConfigRepresentative.getEntryPointStateDependentVariations(t);if(!(0,h.isNull)(r))for(const e of Object.keys(r.derivedPagesAndStatesMap)){const o=S.default.extractFileNameWithoutExtensionFromPath(e);this.markupProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e,S.default.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(t,i),`${o}.html`],{forwardSlashOnlySeparators:!0}))}}return()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,c.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe(f.default.modify({onStreamStartedEventCommonHandler:async(e,t)=>{if(!this.masterConfigRepresentative.isStaticPreviewBuildingMode)return Promise.resolve(f.default.CompletionSignals.PASSING_ON);const i=this.markupProcessingConfigRepresentative.getEntryPointStateDependentVariations(String(e.sourceAbsolutePath));if((0,h.isNull)(i))return Promise.resolve(f.default.CompletionSignals.PASSING_ON);e.pageStateDependentData={[i.stateVariableName]:{}};for(const[o,s]of Object.entries(i.derivedPagesAndStatesMap)){const r=e.clone();r.path=P.default.normalize(o),r.sourceAbsolutePath=o,r.pageStateDependentData={[i.stateVariableName]:s},t(r)}return Promise.resolve(f.default.CompletionSignals.PASSING_ON)}})).pipe((0,a.default)((e=>({...e.pageStateDependentData,...this.masterConfigRepresentative.isStaticPreviewBuildingMode?this.markupProcessingConfigRepresentative.staticDataForStaticPreview:null})))).pipe((0,l.default)({locals:{__IS_STATIC_PREVIEW_BUILDING_MODE__:this.masterConfigRepresentative.isStaticPreviewBuildingMode,__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__:this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__:this.masterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__:this.masterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__:this.masterConfigRepresentative.isProductionBuildingMode},filters:{html_special_characters_to_html_entities:_.escapeHTML_Entities}})).pipe((0,c.default)(this.onRawOutputCode.bind(this))).pipe((0,u.default)({indent_char:" ",indent_size:2})).pipe((0,c.default)(this.onPostProcessedCode.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.markupProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path);return e.processingSettings=t,e.sourceAbsolutePath=S.default.replacePathSeparatorsToForwardSlashes(e.path),e.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),e}onRawOutputCode(e){const t=e;return t.contents=Buffer.from(d.default.resolve(t,this.masterConfigRepresentative)),t}onPostProcessedCode(e){const t=e;return t.processingSettings.mustConvertToHandlebarsOnNonStaticPreviewModes&&!this.masterConfigRepresentative.isStaticPreviewBuildingMode?t.extname=".hbs":(t.processingSettings.HTML_Validation.mustExecute&&p.default.validateHTML(t,this.masterConfigRepresentative),t.processingSettings.accessibilityInspection.mustExecute&&g.default.inspectAccessibility(t,this.masterConfigRepresentative)),t}static escapeHTML_Entities(e){return e.replace(/</gu,"<").replace(/>/gu,">").replace(/&/gu,"&").replace(/"/gu,""").replace(/'/gu,"'")}}t.MarkupProcessor=_,t.default=_},9419:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(728)),r=o(i(4330)),n=o(i(8722)),a=o(i(5277)),l=o(i(2004)),c=i(1943),u=o(i(7803)),d=o(i(2076));class p{static localization=s.default;static inspectAccessibility(e,t){const i=(0,a.default)(e),o=u.default.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path});if((0,l.default)(i))return void c.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:o}));const s=(new d.default).startOrRestart();c.Logger.logInfo(p.localization.generateInspectionStartedInfoLog({targetFileRelativePath:o}));try{(0,r.default)((0,a.default)(e),{verbose:!1,accessibilityLevel:e.processingSettings.accessibilityInspection.standard}).then((()=>{const e=s.stop().seconds;c.Logger.logSuccess(p.localization.generateInspectionFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:o,secondsElapsed:e}))})).catch((e=>{n.default.notify(p.localization.issuesFoundNotification);const t=[];for(const i of Object.values(e.reportLogs))for(const e of Object.values(i.messageLog))"ERROR"===e.heading&&t.push(`${e.element.node}\n${p.localization.generateIssueOccurrenceLocationIndication({lineNumber:e.position.lineNumber,columnNumber:e.position.columnNumber})}\n${e.description}\n${p.localization.formattedError.violatedGuidelineItem}${p.localization.formattedError.keyAndValueSeparator}${e.issue}`);c.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:o,formattedErrorsAndWarnings:t.join("\n\n")}))}))}catch(e){if(e instanceof Error&&"pattern is too long"===e.message)return void c.Logger.logWarning(p.localization.generateAccessSniffBugWarning({targetFileRelativePath:o}));throw e}}}t.default=p},728:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateFileIsEmptyWarningLog:e=>({title:"HTML code accessibility inspection terminated",description:`File '${e.targetFileRelativePath}' is empty, nothing to inspect.`}),generateInspectionStartedInfoLog:e=>({title:"HTML code accessibility inspection started",description:`Begin the accessibility inspection of HTML code in the file '${e.targetFileRelativePath}' ...`}),generateInspectionFinishedWithNoIssuesFoundSuccessLog:e=>({title:"HTML code accessibility inspection finished",description:`The HTML code in file '${e.targetFileRelativePath}' has not the accessibility issues.\n${e.secondsElapsed} seconds elapsed.`}),issuesFoundNotification:{title:"HTML code accessibility inspection, issue(s) found",message:"Accessibility issues detected in one or more HTML files. Please check the console for the details."},generateIssueOccurrenceLocationIndication:e=>`Line ${e.lineNumber}, column ${e.columnNumber}`,generateIssuesFoundErrorLog:e=>({customBadgeText:"HTML code accessibility inspection not passed",title:"HTML code accessibility inspection, issue(s) found",description:`HTML file '${e.targetFileRelativePath}' is including the following accessibility issues:\n\n${e.formattedErrorsAndWarnings}\n\n`}),formattedError:{violatedGuidelineItem:"Violated rule",keyAndValueSeparator:":"},generateAccessSniffBugWarning:e=>({title:"Accessibility inspection, the dependency bug occurred",description:`We are sorry, but because of "access-sniff" bug the accessibility inspection has not been executed for the file "${e.targetFileRelativePath}". Would you mind to check the content of this file manually at https://squizlabs.github.io/HTML_CodeSniffer/ ?`})}},4798:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7623)),r=o(i(6949)),n=o(i(5277)),a=o(i(2004)),l=o(i(8722)),c=i(1943),u=o(i(7803)),d=o(i(2076));class p{static localization=s.default;static validateHTML(e,t){const i=(0,n.default)(e),o=u.default.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path});if((0,a.default)(i))return void c.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:o}));const s=(new d.default).startOrRestart();c.Logger.logInfo(p.localization.generateValidationStartedInfoLog({targetFileRelativePath:o})),(0,r.default)({data:i,format:"json"}).then((e=>{const t=s.stop().seconds,i=(0,c.removeArrayElementsByPredicates)({targetArray:e.messages,predicates:p.getPredicatesForHTML_ValidationIssuesFiltering(),mutably:!1}).updatedArray;if(0===i.length)return void c.Logger.logSuccess(p.localization.generateValidationFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:o,secondsElapsed:t}));l.default.notify(p.localization.issuesFoundNotification);const r=[];for(const e of i){let t="";if(p.isValidationMessageLocationObject(e)){const i=e.extract.substring(e.hiliteStart,e.hiliteStart+e.hiliteLength);t=`${e.extract.replace(i,c.Logger.highlightText(i))}\n${p.localization.generateIssueOccurrenceLocationIndication({lineNumber:e.lastLine,startingColumnNumber:e.firstColumn,lastColumnNumber:e.lastColumn})}\n`}switch(e.type){case"error":t=`${t}${p.localization.issuesTypesTitles.grossViolation}${p.localization.issuesTypesTitles.keyAndValueSeparator}`;break;case"info":t=`${t}${p.localization.issuesTypesTitles.recommendationDisregard}${p.localization.issuesTypesTitles.keyAndValueSeparator}`;break;default:t=`${t}${p.localization.issuesTypesTitles.other}${p.localization.issuesTypesTitles.keyAndValueSeparator}`}t=`${t}${e.message}`,r.push(t)}c.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:o,formattedErrorsAndWarnings:r.join("\n\n")}))})).catch((e=>{c.Logger.logError({errorType:c.DataRetrievingFailedError.localization.defaultTitle,...p.localization.validationFailedErrorLog,occurrenceLocation:"HTML_Validator.validateHTML(...parameters)",caughtError:e})}))}static getPredicatesForHTML_ValidationIssuesFiltering(){return[e=>"Attribute “webkitdirectory” not allowed on element “input” at this point."===e.message]}static isValidationMessageLocationObject(e){return(0,c.isArbitraryObject)(e)&&(0,c.isNotUndefined)(e.extract)&&(0,c.isNotUndefined)(e.lastLine)&&(0,c.isNotUndefined)(e.firstColumn)&&(0,c.isNotUndefined)(e.lastColumn)}}t.default=p},7623:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateFileIsEmptyWarningLog:e=>({title:"HTML code validation terminated",description:`File '${e.targetFileRelativePath}' is empty, no HTML to validate.`}),generateValidationStartedInfoLog:e=>({title:"HTML code validation started",description:`Begin the validation of HTML code in the file '${e.targetFileRelativePath}' ...`}),generateValidationFinishedWithNoIssuesFoundSuccessLog:e=>({title:"HTML validation finished",description:`File '${e.targetFileRelativePath}' is fully obeying to W3C rules and recommendations.\n${e.secondsElapsed} seconds elapsed.`}),issuesFoundNotification:{title:"HTML validation, issue(s) found",message:"W3C rules violations and / or recommendations neglect detected. Check the console for the details."},generateIssueOccurrenceLocationIndication:e=>`Line ${e.lineNumber}, columns ${e.startingColumnNumber}-${e.lastColumnNumber}`,issuesTypesTitles:{grossViolation:"Gross violation",recommendationDisregard:"Recommendation disregard",other:"Other issue",keyAndValueSeparator:": "},generateIssuesFoundErrorLog:e=>({customBadgeText:"HTML validation not passed",title:"HTML validation, issue(s) found",description:`File '${e.targetFileRelativePath}' is including the following HTML validity issues:\n\n${e.formattedErrorsAndWarnings}\n\n`}),validationFailedErrorLog:{title:"HTML validation failed",description:"The error occurred during HTML validation"}}},857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUnknownResourceGroupReferenceWarningLog:e=>({title:`Unknown reference to ${e.fileType__pluralForm} files group`,description:`The reference '${e.firstPathSegment}' in path '${e.pickedPathOfTargetResourceFile}' refers to unknown resources group. Below references are available for ${e.fileType__pluralForm} files: \n${e.formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap}`}),generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog:e=>({title:`Unknown path to ${e.fileType__singularForm} file`,description:`The aliased path '${e.pickedPathOfTargetResourceFile}' refers to unknown file. Tried to search at path with all supported filename extensions: ${e.checkedAbsolutePaths__formatted}.`}),generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog:e=>({title:`Unknown path to ${e.fileType__singularForm} file`,description:`No ${e.fileType__singularForm} output file has been found for specified source file path '${e.pickedPathOfTargetResourceFile}' including reference.`})}},7019:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(857)),r=o(i(8048)),n=o(i(5277)),a=i(1943),l=o(i(7803));class c{static localization=s.default;compiledHTML_File;HTML_FileContentCheerioCapturing;masterConfigRepresentative;actualPublicDirectoryAbsolutePath;static resolve(e,t){return new c(e,t).resolveInternalLinks().resolveStylesheetsPathsAliases().resoleScriptsPathsAliases().resolveImagesPathsAliases().resolveVideosPathsAliases().resolveAudiosPathsAliases().HTML_FileContentCheerioCapturing.html({decodeEntities:!1})}constructor(e,t){this.compiledHTML_File=e,this.HTML_FileContentCheerioCapturing=r.default.load((0,n.default)(e)),this.masterConfigRepresentative=t,this.actualPublicDirectoryAbsolutePath=t.markupProcessingSettingsRepresentative?.getAbsolutePublicPathIfMustToResolveReferencesToAbsolutePath()??null}resolveInternalLinks(){if((0,a.isUndefined)(this.masterConfigRepresentative.markupProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.markupProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("a"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfEntryPointsGroupReference,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByReferences,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resolveStylesheetsPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.stylesProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.stylesProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("link[rel='stylesheet']"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByPathAliases,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resoleScriptsPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("script"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.entryPointsGroupsNormalizedSettingsMappedByPathAliases,((e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.entryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveImagesPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.imagesProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.imagesProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("img"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}for(const t of Array.from(this.HTML_FileContentCheerioCapturing("picture>source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("srcset");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("srcset",this.buildResourceFileFinalPath(s))}for(const t of Array.from(this.HTML_FileContentCheerioCapturing("link[type='image/x-icon']"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("href");if((0,a.isUndefined)(o))continue;const s=this.resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,imagesProcessingConfigRepresentative:e});(0,a.isNull)(s)||i.attr("href",this.buildResourceFileFinalPath(s))}return this}resolveOutputImageFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,imagesProcessingConfigRepresentative:t}){return this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,prefixOfAliasOfTopDirectoryOfResourcesGroup:t.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(t.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:t.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:t.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:t.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM})}resolveVideosPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.videosProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.videosProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("video > source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if(!(0,a.isNonEmptyString)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveAudiosPathsAliases(){if((0,a.isUndefined)(this.masterConfigRepresentative.audiosProcessingSettingsRepresentative))return this;const e=this.masterConfigRepresentative.audiosProcessingSettingsRepresentative;for(const t of Array.from(this.HTML_FileContentCheerioCapturing("audio > source"))){const i=this.HTML_FileContentCheerioCapturing(t),o=i.attr("src");if((0,a.isUndefined)(o))continue;const s=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:o,prefixOfAliasOfTopDirectoryOfResourcesGroup:e.prefixOfAliasOfTopDirectoryOfEntryPointsGroup,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.createMapBasedOnOtherMap)(e.assetsGroupsNormalizedSettingsMappedByAssetAliases,((e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:e.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM});(0,a.isNull)(s)||i.attr("src",this.buildResourceFileFinalPath(s))}return this}resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,prefixOfAliasOfTopDirectoryOfResourcesGroup:t,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:i,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:o,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:s,fileTypeForLogging__pluralForm:r}){const n=l.default.splitPathToSegments(e),u=n[0];if((0,a.isUndefined)(u)||!u.startsWith(t))return null;const d=i.get(u);if((0,a.isUndefined)(d))return a.Logger.logWarning(c.localization.generateUnknownResourceGroupReferenceWarningLog({fileType__pluralForm:r,firstPathSegment:u,pickedPathOfTargetResourceFile:e,formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,a.stringifyAndFormatArbitraryValue)(Array.from(i.entries()))})),null;const p=l.default.joinPathSegments([d,...n.slice(1)],{forwardSlashOnlySeparators:!0}),g=l.default.extractLastFilenameExtensionWithoutFirstDot(p);if((0,a.isNull)(g)||!o.includes(g)){const t=o.map((e=>(0,a.getURI_PartWithoutFragment)((0,a.appendLastFileNameExtension)({targetPath:p,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1})))),i=(0,a.filterMap)(s,(e=>t.includes(e)));return 0===i.size?(a.Logger.logWarning(c.localization.generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r,checkedAbsolutePaths__formatted:(0,a.stringifyAndFormatArbitraryValue)(t)})),null):(0,a.appendFragmentToURI)({targetURI:Array.from(i.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,a.getURI_Fragment)({targetURI:p,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const f=s.get(p);return(0,a.isUndefined)(f)?(a.Logger.logWarning(c.localization.generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r})),null):f}buildResourceFileFinalPath(e){return(0,a.isNotNull)(this.actualPublicDirectoryAbsolutePath)?`/${l.default.computeRelativePath({basePath:this.actualPublicDirectoryAbsolutePath,comparedPath:e})}`:l.default.computeRelativePath({basePath:this.compiledHTML_File.outputDirectoryAbsolutePath,comparedPath:e})}}t.default=c},229:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8404)),r=o(i(2991)),n=o(i(6679)),a=o(i(9418)),l=i(1943),c=i(5577),u=o(i(7803)),d=o(i(4649));class p extends a.default{static localization=d.default;supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;markupProcessingSettings__fromFile__rawValid;static normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new p({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.markupProcessing}:null,markupProcessingSettings__fromFile__rawValid:e});return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,mustResolveResourcesReferencesToAbsolutePath:i.computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(),periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??n.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i.normalizeLintingSettings(),staticPreview:{stateDependentPagesVariationsSpecification:i.normalizeStaticPreviewStateDependentPageVariationsSpecification(),importsFromStaticDataFiles:i.normalizeImportsFromStaticDataFiles(),...i.normalizeImportsFromTypeScriptFiles()},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,p.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings),logging:i.normalizeLoggingSettings()}}constructor(e){super(e),this.markupProcessingSettings__fromFile__rawValid=e.markupProcessingSettings__fromFile__rawValid}computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(){const e=this.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[this.consumingProjectBuildingMode]?.mustResolveResourceReferencesToRelativePaths;return this.consumingProjectBuildingMode===r.default.staticPreview?(!1===e&&l.Logger.logWarning(p.localization.noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog),!1):(0,l.isUndefined)(e)?!(0,l.isUndefined)(this.actualPublicDirectoryAbsolutePath)||(l.Logger.logWarning(p.localization.generateUnableToResolveResourcesReferencesToAbsolutePathLog({consumingProjectBuildingMode:this.consumingProjectBuildingMode})),!1):!e}normalizeLintingSettings(){return(0,l.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting)?{mustExecute:this.markupProcessingSettings__fromFile__rawValid.linting.enable??n.default.linting.mustExecute,...(0,l.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath)?{presetFileAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath],{forwardSlashOnlySeparators:!0})}:null}:{mustExecute:n.default.linting.mustExecute}}normalizeStaticPreviewStateDependentPageVariationsSpecification(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.stateDependentPagesVariationsSpecificationFileRelativePath;if((0,l.isUndefined)(e)||this.consumingProjectBuildingMode!==r.default.staticPreview)return{};const t=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{forwardSlashOnlySeparators:!0});let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:t})}catch(e){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({customMessage:p.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage({staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath:t})}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)",wrappableError:e})}if(!(0,l.isArbitraryObject)(i))return l.Logger.logError({errorType:l.InvalidExternalDataError.NAME,title:l.InvalidExternalDataError.localization.defaultTitle,description:l.PoliteErrorsMessagesBuilder.buildMessage(p.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e,stringifiedRawData:(0,l.stringifyAndFormatArbitraryValue)(i),rawDataActualType:typeof i})),occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),{};const o={};for(const[t,s]of Object.entries(i)){const i=u.default.addFileNameExtensionIfNotPresent({targetFilePath:t,fileNameExtension:"pug"});(0,l.isArbitraryObject)(s)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e,invalidEntryKey:i,invalidEntryValueType:typeof s,invalidEntryStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(s)})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),(0,l.isNonEmptyString)(s.stateObjectTypeVariableName)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateVariableNameMessage({targetMarkupFileRelativePath:i,stringifiedValueOfSpecifiedVariableNameProperty:(0,l.stringifyAndFormatArbitraryValue)(s.stateObjectTypeVariableName),specifiedTypeOfVariableNameProperty:typeof s.stateObjectTypeVariableName})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),(0,l.isArbitraryObject)(s.variations)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateDependentVariationsSpecificationMessage({targetMarkupFileRelativePath:i,actualType:typeof s.variations,actualStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(s.variations)})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"});const r=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,i],{forwardSlashOnlySeparators:!0}),n={};for(const[e,t]of Object.entries(s.variations)){const o=`${u.default.removeFilenameExtensionFromPath(r)}${e}.pug`;(0,l.isArbitraryObject)(t)||l.Logger.throwErrorAndLog({errorInstance:new l.InvalidExternalDataError({customMessage:p.localization.generateInvalidPageStateVariableMessage({targetMarkupFileRelativePath:i,actualStringifiedValue:(0,l.stringifyAndFormatArbitraryValue)(t),actualType:typeof t})}),title:l.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewStateDependentPageVariationsSpecification(namedParameters)"}),n[o]=t}o[r]={stateVariableName:s.stateObjectTypeVariableName,derivedPagesAndStatesMap:n}}return o}normalizeImportsFromStaticDataFiles(){const e={};for(const t of this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromStaticDataFiles??[]){let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.fileRelativePath])})}catch(e){l.Logger.throwErrorAndLog({errorInstance:new l.FileReadingFailedError({filePath:t.fileRelativePath}),title:l.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.normalizeImportsFromStaticDataFiles()",wrappableError:e})}e[t.importedVariableName]=i}return e}normalizeImportsFromTypeScriptFiles(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromCompiledTypeScript;return(0,l.isUndefined)(e)?{}:{compiledTypeScriptImporting:{typeScriptConfigurationFileAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,(0,l.isNotUndefined)(e.typeScriptConfigurationFileRelativePath)?u.default.addFileNameExtensionIfNotPresent({targetFilePath:e.typeScriptConfigurationFileRelativePath,fileNameExtension:"json"}):n.default.staticPreview.typeScriptConfigurationFileRelativePath],{forwardSlashOnlySeparators:!0}),files:e.files.map((e=>{const t=u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{forwardSlashOnlySeparators:!0});return{sourceFileAbsolutePath:t,importedNamespace:e.importedNamespace,outputDirectoryAbsolutePath:u.default.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputDirectoryRelativePath],{forwardSlashOnlySeparators:!0}),outputFileNameWithoutExtension:e.customOutputFileNameWithoutLastExtension??u.default.extractFileNameWithoutExtensionFromPath(t)}}))}}}normalizeLoggingSettings(){return{filesPaths:this.markupProcessingSettings__fromFile__rawValid.logging?.filesPaths??n.default.logging.filesPaths,filesCount:this.markupProcessingSettings__fromFile__rawValid.logging?.filesCount??n.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:this.markupProcessingSettings__fromFile__rawValid.logging?.partialFilesAndParentEntryPointsCorrespondence??n.default.logging.partialFilesAndParentEntryPointsCorrespondence}}static completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings(e,t){return{...e,HTML_Validation:{mustExecute:!0!==t.HTML_Validation?.disable&&n.default.HTML_Validation.mustExecute},accessibilityInspection:{mustExecute:!0!==t.accessibilityInspection?.disable&&n.default.accessibilityInspection.mustExecute,standard:t.accessibilityInspection?.standard??n.default.accessibilityInspection.standard},mustConvertToHandlebarsOnNonStaticPreviewModes:t.convertToHandlebarsOnNonStaticPreviewModes??!1}}}t.default=p},4649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog:{title:"Redundant configuration detected",description:'For the static preview mode, the resources references could be resolved only to relative paths. You can safely remove "projectBuilding.markupProcessing.common.buildingModeDependent.STATIC_PREVIEW.mustResolveResourceReferencesToRelativePaths" specifying from the configuration.'},generateUnableToResolveResourcesReferencesToAbsolutePathLog:({consumingProjectBuildingMode:e})=>({title:"Unable to resolve the resources references to absolute paths",description:`The public directory ("projectBuilding.commonSettings.publicDirectoriesRelativePaths.[PROJECT_BUILDING_MODE]") that requires for resolving of resources references to absolute paths has not been specified for the "${e}" building mode. The resources references will be resolved to relative paths instead. If you wish these references be resolved to relative path, set "projectBuilding.markupProcessing.common.buildingModeDependent.[PROJECT_BUILDING_MODE].mustResolveResourceReferencesToRelativePaths" to true for the "${e}" building mode.`}),generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage:e=>`Failed to read the static preview state dependent pages variations specification file at '${e.staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath}'.`,generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog:e=>({technicalDetails:`The parsed YAML from static preview state dependent pages variations specification file '[ ProjectDirectory ]${e.staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath}'is not an ECMAScript 'object' and actually has type '${e.rawDataActualType}' and value:${e.stringifiedRawData}\n This data will be ignored.`,politeExplanation:`Reading and parsing of static preview state dependent pages variations specification file, we are expected it will has the object type as parsed YAML, the superset of JSON. Contrary to expectations, it has the '${e.stringifiedRawData}' type. We need to investigate it. We will keep the YDA running however we are sorry, but currently we are unable to inject above data to Pug files.`}),generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage:e=>`The static preview state dependent pages variations specification file ${e.staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath}is including the associative array with invalid value. The value respective to key '${e.invalidEntryKey}' must be the object with 'stateObjectTypeVariableName' and 'variations' properties while actually has type ${e.invalidEntryValueType} and value ${e.invalidEntryStringifiedValue}`,generateInvalidPageStateVariableNameMessage:e=>`Invalid page state variable name ('stateObjectTypeVariableName') has been specified for the markup file '${e.targetMarkupFileRelativePath}' in static preview state dependent pages variations specification file. This variable name must the non-empty string while actually has type '${e.specifiedTypeOfVariableNameProperty}' and value:\n ${e.stringifiedValueOfSpecifiedVariableNameProperty}`,generateInvalidPageStateDependentVariationsSpecificationMessage:e=>`Invalid state dependent page variations has been specified for the markup file '${e.targetMarkupFileRelativePath}'. It must be the associative array like object while actually has type '${e.actualType}' and value: ${e.actualStringifiedValue}`,generateInvalidPageStateVariableMessage:e=>`Invalid page state variable has been specified for the markup file '${e.targetMarkupFileRelativePath}'. It must be the object while actually has type '${e.actualType}' and value: ${e.actualStringifiedValue}`}},6496:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(173)),r=o(i(6300)),n=o(i(7038)),a=o(i(5277)),l=o(i(1921)),c=o(i(8456)),u=o(i(6247)),d=o(i(8783)),p=o(i(3994)),g=o(i(6553)),f=i(1943),m=o(i(7803));class h extends s.default{TASK_NAME_FOR_LOGGING;SUBTASK_NAME_FOR_LOGGING="Importing from TypeScript";markupProcessingSettingsRepresentative;webpackConfigurationForEachTypeScriptFile;hasFirstBuildCompleted=!1;static provideTypeScriptImportsForMarkupIfMust(e){if(!e.isStaticPreviewBuildingMode)return(0,r.default)();const t=e.markupProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,r.default)();const i=t.compiledTypeScriptImportingSettings;if((0,f.isUndefined)(i))return(0,r.default)();const o=new h(e,t,i);return e=>o.provideTypeScriptImports(e)}constructor(e,t,i){super(e),this.markupProcessingSettingsRepresentative=t,this.TASK_NAME_FOR_LOGGING=this.markupProcessingSettingsRepresentative.TASK_NAME_FOR_LOGGING;const o=g.default.readTypeScriptConfigurationFileAndGetCompilerOptions(i.typeScriptConfigurationFileAbsolutePath),s=d.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:o.paths,typeScriptBasicAbsolutePath:o.baseUrl??m.default.extractDirectoryFromFilePath(i.typeScriptConfigurationFileAbsolutePath)}),r=[];for(const e of i.files){const t=h.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({importFromCompiledTypeScriptFileSettings:e,consumingProjectRootDirectoryAbsolutePath:this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,webpackAliasesConfiguration:s});(0,f.isNotNull)(t)&&r.push(t)}this.webpackConfigurationForEachTypeScriptFile=r}provideTypeScriptImports(e){return n.default.src(this.markupProcessingSettingsRepresentative.importedTypeScriptSourceFilesAbsolutePaths).pipe(super.printProcessedFilesPathsAndQuantity({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe(super.handleErrorIfItWillOccur({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe((0,c.default)(this.webpackConfigurationForEachTypeScriptFile[0],null,this.onFirstBuildHasCompleted.bind(this))).pipe(l.default.modify({onStreamStartedEventCommonHandler:async e=>{const t=this.markupProcessingSettingsRepresentative.getTypeScriptImportingSettingsExpectedToExistForSpecificOutputJavaScriptFile(m.default.replacePathSeparatorsToForwardSlashes(e.path)).importedNamespace,i=(0,a.default)(e);return e.contents=Buffer.from(`-\n\t${i}\n\n\tconst ${t} = global.${t}.default;\n`),e.extname=".pug",Promise.resolve(l.default.CompletionSignals.PASSING_ON)}})).pipe(n.default.dest(this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath)).on("data",(()=>{this.hasFirstBuildCompleted&&e()}))}onFirstBuildHasCompleted(e,t){this.hasFirstBuildCompleted=!0,(0,f.isNeitherUndefinedNorNull)(e)||(0,f.isNotUndefined)(t)&&process.stdout.write(`${t.toString({colors:!0})}\n`)}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({importFromCompiledTypeScriptFileSettings:e,consumingProjectRootDirectoryAbsolutePath:t,webpackAliasesConfiguration:i}){const o=u.default.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({entryPointsGroupID:e.importedNamespace,sourceFilesGlobSelectors:[e.sourceFileAbsolutePath],webpackContext:t});return(0,f.isNull)(o)?null:{entry:o,output:{library:{type:"umd",name:e.importedNamespace},globalObject:"globalThis"},watch:!0,mode:"production",optimization:{minimize:!0},module:{rules:[{test:/\.ts$/u,loader:"ts-loader"}]},resolve:{extensions:[".ts",".js"],alias:i},resolveLoader:d.default.generateLoadersResolvingSettings(t),plugins:[new p.default]}}}t.default=h},9750:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1141)),r=o(i(7038)),n=o(i(9024)),a=o(i(6701)),l=o(i(7125)),c=o(i(1921)),u=o(i(6300)),d=i(5436),p=o(i(1508)),g=o(i(7147)),f=o(i(7803)),m=o(i(7184)),h=i(1943),P=o(i(8975)),S=i(5577),y=o(i(8326));class _ extends s.default{static localization=y.default;static LINTING_OPTIMIZATIONS_FILE_NAME_WITH_EXTENSION="MarkupLintingCache.json";static cachedLintingResultsFileContentSpecification={subtype:h.RawObjectDataProcessor.ObjectSubtypes.associativeArray,nameForLogging:"CachedMarkupLintingResultsFileContent",value:{type:Object,properties:{issues:{type:Array,required:!0,element:{type:Object,properties:{code:{type:String,required:!0,minimalCharactersCount:1},message:{type:String,required:!0,minimalCharactersCount:1},sourceListing:{type:String,required:!0},lineNumber:{type:Number,required:!0,numbersSet:h.RawObjectDataProcessor.NumbersSets.nonNegativeInteger},columnNumber:{type:Number,required:!1,numbersSet:h.RawObjectDataProcessor.NumbersSets.nonNegativeInteger}}}},modificationDatetime__ISO_8601:{type:String,required:!0,minimalCharactersCount:1}}}};static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;targetFilesGlobSelectors;TASK_NAME_FOR_LOGGING;SUBTASK_NAME_FOR_LOGGING="Markup linting";LINTER_NAME="Markup source files linter";pugLintInstance=new n.default;pugLintConfig;CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH;cachedLintingResults;static provideLintingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,h.isUndefined)(t))return(0,u.default)();const i=a.default.load();if((0,h.isUndefined)(i))return h.Logger.logError({errorType:h.ConfigFileNotFoundError.NAME,title:_.localization.pugLintFileNotFoundErrorLog.title,description:h.ConfigFileNotFoundError.localization.generateDescription({targetTechnologyName:"pug-lint",configFilePathOrMultipleOfThem:[".pug-lintrc",".pug-lintrc.js",".pug-lintrc.json","package.json[pugLintConfig]"],messageSpecificPart:_.localization.pugLintFileNotFoundErrorLog.pugLintConfigurationFileRequirementExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(masterConfigRepresentative)"}),(0,u.default)();const o=new _({masterConfigRepresentative:e,markupProcessingSettingsRepresentative:t,pugLintConfig:i});return o.lint(o.targetFilesGlobSelectors)}constructor({masterConfigRepresentative:e,markupProcessingSettingsRepresentative:t,pugLintConfig:i}){if(super(e),this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH=f.default.joinPathSegments([p.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.LINTING_OPTIMIZATIONS_FILE_NAME_WITH_EXTENSION],{forwardSlashOnlySeparators:!0}),g.default.existsSync(this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH))try{this.cachedLintingResults=S.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH,validDataSpecification:_.cachedLintingResultsFileContentSpecification})}catch(e){h.Logger.logError({errorType:h.InvalidExternalDataError.NAME,title:h.InvalidExternalDataError.localization.defaultTitle,description:h.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:h.InvalidExternalDataError.localization.generateDescription({mentionToExpectedData:_.cachedLintingResultsFileContentSpecification.nameForLogging}),politeExplanation:_.localization.invalidCachedLintingResultsDataErrorLog.politeExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideMarkupProcessingIfMust(masterConfigRepresentative)",caughtError:e}),this.cachedLintingResults={}}else this.cachedLintingResults={};this.targetFilesGlobSelectors=[m.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:["pug"]}),...(0,h.isNonEmptyArray)(i.excludeFiles)?i.excludeFiles.map((t=>m.default.buildAbsolutePathBasedGlob({isExclusive:!0,basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath,relativePathBasedGlob:t}))):[]],this.pugLintConfig=i;try{this.pugLintInstance.configure(this.pugLintConfig)}catch(e){h.Logger.throwErrorAndLog({errorInstance:new h.InvalidConfigError({customMessage:_.localization.pugLintConfigurationIsInvalid.description}),title:_.localization.pugLintConfigurationIsInvalid.title,occurrenceLocation:"MarkupSourceCodeLinter.provideMarkupProcessingIfMust(masterConfigRepresentative)",wrappableError:e})}this.TASK_NAME_FOR_LOGGING=t.TASK_NAME_FOR_LOGGING}lint(e){return 0===e.length?(0,u.default)():()=>r.default.src(e,{read:!1}).pipe(super.printProcessedFilesPathsAndQuantity({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe(super.handleErrorIfItWillOccur({subtaskName:this.SUBTASK_NAME_FOR_LOGGING})).pipe((0,l.default)((e=>this.hasLintingResultsBeenCachedForSpecificMarkupFile(e)),c.default.modify({onStreamStartedEventCommonHandler:async e=>{const t=f.default.computeRelativePath({comparedPath:e.path,basePath:this.masterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath});return e.lintingResults=this.cachedLintingResults[t]?.issues,Promise.resolve(c.default.CompletionSignals.PASSING_ON)}}),(0,d.obj)(c.default.modify({onStreamStartedEventCommonHandler:async e=>(e.contents=g.default.readFileSync(e.path),Promise.resolve(c.default.CompletionSignals.PASSING_ON))}),c.default.modify({onStreamStartedEventCommonHandler:async e=>{let t;try{t=this.pugLintInstance.checkFile(e.path).map((e=>({code:e.code,message:e.msg,sourceListing:e.src,lineNumber:e.line,columnNumber:e.column})))}catch(e){h.Logger.throwErrorAndLog({errorType:"MarkupLintingError",title:_.localization.pugLintingFailedErrorLog.title,description:h.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:_.localization.pugLintingFailedErrorLog.technicalDetails,politeExplanation:_.localization.pugLintingFailedErrorLog.politeExplanation}),occurrenceLocation:"markupSourceCodeLinter.lint()",wrappableError:e})}return e.lintingIssues=t,Promise.resolve(c.default.CompletionSignals.PASSING_ON)}}),c.default.modify({onStreamStartedEventCommonHandler:async e=>(this.cachedLintingResults[f.default.replacePathSeparatorsToForwardSlashes(e.relative)]={issues:e.lintingIssues,modificationDatetime__ISO_8601:e.stat?.mtime.toJSON()??(new Date).toISOString()},Promise.resolve(c.default.CompletionSignals.PASSING_ON))})))).on("end",(()=>{if(Object.values(this.cachedLintingResults).some((e=>(0,h.isNotUndefined)(e)&&e.issues.length>0))){const e=[];for(const[t,i]of Object.entries(this.cachedLintingResults))(0,h.isUndefined)(i)||0===i.issues.length||e.push(`■ ${t}: ${i.issues.length} issue(s)\n${_.formatIssuesOfSingleFile(i)}`);h.Logger.logErrorLikeMessage({title:"Markup linting, issue(s) found",description:`\n${e.join("\n\n")}`})}g.default.writeFileSync(this.CACHED_LINTING_RESULTS_FILE_ABSOLUTE_PATH,(0,h.stringifyAndFormatArbitraryValue)(this.cachedLintingResults))}))}hasLintingResultsBeenCachedForSpecificMarkupFile(e){return this.cachedLintingResults[f.default.replacePathSeparatorsToForwardSlashes(e.relative)]?.modificationDatetime__ISO_8601===e.stat?.mtime.toJSON()}static formatIssuesOfSingleFile(e){return e.issues.map((e=>`------------------------------------------------------------------------------------------------------\n${_.createExtractionFromCodeListingWithHighlightedIssueLine(e)}\n------------------------------------------------------------------------------------------------------\n${e.message} (${e.code})\nat line ${e.lineNumber}${(0,h.insertSubstring)(e.columnNumber,{modifier:e=>`, column ${e}`})}`)).join("\n\n")}static createExtractionFromCodeListingWithHighlightedIssueLine(e){const t=e.sourceListing.split("\n");if((0,h.isUndefined)(e.columnNumber))t[e.lineNumber-1]=h.Logger.highlightText(t[e.lineNumber-1]);else{const i=t[e.lineNumber-1],o=(0,P.default)(i,{startingSymbolNumber__numerationFrom1:e.columnNumber,lastSymbolNumber__numerationFrom0:i.length-1});t[e.lineNumber-1]=i.replace(o,h.Logger.highlightText(o))}let i=e.lineNumber-1-_.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING;i<0&&(i=0);let o=e.lineNumber+_.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING;return o>t.length&&(o=t.length),t.slice(i,o).join("\n")}}t.default=_},8326:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={pugLintFileNotFoundErrorLog:{title:"'pug-lint' configuration file not found",pugLintConfigurationFileRequirementExplanation:"Intended to be used for high quality web/native development, the markup source code linting is enabled by default. If you can not use it for some reason, disable it."},invalidCachedLintingResultsDataErrorLog:{politeExplanation:"The error has occurred during the parsing of the file with previous (cached) markup linting results. Of course the YDA developers has took care about written data matching with expected scheme, however this bug occurrence means that some combination of conditions was not taken into account."},pugLintConfigurationIsInvalid:{title:"'pug-lint' configuration is invalid",description:"The 'pug-lint' utility has not accepted the specified configuration."},pugLintingFailedErrorLog:{title:"Markup linting error",technicalDetails:"The error occurred during execution of 'pugLintInstance.checkFile(filePath)'",politeExplanation:"The Pug linter has thrown the error under unknown for YDA developers combination of conditions."}}},3813:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static normalizeSyntax(e){Buffer.isBuffer(e.contents)&&(e.contents=Buffer.from(e.contents.toString().replaceAll("@media container and","@container")))}}},9217:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8680)),r=o(i(9126)),n=o(i(8592)),a=o(i(9418)),l=i(1943),c=o(i(7803));class u extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=(0,l.isUndefined)(e.linting)?{isCompletelyDisabled:!r.default.linting.mustExecute}:{isCompletelyDisabled:!0===e.linting.enable||!r.default.linting.mustExecute,...(0,l.isNotUndefined)(e.linting.presetFileRelativePath)?{presetFileAbsolutePath:c.default.joinPathSegments([t.projectRootDirectoryAbsolutePath,n.default.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION],{forwardSlashOnlySeparators:!0})}:null},o=new u({projectBuildingCommonSettings__normalized:t,...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.stylesProcessing}:{},lintingCommonSettings:i});return{common:{supportedSourceFileNameExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,waitingForSubsequentFilesWillBeSavedPeriod__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i,entryPointsGroupsActualForCurrentProjectBuildingMode:o.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,o.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings.bind(o))}}constructor(e){super(e)}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings(e,t){return{...e,entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML:`${r.default.entryPointsGroupReferencePrefix}${t.customReferenceName??e.ID}`,revisioning:{mustExecute:!0!==t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.disable&&r.default.revisioning.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode}),contentHashPostfixSeparator:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning?.contentHashPostfixSeparator??r.default.revisioning.contentHashPostfixSeparator}}}}t.default=u},8680:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.supportedSourceFilesNamesExtensionsWithoutLeadingDots=["styl","stylus"],e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["css"]}(i||(i={})),t.default=i},8962:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(6434)),r=o(i(1083)),n=i(1943),a=o(i(7803));class l extends s.default{static#e={targetFilesType:{singularForm:"stylesheet",pluralForm:"stylesheets"},errorsMessagesData:{unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing:{generateTechnicalDetails:({filePath:e})=>`Unable to decide must file '${e}' be processed by Stylus pre-processor or not because this \nfile has no filename extension.`,generatePoliteExplanation:({filePath:e})=>`The styles processor tried to check must file with path ${e} be processed by Stylus pre-processor or no. To check this, it is required to confirm the filename extension, but name of target file has no extension. During normal operation, only files with appropriate filename extensions being included to selection which will be processed while this time file without filename extension has been included to selection. It means we missed something when developed the algorithm or logic mistake in code was made.`}},warningsData:{noRelevantEntryPointsSettings:{title:"Styles processing idle",generateDescription:({projectBuildingMode:e})=>`No styles processing settings has been specified for project building mode '${e}'and/or current selective execution.`}}};supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM=l.#e.targetFilesType.singularForm;TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM=l.#e.targetFilesType.pluralForm;waitingForTheOtherFilesWillBeSavedPeriod__seconds;prefixOfAliasOfTopDirectoryOfEntryPointsGroup="@";sourceCodeLintingCommonSettings;sourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map;relevantEntryPointsGroupsSettings;sourceCodeProcessingCommonSettings;static mustFileBeProcessedByStylus(e){const t=a.default.extractLastFilenameExtensionWithoutFirstDot(e);return(0,n.isNull)(t)&&n.Logger.throwErrorAndLog({errorInstance:new n.UnexpectedEventError(n.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:l.#e.errorsMessagesData.unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing.generateTechnicalDetails({filePath:e}),politeExplanation:l.#e.errorsMessagesData.unableToDecideMustFileBePrecessedByStylusPreProcessorBecauseFileNameExtensionIsMissing.generatePoliteExplanation({filePath:e})})),occurrenceLocation:"StylesProcessingSettingsRepresentative.mustFileBeProcessedByStylus(targetFilePath)",title:n.UnexpectedEventError.localization.defaultTitle}),r.default.supportedFileNamesExtensionsWithoutPrependedDots.includes(t)}constructor(e,t){super({masterConfigRepresentative:t,mustLogPartialFilesAndEntryPointsRelationsMap:!1}),this.sourceCodeProcessingCommonSettings=e.common,this.sourceCodeLintingCommonSettings=e.linting,this.relevantEntryPointsGroupsSettings=e.entryPointsGroupsActualForCurrentProjectBuildingMode,0===this.relevantEntryPointsGroupsSettings.size&&n.Logger.logWarning({title:l.#e.warningsData.noRelevantEntryPointsSettings.title,description:l.#e.warningsData.noRelevantEntryPointsSettings.generateDescription({projectBuildingMode:this.masterConfigRepresentative.consumingProjectBuildingMode})}),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedSourceFileNameExtensionsWithoutLeadingDots,this.waitingForTheOtherFilesWillBeSavedPeriod__seconds=e.common.waitingForSubsequentFilesWillBeSavedPeriod__seconds,super.initializeOrUpdatePartialFilesAndEntryPointsRelationsMap()}get entryPointsGroupsNormalizedSettingsMappedByPathAliases(){return new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map((e=>[e.entryPointsSourceFilesTopDirectoryOrSingleFilePathAliasForReferencingFromHTML,e])))}}t.default=l},9126:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,entryPointsGroupReferencePrefix:"@",revisioning:{mustExecute:e=>e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0}};t.default=r},9018:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2991)),r=i(1943);var n;!function(e){e.getLocalizedPropertiesSpecification=function({stylesProcessingLocalization:e,sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification:t,consumingProjectLocalizedPreDefinedBuildingModes:i,revisioningPropertiesLocalizedSpecification:o,lintingCommonSettingsLocalizedPropertiesSpecification:n}){return{[e.common.KEY]:{newName:"common",preValidationModifications:r.nullToUndefined,type:Object,required:!1,properties:{[e.common.periodBetweenFileUpdatingAndRebuildingStarting__seconds.KEY]:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,required:!1,numbersSet:r.RawObjectDataProcessor.NumbersSets.naturalNumber}}},[e.linting.KEY]:{newName:"linting",preValidationModifications:r.nullToUndefined,type:Object,required:!1,properties:n},[e.entryPointsGroups.KEY]:{newName:"entryPointsGroups",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,value:{type:Object,properties:{...t,[e.entryPointsGroups.customReferenceName.KEY]:{newName:"customReferenceName",type:String,required:!1,minimalCharactersCount:1},[e.entryPointsGroups.buildingModeDependent.KEY]:{newName:"buildingModeDependent",preValidationModifications:r.nullToUndefined,type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,required:!0,allowedKeys:Object.values(s.default),minimalEntriesCount:1,keysRenamings:{[i.localDevelopment]:s.default.staticPreview,[i.localDevelopment]:s.default.localDevelopment,[i.testing]:s.default.testing,[i.staging]:s.default.staging,[i.production]:s.default.production},value:{type:Object,properties:{[e.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]:{newName:"outputTopDirectoryRelativePath",type:String,required:!0},[e.entryPointsGroups.buildingModeDependent.revisioning.KEY]:{newName:"revisioning",type:Object,required:!1,properties:o}}}}}}}}}}(n||(n={})),t.default=n},7678:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StylesProcessor=void 0;const s=o(i(8962)),r=o(i(4079)),n=o(i(7038)),a=o(i(7125)),l=o(i(9952)),c=o(i(8103)),u=o(i(9289)),d=o(i(778)),p=o(i(796)),g=o(i(3506)),f=o(i(4779)),m=o(i(1921)),h=o(i(3813)),P=i(2781),S=i(1943),y=o(i(7803));class _ extends r.default{TASK_NAME_FOR_LOGGING="Styles processing";stylesProcessingConfigRepresentative;static provideStylesProcessingIfMust(e){const t=e.stylesProcessingSettingsRepresentative;if((0,S.isUndefined)(t))return()=>(new P.PassThrough).end();const i=new _(e,t);return(e.isStaticPreviewBuildingMode||e.isLocalDevelopmentBuildingMode)&&(i.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors(),i.initializeOrUpdateWatchedSourceFilesGlobSelectors(),i.initializeOrUpdateSourceFilesWatcher()),i.processEntryPoints(t.relevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super(e,t),this.stylesProcessingConfigRepresentative=t}processEntryPoints(e){return 0===e.length?()=>(new P.PassThrough).end():()=>n.default.src(e).pipe(super.printProcessedFilesPathsAndQuantity()).pipe(super.handleErrorIfItWillOccur()).pipe((0,l.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).pipe((0,a.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,c.default.init())).pipe((0,a.default)((e=>e.mustBeProcessedByStylus),(0,u.default)({"include css":!0}))).pipe((0,d.default)((()=>({plugins:[p.default,(0,g.default)({preset:["default",{normalizeWhitespace:!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,discardComments:!this.masterConfigRepresentative.isStaticPreviewBuildingMode&&!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode}]})]})))).pipe(m.default.modify({onStreamStartedEventCommonHandler:async e=>(h.default.normalizeSyntax(e),Promise.resolve(m.default.CompletionSignals.PASSING_ON))})).pipe((0,a.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode||this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,c.default.write())).pipe((0,l.default)(this.onPostProcessedCode.bind(this))).pipe(n.default.dest((e=>e.outputDirectoryAbsolutePath)))}addActualSourceCodeProcessingSettingsToVinylFile(e){const t=this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path);return e.processingSettings=t,e.sourceAbsolutePath=y.default.replacePathSeparatorsToForwardSlashes(e.path),e.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e.path,t),e.mustBeProcessedByStylus=s.default.mustFileBeProcessedByStylus(e.path),e}onPostProcessedCode(e){const t=e;return t.processingSettings.revisioning.mustExecute&&f.default.appendPostfixIfPossible(t,{contentHashPostfixSeparator:t.processingSettings.revisioning.contentHashPostfixSeparator}),this.stylesProcessingConfigRepresentative.sourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(y.default.replacePathSeparatorsToForwardSlashes(t.sourceAbsolutePath),y.default.joinPathSegments([t.outputDirectoryAbsolutePath,t.basename],{forwardSlashOnlySeparators:!0})),t}}t.StylesProcessor=_,t.default=_},3918:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(3127));class r{static localization=s.default;static getEventNameInterpretation(e){switch(e){case r.EventsNames.fileAdded:return r.localization.eventsNamesInterpretations.fileAdded;case r.EventsNames.fileChanged:return r.localization.eventsNamesInterpretations.fileChanged;case r.EventsNames.fileDeleted:return r.localization.eventsNamesInterpretations.fileDeleted;case r.EventsNames.directoryAdded:return r.localization.eventsNamesInterpretations.directoryAdded;case r.EventsNames.directoryDeleted:return r.localization.eventsNamesInterpretations.fileDeleted;case r.EventsNames.errorOccurred:return r.localization.eventsNamesInterpretations.errorOccurred;case r.EventsNames.initialScanComplete:return r.localization.eventsNamesInterpretations.initialScanComplete;default:return e}}}!function(e){let t;!function(e){e.fileAdded="add",e.fileChanged="change",e.fileDeleted="unlink",e.directoryAdded="addDir",e.directoryDeleted="unlinkDir",e.errorOccurred="error",e.initialScanComplete="ready"}(t=e.EventsNames||(e.EventsNames={}))}(r||(r={})),t.default=r},3127:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={eventsNamesInterpretations:{fileAdded:"File has been added",fileChanged:"File has changed",fileDeleted:"File has been deleted",directoryAdded:"Directory has been added",directoryDeleted:"Directory has been deleted",errorOccurred:"Error occurred",initialScanComplete:"Initial scan complete"}}},723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static supportedFileNamesExtensionsWithoutPrependedDots=["pug"];static partialFilesIncludingDeclarationPatterns=[/^ *(?:include|extends) +(?<filePath>(?:\w|-|\.|\/)+) *$/gmu];static implicitFileNamesExtensionsWithoutPrependedDotsOfPartials=["pug"]}},8592:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION=".stlintrc"}(i||(i={})),t.default=i},1083:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static supportedFileNamesExtensionsWithoutPrependedDots=["styl","stylus"];static partialFilesIncludingDeclarationPatterns=[/^ *@(?:import|require) +['"](?<filePath>(?:\w|-|\.|\/)+?)['"] *;? *$/gmu];static implicitFileNamesExtensionsWithoutPrependedDotsOfPartials=["styl","stylus","css"]}},6553:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4007)),r=i(1943),n=o(i(7803));t.default=class{static readTypeScriptConfigurationFileAndGetCompilerOptions(e){let t,i;try{t=s.default.readConfigFile(e,(e=>s.default.sys.readFile(e)))}catch(t){r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:t})}(0,r.isNotUndefined)(t.error)&&r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:(0,r.isNonEmptyString)(t.error.messageText)?t.error.messageText:t.error.messageText.messageText}),(0,r.isArbitraryObject)(t.config)&&"compilerOptions"in t.config||r.Logger.throwErrorAndLog({errorInstance:new r.InvalidConfigError({mentionToConfig:`TypeScript (${e})`}),title:r.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)"});try{i=s.default.convertCompilerOptionsFromJson(t.config.compilerOptions,n.default.extractDirectoryFromFilePath(e))}catch(t){r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:t})}return i.errors.length>0&&r.Logger.throwErrorAndLog({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",wrappableError:i.errors.map((e=>(0,r.isNonEmptyString)(e.messageText)?e.messageText:e.messageText.messageText)).join("\n")}),i.options}}},8783:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(5577);class s{static convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptBasicAbsolutePath:e,typeScriptPathsSettings:t}){const i={};for(const[s,r]of Object.entries(t??{}))i[s.endsWith("/*")?s.slice(0,-"/*".length):s]=r.map((t=>o.ImprovedPath.joinPathSegments([e,...t.endsWith("/*")?[t.slice(0,-"/*".length)]:[t]],{alwaysForwardSlashSeparators:!0})));return i}static generateLoadersResolvingSettings(e){return{modules:[o.ImprovedPath.joinPathSegments([e,"node_modules"],{alwaysForwardSlashSeparators:!0}),o.ImprovedPath.joinPathSegments([__dirname,"node_modules"],{alwaysForwardSlashSeparators:!0})]}}}!function(e){let t,i,o;!function(e){e.development="development",e.production="production",e.none="none"}(t=e.BuildingModes||(e.BuildingModes={})),function(e){e.eval="eval",e.evalCheapSourceMap="eval-cheap-source-map",e.evalCheapModuleSourceMap="eval-cheap-module-source-map",e.evalSourceMap="eval-source-map",e.evalNoSourcesSourceMap="eval-nosources-source-map",e.evalNoSourcesCheapSourceMap="eval-nosources-cheap-source-map",e.evalNoSourcesCheapModuleSourceMap="eval-nosources-cheap-module-source-map",e.cheapSourceMap="cheap-source-map",e.cheapModuleSourceMap="cheap-module-source-map",e.inlineCheapSourceMap="inline-cheap-source-map",e.inlineCheapModuleSourceMap="inline-cheap-module-source-map",e.inlineSourceMap="inline-source-map",e.inlineNoSourcesSourceMap="inline-nosources-source-map",e.inlineNosourcesCheapSourceMap="inline-nosources-cheap-source-map",e.inlineNoSourcesCheapModuleSourceMap="inline-nosources-cheap-module-source-map",e.sourceMap="source-map",e.hiddenSourceMap="hidden-source-map",e.hiddenNoSourcesSourceMap="hidden-nosources-source-map",e.hiddenNoSourcesCheapSourceMap="hidden-nosources-cheap-source-map",e.hiddenNoSourcesCheapModuleSourceMap="hidden-nosources-cheap-module-source-map",e.hiddenCheapSourceMap="hidden-cheap-source-map",e.hiddenCheapModuleSourceMap="hidden-cheap-module-source-map",e.noSourcesSourceMap="nosources-source-map",e.noSourcesCheapSourceMap="nosources-cheap-source-map",e.noSourcesCheapModuleSourceMap="nosources-cheap-module-source-map"}(i=e.BuildInSourceMapsTypes||(e.BuildInSourceMapsTypes={})),function(e){e.webBrowser="web",e.webWorker="webworker"}(o=e.BuildingTargets||(e.BuildingTargets={}))}(s||(s={})),t.default=s},7184:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4230)),r=o(i(6828)),n=i(1943),a=o(i(603));class l{static getFilesAbsolutePathsSynchronously(e){const t=[],i=[];for(const o of e)l.isExcludingGlobSelector(o)?i.push((0,n.replaceDoubleBackslashesWithForwardSlashes)(o)):t.push((0,n.replaceDoubleBackslashesWithForwardSlashes)(o));const o=[];for(const e of t)o.push(...s.default.sync(e,{ignore:i.map((e=>(0,n.removeNthCharacter)(e,{targetCharacterNumber:1,numerationFrom:1})))}));return o}static isFileMatchingWithGlobSelector(e){return(0,r.default)(e.filePath,e.globSelector)}static isFileMatchingWithAllGlobSelectors(e){for(const t of e.globSelectors)if(!(0,r.default)(e.filePath,t))return!1;return!0}static buildAllFilesInCurrentDirectoryButNotBelowGlobSelector(e){return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/*${l.createMultipleFilenameExtensionsGlobPostfix(e.fileNamesExtensions)}`)}static buildAllFilesInCurrentDirectoryAndBelowGlobSelector(e){const t=e.fileNamesExtensions??[];return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/**${(0,n.insertSubstringIf)(l.createMultipleFilenameExtensionsGlobPostfix(t),t.length>0)}`)}static buildExcludingOfDirectoryAndSubdirectoriesGlobSelector(e){return(0,n.replaceDoubleBackslashesWithForwardSlashes)(`!${(0,a.default)(e,{leading:!1,trailing:!0})}/**/**`)}static buildExcludingOfFilesWithSpecificPrefixesGlobSelector(e){return 0===e.filesNamesPrefixes.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.filesNamesPrefixes",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'filesNamesPrefixes'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector(parametersObject)"}),0===e.filesNamesExtensions.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.filesNamesExtensions",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'filesNamesExtensions'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)(`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/@(${e.filesNamesPrefixes.join("|")})**${l.createMultipleFilenameExtensionsGlobPostfix(e.filesNamesExtensions)}`)}static buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector(e){return 0===e.subdirectoriesPrefixes.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.subdirectoriesPrefixes",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'subdirectoriesPrefixes'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)([`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/`,`@(${e.subdirectoriesPrefixes.join("|")})**/**/**`,...(0,n.isNotUndefined)(e.filesNamesExtensions)&&e.filesNamesExtensions.length>0?`${l.createMultipleFilenameExtensionsGlobPostfix(e.filesNamesExtensions)}`:[]].join(""))}static buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector(e){return 0===e.subdirectoriesNames.length&&n.Logger.throwErrorAndLog({errorInstance:new n.InvalidParameterValueError({parameterName:"parametersObject.subdirectoriesNames",parameterNumber:1,messageSpecificPart:"If must be define at leas element of 'subdirectoriesNames'."}),title:n.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"ImprovedGlob.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector(parametersObject)"}),(0,n.replaceDoubleBackslashesWithForwardSlashes)([`!${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/**/`,`@(${e.subdirectoriesNames.join("|")})/**/**`,...(0,n.isNotUndefined)(e.filenamesExtensions)&&e.filenamesExtensions.length>0?`${l.createMultipleFilenameExtensionsGlobPostfix(e.filenamesExtensions)}`:[]].join(""))}static createMultipleFilenameExtensionsGlobPostfix(e){return`.@(${e.join("|").replace(/\./gu,"")})`}static buildAbsolutePathBasedGlob(e){return`${(0,n.insertSubstringIf)("!",!0===e.isExclusive)}${(0,a.default)(e.basicDirectoryPath,{leading:!1,trailing:!0})}/${(0,a.default)(e.relativePathBasedGlob,{leading:!0,trailing:!0})}`}static isExcludingGlobSelector(e){return 0!==e.length&&e.startsWith("!")}}t.default=l},7803:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(1017)),r=i(1943);class n{static parsePath(e,t){const i=s.default.parse(e),o=!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(i.root):i.root,n=!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(i.dir):i.dir,a=i.base.split(".");let l,c;return a[0].length>0?(l=a[0],c=a.slice(1)):c=a,{...o.length>0?{root:o}:null,getRootWhichExpectedBeDefined(){if((0,r.isString)(this.root))return this.root;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that root in the path '${e}' to be defined, but actually it is undefined.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getRootWhichExpectedBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...n.length>0?{directory:n}:null,getDirectoryWhichExpectedBeDefined(){if((0,r.isString)(this.directory))return this.directory;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that directory in the path '${e}' to be defined, but actually it is undefined.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getDirectoryWhichExpectedBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...(0,r.isString)(l)?{filenameWithoutExtension:l}:null,getFilenameWithoutExtensionWhichExpectedToBeDefined(){if((0,r.isString)(this.filenameWithoutExtension))return this.filenameWithoutExtension;r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that file name without extension in '${e}' to be defined, but actually there is extension without file name.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameWithoutExtensionWhichExpectedToBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle})},...Array.isArray(c)?{filenameExtensionsList:c,filenameExtensions:`.${c.join(".")}`}:null,getFilenameExtensionWithoutLeadingDotWhichExpectedToBeDefinedAndSingle(){return(0,r.isUndefined)(this.filenameExtensionsList)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that path '${e}' end with filename with extension, however it has not filename extension.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameExtensionWithoutLeadingDotWhichExpectedToBeDefinedAndSingle()",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList.length>1&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename in path '${e}' has single filename extension, but is has multiple of them.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).filenameExtensionWithoutLeadingDot__mustBeDefinedAndSingle",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList[0]},getFilenameExtensionWithLeadingDotWhichExpectedBeDefinedAndSingle(){return(0,r.isUndefined)(this.filenameExtensionsList)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that path '${e}' end with filename with extension, however it has not filename extension.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameExtensionWithLeadingDotWhichExpectedBeDefinedAndSingle()",title:r.UnexpectedEventError.localization.defaultTitle}),this.filenameExtensionsList.length>1&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename in path '${e}' has single filename extension, but is has multiple of them.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).filenameExtensionWithLeadingDot__mustBeDefinedAndSingle",title:r.UnexpectedEventError.localization.defaultTitle}),`.${this.filenameExtensionsList[0]}`},get filenameWithExtension(){let e=(0,r.undefinedToEmptyString)(this.filenameWithoutExtension);const t=this.filenameExtensionsList;return(0,r.isNonEmptyArray)(t)&&(e=`${e}.${t.join(".")}`),e.length>0?e:void 0},getFilenameWithExtensionWhichExpectedToBeDefined(){const t=this.filenameWithExtension;return(0,r.isUndefined)(t)&&r.Logger.throwErrorAndLog({errorInstance:new r.UnexpectedEventError(`Expected that filename and/or extension is being defined in '${e}' however both is not being.`),occurrenceLocation:"ImprovedPath.parsePath(targetPath, options).getFilenameWithExtensionWhichExpectedToBeDefined()",title:r.UnexpectedEventError.localization.defaultTitle}),t}}}static replacePathSeparatorsToForwardSlashes(e){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(e)}static hasFilenameExtension(e){return s.default.extname(e).length>0}static computeRelativePath(e){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.relative(e.basePath,e.comparedPath))}static joinPathSegments(e,t){return!0===t?.forwardSlashOnlySeparators?(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.join(...e)):s.default.join(...e)}static splitPathToSegments(e){return s.default.normalize(e).split(s.default.sep)}static extractFileNameWithExtensionFromPath(e){return s.default.basename(e)}static extractFileNameWithoutExtensionFromPath(e){return s.default.parse(e).name}static extractDirectoryFromFilePath(e){return null!==n.extractLastFilenameExtensionBeginsFromDot(e)?(0,r.replaceDoubleBackslashesWithForwardSlashes)(s.default.parse(e).dir):e}static extractLastFilenameExtensionBeginsFromDot(e){return 0===s.default.extname(e).length?null:s.default.extname(e)}static extractLastFilenameExtensionWithoutFirstDot(e){const t=s.default.extname(e);return 0===t.length?null:(0,r.getURI_PartWithoutFragment)(t.substring(1))}static removeFilenameExtensionFromPath(e){const t=s.default.extname(e);return 0===t.length?e:e.replace(new RegExp(`${t}$`,"u"),"")}static removeSegmentsFromPath(e,t){const i=n.splitPathToSegments(e);return(0,r.removeArrayElementsByPredicates)({targetArray:i,predicate:e=>t.includes(e),mutably:!0}),n.joinPathSegments(i,{forwardSlashOnlySeparators:!0})}static isFilenameExtensionIs(e,t){let i;i=(0,r.isString)(t)?[t]:t;const o=n.extractLastFilenameExtensionWithoutFirstDot(e);return null!==o&&(i.forEach(((e,t)=>{/^./u.test(e)&&(i[t]=e.substring(1))})),i.includes(o))}static getCurrentWorkDirectory(){return(0,r.replaceDoubleBackslashesWithForwardSlashes)(process.cwd())}static addFileNameExtensionIfNotPresent({targetFilePath:e,fileNameExtension:t}){return n.hasFilenameExtension(e)?e:`${e}.${(0,r.removeSpecificCharacterFromCertainPosition)({targetString:t,fromFirstPosition:!0,targetCharacter:"."})}`}}t.default=n},2076:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=class{activationUnixTimestamp__milliseconds=0;deactivationUnixTimestamp__milliseconds=0;startOrRestart(){return 0===this.activationUnixTimestamp__milliseconds&&(this.activationUnixTimestamp__milliseconds=Date.now()),this}stop(){this.deactivationUnixTimestamp__milliseconds=Date.now();const e=this.deactivationUnixTimestamp__milliseconds-this.activationUnixTimestamp__milliseconds;return{seconds:(0,o.millisecondsToSeconds)(e),milliseconds:e}}reset(){this.activationUnixTimestamp__milliseconds=0,this.deactivationUnixTimestamp__milliseconds=0}}},8975:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=function(e,t){let i,s;return"startingSymbolNumber__numerationFrom0"in t?!0===t.fromEnd?(Number.isInteger(t.startingSymbolNumber__numerationFrom0)||o.Logger.throwErrorAndLog({errorInstance:new o.InvalidParameterValueError({customMessage:`'options.startingSymbolNumber__numerationFrom0'は整数であるべきが、実際の値は${t.startingSymbolNumber__numerationFrom0}と成っている。`}),occurrenceLocation:"extractSubstring(targetString, options)",title:o.InvalidParameterValueError.localization.defaultTitle}),i=e.length-t.startingSymbolNumber__numerationFrom0):i=t.startingSymbolNumber__numerationFrom0:i=!0===t.fromEnd?e.length-t.startingSymbolNumber__numerationFrom1-1:t.startingSymbolNumber__numerationFrom1-1,s="lastSymbolNumber__numerationFrom1"in t?!0===t.fromEnd?e.length-t.lastSymbolNumber__numerationFrom1:t.lastSymbolNumber__numerationFrom1:"lastSymbolNumber__numerationFrom0"in t?!0===t.fromEnd?e.length-t.lastSymbolNumber__numerationFrom0-1:t.lastSymbolNumber__numerationFrom0+1:!0===t.fromEnd?i-t.substringLength:i+t.substringLength,Array.from(e).slice(i,s).join("")}},603:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(1943);t.default=function(e,t){let i=e;return t.leading&&i.startsWith("/")&&(i=(0,o.removeNthCharacter)(i,{targetCharacterNumber:0,numerationFrom:0})),t.trailing&&i.endsWith("/")&&(i=(0,o.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"/",fromLastPosition:!0})),i}},1508:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(7803)),r=o(i(7147)),n=i(1943);class a{static DOT_YDA_DIRECTORY_NAME=".yda";static TEMPORARY_FILES_SUBDIRECTORY_NAME="Temporary";static OPTIMIZATION_FILES_SUBDIRECTORY_NAME="Optimizations";static GIT_IGNORE_FILE_NAME=".gitignore";static selfSoleInstance=null;DOT_YDA_DIRECTORY_ABSOLUTE_PATH;TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH;OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH;GIT_IGNORE_FILE_ABSOLUTE_PATH;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;static unrollDotYDA_Directory(e){(0,n.isNotNull)(a.selfSoleInstance)&&n.Logger.throwErrorAndLog({errorInstance:new n.ClassRedundantSubsequentInitializationError({className:"DotYDA_DirectoryManager"}),title:n.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.unrollDotYDA_Directory(consumingProjectRootDirectoryAbsolutePath)"});const t=new a(e);r.default.existsSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH)||r.default.mkdirSync(t.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.existsSync(t.GIT_IGNORE_FILE_ABSOLUTE_PATH)||r.default.writeFileSync(t.GIT_IGNORE_FILE_ABSOLUTE_PATH,`/${a.TEMPORARY_FILES_SUBDIRECTORY_NAME}/`),a.selfSoleInstance=t}constructor(e){this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e,this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,a.DOT_YDA_DIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.TEMPORARY_FILES_SUBDIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.OPTIMIZATION_FILES_SUBDIRECTORY_NAME],{forwardSlashOnlySeparators:!0}),this.GIT_IGNORE_FILE_ABSOLUTE_PATH=s.default.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,a.GIT_IGNORE_FILE_NAME],{forwardSlashOnlySeparators:!0})}static get DOT_YDA_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().DOT_YDA_DIRECTORY_ABSOLUTE_PATH}static get TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH}static get OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH(){return a.getExpectedToBeInitializedSelfSoleInstance().OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH}static getExpectedToBeInitializedSelfSoleInstance(){return(0,n.isNull)(a.selfSoleInstance)&&n.Logger.throwErrorAndLog({errorInstance:new n.ClassRequiredInitializationHasNotBeenExecutedError({className:"DotYDA_DirectoryManager",initializingMethodName:"unrollDotYDA_Directory"}),title:n.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.getExpectedToBeInitializedSelfSoleInstance()"}),a.selfSoleInstance}}t.default=a},4779:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(1943),r=o(i(7804));t.default=class{static appendPostfixIfPossible(e,t){(0,s.isNull)(e.contents)?s.Logger.logWarning({title:"Unable to add revision hash",description:`The 'content' property of Target Vinyl file '${e.path}' is null.`}):(e.contents instanceof Buffer||s.Logger.throwErrorAndLog({errorInstance:new s.UnexpectedEventError(`The 'contents' property of target Vynil file '${e.path}' is not an instance of 'Buffer'.Because usually it is the instance of Buffer, explorations are required.`),title:s.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"FileNameRevisionPostfixer.appendPostfixIfPossible(targetFile, options)",additionalData:e}),e.stem=`${e.stem}${t.contentHashPostfixSeparator}${(0,r.default)(e.contents)}`)}}},1921:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(2781)),r=o(i(4648)),n=i(1943);class a{static modify(e){return new s.default.Transform({objectMode:!0,transform(t,i,o){r.default.isVinyl(t)||n.Logger.throwErrorAndLog({errorInstance:new n.UnexpectedEventError(n.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:'The "chunk" parameter is not an instance of Vinyl file',politeExplanation:'According official TypeScript types definitions, the second parameter of native "stream.TransformOptions.transform" method has "any" type. Using it with Gulp, we are expected that "chunk" could be only Vinyl file instances and during tests is was such as. However, this time, it is not the instance of Vinyl file. We need to investigate it and decide what to do with it.'})),title:n.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modify(namedParameters)",additionalData:{chunk:t}});const s=e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)},l=t;let c=!1;for(const[t,i]of e.onStreamStartedEventHandlersForSpecificFileTypes??new Map)l instanceof t&&(c=!0,i(l,s).then((e=>{switch(e){case a.CompletionSignals.PASSING_ON:o(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:o()}})).catch((e=>{o(e)})));if(!c){if((0,n.isUndefined)(e.onStreamStartedEventCommonHandler))return void o(null,l);e.onStreamStartedEventCommonHandler(l,s).then((e=>{switch(e){case a.CompletionSignals.PASSING_ON:o(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:o()}})).catch((e=>{o(e)}))}},flush(t){(0,n.isUndefined)(e.onStreamEndedEventHandler)?t():e.onStreamEndedEventHandler((e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)})).then((()=>{t()})).catch((e=>{t(e)}))}})}}!function(e){let t;!function(e){e.PASSING_ON="PASSING_ON",e.REMOVING_FILE_FROM_STREAM="REMOVING_FILE_FROM_STREAM"}(t=e.CompletionSignals||(e.CompletionSignals={}))}(a||(a={})),t.default=a},8523:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(723)),r=o(i(1083)),n=o(i(7147)),a=o(i(7803)),l=i(1943),c=i(5577),u=o(i(2076));class d{static partialFilesResolutionRules=[{targetFileNamesExtensionsWithoutPrependedDots:s.default.supportedFileNamesExtensionsWithoutPrependedDots,partialFilesIncludingDeclarationPatterns:s.default.partialFilesIncludingDeclarationPatterns,implicitFileNamesExtensionsWithoutPrependedDotsOfPartials:s.default.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials},{targetFileNamesExtensionsWithoutPrependedDots:r.default.supportedFileNamesExtensionsWithoutPrependedDots,partialFilesIncludingDeclarationPatterns:r.default.partialFilesIncludingDeclarationPatterns,implicitFileNamesExtensionsWithoutPrependedDotsOfPartials:r.default.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials}];static getPartialFilesAndParentEntryPointsRelationsMap({targetEntryPointsFilesAbsolutePaths:e,masterConfigRepresentative:t,sourceFilesTypeLabelForLogging:i,loggingIsEnabled:o}){const s=(new u.default).startOrRestart();l.Logger.logInfo({title:"Partial files and parent entry points mapping",description:`Mapping of ${i} entry points and partial files relations started ...`});const r=new Map,n=new Set;for(const t of e){r.set(t,new Set([t])),d.addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:t,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:n});for(const e of n){d.canPartialFilesHasOwnPartials({absolutePathOfTargetPartialFile:e})&&d.addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:e,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:n});const i=r.get(e);(0,l.isUndefined)(i)?r.set(e,new Set([t])):i.add(t)}}return s.stop(),l.Logger.logInfo({title:"Partial files and parent entry points mapping",description:`Mapping of ${i} entry points and partial files relations done. ${s.stop().seconds} seconds elapsed.`}),o&&d.dumpIncludedFilesAndEntryPointsAccordanceMap(r,t.consumingProjectRootDirectoryAbsolutePath),r}static addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue({targetEntryPointOrPartialFileAbsolutePath:e,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:t}){const i="PartialsFilesMapper.getPartialFilesAndParentEntryPointsRelationsMap(parametersObject) ->addAbsolutePathsOfExistingPartialsOfCurrentEntryPointOrPartialFileToQueue(parametersObject)",o=a.default.extractDirectoryFromFilePath(e),s=a.default.extractLastFilenameExtensionWithoutFirstDot(e);if((0,l.isNull)(s))return void l.Logger.logError({errorType:l.AlgorithmMismatchError.NAME,title:l.AlgorithmMismatchError.localization.defaultTitle,description:`The file '${e}' is missing the filename extensions. The partials of this file will not be detected.`,occurrenceLocation:i});const r=d.partialFilesResolutionRules.find((e=>e.targetFileNamesExtensionsWithoutPrependedDots.includes(s)));if((0,l.isUndefined)(r))return void l.Logger.logError({errorType:l.AlgorithmMismatchError.NAME,title:l.AlgorithmMismatchError.localization.defaultTitle,description:`No partial file resolution rules has been found for the file '${e}'. The partials of this file will not be detected.`,occurrenceLocation:i});let u;try{u=n.default.readFileSync(e,"utf-8")}catch(t){(0,c.isErrnoException)(t)&&"ENOENT"===t.code&&l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError(`Target file '${e}' is expecting to be existing, but actually wasnot found.`),title:l.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:i,wrappableError:t}),l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError("不明な理由"),title:l.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"className.methodName(parametersObject)",wrappableError:t})}for(const e of r.partialFilesIncludingDeclarationPatterns)for(const s of u.matchAll(e))(0,l.isUndefined)(s.groups)&&l.Logger.throwErrorAndLog({errorInstance:new l.UnexpectedEventError("The named capturing group 'filePath' expected to be present in regular expression matching results, but actually there are no capturing groups."),occurrenceLocation:i,title:l.UnexpectedEventError.localization.defaultTitle}),d.addAbsolutePathOfSingleExistingPartialFileToQueue({targetPartialFilePathRelativeToParentFileDirectory:s.groups.filePath,directoryAbsolutePathOfParentOfTargetPartialFile:o,implicitFilenameExtensionsOfPartialsForCurrentFileType:r.implicitFileNamesExtensionsWithoutPrependedDotsOfPartials,queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:t})}static addAbsolutePathOfSingleExistingPartialFileToQueue({targetPartialFilePathRelativeToParentFileDirectory:e,directoryAbsolutePathOfParentOfTargetPartialFile:t,implicitFilenameExtensionsOfPartialsForCurrentFileType:i=[],queueOfAbsolutePathsOfPartialFilesWhichWillBeScanned:o}){const s=[],r=a.default.extractLastFilenameExtensionWithoutFirstDot(e);(0,l.isNull)(r)?s.push(...i.map((i=>a.default.joinPathSegments([t,`${e}.${i}`],{forwardSlashOnlySeparators:!0})))):s.push(a.default.joinPathSegments([t,e],{forwardSlashOnlySeparators:!0}));for(const e of s)if(n.default.existsSync(e)){o.add(e);break}}static canPartialFilesHasOwnPartials({absolutePathOfTargetPartialFile:e}){const t=a.default.extractLastFilenameExtensionWithoutFirstDot(e);if((0,l.isNull)(t))return!1;let i;for(const e of d.partialFilesResolutionRules)e.targetFileNamesExtensionsWithoutPrependedDots.includes(t)&&(i=e);return(0,l.isNotUndefined)(i)}static dumpIncludedFilesAndEntryPointsAccordanceMap(e,t){let i="";for(const[o,s]of e.entries()){const e=o.replace(`${t}/`,"");if(1!==s.size||Array.from(s)[0].replace(`${t}/`,"")!==e){i=`${i}\nPartial file: '${e}'\nhas parents:\n`;for(const e of s)i=`${i} ● ${e.replace(`${t}/`,"")}\n`}}l.Logger.logInfo({title:"Partial files and parent entry points accordance map",description:i.length>0?(0,l.removeNthCharacter)(i,{targetCharacterNumber:1,numerationFrom:1}):"No partials files found"})}}t.default=d},1265:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(4648)),r=i(1943);class n extends s.default{static getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e){return e instanceof n||r.Logger.throwErrorAndLog({errorInstance:new r.InvalidParameterValueError({parameterName:"targetVinylFile",parameterNumber:1,messageSpecificPart:'The target file is not the instance of "VinylFileClass" that is why can not access the field storing the output directory absolute path.'}),title:r.InvalidParameterValueError.localization.defaultTitle,occurrenceLocation:"VinylFileClass.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(targetVinylFile"}),e.outputDirectoryAbsolutePath}constructor(e){super({contents:e.contents,path:e.path,base:e.explicitlySpecifiedPathPart})}}t.default=n},6300:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const o=i(2781);t.default=function(){return()=>(new o.PassThrough).end()}},5277:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e.contents?"":e.contents instanceof Buffer?e.contents.toString():""}},2004:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i(8048));t.default=function(e){if(0===e.length)return!0;const t=s.default.load(e);return 0===t("html").length||0===t("head").length||0===t("body").length||0===t("head").html()?.trim().length}},1943:e=>{e.exports=require("@yamato-daiwa/es-extensions")},5577:e=>{e.exports=require("@yamato-daiwa/es-extensions-nodejs")},4330:e=>{e.exports=require("access-sniff")},796:e=>{e.exports=require("autoprefixer")},4423:e=>{e.exports=require("browser-sync")},8048:e=>{e.exports=require("cheerio")},3506:e=>{e.exports=require("cssnano")},8582:e=>{e.exports=require("eslint-webpack-plugin")},3994:e=>{e.exports=require("fork-ts-checker-webpack-plugin")},4230:e=>{e.exports=require("glob")},7038:e=>{e.exports=require("gulp")},2580:e=>{e.exports=require("gulp-data")},8174:e=>{e.exports=require("gulp-debug")},882:e=>{e.exports=require("gulp-html-prettify")},7125:e=>{e.exports=require("gulp-if")},9298:e=>{e.exports=require("gulp-imagemin")},9952:e=>{e.exports=require("gulp-intercept")},8858:e=>{e.exports=require("gulp-plumber")},778:e=>{e.exports=require("gulp-postcss")},7583:e=>{e.exports=require("gulp-pug")},8103:e=>{e.exports=require("gulp-sourcemaps")},9289:e=>{e.exports=require("gulp-stylus")},6949:e=>{e.exports=require("html-validator")},3887:e=>{e.exports=require("imagemin-pngquant")},6828:e=>{e.exports=require("minimatch")},8722:e=>{e.exports=require("node-notifier")},9024:e=>{e.exports=require("pug-lint")},6701:e=>{e.exports=require("pug-lint/lib/config-file")},5436:e=>{e.exports=require("stream-combiner2")},4007:e=>{e.exports=require("typescript")},4648:e=>{e.exports=require("vinyl")},3123:e=>{e.exports=require("vue-loader")},9354:e=>{e.exports=require("webpack")},5977:e=>{e.exports=require("webpack-node-externals")},8456:e=>{e.exports=require("webpack-stream")},7147:e=>{e.exports=require("fs")},1017:e=>{e.exports=require("path")},2781:e=>{e.exports=require("stream")},7804:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});const o=require("node:crypto"),s=require("node:buffer");function r(e){if("string"!=typeof e&&!s.Buffer.isBuffer(e))throw new TypeError("Expected a Buffer or string");return o.createHash("md5").update(e).digest("hex").slice(0,10)}}},t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,i),r.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=i(4547),s=exports;for(var r in o)s[r]=o[r];o.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
|
package/README.md
CHANGED
|
@@ -140,6 +140,9 @@ npm i @yamato-daiwa/automation -D -E
|
|
|
140
140
|
|
|
141
141
|
<dt>vue-style-loader</dt>
|
|
142
142
|
<dd>Used to provide the dynamical loading of CSS written in Vue Single File Components to HTML document</dd>
|
|
143
|
+
|
|
144
|
+
<dt>vue-tcs</dt>
|
|
145
|
+
<dd>Used to provide the optimized type checking of Vue and also TypeScript files.</dd>
|
|
143
146
|
|
|
144
147
|
<dt>webpack</dt>
|
|
145
148
|
<dd>Used as basic tool for the ECMAScript logic processing</dd>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"vue": "3.2.47",
|
|
68
68
|
"vue-loader": "17.0.1",
|
|
69
69
|
"vue-style-loader": "4.1.3",
|
|
70
|
-
"
|
|
70
|
+
"vue-tsc": "1.2.0",
|
|
71
|
+
"webpack": "5.76.2",
|
|
71
72
|
"webpack-node-externals": "3.0.0",
|
|
72
73
|
"webpack-stream": "7.0.0",
|
|
73
74
|
"worker-loader": "3.0.8",
|