@yamato-daiwa/automation 0.9.2 → 0.9.4
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/package.json +6 -6
package/EntryPoint.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={8913(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8596)),r=n(i(8931)),o=i(5480);var a;!function(e){let t;!function(e){e.projectBuilding="build",e.referenceGenerating="help"}(t=e.CommandPhrases||(e.CommandPhrases={})),e.specification={applicationName:"Yamato Daiwa Automation",applicationDescription:"The high-level project building tool.",commandPhrases:{[t.projectBuilding]:{description:`Builds the projects according to the configuration file ("${s.default}" as default).`,isDefault:!0,options:{mode:{newName:"projectBuildingMode",shortcut:"m",required:!0,type:o.ConsoleCommandsParser.ParametersTypes.string,allowedAlternatives:Object.values(r.default),description:"The project building mode; affects to presence or absence of incremental building, browser live reloading, code minification etc."},selectiveExecution:{newName:"selectiveExecutionID",shortcut:"s",required:!1,type:o.ConsoleCommandsParser.ParametersTypes.string,description:"Allows to specify the selection of tasks, entry points groups, etc. by selective execution ID, herewith the desired selective execution must be preliminarily defined in the configuration file."},configurationFile:{newName:"customConfigurationFileName__possiblyWithoutExtension",shortcut:"c",required:!1,type:o.ConsoleCommandsParser.ParametersTypes.string,description:`Custom name of the configuration file (the default one is "${s.default}")`}}},[t.referenceGenerating]:{}}}}(a||(a={})),t.default=a},3875(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(749)),r=n(i(8596)),o=n(i(8913)),a=n(i(8945)),l=n(i(919)),d=i(6272),u=i(5480),c=n(i(6928));class p{static{d.Logger.setImplementation(u.ConsoleApplicationLogger),d.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI(s.default),p.interpretAndExecuteConsoleCommand()}static interpretAndExecuteConsoleCommand(){d.PoliteErrorsMessagesBuilder.setTechnicalDetailsOnlyModeIf(!1);const e=u.ConsoleCommandsParser.parse(o.default.specification),t=process.cwd();switch(l.default.unrollDotYDA_Directory(t),e.phrase){case o.default.CommandPhrases.projectBuilding:{const i=c.default.resolve(t,r.default);let n;try{n=u.ObjectDataFilesProcessor.processFile({filePath:i,synchronously:!0})}catch(e){e instanceof u.FileNotFoundError&&d.Logger.throwErrorWithFormattedMessage({errorInstance:new u.FileNotFoundError({customMessage:`The configuration file for "Yamato Daiwa Automation" utility not found at path "${i}". The "Yamato Daiwa Automation" utility is required the configuration file and will expect the file "${r.default}" at the same directory as CLI has been invoked. You can set custom configuration file name via CLI if you want.`}),title:u.FileNotFoundError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",innerError:e}),d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({customMessage:`The configuration file for "Yamato Daiwa Automation" utility not found at path "${i}". The "Yamato Daiwa Automation" utility is required the configuration file and will expect the file "${r.default}" at the same directory as CLI has been invoked. You can set custom configuration file name via CLI if you want.`}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",innerError:e})}a.default.buildProject({consumingProjectRootDirectoryAbsolutePath:t,projectBuildingConfig__fromConsole:{projectBuildingMode:e.projectBuildingMode,selectiveExecutionID:e.selectiveExecutionID},rawConfigFromFile:n});break}case o.default.CommandPhrases.referenceGenerating:d.Logger.logInfo({title:"Yamato Daiwa Automation",description:u.ConsoleCommandsParser.generateFullHelpReference(o.default.specification)})}}}t.default=p},3395(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({filePath:e,content:t,synchronously:i}){if(!i)return r.default.writeFile(e,t).catch(async i=>{if((0,o.isErrnoException)(i)&&"ENOENT"===i.code)return o.ImprovedFileSystem.createDirectory({targetPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1}}),synchronously:!0,mustThrowErrorIfTargetDirectoryExists:!0}),r.default.writeFile(e,t);throw i});try{s.default.writeFileSync(e,t)}catch(i){(0,o.isErrnoException)(i)&&"ENOENT"===i.code&&(o.ImprovedFileSystem.createDirectory({targetPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1}}),synchronously:!0,mustThrowErrorIfTargetDirectoryExists:!0}),s.default.writeFileSync(e,t))}};const s=n(i(9896)),r=n(i(1943)),o=i(5480)},518(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({whichPath:e,ofWhichPath:t}){const i=s.default.relative(t,e);return i.length>0&&!i.startsWith("..")&&!s.default.isAbsolute(i)};const s=n(i(6928))},34(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);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,n.millisecondsToSeconds)(e),milliseconds:e}}reset(){this.activationUnixTimestamp__milliseconds=0,this.deactivationUnixTimestamp__milliseconds=0}}},3969(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({targetPath:e,targetFileNamePenultimateExtensionWithOrWithoutLeadingDot:t,mustAppendDuplicateEvenIfTargetPenultimateFileNameExtensionAlreadyExist:i}){const s=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:t,targetCharacter:".",fromFirstPosition:!0});if(!e.includes(".")){const{updatedString:t,extractedMatching:r}=(0,n.extractMatchingsWithRegularExpression)(e,/#.+$/u,{mustExpectOneOrZeroMatchings:!0});return i?`${t}.${s}`+r:e}const r=(0,n.splitString)(e,".");return(0,n.addElementsToArray)({targetArray:r,newElements:[s],mutably:!0,toPosition__numerationFrom1:r.length}).join(".")};const n=i(6272)},5209(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,n.splitString)((0,n.replaceDoubleBackslashesWithForwardSlashes)(e),"/"),i=(0,n.getLastElementOfArray)(t);if((0,n.isNull)(i)||!i.includes(".")||"."===i)return e;const s=(0,n.splitString)(i,".");return[...t.length>1?t.slice(0,-1):[],s.slice(0,-1).join(".")].join("/")};const n=i(6272)},5553(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.explodeStringToLines)({targetString:e,mustIgnoreCarriageReturn:!1}).join(t)};const n=i(6272)},8945(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3382)),r=n(i(92)),o=n(i(9271)),a=n(i(2556)),l=n(i(3011)),d=n(i(7318)),u=n(i(7102)),c=n(i(5217)),p=n(i(5228)),g=n(i(4702)),m=n(i(363)),h=n(i(3067)),f=n(i(3130)),S=n(i(1311)),F=n(i(9585)),P=n(i(1569)),_=n(i(5379)),b=n(i(6457)),E=n(i(4324)),y=n(i(4533)),A=n(i(8066)),I=n(i(4520)),v=n(i(4871)),N=i(6272);t.default=class{static buildProject({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,rawConfigFromFile:i}){const n=N.RawObjectDataProcessor.process(i,s.default.propertiesSpecification,{processingApproach:N.RawObjectDataProcessor.ProcessingApproaches.manipulationsWithSourceObject});n.isRawDataInvalid&&N.Logger.throwErrorWithFormattedMessage({errorInstance:new N.InvalidConfigError({mentionToConfig:"@yamato-daiwa/automation (project building)",messageSpecificPart:N.RawObjectDataProcessor.formatValidationErrorsList(n.validationErrorsMessages)}),title:N.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"ProjectBuilder.buildProject(parametersObject)"});const R=n.processedData.projectBuilding,T=r.default.normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,projectBuildingConfig__fromFile__rawValid:R}),O=new o.default(T),C="BUILD_PROJECT";I.default.task(C,I.default.parallel([l.default.provideLintingIfMust(O),d.default.provideCheckingIfMust(O),m.default.provideLintingIfMust(O),I.default.series([I.default.parallel([u.default.provideTypeScriptImportsForMarkupIfMust(O),c.default.provideJavaScriptImportsForMarkupIfMust(O),g.default.provideLogicProcessingIfMust(O),P.default.providePlainCopierIfMust(O)]),h.default.provideImagesProcessingIfMust(O),f.default.provideFontsProcessingIfMust(O),F.default.provideAudiosProcessingIfMust(O),S.default.provideVideosProcessingIfMust(O),p.default.provideStylesProcessingIfMust(O),a.default.provideMarkupProcessingIfMust(O),b.default.provideBrowserLiveReloadingIfMust(O),A.default.generateIfMust(O),I.default.parallel([v.default.watchIfMust(O),E.default.launchIfMust(O),_.default.orchestrateIfMust(O),y.default.coordinateIfMust(O)])])])),I.default.task(C)?.(e=>{(0,N.isNeitherUndefinedNorNull)(e)&&N.Logger.logError({errorType:N.UnexpectedEventError.NAME,title:N.UnexpectedEventError.localization.defaultTitle,description:"The following unexpected error has crashed the Gulp pipeline:",occurrenceLocation:"ProjectBuilder.buildProject(compoundParameter)",caughtError:e})})}}},4784(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8809)),r=n(i(8996)),o=n(i(2061)),a=i(6272);class l extends o.default{audiosProcessingSettings__fromFile__rawValid;static normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,audiosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.audiosProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.audiosProcessingSettings__fromFile__rawValid=e.audiosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},8809(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["mp3","ogg","wma","wav","flac"])}},1846(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Audio";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Audios";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},8996(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},2421(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},9706(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},9585(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9706)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(7013)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideAudiosProcessingIfMust(e){const t=e.audiosProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({audiosProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_AUDIO_FILE_ADDED--BY_AUDIOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_AUDIO_FILE_UPDATED--BY_AUDIOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_AUDIO_FILE_DELETED--BY_AUDIOS_PROCESSOR",handler:i.onAudioFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Audios Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onAudioFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},7013(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({audiosProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"AUDIOS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Audio"})}}t.default=a},5196(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4253)),r=n(i(4688)),o=n(i(2061)),a=i(6272);class l extends o.default{fontsProcessingSettings__fromFile__rawValid;static normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,fontsProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.fontsProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.fontsProcessingSettings__fromFile__rawValid=e.fontsProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},4253(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["ttf","otf","woff","txt"])}},682(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Font";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Fonts";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},4688(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},5609(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},7078(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},3130(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7078)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(2873)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideFontsProcessingIfMust(e){const t=e.fontsProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({fontsProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_FONTS_FILE_ADDED--BY_FONTS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_FONTS_FILE_UPDATED--BY_FONTS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_FONTS_FILE_DELETED--BY_FONTS_PROCESSOR",handler:i.onFontFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Fonts Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onFontFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},2873(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({fontsProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"FONTS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Video"})}}t.default=a},4802(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4031)),r=n(i(9896)),o=i(5480);class a extends s.default{mustBeOptimizedDuringCurrentExecution;hasBeenOptimizedDuringCurrentExecution=!1;sourceFileLastModificationDateTime__ISO8601;optimizedContentRevisionHash;constructor({cachedOptimizedImagedMetadata:e,consumingProjectRootDirectoryAbsolutePath:t,cachedOptimizedImagesDirectoryAbsolutePath:i,...n}){super(n);const s=n.actualAssetsGroupSettings.imagesOptimization.mustOptimize&&(0===n.assetsProcessingCommonSettings.imagesOptimization.ignoresFilesGlobs.size||!o.ImprovedGlob.isFilePathMatchingWithAtLeastOneGlobSelector({filePath:this.sourceAbsolutePath,globSelectors:[...n.assetsProcessingCommonSettings.imagesOptimization.ignoresFilesGlobs]}));if(this.sourceFileLastModificationDateTime__ISO8601=r.default.statSync(this.sourceAbsolutePath).mtime.toISOString(),s){const n=e[o.ImprovedPath.computeRelativePath({basePath:t,comparedPath:this.sourceAbsolutePath,alwaysForwardSlashSeparators:!0})];if(this.sourceFileLastModificationDateTime__ISO8601===n?.targetImageLastModificationDateTime__ISO_8601)try{this.setBufferedContent(r.default.readFileSync(o.ImprovedPath.joinPathSegments([i,n.cachedImageFileNameWithExtension]))),this.mustBeOptimizedDuringCurrentExecution=!1}catch{this.mustBeOptimizedDuringCurrentExecution=!0}else this.mustBeOptimizedDuringCurrentExecution=!0}else this.mustBeOptimizedDuringCurrentExecution=!1}}t.default=a},2662(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2115)),r=n(i(6570)),o=n(i(2061)),a=n(i(919)),l=i(6272),d=i(5480);class u extends o.default{imagesProcessingSettings__fromFile__rawValid;static normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new u({...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,imagesProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds,imagesOptimization:u.normalizeImagesOptimizationCommonSettings(t,e.common?.imagesOptimization)},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.imagesProcessingSettings__fromFile__rawValid.assetsGroups,i.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings.bind(i)),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.imagesProcessingSettings__fromFile__rawValid=e.imagesProcessingSettings__fromFile__rawValid}completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e,t){return{...e,imagesOptimization:{mustOptimize:t.imagesOptimization?.enabled??r.default.mustOptimize(this.consumingProjectBuildingMode)}}}static normalizeImagesOptimizationCommonSettings(e,t){return{cachedOptimizedImagesDirectoryAbsolutePath:d.ImprovedPath.joinPathSegments([...(0,l.isNotUndefined)(t?.cachedOptimizedImagesDirectoryRelativePath)?[e.projectRootDirectoryAbsolutePath,t.cachedOptimizedImagesDirectoryRelativePath]:[a.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,"Images"]],{alwaysForwardSlashSeparators:!0}),ignoresFilesGlobs:new Set([...(t?.relativePathsOfIgnoredFiles??[]).map(t=>d.ImprovedPath.joinPathSegments([e.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})),...(t?.relativePathsOfIgnoredDirectories??[]).map(t=>d.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector({targetDirectoryPath:d.ImprovedPath.joinPathSegments([e.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})}))])}}}t.default=u},2115(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["jpg","jpeg","png","gif","svg","ico","webp"])}},5872(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="image";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="images";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},6570(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0},mustOptimize:e=>e!==s.default.staticPreview&&e!==s.default.localDevelopment};t.default=r},3015(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification={...s.default.PropertiesSpecification.Common.generate({assetTypeSpecificPropertiesSpecification:{$imagesOptimization:{newName:"imagesOptimization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$cachedOptimizedImagesDirectoryRelativePath:{newName:"cachedOptimizedImagesDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$ignoreFiles:{newName:"relativePathsOfIgnoredFiles",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreDirectories:{newName:"relativePathsOfIgnoredDirectories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}),...s.default.PropertiesSpecification.AssetsGroups.generate({assetTypeSpecificPropertiesSpecification:{assetsGroupDependent:{$imagesOptimization:{newName:"imagesOptimization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}})}}(r||(r={})),t.default=r},4640(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},3067(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4640)),r=n(i(4520)),o=n(i(4724)),a=n(i(2652)),l=n(i(1416)),d=n(i(2289)),u=n(i(7818)),c=n(i(8512)),p=n(i(2853)),g=n(i(4802)),m=n(i(919)),h=n(i(7006)),f=i(6272),S=i(5480),F=n(i(1455)),P=n(i(3395));class _ extends d.default{static CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME="Images";static CACHED_OPTIMIZED_IMAGES_METADATA_FILE_NAME_WITH_EXTENSION="OptimizedImagesMetadata.json";static cachedOptimizedImagedMetadataSpecification={nameForLogging:"ImagesProcessor.ImagesProcessingTypes.CachedOptimizedImagesMetadata",subtype:f.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{cachedImageFileNameWithExtension:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},targetImageLastModificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}};CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH;CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH;cachedOptimizedImagedMetadata;static provideImagesProcessingIfMust(e){const t=e.imagesProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,p.default)();const i=new _(e,t);return e.mustProvideIncrementalBuilding&&c.default.initializeIfRequiredAndGetInstance({imagesProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_IMAGES_FILE_ADDED--BY_IMAGES_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_IMAGES_FILE_UPDATED--BY_IMAGES_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_IMAGES_FILE_DELETED--BY_IMAGES_PROCESSOR",handler:i.onImageFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){let i;super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Images Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds}),this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH=S.ImprovedPath.joinPathSegments([m.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH=S.ImprovedPath.joinPathSegments([m.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME,_.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_NAME_WITH_EXTENSION],{alwaysForwardSlashSeparators:!0});try{i=S.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH,validDataSpecification:_.cachedOptimizedImagedMetadataSpecification,synchronously:!0})}catch(e){e instanceof S.FileNotFoundError||f.Logger.logError({errorType:"CachedDataRetrievingFailure",...h.default.localization.cachedPreviousValidationsResultsDataRetrievingErrorLog({cachedValidationsResultsFileAbsolutePath:this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH}),occurrenceLocation:"ImagesProcessor.provideImagesProcessingIfMust(projectBuildingMasterConfigRepresentative) ->ImagesProcessor.constructor(...)",caughtError:e,mustOutputIf:!1})}this.cachedOptimizedImagedMetadata=i??{}}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,f.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithImageVinylFile.bind(this)})).pipe((0,o.default)(e=>e.mustBeOptimizedDuringCurrentExecution,(0,a.default)([a.default.mozjpeg({progressive:!0}),a.default.gifsicle({interlaced:!0}),a.default.svgo({}),(0,l.default)()]))).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>{if(e.hasBeenOptimizedDuringCurrentExecution=e.mustBeOptimizedDuringCurrentExecution,e.hasBeenOptimizedDuringCurrentExecution){const t=`${(new Date).getTime()}${e.extname}`,i=S.ImprovedPath.joinPathSegments([this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH,t],{alwaysForwardSlashSeparators:!0});(0,P.default)({filePath:i,content:e.getContentsExpectedToBeBuffer(),synchronously:!0});const n=e.sourceFileLastModificationDateTime__ISO8601;this.cachedOptimizedImagedMetadata[S.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.sourceAbsolutePath,alwaysForwardSlashSeparators:!0})]={cachedImageFileNameWithExtension:t,targetImageLastModificationDateTime__ISO_8601:n},await F.default.writeFile(this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH,JSON.stringify(this.cachedOptimizedImagedMetadata,null,2))}return Promise.resolve(u.default.CompletionSignals.PASSING_ON)}})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:d.default.addContentHashPostfixToFileNameIfMust})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>(e.hasBeenOptimizedDuringCurrentExecution=e.mustBeOptimizedDuringCurrentExecution,Promise.resolve(u.default.CompletionSignals.PASSING_ON))})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:_.postProcessFile.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>g.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}async replacePlainVinylFileWithImageVinylFile(e,t){return t(new g.default({initialPlainVinylFile:e,actualAssetsGroupSettings:this.associatedAssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path),assetsProcessingCommonSettings:this.associatedAssetsProcessingSettingsRepresentative.assetsProcessingCommonSettings,cachedOptimizedImagedMetadata:this.cachedOptimizedImagedMetadata,consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,cachedOptimizedImagesDirectoryAbsolutePath:this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH})),Promise.resolve(u.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(S.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),S.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(u.default.CompletionSignals.PASSING_ON)}onImageFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}}t.default=_},8512(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({imagesProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"IMAGE_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Image"})}}t.default=a},4602(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6399)),r=n(i(7262)),o=n(i(2061)),a=i(6272);class l extends o.default{videosProcessingSettings__fromFile__rawValid;static normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,videosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.videosProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.videosProcessingSettings__fromFile__rawValid=e.videosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},6399(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["avi","mov","mkv","mp4","avchd","flw","swf"])}},1340(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Video";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Videos";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},7262(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},7491(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},2404(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},1311(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2404)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(9167)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideVideosProcessingIfMust(e){const t=e.videosProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({videosProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_VIDEO_FILE_ADDED--BY_VIDEOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_VIDEO_FILE_UPDATED--BY_VIDEOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_VIDEO_FILE_DELETED--BY_VIDEOS_PROCESSOR",handler:i.onVideoFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Videos Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onVideoFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},9167(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({videosProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"VIDEOS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Video"})}}t.default=a},2713(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(5480);class a extends s.default{onAnyEventRelatedWithActualFilesHandler;static initialize(e){r.default.addPassiveWatcher(new a(e))}constructor({browserLiveReloadingSettingsRepresentative:e,onAnyEventRelatedWithActualFilesHandler:t}){super({ID:"BROWSER_COORDINATOR_RELATED_FILES_WATCHER",targetFilesGlobSelectors:[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.targetFilesRootDirectoryAbsolutePath})],mustLogEvents:e.mustLogOutputFileChangeDetection}),this.onAnyEventRelatedWithActualFilesHandler=t}notifyAboutRelatedFileStateChange(e,t){this.onAnyEventRelatedWithActualFilesHandler(e,t)}}t.default=a},6457(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6979)),r=n(i(7831)),o=n(i(2858)),a=n(i(7396)),l=n(i(2713)),d=i(6272),u=i(5480),c=n(i(9896)),p=n(i(7426));class g{static selfSingleInstance;static localization=p.default;static onNewPageOpenedEventHandlers=new Map;static EXPERIMENTAL_LOGGING=!1;browserLiveReloadingSettingsRepresentative;absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly=new Set;waitingForSubsequentFilesWillBeUpdatedCountdown;currentHTML_FileAbsolutePath__forwardSlashesPathSeparators=null;processingOnDemandSettings;loadingPageHTML_ForProcessingOnDemandMode;isFirstPageRequestInProcessingOnDemandMode=!0;static provideBrowserLiveReloadingIfMust(e){const t=e.getBrowserLiveReloadingSettingsRepresentativeIfMustProvideBrowserLiveReloading();if((0,d.isNull)(t))return e=>{e()};const i=new g(t,e);return g.selfSingleInstance=i,e=>{l.default.initialize({onAnyEventRelatedWithActualFilesHandler:i.onAnyChangeInRelatedFiles.bind(i),browserLiveReloadingSettingsRepresentative:t}),i.initializeBrowsersync(),e()}}static addOnNewPageOpenedEventHandler({handlerID:e,handler:t}){g.onNewPageOpenedEventHandlers.set(e,t)}static reload(){a.default.reload()}static get currentHTML_FileAbsolutePath__forwardSlashesPathSeparators(){return g.selfSingleInstance?.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators??null}constructor(e,t){this.browserLiveReloadingSettingsRepresentative=e,this.processingOnDemandSettings=t.processingOnDemandSettings,this.processingOnDemandSettings.enabled&&this.processingOnDemandSettings.fullInitialBuilding&&(0,d.isNotUndefined)(t.markupProcessingSettingsRepresentative)&&(0,d.addElementsToSet)({targetSet:this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly,newElements:t.markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,mutably:!0}),this.processingOnDemandSettings.enabled&&(0,d.isNotUndefined)(t.markupProcessingSettingsRepresentative)&&(this.processingOnDemandSettings.fullInitialBuilding&&(0,d.addElementsToSet)({targetSet:this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly,newElements:t.markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,mutably:!0}),o.default.initializeIfRequiredAndGetInstance({projectBuildingMasterConfigRepresentative:t,markupProcessingSettingsRepresentative:t.markupProcessingSettingsRepresentative}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_BROWSER_LIVE_RELOADER",handler:e=>{this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.delete(e)}}))}initializeBrowsersync(){a.default.init({...(0,d.isNull)(this.browserLiveReloadingSettingsRepresentative.proxy)?{server:{baseDir:this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,index:this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension}}:{proxy:this.browserLiveReloadingSettingsRepresentative.proxy},...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.HTTPS)?{https:{key:this.browserLiveReloadingSettingsRepresentative.HTTPS.keyAbsolutePath,cert:this.browserLiveReloadingSettingsRepresentative.HTTPS.certificateAbsolutePath}}:null,cors:this.browserLiveReloadingSettingsRepresentative.mustUseCORS,...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.localServerCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.localServerCustomPort}:null,ignore:this.browserLiveReloadingSettingsRepresentative.globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored,...this.browserLiveReloadingSettingsRepresentative.targetBrowsers.length>0?{browser:this.browserLiveReloadingSettingsRepresentative.targetBrowsers}:null,ui:!!this.browserLiveReloadingSettingsRepresentative.mustEnableBrowsersyncUserInterface&&{...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort}:null},notify:this.browserLiveReloadingSettingsRepresentative.mustDisplayBrowsersyncConnectedPopupInBrowser,middleware:this.onRequest.bind(this)})}onAnyChangeInRelatedFiles(e){d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onAnyChangeInRelatedFiles,",description:e,compactLayout:!0,mustOutputIf:g.EXPERIMENTAL_LOGGING}),this.processingOnDemandSettings.enabled&&"html"===(0,d.extractLastExtensionOfFileName)({targetPath:e,withLeadingDot:!0})||(clearTimeout(this.waitingForSubsequentFilesWillBeUpdatedCountdown),this.waitingForSubsequentFilesWillBeUpdatedCountdown=setTimeout(()=>{d.Logger.logInfo({mustOutputIf:this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon,...g.localization.browserTabWillBeReloadedSoonLog}),a.default.reload()},(0,d.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds)))}async onRequest(e,t,i){if(d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onRequest, URI:",description:e.url??"No URI",compactLayout:!0,mustOutputIf:g.EXPERIMENTAL_LOGGING}),!this.processingOnDemandSettings.enabled)return void i();if((0,d.isUndefined)(e.url))return void i();const n="/"===e.url?u.ImprovedPath.joinPathSegments([this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension],{alwaysForwardSlashSeparators:!0}):u.ImprovedPath.joinPathSegments([this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,e.url],{alwaysForwardSlashSeparators:!0});if("html"!==(0,d.extractLastExtensionOfFileName)({targetPath:n,withLeadingDot:!1}))return void i();const s=r.default.outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap.get(n);if((0,d.isUndefined)(s))return void i();const o=this.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators!==n;if(d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onRequest, Target HTML File:",description:n,mustOutputIf:g.EXPERIMENTAL_LOGGING,additionalData:{hasPageChanged:o,relatedEntryPointsSourceFiles:s}}),this.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators=n,this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.has(s))return i(),this.isFirstPageRequestInProcessingOnDemandMode?void(this.isFirstPageRequestInProcessingOnDemandMode=!1):void(o&&await Promise.all(Array.from(g.onNewPageOpenedEventHandlers.values()).map(async e=>e({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:s,HTML_FileAbsolutePath__forwardSlashSeparators:n}))));t.setHeader("Content-Type","text/html"),t.write(this.getLoadingPageHTML_ForProcessingOnDemandMode()),t.end(),await Promise.all(Array.from(g.onNewPageOpenedEventHandlers.values()).map(async e=>e({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:s,HTML_FileAbsolutePath__forwardSlashSeparators:n}))),this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.add(s),this.isFirstPageRequestInProcessingOnDemandMode=!1}getLoadingPageHTML_ForProcessingOnDemandMode(){return this.loadingPageHTML_ForProcessingOnDemandMode??(this.loadingPageHTML_ForProcessingOnDemandMode=c.default.readFileSync(s.default.LOADING_SCREEN_HTML_FILE_FOR_PROCESSING_ON_DEMAND_MODE_ABSOLUTE_PATH,"utf-8"))}}t.default=g},7426(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."}}},792(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);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 HTTPS(){return this.browserLiveReloadingSettings.setup.localServer.HTTPS??null}get mustUseCORS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseCORS}get targetBrowsers(){return(0,n.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}}},3554(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}}},6191(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={$setups:{newName:"setups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$localServer:{newName:"localServer",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$rootDirectoryRelativePath:{newName:"rootDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$ignoredFilesAndDirectoriesRelativePaths:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$customPort:{newName:"customPort",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,maximalValue:65536},$customStartingFileNameWithExtension:{newName:"customStartingFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$HTTPS:{newName:"HTTPS",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$SSL_KeyRelativePath:{newName:"SSL_KeyRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$SSL_CertificateRelativePath:{newName:"SSL_CertificateRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$useCORS:{newName:"useCORS",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$proxy:{newName:"proxy",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$openInBrowsers:{newName:"openInBrowsers",type:n.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$browserSyncUserInterface:{newName:"browserSyncUserInterface",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$customPort:{newName:"customPort",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,maximalValue:65536},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$periodBetweenFileUpdatingAndBrowserReloading__seconds:{newName:"periodBetweenFileUpdatingAndBrowserReloading__seconds",type:Number,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.anyRealNumber}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$outputFileChangeDetection:{newName:"outputFileChangeDetection",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$browserTabWillBeReloadedSoon:{newName:"browserTabWillBeReloadedSoon",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$browsersyncConnection:{newName:"browsersyncConnection",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}(s||(s={})),t.default=s},7927(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3554)),r=i(6272),o=i(5480),a=n(i(8524));class l{static localization=a.default;static normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:t,hasSelectiveExecutionBeenDeclared:i,selectedBrowserLiveReloadingSetupID:n}){let a;if((0,r.isNotUndefined)(n))a=e.setups[n],(0,r.isUndefined)(a)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.InvalidParameterValueError({customMessage:l.localization.generateUndefinedBrowserLiveReloadingSetupID_Message({selectedBrowserLiveReloadingSetupID:n,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:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.rootDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ignoredFilesAndDirectoriesRelativePaths:a.localServer.ignoredFilesAndDirectoriesRelativePaths??[],...(0,r.isNotUndefined)(a.localServer.customPort)?{port:a.localServer.customPort}:null,startingFileNameWithExtension:a.localServer.customStartingFileNameWithExtension??s.default.setup.localServer.startingFileNameWithExtension,...(0,r.isNotUndefined)(a.localServer.HTTPS)?{HTTPS:{keyAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.HTTPS.SSL_KeyRelativePath],{alwaysForwardSlashSeparators:!0}),certificateAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.HTTPS.SSL_CertificateRelativePath],{alwaysForwardSlashSeparators:!0})}}:null,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},8524(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUndefinedBrowserLiveReloadingSetupID_Message:({selectedBrowserLiveReloadingSetupID:e,stringifiedAvailableBrowserLiveReloadingSetupsIDs:t})=>`The specified browser setup ID "${e}" is not defined in configuration file. Below setups IDs has been defined:\n`+t}},5364(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static initialAndShortenedCSS_ClassesCorrespondence=new Map}t.default=i},831(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931));t.default={revisioning:{mustExecute:({consumingProjectBuildingMode:e})=>e!==s.default.staticPreview&&e!==s.default.localDevelopment,contentHashPostfixSeparator:"--"}}},8596(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="yda.config.yaml"},802(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={processingOnDemand:{enabled:!1,fullInitialBuilding:!1},CSS_ClassesMinificationOnFly:{generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:!1}}}},2159(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(266)),o=n(i(6151)),a=n(i(802)),l=i(9851),d=n(i(4433)),u=i(6272),c=i(5480);class p{static normalize({commonSettings__fromFile__rawValid:e,consumingProjectRootDirectoryAbsolutePath:t,projectBuildingMode:i,actualSelectiveExecutionID:n,actualSelectiveExecution:d}){const g=c.ImprovedPath.replacePathSeparatorsToForwardSlashes(t),m=e.publicDirectoriesRelativePaths?.[i];let h;(0,u.isNotUndefined)(m)&&(h=c.ImprovedPath.joinPathSegments([g,m],{alwaysForwardSlashSeparators:!0}));const f=e.filesWatching;return{projectRootDirectoryAbsolutePath:g,projectBuildingMode:i,mustProvideIncrementalBuilding:(0,r.default)(i),...(0,u.isNotUndefined)(n)?{selectiveExecutionID:n}:null,...(0,u.isNotUndefined)(d)?{tasksAndSourceFilesSelection:{markupProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.markupProcessing],stylesProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.stylesProcessing],ECMA_ScriptLogicProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing],imagesProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.imagesProcessing],fontsProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.fontsProcessing],audiosProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.audiosProcessing],plainCopying:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.plainCopying],videosProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.videosProcessing]}}:null,filesWatching:{excludedFilesGlobSelectors:new Set([...o.default.relativePathsOfExcludeFiles,...f?.relativePathsOfExcludedFiles??[],...i===s.default.staticPreview||i===s.default.localDevelopment?f?.buildingModeDependent?.[i].relativePathsOfExcludedFiles??[]:[]].map(e=>c.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0}))),excludedDirectoriesGlobSelectors:new Set([...o.default.relativePathsOfExcludeDirectories,...f?.relativePathsOfExcludeDirectories??[],...i===s.default.staticPreview||i===s.default.localDevelopment?f?.buildingModeDependent?.[i].relativePathsOfExcludeDirectories??[]:[]].map(e=>c.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0})})))},browserLiveReloadingSetupID:d?.browserLiveReloadingSetupID,mustGenerateOutputPackageJSON:!0===d?.distributablePackageJSON_Generating,dockerSetupID:d?.dockerSetupID,actualPublicDirectoryAbsolutePath:h,processingOnDemand:{enabled:d?.processingOnDemand?.enabled??e.processingOnDemand?.enabled??a.default.processingOnDemand.enabled,fullInitialBuilding:d?.processingOnDemand?.fullInitialBuilding??e.processingOnDemand?.fullInitialBuilding??a.default.processingOnDemand.fullInitialBuilding},CSS_ClassesMinificationOnFly:p.normalizeCSS_ClassesMinificationOnFlySettings({CSS_ClassesMinificationOnFlySettings__fromFile__rawValid:e.CSS_ClassesShorteningOnFly,projectBuildingMode:i,actualSelectiveExecutionID:n,consumingProjectRootDirectoryAbsolutePath:t})}}static normalizeCSS_ClassesMinificationOnFlySettings({CSS_ClassesMinificationOnFlySettings__fromFile__rawValid:e,projectBuildingMode:t,actualSelectiveExecutionID:i,consumingProjectRootDirectoryAbsolutePath:n}){if((0,u.isUndefined)(e))return{enabled:!1,CSS_ClassesRegularExpressions:new Set,forbiddenMinifiedCSS_ClassesNames:new Set,ignoredCSS_Classes:new Set,generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:!1,ignoredInitialCSS_Classes:new Set}};const s=new Set((0,u.isString)(e.CSS_ClassesPrefixesDefaultSeparators)?[e.CSS_ClassesPrefixesDefaultSeparators]:e.CSS_ClassesPrefixesDefaultSeparators),r=[];for(const t of e.pathsOfPartialSetupFilesRelativeToProjectRootDirectory??[])r.push(c.ObjectDataFilesProcessor.processFile({filePath:c.ImprovedPath.joinPathSegments([n,t]),schema:c.ObjectDataFilesProcessor.SupportedSchemas.YAML,synchronously:!0,validDataSpecification:{nameForLogging:t,subtype:u.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:d.default.PropertiesSpecification.CSS_ClassesMinificationOnFly.partial}}));return{enabled:!0===e.enabledOn.projectBuildingModes[t]&&((0,u.isUndefined)(i)||(0,u.isUndefined)(e.enabledOn.selectiveExecutions)||!0===e.enabledOn.selectiveExecutions[i]),CSS_ClassesRegularExpressions:new Set(e.CSS_ClassesPrefixes.concat(r.flatMap(e=>e.CSS_ClassesPrefixes)).map(e=>{let t,i=[];(0,u.isString)(e)?t=e:(t=e.prefix,i=(0,u.isString)(e.separators)?[e.separators]:e.separators),0===i.length&&(i=Array.from(s));const n=i.map(e=>Array.from(e)[0]);return new RegExp([`^(?:(?:${t}$)|`,`(?:${t}(?:${i.join("|")})(?!${n.join("|")}).+?$))`].join(""),"u")})),forbiddenMinifiedCSS_ClassesNames:new Set([...e.forbiddenShortenedCSS_ClassesNames??[],...r.flatMap(e=>e.forbiddenShortenedCSS_ClassesNames??[])]),ignoredCSS_Classes:new Set([...e.ignoredInitialCSS_Classes??[],...r.flatMap(e=>e.ignoredInitialCSS_Classes??[])]),generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:e.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets?.enabled??a.default.CSS_ClassesMinificationOnFly.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets.enabled,ignoredInitialCSS_Classes:new Set(e.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets?.ignoredInitialCSS_Classes??[])}}}}t.default=p},283(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=i(6272),o=i(5480),a=n(i(5688));class l{static localization=a.default;static resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:t,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:i,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:n,logging:{parentFileAbsolutePath:a,fileTypeForLogging__singularForm:d,fileTypeForLogging__pluralForm:u}}){const c=(0,r.explodeURI_PathToSegments)(e),p=c[0];if((0,r.isUndefined)(p))return null;if(p.startsWith(s.default)){const s=t.get(p);if((0,r.isUndefined)(s))return r.Logger.logWarning(l.localization.generateUnknownResourcesGroupAliasWarningLog({resourcesGroupAlias:p,resourceFileType__singularForm:d,resourcePointer:e,resourceFileType__pluralForm:u,parentFileAbsolutePath:a,formattedResourcesGroupsAliasesAndCorrespondingAbsolutePathsMap:Array.from(t.entries()).map(([e,t])=>` ● ${e}: ${t}`).join("\n")})),null;const g=o.ImprovedPath.joinPathSegments([s,...c.slice(1)],{alwaysForwardSlashSeparators:!0}),m=(0,r.extractLastExtensionOfFileName)({targetPath:g,withLeadingDot:!1});if((0,r.isNull)(m)||!i.has(m)){const t=Array.from(i).map(e=>(0,r.getURI_PartWithoutFragment)((0,r.appendLastFileNameExtension)({targetPath:g,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}))),s=(0,r.filterMap)(n,e=>t.includes(e));return 0===s.size?(r.Logger.logWarning(l.localization.generateNoMatchesForResourceReferenceWihtoutExplicitSupportedFileNameExtensionWarningLog({resourcePointer:e,formattedListOfCheckedAbsolutePathsOfTargetFiles:t.map(e=>` ● ${e}`).join("\n"),resourceFileType__singularForm:d})),null):(0,r.appendFragmentToURI)({targetURI:Array.from(s.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,r.getURI_Fragment)({targetURI:g,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const h=n.get(g);return(0,r.isUndefined)(h)?(r.Logger.logWarning(l.localization.generateFileNotFoundForResolvedResourceReferenceWarningLog({resourcePointer:e,resourceFileType__singularForm:d,resolvedFileAbsolutePath:g})),null):h}return null}}t.default=l},9269(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3704)),r=n(i(283)),o=n(i(4640)),a=i(6272),l=i(5480);class d extends r.default{static aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap=new Map;static imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static resolve({CSS_Code:e,absolutePathOfOutputDirectoryForParentFile:t,projectBuildingMasterConfigRepresentative:i,logging:{parentFileAbsolutePath:n}}){const r=i.actualPublicDirectoryAbsolutePath,l=i.plainCopyingSettingsRepresentative,u=i.imagesProcessingSettingsRepresentative;return 0===d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,a.createMapBasedOnOtherMap)(i.imagesProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),(0,a.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:e,regularExpressionWithCapturingGroups:/url\(["']?(?<possiblyAliasedPath>.+?)["']?\);?/gu,replacer:e=>{const i=e.namedCapturingGroups.possiblyAliasedPath;let c=d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,a.isNotNull)(c))return`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`;const p=(0,a.explodeURI_PathToSegments)(i),g=p[0];return(0,a.isNonEmptyString)(g)?(0,a.isNotUndefined)(l)&&g.startsWith(s.default)?(c=l.getSourceFileAbsolutePathByAliasedPath(p),(0,a.isNull)(c)?null:(d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,c),`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`)):(0,a.isUndefined)(u)?null:(c=d.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:u.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:o.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,logging:{fileTypeForLogging__singularForm:u.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:u.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,parentFileAbsolutePath:n}}),(0,a.isNull)(c)?null:(d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,c),`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`)):null}})}static buildResourceFileFinalPath({publicDirectoryAbsolutePath:e,resolvedOutputAbsolutePathOfResourceFile:t,absolutePathOfOutputDirectoryForParentFile:i}){return(0,a.isNotUndefined)(e)?`/${l.ImprovedPath.computeRelativePath({basePath:e,comparedPath:t,alwaysForwardSlashSeparators:!0})}`:l.ImprovedPath.computeRelativePath({basePath:i,comparedPath:t,alwaysForwardSlashSeparators:!0})}}t.default=d},5688(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUnknownResourcesGroupAliasWarningLog:({resourceFileType__pluralForm:e,resourcesGroupAlias:t,resourceFileType__singularForm:i,resourcePointer:n,parentFileAbsolutePath:s,formattedResourcesGroupsAliasesAndCorrespondingAbsolutePathsMap:r})=>({title:"Unknown Resources Group Alias in Resource Pointer",description:`Unknown ${e} resources group alias "${t}" found in ${i} resource pointer "${n}" at the file "${s}". The ${e} resources group alias be the one of the following declared ones: \n`+r}),generateNoMatchesForResourceReferenceWihtoutExplicitSupportedFileNameExtensionWarningLog:({resourceFileType__singularForm:e,resourcePointer:t,formattedListOfCheckedAbsolutePathsOfTargetFiles:i})=>({title:"Unknown Resource Pointer",description:`No file found for ${e} resource pointer "${t}" which has no explicit last file name extension among the supported ones. Tried to search the file at paths with all supported files names extensions:\n`+i}),generateFileNotFoundForResolvedResourceReferenceWarningLog:({resourceFileType__singularForm:e,resourcePointer:t,resolvedFileAbsolutePath:i})=>({title:"Unknown Resource Pointer",description:`The ${e} resource pointer "${t}" has been resolved to absolute path "${i}", but no corresponding output file has been found for this path.`})}},689(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(446)),o=n(i(523)),a=i(6272);var l;!function(e){let t;!function(e){let t,i;!function(e){e.generate=function({assetTypeSpecificPropertiesSpecification:e={}}={}){return{$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$periodBetweenFileUpdatingAndRebuildingStarting__seconds:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,numbersSet:a.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},...e}}}}}(t=e.Common||(e.Common={})),function(e){e.generate=function({assetTypeSpecificPropertiesSpecification:e={assetsGroupIndependent:{},assetsGroupDependent:{}}}={}){return{$assetsGroups:{newName:"assetsGroups",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},...e.assetsGroupIndependent,$buildingModeDependent:{newName:"buildingModeDependent",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,minimalEntriesCount:1,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},...e.assetsGroupDependent}}}}}}}}}(i=e.AssetsGroups||(e.AssetsGroups={}))}(t=e.PropertiesSpecification||(e.PropertiesSpecification={})),e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$periodBetweenFileUpdatingAndRebuildingStarting__seconds:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,numbersSet:a.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}},$assetsGroups:{newName:"assetsGroups",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$buildingModeDependent:{newName:"buildingModeDependent",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,minimalEntriesCount:1,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification}}}}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}(l||(l={})),t.default=l},9851(e,t){var i;t.ProjectBuildingTasksIDsForConfigFile=void 0,function(e){e.markupProcessing="markupProcessing",e.stylesProcessing="stylesProcessing",e.ECMA_ScriptLogicProcessing="ECMA_ScriptLogicProcessing",e.imagesProcessing="imagesProcessing",e.fontsProcessing="fontsProcessing",e.audiosProcessing="audiosProcessing",e.videosProcessing="videosProcessing",e.browserLiveReloading="browserLiveReloading",e.plainCopying="plainCopying",e.filesWatching="filesWatching",e.outputPackageJSON_Generating="outputPackageJSON_Generating",e.dockerLaunching="dockerLaunching"}(i||(t.ProjectBuildingTasksIDsForConfigFile=i={}))},4433(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=i(9851),o=i(6272);var a;!function(e){let t;e.propertiesSpecification={$selectiveExecutions:{newName:"selectiveExecutions",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$tasksAndSourceFilesSelection:{newName:"tasksAndSourceFilesSelection",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$markupProcessing","$stylesProcessing","$ECMA_ScriptLogicProcessing","$imagesProcessing","$fontsProcessing","$audiosProcessing","$videosProcessing","$plainCopying","$browserLiveReloading"],keysRenamings:{$markupProcessing:r.ProjectBuildingTasksIDsForConfigFile.markupProcessing,$stylesProcessing:r.ProjectBuildingTasksIDsForConfigFile.stylesProcessing,$ECMA_ScriptLogicProcessing:r.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing,$imagesProcessing:r.ProjectBuildingTasksIDsForConfigFile.imagesProcessing,$fontsProcessing:r.ProjectBuildingTasksIDsForConfigFile.fontsProcessing,$audiosProcessing:r.ProjectBuildingTasksIDsForConfigFile.audiosProcessing,$videosProcessing:r.ProjectBuildingTasksIDsForConfigFile.videosProcessing,$plainCopying:r.ProjectBuildingTasksIDsForConfigFile.plainCopying,$browserLiveReloading:r.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading},value:{type:Array,minimalElementsCount:1,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}},$browserLiveReloadingSetupID:{newName:"browserLiveReloadingSetupID",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$dockerSetupID:{newName:"dockerSetupID",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$distributablePackageJSON_Generating:{newName:"distributablePackageJSON_Generating",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$processingOnDemand:{newName:"processingOnDemand",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fullInitialBuilding:{newName:"fullInitialBuilding",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},$publicDirectoriesRelativePaths:{newName:"publicDirectoriesRelativePaths",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$localDevelopment","$testing","$staging","$production"],keysRenamings:{$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:String,minimalCharactersCount:1}},$CSS_ClassesShorteningOnFly:{newName:"CSS_ClassesShorteningOnFly",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enableOn:{newName:"enabledOn",type:Object,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,properties:{$projectBuildingModes:{newName:"projectBuildingModes",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Boolean}},$selectiveExecutions:{newName:"selectiveExecutions",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Boolean}}}},$CSS_ClassesPrefixesDefaultSeparators:{newName:"CSS_ClassesPrefixesDefaultSeparators",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!0,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$CSS_ClassesPrefixes:{newName:"CSS_ClassesPrefixes",type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,alternatives:[{type:String,minimalCharactersCount:1},{type:Object,properties:{$prefix:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$separator:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}]}},$forbidShortenedCSS_ClassesNames:{newName:"forbiddenShortenedCSS_ClassesNames",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{newName:"generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}},$pathsOfPartialSetupFilesRelativeToProjectRootDirectory:{newName:"pathsOfPartialSetupFilesRelativeToProjectRootDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}},$filesWatching:{newName:"filesWatching",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$excludeFilesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludedFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$excludeDirectoriesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludeDirectories",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment},value:{type:Object,properties:{$excludeFilesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludedFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$excludeDirectoriesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludeDirectories",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}}}}}}},$processingOnDemand:{newName:"processingOnDemand",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fullInitialBuilding:{newName:"fullInitialBuilding",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}},function(e){let t;!function(e){e.partial={$CSS_ClassesPrefixesDefaultSeparators:{newName:"CSS_ClassesPrefixesDefaultSeparators",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,minimalElementsCount:0,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$CSS_ClassesPrefixes:{newName:"CSS_ClassesPrefixes",type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,alternatives:[{type:String,minimalCharactersCount:1},{type:Object,properties:{$prefix:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$separator:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}]}},$forbidShortenedCSS_ClassesNames:{newName:"forbiddenShortenedCSS_ClassesNames",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}(t=e.CSS_ClassesMinificationOnFly||(e.CSS_ClassesMinificationOnFly={}))}(t=e.PropertiesSpecification||(e.PropertiesSpecification={}))}(a||(a={})),t.default=a},1579(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.propertiesSpecification={$presetFileRelativePath:{newName:"presetFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}(i||(i={})),t.default=i},9747(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={$segmentsWhichMustBeRemoved:{newName:"segmentsWhichMustBeRemoved",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$segmentsWhichLastDuplicatesMustBeRemoved:{newName:"segmentsWhichLastDuplicatesMustBeRemoved",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved:{newName:"segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}}(s||(s={})),t.default=s},446(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9747));var r;!function(e){e.propertiesSpecification={$outputTopDirectoryRelativePath:{newName:"outputTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$outputPathTransformations:{newName:"outputPathTransformations",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:s.default.propertiesSpecification}}}(r||(r={})),t.default=r},523(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.propertiesSpecification={$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$contentHashPostfixSeparator:{newName:"contentHashPostfixSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}}(i||(i={})),t.default=i},7534(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(446)),o=i(6272);var a;!function(e){e.generatePropertiesSpecification=function({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:e={},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:t}){return{$entryPointsGroups:{newName:"entryPointsGroups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesSelection:{newName:"sourceFilesSelection",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots:{newName:"onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots:{newName:"penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>(0,o.isNotUndefined)(e.$onlyWithPenultimateFileNamesExtensions),descriptionForLogging:"`$onlyWithPenultimateFileNamesExtensions` has been specified"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$mustIgnoreAllSubdirectories:{newName:"mustIgnoreAllSubdirectories",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$namesOfExcludeSubdirectories:{newName:"namesOfExcludeSubdirectories",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>!0===e.$mustIgnoreAllSubdirectories,descriptionForLogging:"`$mustIgnoreAllSubdirectories` has been specified with true"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$prefixesOfExcludedSubdirectories:{newName:"prefixesOfExcludedSubdirectories",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>!0===e.$mustIgnoreAllSubdirectories,descriptionForLogging:"`$mustIgnoreAllSubdirectories` has been specified with true"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$prefixesOfExcludeFiles:{newName:"prefixesOfExcludeFiles",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String}},{type:String,minimalCharactersCount:1}]}}},$sourceFilesTopDirectoryPathAliasName:{newName:"sourceFilesTopDirectoryPathAliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$singleEntryPointSourceFileRelativePath:{newName:"singleEntryPointSourceFileRelativePath",type:String,undefinedForbiddenIf:{predicate:({rawData__currentObjectDepth:e})=>!(0,o.isNonEmptyString)(e.$sourceFilesTopDirectoryRelativePath),descriptionForLogging:"`$sourceFilesTopDirectoryRelativePath` has not been specified"},isNullForbidden:!0,minimalCharactersCount:1},$singleEntryPointSourceFilePathAliasName:{newName:"singleEntryPointSourceFilePathAliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},...e,$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,...t}}}}}}}}}(a||(a={})),t.default=a},2061(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(831)),o=n(i(7700)),a=n(i(8527)),l=i(6272),d=i(5480);t.default=class{assetsGroupsIDsSelection;supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots;consumingProjectRootDirectoryAbsolutePath;consumingProjectBuildingMode;constructor(e){this.assetsGroupsIDsSelection=e.assetsGroupsIDsSelection??[],this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,this.consumingProjectRootDirectoryAbsolutePath=e.consumingProjectRootDirectoryAbsolutePath,this.consumingProjectBuildingMode=e.consumingProjectBuildingMode}createNormalizedAssetsGroupsSettings(e,t){const i=new Map;if((0,l.isUndefined)(e))return i;for(const[n,u]of Object.entries(e)){const e=u.buildingModeDependent[this.consumingProjectBuildingMode];if((0,l.isUndefined)(e))continue;const c=d.ImprovedPath.extractDirectoryFromFilePath({targetPath:d.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,u.sourceFilesTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!0,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1},alwaysForwardSlashSeparators:!0}),p=s.default+(u.referenceCustomAliasName??n),g=d.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),m={ID:n,sourceFilesTopDirectoryAbsolutePath:c,sourceFilesGlobSelector:d.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c,fileNamesExtensions:this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots}),sourceFilesTopDirectoryPathAliasName:p,outputFilesTopDirectoryAbsolutePath:g,outputPathTransformations:o.default.normalize(e.outputPathTransformations),revisioning:a.default.normalize({revisioningSettings__rawValid:e.revisioning,revisioningSettings__default:{mustExecute:r.default.revisioning.mustExecute,contentHashPostfixSeparator:r.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode})};i.set(n,t(m,u))}return i}}},7700(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);t.default=class{static normalize(e){return{segmentsWhichMustBeRemoved:e?.segmentsWhichMustBeRemoved??[],segmentsWhichLastDuplicatesMustBeRemoved:e?.segmentsWhichLastDuplicatesMustBeRemoved??[],...(0,n.isNotUndefined)(e?.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved)?{segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved:e.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved}:null}}}},8527(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static normalize({revisioningSettings__rawValid:e,revisioningSettings__default:t,consumingProjectBuildingMode:i}){return{mustExecute:!0!==e?.disable&&t.mustExecute({consumingProjectBuildingMode:i}),contentHashPostfixSeparator:e?.contentHashPostfixSeparator??t.contentHashPostfixSeparator}}}},2274(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7700)),r=i(6272),o=i(5480);t.default=class{projectBuildingCommonSettings__normalized;entryPointsGroupsIDsSelection;constructor(e){this.projectBuildingCommonSettings__normalized=e.projectBuildingCommonSettings__normalized,(0,r.isNonEmptyArray)(e.entryPointsGroupsIDsSelection)&&(this.entryPointsGroupsIDsSelection=e.entryPointsGroupsIDsSelection)}createNormalizedEntryPointsGroupsSettings(e,t){const i=new Map;if((0,r.isUndefined)(e))return i;for(const[n,a]of Object.entries(e)){if((0,r.isNotUndefined)(this.entryPointsGroupsIDsSelection)&&!this.entryPointsGroupsIDsSelection.includes(n))continue;const e=a.buildingModeDependent[this.consumingProjectBuildingMode];if((0,r.isUndefined)(e))continue;let l;const d=[];let u,c;if("singleEntryPointSourceFileRelativePath"in a){u=!0;const e=o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,a.singleEntryPointSourceFileRelativePath],{alwaysForwardSlashSeparators:!0});d.push(e),l=o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0}}),c=a.singleEntryPointSourceFilePathAliasName}else u=!1,l=o.ImprovedPath.extractDirectoryFromFilePath({targetPath:o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,a.sourceFilesTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!0,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}}),d.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsGroupSourceFilesTopDirectoryAbsolutePath:l,sourceFilesSelection:a.sourceFilesSelection})),c=a.sourceFilesTopDirectoryPathAliasName;const p={ID:n,sourceFilesTopDirectoryAbsolutePath:l,sourceFilesTopDirectoryPathOrSingleFileAliasName:c??n,sourceFilesGlobSelectors:d,isSingeEntryPointGroup:u,outputFilesTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),outputPathTransformations:s.default.normalize(e.outputPathTransformations)};i.set(n,t(p,a))}return i}getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsGroupSourceFilesTopDirectoryAbsolutePath:e,sourceFilesSelection:{onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots:t=[],mustIgnoreAllSubdirectories:i=!1,...n}={}}){const s=[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,penultimateFileNamesExtensions:Array.isArray(t)?t:[t]})];let a,l,d,u;return a=Array.isArray(n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots)?n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots:(0,r.isString)(n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots)?[n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots]:[],a.length>0&&s.push(o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector({targetDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,penultimateFileNamesExtensions:a})),l=Array.isArray(n.prefixesOfExcludeFiles)?n.prefixesOfExcludeFiles:(0,r.isString)(n.prefixesOfExcludeFiles)?[n.prefixesOfExcludeFiles]:[],l.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,filesNamesPrefixes:l,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),i?(s.push(o.ImprovedGlob.buildAllFilesInCurrentDirectoryButNotBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),s):(d=Array.isArray(n.namesOfExcludeSubdirectories)?n.namesOfExcludeSubdirectories:(0,r.isString)(n.namesOfExcludeSubdirectories)?[n.namesOfExcludeSubdirectories]:[],d.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector({basicDirectoryPath:e,subdirectoriesNames:d,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),u=Array.isArray(n.prefixesOfExcludedSubdirectories)?n.prefixesOfExcludedSubdirectories:(0,r.isString)(n.prefixesOfExcludedSubdirectories)?[n.prefixesOfExcludedSubdirectories]:[],u.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,subdirectoriesPrefixes:u,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),s)}get consumingProjectRootDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.projectBuildingCommonSettings__normalized.projectBuildingMode}get actualPublicDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.actualPublicDirectoryAbsolutePath}}},749(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues"},8931(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},3704(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="$"},6300(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="@"},266(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e===s.default.staticPreview||e===s.default.localDevelopment};const s=n(i(8931))},8077(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);t.default=class{assetsProcessingCommonSettings;loggingSettings;relevantAssetsGroupsSettingsMappedByGroupID;relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName;hasAtLeastOneActualAssetsGroup;actualAssetsSourceFilesAbsolutePaths;actualOutputFilesGlobSelectors;supportedSourceFilesNamesExtensionsWithoutLeadingDots;projectBuildingMasterConfigRepresentative;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e,relevantAssetsGroupNormalizedSettings:t}){let i=s.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,s.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:s.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})})],{alwaysForwardSlashSeparators:!0});if((0,n.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=(0,n.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.outputPathTransformations.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),(0,n.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=(0,n.explodeURI_PathToSegments)(i);for(const s of t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,n.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===s);(0,n.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,n.isNumber)(t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,n.explodeURI_PathToSegments)(i).slice(0,-t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}constructor({projectBuildingMasterConfigRepresentative:e,assetsProcessingCommonSettings:t,loggingSettings:i,relevantAssetsGroupsSettingsMappedByGroupID:n}){this.projectBuildingMasterConfigRepresentative=e,this.assetsProcessingCommonSettings=t,this.loggingSettings=i,this.relevantAssetsGroupsSettingsMappedByGroupID=n,this.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName=new Map(Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>[e.sourceFilesTopDirectoryPathAliasName,e])),this.hasAtLeastOneActualAssetsGroup=this.relevantAssetsGroupsSettingsMappedByGroupID.size>0,this.actualAssetsSourceFilesAbsolutePaths=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).flatMap(e=>s.ImprovedGlob.getFilesAbsolutePathsSynchronously([e.sourceFilesGlobSelector])),this.supportedSourceFilesNamesExtensionsWithoutLeadingDots=this.assetsProcessingCommonSettings.supportedSourceFilesNamesExtensionsWithoutLeadingDots,this.actualOutputFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>s.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.supportedSourceFilesNamesExtensionsWithoutLeadingDots}))}getAssetsNormalizedSettingsActualForTargetSourceFile(e){return(0,n.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()),t=>s.ImprovedGlob.isFilePathMatchingWithGlobSelector({filePath:e,globSelector:t.sourceFilesGlobSelector}),{mustThrowErrorIfElementNotFoundOrMatchesAreMultiple:!0})}}},4912(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1239)),r=i(6272),o=i(5480);class a extends s.default{static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){let i=t.isSingeEntryPointGroup?t.outputFilesTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,o.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})})],{alwaysForwardSlashSeparators:!0});if((0,r.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=(0,r.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.outputPathTransformations.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),(0,r.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=(0,r.explodeURI_PathToSegments)(i);for(const n of t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,r.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===n);(0,r.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,r.isNumber)(t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,r.explodeURI_PathToSegments)(i).slice(0,-t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values())if(o.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}return(0,r.isUndefined)(t)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.UnexpectedEventError(`No output entry points group has been fond for file of the path:\n${e}`),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}get hasAtLeastOneRelevantEntryPointsGroup(){return this.relevantEntryPointsGroupsSettings.size>0}}t.default=a},8820(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);t.default=class{static transform(e,t){let i=e;if(t.segmentsWhichMustBeRemoved.length>0&&(i=(0,n.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),t.segmentsWhichLastDuplicatesMustBeRemoved.length>0){const e=(0,n.explodeURI_PathToSegments)(i);for(const s of t.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,n.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===s);(0,n.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,n.isNumber)(t.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,n.explodeURI_PathToSegments)(i).slice(0,-t.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}}},1239(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=(i(6272),i(5480));t.default=class{projectBuildingMasterConfigRepresentative;cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths;constructor(e){this.projectBuildingMasterConfigRepresentative=e}isEntryPoint(e){return s.default.isAbsolute(e)||(e=r.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),Array.from(this.relevantEntryPointsGroupsSettings.values()).some(t=>t.isSingeEntryPointGroup?e===t.sourceFilesGlobSelectors[0]:r.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:t.sourceFilesGlobSelectors}))}get actualOutputFilesGlobSelectors(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>r.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.sourceCodeProcessingCommonSettings.supportedOutputFileNameExtensionsWithoutLeadingDots}))}get initialRelevantEntryPointsSourceFilesAbsolutePaths(){return this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths??(this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths=Array.from(this.relevantEntryPointsGroupsSettings.values()).flatMap(e=>r.ImprovedGlob.getFilesAbsolutePathsSynchronously(e.sourceFilesGlobSelectors,{alwaysForwardSlashSeparators:!0})))}}},1815(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9610)),r=n(i(7818)),o=i(6272),a=i(5480),l=n(i(8661));class d{static SUBSEQUENT_ERROR_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS=3;projectBuildingMasterConfigRepresentative;TASK_TITLE_FOR_LOGGING;processedFilesCountDuringCurrentRun=0;waitingForErrorToastNotificationsWillBePermittedAgain=null;isErrorToastNotificationPermitted=!0;constructor({projectBuildingMasterConfigRepresentative:e,taskTitleForLogging:t}){this.projectBuildingMasterConfigRepresentative=e,this.TASK_TITLE_FOR_LOGGING=t}handleErrorIfItWillOccur(){return(0,s.default)({errorHandler:e=>{const t=`${this.TASK_TITLE_FOR_LOGGING}, Error Occurred`;o.Logger.logErrorLikeMessage({title:t,description:e.message,additionalData:{...JSON.parse(JSON.stringify(e)),stdout:"(OMITTED)",stderr:"(OMITTED)"}}),clearTimeout((0,o.nullToUndefined)(this.waitingForErrorToastNotificationsWillBePermittedAgain)),this.isErrorToastNotificationPermitted&&(l.default.notify({title:t,message:"Please check your terminal for the details."}),this.isErrorToastNotificationPermitted=!1),this.waitingForErrorToastNotificationsWillBePermittedAgain=setTimeout(()=>{this.isErrorToastNotificationPermitted=!0},(0,o.secondsToMilliseconds)(d.SUBSEQUENT_ERROR_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS))}})}logInputFilesIfMust(){return r.default.modify({onStreamStartedEventCommonHandler:async e=>(o.Logger.logGeneric({mustOutputIf:this.logging.pathsOfFilesWillBeProcessed,badge:!1,title:"⦅ ➞□ Input ⦆",description:`[ ${this.TASK_TITLE_FOR_LOGGING} ] `+a.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),compactLayout:!0}),this.processedFilesCountDuringCurrentRun++,Promise.resolve(r.default.CompletionSignals.PASSING_ON)),onStreamEndedEventHandler:async()=>(o.Logger.logGeneric({mustOutputIf:this.logging.quantityOfFilesWillBeProcessed,badge:!1,title:this.TASK_TITLE_FOR_LOGGING,description:`${this.processedFilesCountDuringCurrentRun} files will be processed`,compactLayout:!0}),this.processedFilesCountDuringCurrentRun=0,Promise.resolve())})}logOutputFilesIfMust(){return r.default.modify({onStreamStartedEventCommonHandler:async e=>(o.Logger.logSuccess({mustOutputIf:this.logging.pathsOfFilesWillBeProcessed,badge:!1,title:"⦅ □➞ Output ⦆",description:`[ ${this.TASK_TITLE_FOR_LOGGING} ] `+a.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),compactLayout:!0}),this.processedFilesCountDuringCurrentRun++,Promise.resolve(r.default.CompletionSignals.PASSING_ON)),onStreamEndedEventHandler:async()=>(o.Logger.logSuccess({mustOutputIf:this.logging.quantityOfFilesWillBeProcessed,badge:!1,title:this.TASK_TITLE_FOR_LOGGING,description:`${this.processedFilesCountDuringCurrentRun} file(s) has been processed`,compactLayout:!0}),this.processedFilesCountDuringCurrentRun=0,Promise.resolve())})}}t.default=d},6274(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(919)),o=n(i(4520)),a=n(i(4724)),l=n(i(7818)),d=i(3284),u=n(i(2853)),c=n(i(9896)),p=i(6272),g=i(5480);class m extends s.default{static CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE="checkingIssues";static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING;specificationOfFileContentWithCachedResultsOfSourceFilesChecking;sourceFilesCheckingCachedResults;targetFilesGlobSelectors;DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT=2;DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT=1;logging;isFirstGulpPipelinePass=!0;relativePathsOfFoundFilesMentionedInCacheFile=new Set;constructor(e){if(super(e),this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING=g.ImprovedPath.joinPathSegments([r.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,e.sourceFilesCachedCheckingResults.fileNameWithExtension],{alwaysForwardSlashSeparators:!0}),this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking=e.sourceFilesCachedCheckingResults.contentSpecification,c.default.existsSync(this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING))try{this.sourceFilesCheckingCachedResults=g.ObjectDataFilesProcessor.processFile({filePath:this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING,validDataSpecification:this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking,synchronously:!0})}catch(t){p.Logger.logError({mustOutputIf:!1,errorType:p.InvalidExternalDataError.NAME,title:p.InvalidExternalDataError.localization.defaultTitle,description:p.InvalidExternalDataError.localization.generateDescription({mentionToExpectedData:this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking.nameForLogging}),occurrenceLocation:"LinterLikeTaskExecutor.constructor(constructorParameter)",caughtError:t}),this.sourceFilesCheckingCachedResults=e.sourceFilesCachedCheckingResults.emptyValue}else this.sourceFilesCheckingCachedResults=e.sourceFilesCachedCheckingResults.emptyValue;this.targetFilesGlobSelectors=e.targetFilesGlobSelectors,this.logging=e.logging}checkFiles(e){return 0===e.length?(0,u.default)():()=>o.default.src((0,p.readonlyArrayToMutableOne)(e),{read:!1}).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(l.default.modify({onStreamStartedEventCommonHandler:this.registerFoundFileMentionedInCache.bind(this)})).pipe((0,a.default)(this.areUpToDateCheckingResultsForSpecificFilePresentsInCache.bind(this),l.default.modify({onStreamStartedEventCommonHandler:this.pickCheckingResultsForSpecificFileFromCache.bind(this)}),(0,d.obj)(l.default.modify({onStreamStartedEventCommonHandler:m.readVinylFileAndInitializeContentsField}),l.default.modify({onStreamStartedEventCommonHandler:this.logFileCheckingStartedEventIfMust.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.checkSingleFile.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.cacheFileCheckingResult.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.logNoIssuesFoundInFileEventIfMust.bind(this)})))).pipe(super.logOutputFilesIfMust()).pipe(l.default.modify({onStreamEndedEventHandler:async()=>(this.onStreamEnded(),Promise.resolve())}))}async registerFoundFileMentionedInCache(e){const t=g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative);return this.isFirstGulpPipelinePass&&(0,p.isNotUndefined)(this.sourceFilesCheckingCachedResults.files[t])&&this.relativePathsOfFoundFilesMentionedInCacheFile.add(t),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}areUpToDateCheckingResultsForSpecificFilePresentsInCache(e){return this.sourceFilesCheckingCachedResults.files[g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)]?.modificationDateTime__ISO_8601===e.stat?.mtime.toISOString()}async pickCheckingResultsForSpecificFileFromCache(e){const t=g.ImprovedPath.computeRelativePath({comparedPath:e.path,basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath});return e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=this.sourceFilesCheckingCachedResults.files[t]?.issues,Promise.resolve(l.default.CompletionSignals.PASSING_ON)}static async readVinylFileAndInitializeContentsField(e){return e.contents=c.default.readFileSync(e.path),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async logFileCheckingStartedEventIfMust(e){return p.Logger.logInfo({mustOutputIf:this.logging.checkingStart,title:`${this.TASK_TITLE_FOR_LOGGING}, file checking started...`,description:`Path: ${g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)}`}),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async cacheFileCheckingResult(e){const t=Array.isArray(e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE])?e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]:[];return this.sourceFilesCheckingCachedResults.files[g.ImprovedPath.computeRelativePath({comparedPath:e.path,basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,alwaysForwardSlashSeparators:!0})]={issues:t,modificationDateTime__ISO_8601:e.stat?.mtime.toISOString()??(new Date).toISOString()},Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async logNoIssuesFoundInFileEventIfMust(e){const t=Array.isArray(e.lintingResults)?e.lintingResults:[];return p.Logger.logSuccess({mustOutputIf:this.logging.completionWithoutIssues&&0===t.length,title:`${this.TASK_TITLE_FOR_LOGGING}, no issues found in the file`,description:`Path: ${g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)}`}),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}reportCheckingIssues(){if(Object.values(this.sourceFilesCheckingCachedResults.files).some(e=>(0,p.isNotUndefined)(e)&&e.issues.length>0)){const e=[];for(const[t,i]of Object.entries(this.sourceFilesCheckingCachedResults.files))(0,p.isUndefined)(i)||0===i.issues.length||e.push(`■ ${t}: ${i.issues.length} issue(s)\n${this.formatIssuesOfSingleFile(i)}`);p.Logger.logErrorLikeMessage({title:`${this.TASK_TITLE_FOR_LOGGING}, issue(s) found`,description:`\n${e.join("\n\n")}`})}}onStreamEnded(){this.isFirstGulpPipelinePass&&(this.sourceFilesCheckingCachedResults.files=this.relativePathsOfFoundFilesMentionedInCacheFile.size>0?Array.from(Object.entries(this.sourceFilesCheckingCachedResults.files)).reduce((e,[t,i])=>(this.relativePathsOfFoundFilesMentionedInCacheFile.has(t)&&(e[t]=i),e),{}):this.sourceFilesCheckingCachedResults.files,this.relativePathsOfFoundFilesMentionedInCacheFile.clear(),this.isFirstGulpPipelinePass=!1),this.reportCheckingIssuesAndOutputCacheToFile()}reportCheckingIssuesAndOutputCacheToFile(){this.reportCheckingIssues(),g.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING,content:JSON.stringify(this.sourceFilesCheckingCachedResults,null,2),synchronously:!0})}absolutePathsOfAddedOrUpdatedFiles=new Set;waitingForSubsequentFileWillBeAddedOrUpdatedTimer=null;WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_ADDED_OR_UPDATED_PERIOD__SECONDS=1;onFileHasBeenAddedOrUpdated(e){g.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})&&(clearTimeout((0,p.nullToUndefined)(this.waitingForSubsequentFileWillBeAddedOrUpdatedTimer)),this.absolutePathsOfAddedOrUpdatedFiles.add(e),this.waitingForSubsequentFileWillBeAddedOrUpdatedTimer=setTimeout(()=>{this.checkFiles(Array.from(this.absolutePathsOfAddedOrUpdatedFiles))(),this.absolutePathsOfAddedOrUpdatedFiles.clear()},(0,p.secondsToMilliseconds)(this.WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_ADDED_OR_UPDATED_PERIOD__SECONDS)))}relativePathsOfFilesToDelete=new Set;waitingForSubsequentFileWillBeDeletedTimer=null;static WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_DELETED_PERIOD__SECONDS=1;onFileHasBeenDeleted(e){g.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})&&(clearTimeout((0,p.nullToUndefined)(this.waitingForSubsequentFileWillBeDeletedTimer)),this.relativePathsOfFilesToDelete.add(g.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})),this.waitingForSubsequentFileWillBeDeletedTimer=setTimeout(()=>{for(const e of this.relativePathsOfFilesToDelete)delete this.sourceFilesCheckingCachedResults.files[e];this.reportCheckingIssuesAndOutputCacheToFile()},(0,p.secondsToMilliseconds)(m.WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_DELETED_PERIOD__SECONDS)))}}t.default=m},2289(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(4031)),o=n(i(7818)),a=n(i(7749)),l=i(6272);class d extends s.default{absolutePathOfFilesWaitingForReProcessing=new Set;WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;associatedAssetsProcessingSettingsRepresentative;subsequentFilesStateChangeTimeout=null;logging;constructor(e){super(e),this.associatedAssetsProcessingSettingsRepresentative=e.associatedAssetsProcessingSettingsRepresentative,this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.waitingForSubsequentFilesWillSavedPeriod__seconds,this.logging={pathsOfFilesWillBeProcessed:this.associatedAssetsProcessingSettingsRepresentative.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:this.associatedAssetsProcessingSettingsRepresentative.loggingSettings.filesCount}}async replacePlainVinylFileWithAssetVinylFile(e,t){return t(new r.default({initialPlainVinylFile:e,actualAssetsGroupSettings:this.associatedAssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path)})),Promise.resolve(o.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async addContentHashPostfixToFileNameIfMust(e){return e.actualAssetsGroupSettings.revisioning.mustExecute&&a.default.appendPostfixIfPossible(e,{contentHashPostfixSeparator:e.actualAssetsGroupSettings.revisioning.contentHashPostfixSeparator}),Promise.resolve(o.default.CompletionSignals.PASSING_ON)}onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,l.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{this.processAssets(Array.from(this.absolutePathOfFilesWaitingForReProcessing))(),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,l.secondsToMilliseconds)(this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}}t.default=d},4031(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077)),r=n(i(2597)),o=i(5480);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualAssetsGroupSettings;constructor({initialPlainVinylFile:e,actualAssetsGroupSettings:t}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.actualAssetsGroupSettings=t,this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:this.sourceAbsolutePath,relevantAssetsGroupNormalizedSettings:this.actualAssetsGroupSettings})}}t.default=a},4324(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5317)),r=i(6272),o=i(1496);t.default=class{static launchIfMust(e){if(!e.mustProvideIncrementalBuilding)return o.voidPromiseReturningFunction;const t=e.dockerComposeSettingsRepresentative;if((0,r.isUndefined)(t))return o.voidPromiseReturningFunction;const{composingOptions:i,upOptions:n}=t.dockerComposeSettings;return async()=>new Promise(e=>{s.default.exec(["docker compose",...(0,r.isNotUndefined)(i.absolutePathOfCustomEnvironmentFile)?[`--env-file ${i.absolutePathOfCustomEnvironmentFile}`]:[],...(0,r.isNotUndefined)(i.absolutePathOfCustomDockerComposeFile)?[`--file ${i.absolutePathOfCustomDockerComposeFile}`]:[],...(0,r.isNotUndefined)(i.projectName)?[`--project-name ${i.projectName}`]:[],"up","--detach",...(0,r.isNotUndefined)(n.mustAlwaysBuildImagesBeforeStarting)?["--build"]:[]].join(" "),{encoding:"utf-8"},(t,i,n)=>{(0,r.isNotNull)(t)&&r.Logger.logError({errorType:"CommandExecutionInChildProcessFailureError",title:"Command Execution in Child Process Failure",description:`The error has occurred during the execution of Docker\n ${n}`,occurrenceLocation:"DockerComposeLauncher.launchIfMust(projectBuildingMasterConfigRepresentative)",caughtError:t}),e()})})}}},2550(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);t.default=class{static normalize({dockerComposeSettings__fromFile__rawValid:e,commonSettings__normalized:{dockerSetupID:t,projectRootDirectoryAbsolutePath:i}}){if((0,n.isUndefined)(t))return null;const r=e[t];return(0,n.isUndefined)(r)?null:{composingOptions:{projectName:r.composingOptions.projectName,...(0,n.isNotUndefined)(r.composingOptions.composeFileNameWithExtension)?{absolutePathOfCustomDockerComposeFile:s.ImprovedPath.joinPathSegments([i,r.composingOptions.composeFileNameWithExtension],{alwaysForwardSlashSeparators:!0})}:null,...(0,n.isNotUndefined)(r.composingOptions.environmentFileNameWithExtensions)?{absolutePathOfCustomEnvironmentFile:s.ImprovedPath.joinPathSegments([i,r.composingOptions.environmentFileNameWithExtensions],{alwaysForwardSlashSeparators:!0})}:null},upOptions:{mustAlwaysBuildImagesBeforeStarting:!0===r.upOptions.mustAlwaysBuildImagesBeforeStarting}}}}},1563(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$composingOptions:{newName:"composingOptions",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$projectName:{newName:"projectName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1,allowedCharacters:new Set([...n.lowercaseLatinCharacters,...n.stringifiedDigits,"-","_"])},$composeFileNameWithExtension:{newName:"composeFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$environmentFileNameWithExtensions:{newName:"environmentFileNameWithExtensions",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$upOptions:{newName:"upOptions",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$mustAlwaysBuildImagesBeforeStarting:{newName:"mustAlwaysBuildImagesBeforeStarting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(s||(s={})),t.default=s},4142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{dockerComposeSettings;constructor(e){this.dockerComposeSettings=e}}},6151(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={relativePathsOfExcludeFiles:["package-lock.json","yarn.lock"],relativePathsOfExcludeDirectories:["bin","node_modules","obj"]}},633(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(6272),a=i(5480);class l extends s.default{onAnyEventRelatedWithActualFiles={};onFileAddedEventHandlers={};onFileUpdatedEventHandlers={};onFileDeletedEventHandlers={};TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;LOGGER_BADGE_TEXT;constructor({ID:e,mustLogEvents:t,projectBuildingMasterConfigRepresentative:i,targetFilesNamesExtensionsWithoutLeadingDots:n,outputFilesGlobSelectors:s,targetSourceFilesType__singularForm:r}){super({ID:e,targetFilesGlobSelectors:[a.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:n}),...a.ImprovedGlob.includingGlobSelectorsToExcludingOnes(s)],mustLogEvents:t}),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED=(0,o.toUpperCamelCase)(r),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE=(0,o.toLowerCamelCase)(r),this.LOGGER_BADGE_TEXT=`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Source Files Watcher Report`}notifyAboutRelatedFileStateChange(e,t){for(const t of Object.values(this.onAnyEventRelatedWithActualFiles))t(e);switch(t){case r.default.EventsNames.fileAdded:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} File Added`,description:e});for(const t of Object.values(this.onFileAddedEventHandlers))t(e);break;case r.default.EventsNames.fileUpdated:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Updated`,description:e});for(const t of Object.values(this.onFileUpdatedEventHandlers))t(e);break;case r.default.EventsNames.fileDeleted:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Deleted`,description:e});for(const t of Object.values(this.onFileDeletedEventHandlers))t(e)}}addOnAnyEventRelatedWithActualFilesHandler({handlerID:e,handler:t}){return this.onAnyEventRelatedWithActualFiles[e]=t,this}addOnFileAddedEventHandler({handlerID:e,handler:t}){return this.onFileAddedEventHandlers[e]=t,this}addFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onFileUpdatedEventHandlers[e]=t,this}addOnFileDeletedEventHandler({handlerID:e,handler:t}){return this.onFileDeletedEventHandlers[e]=t,this}}t.default=l},2909(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(6272),a=i(5480);class l extends s.default{onAnyEventRelatedWithActualFiles={};onAnyRelatedFileAddedEventHandlers={};onAnyRelatedFileUpdatedEventHandlers={};onAnyRelatedFileDeletedEventHandlers={};onEntryPointFileAddedEventHandlers={};onEntryPointFileUpdatedEventHandlers={};onEntryPointFileDeletedEventHandlers={};onNonEntryPointFileAddedEventHandlers={};onNonEntryPointFileUpdatedEventHandlers={};onNonEntryPointFileDeletedEventHandlers={};TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;LOGGER_BADGE_TEXT;constructor({ID:e,mustLogEvents:t,projectBuildingMasterConfigRepresentative:i,targetFilesNamesExtensionsWithoutLeadingDots:n,outputFilesGlobSelectors:s,targetSourceFilesType__singularForm:r}){super({ID:e,targetFilesGlobSelectors:[a.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:n}),...a.ImprovedGlob.includingGlobSelectorsToExcludingOnes(s)],mustLogEvents:t}),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED=(0,o.toUpperCamelCase)(r),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE=(0,o.toLowerCamelCase)(r),this.LOGGER_BADGE_TEXT=`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} source files watcher report`}addOnAnyEventRelatedWithActualFilesHandler({handlerID:e,handler:t}){return this.onAnyEventRelatedWithActualFiles[e]=t,this}addOnAnyRelatedFileAddedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileAddedEventHandlers[e]=t,this}addOnAnyRelatedFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileUpdatedEventHandlers[e]=t,this}addOnAnyRelatedFileDeletedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileDeletedEventHandlers[e]=t,this}addOnEntryPointFileAddedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileAddedEventHandlers[e]=t,this}addOnEntryPointFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileUpdatedEventHandlers[e]=t,this}addOnEntryPointFileDeletedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileDeletedEventHandlers[e]=t,this}addOnNonEntryPointFileAddedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileAddedEventHandlers[e]=t,this}addOnNonEntryPointFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileUpdatedEventHandlers[e]=t,this}addOnNonEntryPointFileDeletedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileDeletedEventHandlers[e]=t,this}notifyAboutRelatedFileStateChange(e,t){const i=this.isFileAbsolutePathOfEntryPoint(e);for(const t of Object.values(this.onAnyEventRelatedWithActualFiles))t(e);switch(t){case r.default.EventsNames.fileAdded:for(const t of Object.values(this.onAnyRelatedFileAddedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Added`,description:e});for(const t of Object.values(this.onEntryPointFileAddedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Added`,description:e});for(const t of Object.values(this.onNonEntryPointFileAddedEventHandlers))t(e)}break;case r.default.EventsNames.fileUpdated:for(const t of Object.values(this.onAnyRelatedFileUpdatedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Updated`,description:e});for(const t of Object.values(this.onEntryPointFileUpdatedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Updated`,description:e});for(const t of Object.values(this.onNonEntryPointFileUpdatedEventHandlers))t(e)}break;case r.default.EventsNames.fileDeleted:for(const t of Object.values(this.onAnyRelatedFileDeletedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Deleted`,description:e});for(const t of Object.values(this.onEntryPointFileDeletedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Deleted`,description:e});for(const t of Object.values(this.onNonEntryPointFileDeletedEventHandlers))t(e)}}}isFileAbsolutePathOfEntryPoint(e){return this.settingsRepresentative.isEntryPoint(e)}}t.default=l},4871(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5309)),r=n(i(4520)),o=i(5480);class a{static passiveWatchers=new Set;static watchIfMust(e){return e.mustProvideIncrementalBuilding?t=>{r.default.watch([o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath}),...o.ImprovedGlob.includingGlobSelectorsToExcludingOnes(Array.from(e.filesWatchingSettings.excludedFilesGlobSelectors)),...o.ImprovedGlob.includingGlobSelectorsToExcludingOnes(Array.from(e.filesWatchingSettings.excludedDirectoriesGlobSelectors))]).on("all",a.onAnyChokidarEvent.bind(this)),t()}:e=>{e()}}static addPassiveWatcher(e){a.passiveWatchers.add(e)}static onAnyChokidarEvent(e,t){let i;switch(e){case s.default.EventsNames.fileAdded:i=a.EventsNames.fileAdded;break;case s.default.EventsNames.fileChanged:i=a.EventsNames.fileUpdated;break;case s.default.EventsNames.fileDeleted:i=a.EventsNames.fileDeleted;break;default:return}const n=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(t);for(const e of a.passiveWatchers)e.isRelatedFileAbsolutePath(n)&&e.notifyAboutRelatedFileStateChange(n,i)}}!function(e){let t;!function(e){e.fileAdded="FILE_ADDED",e.fileUpdated="FILE_UPDATED",e.fileDeleted="FILE_DELETED"}(t=e.EventsNames||(e.EventsNames={}))}(a||(a={})),t.default=a},30(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);t.default=class{ID;mustLogEvents;targetFilesGlobSelectors;constructor({ID:e,targetFilesGlobSelectors:t,mustLogEvents:i}){this.ID=e,this.targetFilesGlobSelectors=t,this.mustLogEvents=i}isRelatedFileAbsolutePath(e){return n.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})}}},3476(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2152)),r=i(6272),o=i(5480);t.default=class{static normalizeIfThereAreActualOnes({outputPackageJSON_GeneratingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){if((0,r.isUndefined)(e))return null;if((0,r.isNotUndefined)(t.tasksAndSourceFilesSelection)&&!t.mustGenerateOutputPackageJSON)return null;const i=e.buildingModeDependent[t.projectBuildingMode];if((0,r.isUndefined)(i))return null;const n=o.ObjectDataFilesProcessor.processFile({filePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,"package.json"],{alwaysForwardSlashSeparators:!0}),validDataSpecification:{subtype:r.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"PackageJSON_OfConsumingProject",properties:{scripts:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}},dependencies:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}},devDependencies:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}}}},synchronously:!0});return{dependencies:Object.entries(n.dependencies).reduce((t,[i,n])=>(!0===e.inheritedDependencies?.includes(i)&&(t[i]=n),t),{}),developmentDependencies:Object.entries(n.devDependencies).reduce((t,[i,n])=>(!0===e.inheritedDevelopmentDependencies?.includes(i)&&(t[i]=n),t),{}),scripts:Object.entries(n.devDependencies).reduce((t,[i,n])=>(!0===e.inheritedNPM_Scripts?.includes(i)&&(t[i]=n),t),e.newNPM_Scripts??{}),indentString:i.indentString??e.indentString??s.default.indentString,linesSeparator:i.linesSeparator??e.linesSeparator??s.default.linesSeparator,outputFileAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,i.outputDirectoryRelativePath,"package.json"],{alwaysForwardSlashSeparators:!0})}}}},2770(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{outputPackageJSON_GeneratingSettings;constructor(e){this.outputPackageJSON_GeneratingSettings=e}}},2152(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(857)),r=i(6272),o={indentString:" ",linesSeparator:"\n"===s.default.EOL?r.LineSeparators.lineFeed:r.LineSeparators.carriageReturnAndLineFeed};t.default=o},8865(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=i(6272);var o;!function(e){e.propertiesSpecification={$inheritedDependencies:{newName:"inheritedDependencies",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$inheritedDevelopmentDependencies:{newName:"inheritedDevelopmentDependencies",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$inheritedNPM_Scripts:{newName:"inheritedNPM_Scripts",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$newNPM_Scripts:{newName:"newNPM_Scripts",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:String,minimalCharactersCount:1}},$indentString:{newName:"indentString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$linesSeparator:{newName:"linesSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(r.LineSeparators.lineFeed)},$buildingModeDependent:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$indentString:{newName:"indentString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$linesSeparator:{newName:"linesSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(r.LineSeparators.lineFeed)}}}}}}(o||(o={})),t.default=o},8066(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9896)),r=i(6272),o=n(i(5553));class a{static generateIfMust(e){if((0,r.isUndefined)(e.outputPackageJSON_GeneratingSettingsRepresentative))return async()=>Promise.resolve();const{outputPackageJSON_GeneratingSettingsRepresentative:t}=e;return async()=>a.generate(t.outputPackageJSON_GeneratingSettings)}static async generate({outputFileAbsolutePath:e,dependencies:t,developmentDependencies:i,scripts:n,indentString:r,linesSeparator:a}){return s.default.writeFileSync(e,(0,o.default)(JSON.stringify({private:!0,dependencies:t,devDependencies:i,scripts:n},null,r),a)),Promise.resolve()}}t.default=a},1569(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(976)),r=n(i(4520)),o=n(i(7818)),a=n(i(2853)),l=i(6272),d=n(i(6928));t.default=class{static providePlainCopierIfMust(e){if((0,l.isUndefined)(e.plainCopyingSettingsRepresentative)||0===Object.entries(e.plainCopyingSettingsRepresentative.filesGroups).length)return(0,a.default)();const t=Array.from(s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.keys());return 0===t.length?(0,a.default)():()=>r.default.src(t).pipe(o.default.modify({async onStreamStartedEventCommonHandler(e){const t=s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get((0,l.replaceDoubleBackslashesWithForwardSlashes)(e.path));return(0,l.isUndefined)(t)?Promise.resolve(o.default.CompletionSignals.REMOVING_FILE_FROM_STREAM):(e.path=t,e.base=d.default.dirname(t),Promise.resolve(o.default.CompletionSignals.PASSING_ON))}})).pipe(r.default.dest(e=>e.base))}}},7366(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9626)),r=n(i(7700)),o=n(i(8820)),a=n(i(976)),l=n(i(6112)),d=n(i(9896)),u=i(6272),c=i(5480);class p{static normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:{tasksAndSourceFilesSelection:t,projectRootDirectoryAbsolutePath:i,projectBuildingMode:n}}){const s=t?.plainCopying??[],r={};for(const[t,o]of Object.entries(e.filesGroups)){if(s.length>0&&!s.includes(t))continue;const e=o.aliasName??t;if("sourceFileRelativePath"in o){const s=o.buildingModeDependent[n];if((0,u.isUndefined)(s))continue;r[t]=p.normalizeFilesSingularGroupSettings({projectRootDirectoryAbsolutePath:i,sourceFileRelativePath:o.sourceFileRelativePath,aliasName:e,filesSingularGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:s})}else{const s=o.buildingModeDependent[n];if((0,u.isUndefined)(s))continue;r[t]=p.normalizeFilesPluralGroupSettings({projectRootDirectoryAbsolutePath:i,sourceTopDirectoryRelativePath:o.sourceTopDirectoryRelativePath,fileNameLastExtensions:o.fileNameLastExtensions,aliasName:e,excludedSubdirectoriesPathsRelativeToAssetsGroupSourceTopDirectory:o.excludeSubdirectoriesRelativePaths,excludedFilesPathsRelativeToAssetsGroupSourceTopDirectory:o.excludeFilesRelativePaths,filesPluralGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:s})}}return{filesGroups:r}}static normalizeFilesSingularGroupSettings({aliasName:e,projectRootDirectoryAbsolutePath:t,sourceFileRelativePath:i,filesSingularGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:n}){const s=c.ImprovedPath.joinPathSegments([t,i],{alwaysForwardSlashSeparators:!0}),r=(0,u.extractFileNameWithAllExtensionsFromPath)({targetPath:s,mustThrowErrorIfLastPathSegmentHasNoDots:!0}),o=p.computeOutputFileNameWithExtensions({initialFileNameWithExtensions:r,sourceFileAbsolutePath:s,revisioningSettings:n.revisioning,...(0,u.isNotUndefined)(n.newFileNameWithExtension)?{fileRenamings:[{pathRelativeToSourceDirectory:r,newFileNameWithExtension:n.newFileNameWithExtension}]}:null}),l=c.ImprovedPath.joinPathSegments([t,n.outputDirectoryRelativePath,o],{alwaysForwardSlashSeparators:!0});return a.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.set(s,l),{aliasName:e,sourceFileAbsolutePath:s,outputFileAbsolutePath:l}}static normalizeFilesPluralGroupSettings({projectRootDirectoryAbsolutePath:e,sourceTopDirectoryRelativePath:t,fileNameLastExtensions:i,excludedSubdirectoriesPathsRelativeToAssetsGroupSourceTopDirectory:n=[],excludedFilesPathsRelativeToAssetsGroupSourceTopDirectory:s=[],aliasName:l,filesPluralGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:d}){const g=c.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0}),m=c.ImprovedPath.joinPathSegments([e,d.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),h=new Map;for(const e of c.ImprovedGlob.getFilesAbsolutePathsSynchronously([c.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:g,fileNamesExtensions:i}),...n.map(e=>c.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(c.ImprovedPath.joinPathSegments([g,e],{alwaysForwardSlashSeparators:!0}))),...s.map(e=>c.ImprovedGlob.includingGlobSelectorToExcludingOne(c.ImprovedPath.joinPathSegments([g,e],{alwaysForwardSlashSeparators:!0})))],{alwaysForwardSlashSeparators:!0})){const t=o.default.transform(c.ImprovedPath.joinPathSegments([m,c.ImprovedPath.computeRelativePath({basePath:g,comparedPath:c.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}})})],{alwaysForwardSlashSeparators:!0}),r.default.normalize(d.outputDirectoryPathTransformations)),i=p.computeOutputFileNameWithExtensions({initialFileNameWithExtensions:(0,u.extractFileNameWithAllExtensionsFromPath)({targetPath:e,mustThrowErrorIfLastPathSegmentHasNoDots:!1}),sourceTopDirectoryAbsolutePath:g,sourceFileAbsolutePath:e,revisioningSettings:d.revisioning,fileRenamings:d.filesRenamings}),n=c.ImprovedPath.joinPathSegments([t,i],{alwaysForwardSlashSeparators:!0});h.set(e,n)}return(0,u.addEntriesToMap)({targetMap:a.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap,newEntries:h,mutably:!0}),{aliasName:l,sourceTopDirectoryAbsolutePath:g,outputTopDirectoryAbsolutePath:m,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:h}}static computeOutputFileNameWithExtensions({initialFileNameWithExtensions:e,sourceTopDirectoryAbsolutePath:t,sourceFileAbsolutePath:i,revisioningSettings:n,fileRenamings:r=[]}){let o=e;for(const e of r)if(e.pathRelativeToSourceDirectory===((0,u.isUndefined)(t)?i:c.ImprovedPath.computeRelativePath({basePath:t,comparedPath:i,alwaysForwardSlashSeparators:!0}))){o=e.newFileNameWithExtension;break}if(!0===n?.enable||s.default.revisioning.mustExecute){const e=d.default.readFileSync(i,"utf-8");o=[(0,u.removeAllFileNameExtensions)(o),n?.contentHashPostfixSeparator??s.default.revisioning.contentHashPostfixSeparator,(0,l.default)(e),`.${(0,u.extractAllFileNameExtensions)({targetPath:o,withLeadingDots:!1}).join(".")}`].join("")}return o}}t.default=p},3136(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(976)),r=i(5480),o=i(6272);t.default=class{singularGroupsMappedByAliases=new Map;pluralGroupsMappedByAliases=new Map;filesGroups;constructor(e){this.filesGroups=e.filesGroups;for(const t of Object.values(e.filesGroups))"sourceFileAbsolutePath"in t?this.singularGroupsMappedByAliases.set(`$${t.aliasName}`,t):this.pluralGroupsMappedByAliases.set(`$${t.aliasName}`,t)}getSourceFileAbsolutePathByAliasedPath(e){if(1===e.length){const t=this.singularGroupsMappedByAliases.get(e[0])?.sourceFileAbsolutePath;return(0,o.isUndefined)(t)?null:s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get(t)??null}const t=this.pluralGroupsMappedByAliases.get(e[0])?.sourceTopDirectoryAbsolutePath;return(0,o.isUndefined)(t)?null:s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get(r.ImprovedPath.joinPathSegments([t,...e.slice(1)],{alwaysForwardSlashSeparators:!0}))??null}}},9626(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={revisioning:{mustExecute:!1,contentHashPostfixSeparator:"--"}}},1991(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(9747)),o=i(6272);var a;!function(e){e.propertiesSpecification={$filesGroups:{newName:"filesGroups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$aliasName:{newName:"aliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$sourceTopDirectoryRelativePath:{newName:"sourceTopDirectoryRelativePath",type:String,undefinedForbiddenIf:{predicate:({rawData__currentObjectDepth:e})=>(0,o.isUndefined)(e.$sourceFileRelativePath),descriptionForLogging:'"$sourceFileRelativePath" not undefined'},isNullForbidden:!0},$fileNameLastExtensions:{newName:"fileNameLastExtensions",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$excludeSubdirectoriesRelativePaths:{newName:"excludeSubdirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$excludeFilesRelativePaths:{newName:"excludeFilesRelativePaths",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$contentHashPostfixSeparator:{newName:"contentHashPostfixSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$newFileNameWithExtension:{newName:"newFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$outputTopDirectoryRelativePath:{newName:"outputTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$filesRenamings:{newName:"filesRenamings",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{$pathRelativeToSourceDirectory:{newName:"pathRelativeToSourceDirectory",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$newFileNameWithExtension:{newName:"newFileNameWithExtension",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}},$outputDirectoryPathTransformations:{newName:"outputDirectoryPathTransformations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:r.default.propertiesSpecification}}}}}}}}}(a||(a={})),t.default=a},976(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap=new Map}t.default=i},92(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(9851),r=n(i(2159)),o=n(i(2282)),a=n(i(5685)),l=n(i(843)),d=n(i(2662)),u=n(i(5196)),c=n(i(4602)),p=n(i(4784)),g=n(i(7366)),m=n(i(7927)),h=n(i(2550)),f=n(i(3476)),S=i(6272),F=i(5480);class P{static localization=P.getDefaultLocalization();static normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromFile__rawValid:t,projectBuildingConfig__fromConsole:i}){const n=t.commonSettings??{},F=P.determineActualSelectiveExecution({commonSettings__fromFile__rawValid:n,projectBuildingConfig__fromConsole:i}),_=r.default.normalize({commonSettings__fromFile__rawValid:n,consumingProjectRootDirectoryAbsolutePath:e,projectBuildingMode:i.projectBuildingMode,...(0,S.isNotUndefined)(i.selectiveExecutionID)?{actualSelectiveExecutionID:i.selectiveExecutionID}:null,actualSelectiveExecution:F});return{commonSettings:_,...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.markupProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.markupProcessing)?{}:{markupProcessing:o.default.normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.stylesProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.stylesProcessing)?{}:{stylesProcessing:a.default.normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing)?{}:{ECMA_ScriptLogicProcessing:l.default.normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.imagesProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.imagesProcessing)?{}:{imagesProcessing:d.default.normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.fontsProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.fontsProcessing)?{}:{fontsProcessing:u.default.normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.videosProcessing)?{}:{videosProcessing:c.default.normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.audiosProcessing)?{}:{audiosProcessing:p.default.normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.plainCopying];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.plainCopying)?{}:{plainCopying:g.default.normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading];if((0,S.isUndefined)(e))return{};const i=F?.browserLiveReloadingSetupID;return{browserLiveReloading:m.default.normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:_,hasSelectiveExecutionBeenDeclared:(0,S.isNotUndefined)(F),...(0,S.isNotUndefined)(i)?{selectedBrowserLiveReloadingSetupID:i}:{}})}})(),...(()=>{const e=h.default.normalize({dockerComposeSettings__fromFile__rawValid:t[s.ProjectBuildingTasksIDsForConfigFile.dockerLaunching],commonSettings__normalized:_});return(0,S.isNotNull)(e)?{dockerCompose:e}:{}})(),...(()=>{const e=f.default.normalizeIfThereAreActualOnes({outputPackageJSON_GeneratingSettings__fromFile__rawValid:t[s.ProjectBuildingTasksIDsForConfigFile.outputPackageJSON_Generating],commonSettings__normalized:_});return(0,S.isNotNull)(e)?{outputPackageJSON_Generating:e}:{}})()}}static setLocalization(e){P.localization=e}static determineActualSelectiveExecution({commonSettings__fromFile__rawValid:e,projectBuildingConfig__fromConsole:t}){const i=e.selectiveExecutions;let n;return(0,S.isNotUndefined)(t.selectiveExecutionID)&&((0,S.isUndefined)(i)&&S.Logger.throwErrorWithFormattedMessage({errorInstance:new F.InvalidConsoleCommandError({customMessage:P.localization.generateNoSelectiveExecutionsHasBeenDefinedErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecution(parametersObject)",title:S.InvalidParameterValueError.localization.defaultTitle}),n=i[t.selectiveExecutionID],(0,S.isUndefined)(n)&&S.Logger.throwErrorWithFormattedMessage({errorInstance:new F.InvalidConsoleCommandError({customMessage:P.localization.generateUndefinedSelectiveExecutionID_ErrorMessage({specifiedInConsoleCommandSelectiveExecutionID:t.selectiveExecutionID})}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecution(parametersObject)",title:S.InvalidParameterValueError.localization.defaultTitle})),n}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},3382(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4433)),r=n(i(554)),o=n(i(6394)),a=n(i(444)),l=n(i(3015)),d=n(i(5609)),u=n(i(7491)),c=n(i(2421)),p=n(i(1991)),g=n(i(6191)),m=n(i(8865)),h=n(i(1563)),f=i(6272);var S;!function(e){e.propertiesSpecification={nameForLogging:"ProjectBuildingConfig__FromFile__RawValid",subtype:f.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,mustExpectOnlySpecifiedProperties:!0,properties:{$projectBuilding:{newName:"projectBuilding",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$commonSettings:{newName:"commonSettings",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:s.default.propertiesSpecification},$markupProcessing:{newName:"markupProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:r.default.propertiesSpecification},$stylesProcessing:{newName:"stylesProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},$ECMA_ScriptLogicProcessing:{newName:"ECMA_ScriptLogicProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},$imagesProcessing:{newName:"imagesProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:l.default.propertiesSpecification},$fontsProcessing:{newName:"fontsProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:d.default.propertiesSpecification},$videosProcessing:{newName:"videosProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:u.default.propertiesSpecification},$audiosProcessing:{newName:"audiosProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:c.default.propertiesSpecification},$plainCopying:{newName:"plainCopying",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:p.default.propertiesSpecification},$browserLiveReloading:{newName:"browserLiveReloading",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:g.default.propertiesSpecification},$outputPackageJSON_Generating:{newName:"outputPackageJSON_Generating",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:m.default.propertiesSpecification},$dockerLaunching:{newName:"dockerLaunching",...h.default.propertiesSpecification,undefinedValueSubstitution:{},mustTransformNullToUndefined:!0}}}}}}(S||(S={})),t.default=S},9271(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(1581)),o=n(i(7741)),a=n(i(4431)),l=n(i(5872)),d=n(i(682)),u=n(i(1846)),c=n(i(1340)),p=n(i(3136)),g=n(i(792)),m=n(i(2770)),h=n(i(4142)),f=i(6272);class S{static hasBeenConstructedAtLeastOnce=!1;markupProcessingSettingsRepresentative;stylesProcessingSettingsRepresentative;ECMA_ScriptLogicProcessingSettingsRepresentative;imagesProcessingSettingsRepresentative;fontsProcessingSettingsRepresentative;audiosProcessingSettingsRepresentative;videosProcessingSettingsRepresentative;plainCopyingSettingsRepresentative;browserLiveReloadingSettingsRepresentative;dockerComposeSettingsRepresentative;outputPackageJSON_GeneratingSettingsRepresentative;commonSettings;constructor(e){S.hasBeenConstructedAtLeastOnce&&f.Logger.throwErrorWithFormattedMessage({errorInstance:new f.ClassRedundantSubsequentInitializationError({className:"ProjectBuildingMasterConfigRepresentative"}),title:f.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"ProjectBuildingMasterConfigRepresentative.constructor(projectBuilderConfig__normalized)"}),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 o.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 d.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 c.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)),(0,f.isNotUndefined)(e.dockerCompose)&&(this.dockerComposeSettingsRepresentative=new h.default(e.dockerCompose)),(0,f.isNotUndefined)(e.outputPackageJSON_Generating)&&(this.outputPackageJSON_GeneratingSettingsRepresentative=new m.default(e.outputPackageJSON_Generating)),S.hasBeenConstructedAtLeastOnce=!0}get consumingProjectRootDirectoryAbsolutePath(){return this.commonSettings.projectRootDirectoryAbsolutePath}get actualPublicDirectoryAbsolutePath(){return this.commonSettings.actualPublicDirectoryAbsolutePath}get selectiveExecutionID(){return this.commonSettings.selectiveExecutionID}get filesWatchingSettings(){return this.commonSettings.filesWatching}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 isProductionLikeBuildingMode(){return[s.default.testing,s.default.staging,s.default.production].includes(this.commonSettings.projectBuildingMode)}get mustProvideIncrementalBuilding(){return this.commonSettings.mustProvideIncrementalBuilding}getECMA_ScriptLogicProcessingSettingsRepresentativeIfMustOrchestrateLocalDevelopmentServer(){return(0,f.isNotUndefined)(this.ECMA_ScriptLogicProcessingSettingsRepresentative?.localDevelopmentServerOrchestrationSettings)&&this.isLocalDevelopmentBuildingMode?this.ECMA_ScriptLogicProcessingSettingsRepresentative:null}getBrowserLiveReloadingSettingsRepresentativeIfMustProvideBrowserLiveReloading(){return this.mustProvideIncrementalBuilding?(0,f.undefinedToNull)(this.browserLiveReloadingSettingsRepresentative):null}get processingOnDemandSettings(){return this.commonSettings.processingOnDemand}get CSS_ClassesMinificationOnFlySettings(){return this.commonSettings.CSS_ClassesMinificationOnFly}}t.default=S},843(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5256));var r=s.default.SupportedECMA_ScriptRuntimesTypes;const o=n(i(8931)),a=n(i(171)),l=n(i(2274)),d=n(i(8527)),u=n(i(4061)),c=n(i(9896)),p=n(i(818)),g=i(6272),m=i(5480);class h extends l.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions=new Map;commonActualPreprocessorVariables;static normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new h({projectBuildingCommonSettings__normalized:t,...(0,g.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing}:null,commonPreprocessorVariables:e.common?.preprocessorVariables}),n=i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings.bind(i)),r=e.linting??{};return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots},linting:{mustExecute:e.linting?.enable??a.default.linting.mustExecute,...(0,g.isNotUndefined)(r.presetFileRelativePath)?{presetFileAbsolutePath:m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,r.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:n,...i.normalizeLocalDevelopmentServerOrchestrationSettingsIfAny(n,e.localDevelopmentServerOrchestration),...(0,g.isNotUndefined)(e.electron)?{electron:{hotReloadingForLocalDevelopmentMode:{rootDirectoryAbsolutePath:m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,e.electron.hotReloadingForLocalDevelopmentMode.rootDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ignoredFilesAndDirectoriesAbsolutePaths:(e.electron.hotReloadingForLocalDevelopmentMode.ignoredFilesAndDirectoriesRelativePaths??[]).map(e=>m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}}}:null,logging:{filesPaths:e.logging?.filesPaths??a.default.logging.filesPaths,filesCount:e.logging?.filesCount??a.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:e.logging?.filesWatcherEvents??a.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:e.logging?.filesWatcherEvents??a.default.logging.filesWatcherEvents,linting:{starting:e.logging?.linting.starting??a.default.logging.linting.starting,completionWithoutIssues:e.logging?.linting.completionWithoutIssues??a.default.logging.linting.completionWithoutIssues}}}}constructor({projectBuildingCommonSettings__normalized:e,entryPointsGroupsIDsSelection:t,commonPreprocessorVariables:i={}}){super({projectBuildingCommonSettings__normalized:e,entryPointsGroupsIDsSelection:t}),this.commonActualPreprocessorVariables={...i.forAllProjectBuildingModes??{},...i.buildingModeDependent?.[e.projectBuildingMode]??{}}}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings(e,t){const i=t.distributing,n=m.ImprovedPath.replacePathSeparatorsToForwardSlashes(t.typeScriptConfigurationFileRelativePath??a.default.typeScriptConfigurationFileRelativePath),s=m.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),o=this.cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions.get(n)??this.readAndCacheTypeScriptCompilerOptions({typeScriptConfigurationFileAbsolutePath:s,typeScriptConfigurationFileRelativePath:n});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,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.pug:return{type:r.pug};case r.electronMainProcess:return{type:r.electronMainProcess,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.electronRendererProcess:return{type:r.electronRendererProcess,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.electronPreload:return{type:r.electronPreload,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}}}})(),...(0,g.isNotUndefined)(t.associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer)?{associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer:t.associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer}:null,typeScriptConfigurationFileAbsolutePath:s,typeScriptCompilerOptions:o,directoriesAliasesAndCorrespondingAbsolutePathsMap:h.createDirectoriesAliasesAndCorrespondingAbsolutePathsMap(s,o),revisioning:d.default.normalize({revisioningSettings__rawValid:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning,revisioningSettings__default:{mustExecute:({consumingProjectBuildingMode:e})=>a.default.revisioning.mustExecute({consumingProjectBuildingMode:e,targetRuntimeType:t.targetRuntime.type}),contentHashPostfixSeparator:a.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode}),...(0,g.isNotUndefined)(i)?{distributing:{exposingOfExportsFromEntryPoints:{mustExpose:i.exposingOfExportsFromEntryPoints?.mustExpose??a.default.distributing.exposingOfExportsFromEntryPoints.mustExpose,namespace:i.exposingOfExportsFromEntryPoints?.namespace,mustAssignToWindowObject:i.exposingOfExportsFromEntryPoints?.mustAssignToWindowObject??a.default.distributing.exposingOfExportsFromEntryPoints.mustAssignToWindowObject},externalizingDependencies:i.externalizingDependencies??[],typeScriptTypesDeclarations:{mustGenerate:i.typeScriptTypesDeclarations?.mustGenerate??a.default.distributing.typeScriptTypesDeclarations.mustGenerate,fileNameWithoutExtension:i.typeScriptTypesDeclarations?.fileNameWithoutExtension??a.default.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension}}}:null,preprocessorVariables:{...this.commonActualPreprocessorVariables,...t.preprocessorVariables??{},...t.buildingModeDependent[this.consumingProjectBuildingMode].preprocessorVariables??{}},dependenciesViaGlobals:t.dependenciesViaGlobals??{}}}normalizeLocalDevelopmentServerOrchestrationSettingsIfAny(e,t){if(this.projectBuildingCommonSettings__normalized.projectBuildingMode!==o.default.localDevelopment||(0,g.isUndefined)(t))return null;const i=e.get(t.targetSingularEntryPointsGroupID);if((0,g.isUndefined)(i)||!i.isSingeEntryPointGroup)return null;let n={};return(0,g.isNotUndefined)(t.environmentVariablesFileRelativePath)&&(n=p.default.parse(c.default.readFileSync(m.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.environmentVariablesFileRelativePath]),"utf-8"))),{localDevelopmentServerOrchestration:{targetSourceFileAbsolutePath:i.sourceFilesGlobSelectors[0],arguments:t.arguments??[],environmentVariables:{...t.environmentVariables??null,...n}}}}readAndCacheTypeScriptCompilerOptions({typeScriptConfigurationFileAbsolutePath:e,typeScriptConfigurationFileRelativePath:t}){const i=u.default.readTypeScriptConfigurationFileAndGetCompilerOptions(e);return this.cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions.set(t,i),i}static createDirectoriesAliasesAndCorrespondingAbsolutePathsMap(e,t){const i=t.baseUrl??m.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1}});return new Map(Object.entries(t.paths??{}).map(([e,t])=>[e.endsWith("/*")?e.slice(0,-2):e,t.map(e=>m.ImprovedPath.joinPathSegments([i,...e.endsWith("/*")?[e.slice(0,-2)]:[e]],{alwaysForwardSlashSeparators:!0}))]))}}t.default=h},5256(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["js","mjs","ts","mts","jsx","tsx"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set(["jsx","tsx","vue"]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["js"],function(e){e.browser="BROWSER",e.webWorker="WEB_WORKER",e.nodeJS="NODEJS",e.pug="PUG",e.electronMainProcess="ELECTRON_MAIN_PROCESS",e.electronRendererProcess="ELECTRON_RENDERER_PROCESS",e.electronPreload="ELECTRON_PRELOAD"}(t=e.SupportedECMA_ScriptRuntimesTypes||(e.SupportedECMA_ScriptRuntimesTypes={}))}(i||(i={})),t.default=i},4431(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(1239)),o=i(6272);class a extends r.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="ECMAScript Logic";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="ECMAScript Logic";entryPointsGroupsNormalizedSettingsMappedByReferences;relevantEntryPointsGroupsSettings;electronSettings;loggingSettings;localDevelopmentServerOrchestrationSettings;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.sourceCodeProcessingCommonSettings=e.common,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.electronSettings=e.electron,this.loggingSettings=e.logging,this.localDevelopmentServerOrchestrationSettings=e.localDevelopmentServerOrchestration,this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,o.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${s.default}${e.ID}`,e]))}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}}t.default=a},171(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931));var r=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const o={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,mustAssignToWindowObject:!1},typeScriptTypesDeclarations:{mustGenerate:!1,fileNameWithoutExtension:"index.d.ts"}},logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0}}};t.default=o},444(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const r=n(i(8931)),o=n(i(1579)),a=n(i(7534)),l=n(i(523)),d=i(6272);var u;!function(e){e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$forAllProjectBuildingModes:{newName:"forAllProjectBuildingModes",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}},$buildingModeDependent:{newName:"buildingModeDependent",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:r.default.staticPreview,$localDevelopment:r.default.localDevelopment,$testing:r.default.testing,$staging:r.default.staging,$production:r.default.production},value:{type:Object,properties:{}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},...a.default.generatePropertiesSpecification({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:{$targetRuntime:{newName:"targetRuntime",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$type:{newName:"type",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:Object.values(s)},$minimalVersion:{newName:"minimalVersion",type:Object,undefinedForbiddenIf:{predicate:e=>[s.nodeJS,s.electronMainProcess,s.electronRendererProcess,s.electronPreload].includes(e.type),descriptionForLogging:"Target runtime is NodeJS or Electron-like"},isNullForbidden:!0,properties:{$major:{newName:"major",type:Number,isUndefinedForbidden:!0,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},$minor:{newName:"minor",type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumberOrZero,isNaN_Forbidden:!0}}}}},$associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer:{newName:"associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$preprocessorVariables:{newName:"preprocessorVariables",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}},$dependenciesViaGlobals:{newName:"dependenciesViaGlobals",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:String,minimalCharactersCount:1}},$distributing:{newName:"distributing",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$exposingOfExportsFromEntryPoints:{newName:"exposingOfExportsFromEntryPoints",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$mustExpose:{newName:"mustExpose",type:Boolean,isUndefinedForbidden:!0,isNullForbidden:!0},$namespace:{newName:"namespace",type:String,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e,targetPropertyPathSegments:t,rawData__full:i})=>!0!==e.$mustAssignToWindowObject&&(0,d.getObjectPropertySafely)(i,[...t.slice(0,-3),"$targetRuntime","$type"])===s.browser,descriptionForLogging:"`targetRuntime` is browser"},isNullForbidden:!0},$mustAssignToWindowObject:{newName:"mustAssignToWindowObject",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$externalizingDependencies:{newName:"externalizingDependencies",isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,type:Array,element:{type:String,minimalCharactersCount:1}},$typeScriptTypesDeclarations:{newName:"typeScriptTypesDeclarations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$mustGenerate:{newName:"mustGenerate",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fileNameWithoutExtension:{newName:"fileNameWithoutExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:l.default.propertiesSpecification},$dynamicallyLoadedFilesSubdirectory:{newName:"dynamicallyLoadedFilesSubdirectory",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$dynamicallyLoadedFilesNamesTemplate:{newName:"dynamicallyLoadedFilesNamesTemplate",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$preprocessorVariables:{newName:"preprocessorVariables",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}}}}),$localDevelopmentServerOrchestration:{newName:"localDevelopmentServerOrchestration",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$targetSingularEntryPointsGroupID:{newName:"targetSingularEntryPointsGroupID",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$arguments:{newName:"arguments",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$environmentVariables:{newName:"environmentVariables",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String,minimalCharactersCount:1}},$environmentVariablesFileRelativePath:{newName:"environmentVariablesFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$electron:{newName:"electron",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$hotReloadingForLocalDevelopmentMode:{newName:"hotReloadingForLocalDevelopmentMode",type:Object,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,properties:{$rootDirectoryRelativePath:{newName:"rootDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$ignoredFilesAndDirectoriesRelativePaths:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(u||(u={})),t.default=u},1741(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},4702(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1741)),r=n(i(5256)),o=n(i(142)),a=n(i(6807)),l=n(i(4714)),d=n(i(1142)),u=n(i(4284)),c=n(i(8661)),p=n(i(703)),g=n(i(919)),m=i(6272),h=i(5480);class f{static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="ECMA_ScriptEntryPointsAndAffiliatedFilesMappingCache.json";projectBuildingMasterConfigRepresentative;ECMAScriptLogicProcessingSettingsRepresentative;webpackConfigurationsForExistingEntryPoints;webpackMultiCompiler;entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper;subsequentFilesStateChangeTimeout=null;static provideLogicProcessingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,m.isUndefined)(t))return e=>{e()};const i=new f(t,e);return e=>{try{i.webpackMultiCompiler.run(i.generateWebpackCallback(e))}catch(t){e(new m.UnexpectedEventError(m.Logger.formatErrorLog({title:m.UnexpectedEventError.localization.defaultTitle,errorType:m.UnexpectedEventError.NAME,description:"The error emitted by Webpack has been caught while no error catching required according the officialdocumentation: https://webpack.js.org/api/node/",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)",caughtError:t})))}}}constructor(e,t){this.ECMAScriptLogicProcessingSettingsRepresentative=e,this.projectBuildingMasterConfigRepresentative=t;const i=[],n=new Map;for(const e of this.ECMAScriptLogicProcessingSettingsRepresentative.relevantEntryPointsGroupsSettings.values()){const t=h.ImprovedGlob.getFilesAbsolutePathsSynchronously(e.sourceFilesGlobSelectors,{alwaysForwardSlashSeparators:!0});0!==t.length?(i.push(l.default.generateWebpackConfigurationForEntryPointsGroupWithExistingFiles({entryPointsSourceFilesAbsolutePaths:t,ECMA_ScriptLogicEntryPointsGroupSettings:e,ECMA_ScriptLogicProcessingConfigRepresentative:this.ECMAScriptLogicProcessingSettingsRepresentative,masterConfigRepresentative:this.projectBuildingMasterConfigRepresentative})),(0,m.addEntriesToMap)({targetMap:n,newEntries:t.map(t=>[t,e.ID]),mutably:!0})):m.Logger.logWarning({title:"ECMAScript Logic Entry Points Not Found",description:`No ECMAScript entry points has been found for group "${e.ID}". Please restart the project building once they will be added.`})}this.webpackConfigurationsForExistingEntryPoints=i;const s=(0,a.default)(this.webpackConfigurationsForExistingEntryPoints);(0,m.isNull)(s)&&m.Logger.throwErrorWithFormattedMessage({errorInstance:new m.UnexpectedEventError(m.PoliteErrorsMessagesBuilder.buildMessage({politeExplanation:"It has occurred some problem with changed functionality of Webpack, the dependency of YDA.",technicalDetails:"The `Webpack` function returned the null. Previously according to TypeScript type definitions, the returned value was always non-nullable. "})),title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"ECMA_ScriptLogicProcessor.constructor(...parameters)"}),this.webpackMultiCompiler=s,this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap=n,this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&(this.sourceCodeSelectiveReprocessingHelper=new p.default({initialEntryPointsSourceFilesAbsolutePaths:this.ECMAScriptLogicProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:o.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:this.ECMAScriptLogicProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,additionalExplicitFileNameExtensionsWithoutLeadingDotsOfChildrenFiles:r.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles},directoriesAliasesAndTheirAbsolutePatsMap:f.generateUnifiedDirectoriesAliasesAndTheirAbsolutePatsMapForSourceCodeSelectiveReprocessingHelper(this.ECMAScriptLogicProcessingSettingsRepresentative),isEntryPoint:this.ECMAScriptLogicProcessingSettingsRepresentative.isEntryPoint.bind(this.ECMAScriptLogicProcessingSettingsRepresentative),logging:{mustEnable:this.ECMAScriptLogicProcessingSettingsRepresentative.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:this.ECMAScriptLogicProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:h.ImprovedPath.joinPathSegments([g.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,f.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),u.default.initializeIfRequiredAndGetInstance({ecmaScriptLogicProcessingSettingsRepresentative:this.ECMAScriptLogicProcessingSettingsRepresentative,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_ECMA_SCRIPT_LOGIC_SOURCE_CODE_FILE--BY_ECMA_SCRIPT_LOGIC_PROCESSOR",handler:this.onSourceFilesWatcherEmittedAnyEvent.bind(this)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",handler:f.onEntryPointFileAdded}))}generateWebpackCallback(e){return(t,i)=>{let n;(0,m.isNotUndefined)(i)&&process.stdout.write(`${i.toString({colors:!0})}\n`);let r=[];i instanceof a.default.Stats?r=i.compilation.errors:(0,m.isNotUndefined)(i)&&(r=i.stats[0]?.compilation.errors),(0,m.isNeitherUndefinedNorNull)(t)?n=t.message:r.length>0&&(n=r.toString()),(0,m.isNotUndefined)(n)&&(m.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:n,occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)"}),c.default.notify({title:"ECMAScript logic processing",message:"Error has occurred. Please check the console."})),!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&(0,m.isNotUndefined)(n)?(m.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:"Unable to production build.",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)"}),e?.(new Error(n))):((0,m.addEntriesToMap)({targetMap:s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,newEntries:d.default.generate(this.ECMAScriptLogicProcessingSettingsRepresentative),mutably:!0}),e?.())}}onSourceFilesWatcherEmittedAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,m.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{const e=this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[],t=Array.from((0,m.filterMap)(this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap,t=>e.includes(t)).values());1===t.length?(0,m.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.webpackMultiCompiler.compilers,e=>e.name===t[0],{mustThrowErrorIfElementNotFoundOrMatchesAreMultiple:!0}).run(this.generateWebpackCallback()):t.length>1&&this.webpackMultiCompiler.run(this.generateWebpackCallback()),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,m.secondsToMilliseconds)(1))}static onEntryPointFileAdded(e){m.Logger.logWarning({title:"Restarting is Required",description:["New ECMAScript logic entry point has been added:",e,"We are sorry, but current YDA version does not support the building of ECMAScript logic entry points added after the starting of YDA. Please restart the YDA."].join("\n")})}static generateUnifiedDirectoriesAliasesAndTheirAbsolutePatsMapForSourceCodeSelectiveReprocessingHelper(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values())for(const[e,n]of i.directoriesAliasesAndCorrespondingAbsolutePathsMap){const i=t.get(e);(0,m.isUndefined)(i)?t.set(e,new Set(n)):(0,m.addElementsToSet)({targetSet:i,newElements:n})}return t}}t.default=f},4284(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({ecmaScriptLogicProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"ECMA_SCRIPT_LOGIC_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"ECMAScript Logic"}),this.settingsRepresentative=e}}t.default=a},4533(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8228)),r=n(i(5317)),o=i(1496),a=i(5480),l=i(6272);class d{projectBuildingMasterConfigRepresentative;electronExecutableFileAbsolutePath;activeElectronChildProcess=null;waitingForNextEventWithRelatedFiles=null;static coordinateIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,l.isUndefined)(t?.electronSettings))return o.voidPromiseReturningFunction;const i=new d({projectBuildingMasterConfigRepresentative:e});return s.default.initialize({electronSettings:t.electronSettings,loggingSettings:t.loggingSettings,onAnyEventRelatedWithActualFilesHandler:i.onAnyEventRelatedWithRelatedFiles.bind(i)}),i.createPromisfiedChildProcess.bind(i)}constructor({projectBuildingMasterConfigRepresentative:e}){this.projectBuildingMasterConfigRepresentative=e,this.electronExecutableFileAbsolutePath=a.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,"node_modules","electron","cli.js"],{alwaysForwardSlashSeparators:!0})}async createPromisfiedChildProcess(){return new Promise(e=>{this.activeElectronChildProcess=this.createElectronChildProcess(e)})}createElectronChildProcess(e){const t=r.default.execFile("node",[this.electronExecutableFileAbsolutePath,"."],{encoding:"utf-8"}).on("spawn",()=>{e?.()});return t.stdout?.on("data",e=>{console.log(e)}),t.stderr?.on("data",e=>{console.error(e)}),t}onAnyEventRelatedWithRelatedFiles(){clearTimeout((0,l.nullToUndefined)(this.waitingForNextEventWithRelatedFiles)),l.Logger.logInfo({title:"ElectronCoordinator, Restarting Application",description:"The changes has been detected on or more output files. Restarting the application..."}),this.waitingForNextEventWithRelatedFiles=setTimeout(()=>{const e=this.activeElectronChildProcess;this.activeElectronChildProcess=this.createElectronChildProcess(()=>{e?.kill("SIGKILL")})},(0,l.secondsToMilliseconds)(1))}}t.default=d},363(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4284)),r=n(i(6274)),o=n(i(9227)),a=i(7249),l=n(i(7818)),d=n(i(2853)),u=n(i(2977)),c=i(6272),p=i(5480),g=n(i(4120));class m extends r.default{static localization=g.default;ESLintInstance=new a.ESLint;static provideLintingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new m({ecmaScriptLogicProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e});return e.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({ecmaScriptLogicProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyRelatedFileAddedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_ADDED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenAddedOrUpdated.bind(i)}).addOnAnyRelatedFileUpdatedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_UPDATED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenAddedOrUpdated.bind(i)}).addOnAnyRelatedFileDeletedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_DELETED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenDeleted.bind(i)}),i.checkFiles(i.targetFilesGlobSelectors)}constructor({ecmaScriptLogicProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"ECMAScript Logic Processing / ECMAScript Logic Source Code Linting",sourceFilesCachedCheckingResults:{fileNameWithExtension:"ECMA_ScriptLintingCache.json",contentSpecification:{subtype:c.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CachedMarkupLintingResultsFileContent",properties:{files:{type:c.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{ruleID:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}},location:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{startingLineNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},endingLineNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},startingColumnNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},endingColumnNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},modificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},emptyValue:{files:{}}},targetFilesGlobSelectors:[p.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}),p.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(p.ImprovedPath.joinPathSegments([t.consumingProjectRootDirectoryAbsolutePath,"node_modules"])),...o.default.generateExcludingGlobSelectorsOfIgnoredFiles(t.consumingProjectRootDirectoryAbsolutePath)],logging:{pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount,checkingStart:e.loggingSettings.linting.starting,completionWithoutIssues:e.loggingSettings.linting.completionWithoutIssues}}),this.ESLintInstance=new a.ESLint}async checkSingleFile(e){const t=(0,u.default)(e);try{e[r.default.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=(await this.ESLintInstance.lintText(t,{filePath:e.path}))[0].messages.map(e=>this.normalizeLintingIssues(e,t))}catch(e){c.Logger.throwErrorWithFormattedMessage({errorType:"ECMA_ScriptSourceCodeLinter",title:m.localization.lintingFailedErrorLog.title,description:c.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:m.localization.lintingFailedErrorLog.technicalDetails,politeExplanation:m.localization.lintingFailedErrorLog.politeExplanation}),occurrenceLocation:"ecmaScriptSourceCodeLinter.checkSingleFile()",innerError:e})}return Promise.resolve(l.default.CompletionSignals.PASSING_ON)}formatIssuesOfSingleFile(e){return e.issues.map(e=>[`${"-".repeat(r.default.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,e.codeFragment.beforeHighlighting,c.Logger.highlightText(e.codeFragment.highlighted),e.codeFragment.afterHighlighting,`${"-".repeat(r.default.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,`${e.message} (${e.ruleID})\n`,...(0,c.isNeitherUndefinedNorNull)(e.location.startingLineNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.startingColumnNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.endingLineNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.endingColumnNumber__numerationFrom1)?[`at ${e.location.startingLineNumber__numerationFrom1}:${e.location.startingColumnNumber__numerationFrom1}-${e.location.endingLineNumber__numerationFrom1}:${e.location.endingColumnNumber__numerationFrom1}`]:[]].join("")).join("\n\n")}normalizeLintingIssues(e,t){let i="",n="",s="";const r=(0,c.splitString)(t,"\n");if((0,c.isNeitherUndefinedNorNull)(e.line)&&(0,c.isNeitherUndefinedNorNull)(e.endLine)&&(0,c.isNeitherUndefinedNorNull)(e.column)&&(0,c.isNeitherUndefinedNorNull)(e.endColumn)){i=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,index:e.line-1,newElement:e.column>1?(0,c.cropString)({targetString:r[e.line-1],fromStart:!0,endingCharacterNumber__numerationFrom1:e.column-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0}):""}),startingElementNumber__numerationFrom1:(0,c.limitMinimalValue)({targetNumber:e.line-this.DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT,minimalValue:1}),endingElementNumber__numerationFrom1__including:e.line,mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n"),n=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,replacements:[...e.line===e.endLine?[{index:e.line-1,newElement:(0,c.cropString)({targetString:r[e.line-1],startingCharacterNumber__numerationFrom1:e.column,endingCharacterNumber__numerationFrom1:e.column===e.endColumn?e.endColumn:e.endColumn-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}]:[{index:e.line-1,newElement:(0,c.cropString)({targetString:r[e.line-1],startingCharacterNumber__numerationFrom1:e.column,untilEnd:!0,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})},...e.endColumn>1?[{index:e.endLine-1,newElement:(0,c.cropString)({targetString:r[e.endLine-1],fromStart:!0,endingCharacterNumber__numerationFrom1:e.column===e.endColumn?e.endColumn:e.endColumn-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}]:[]]]}),startingElementNumber__numerationFrom1:e.line,endingElementNumber__numerationFrom1__including:e.endLine,mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n");const t=r[e.endLine-1];s=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,index:e.endLine-1,newElement:t.length===e.endColumn?"":(0,c.cropString)({targetString:t,startingCharacterNumber__numerationFrom1:e.endColumn,untilEnd:!0,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}),startingElementNumber__numerationFrom1:e.endLine,endingElementNumber__numerationFrom1__including:(0,c.limitMaximalValue)({targetNumber:e.endLine+this.DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT,maximalValue:r.length}),mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n")}return{...(0,c.isNotNull)(e.ruleId)?{ruleID:e.ruleId}:null,message:e.message,location:{...(0,c.isNotUndefined)(e.line)?{startingLineNumber__numerationFrom1:e.line}:null,...(0,c.isNotUndefined)(e.endLine)?{endingLineNumber__numerationFrom1:e.endLine}:null,...(0,c.isNotUndefined)(e.column)?{startingColumnNumber__numerationFrom1:e.column}:null,...(0,c.isNotUndefined)(e.endColumn)?{endingColumnNumber__numerationFrom1:e.endColumn}:null},codeFragment:{beforeHighlighting:i,highlighted:n,afterHighlighting:s}}}}t.default=m},4120(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={lintingFailedErrorLog:{title:"ECMAScript logic linting error",technicalDetails:"The error occurred during execution of ESLint.",politeExplanation:"The ECMAScript logic linter has thrown the error under unknown for YDA developers combination of conditions."}}},5379(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1741)),r=n(i(771)),o=i(6272);t.default=class{static orchestrateIfMust(e){const t=e.getECMA_ScriptLogicProcessingSettingsRepresentativeIfMustOrchestrateLocalDevelopmentServer();if((0,o.isNull)(t)||(0,o.isUndefined)(t.localDevelopmentServerOrchestrationSettings))return e=>{e()};const i=t.localDevelopmentServerOrchestrationSettings;return e=>{const t=(0,o.getExpectedToBeNonUndefinedMapValue)(s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,i.targetSourceFileAbsolutePath);(0,r.default)({script:t,watch:[t],args:[...i.arguments],env:i.environmentVariables,done:e}),e()}}}},7318(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4284)),r=i(1496),o=n(i(5317)),a=n(i(9896)),l=i(5480),d=i(6272),u=n(i(8661));class c{static WAITING_FOR_NEXT_EVENT_WITH_RELATED_FILES__SECONDS=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;vueTSC_ExecutableFileAbsolutePath;projectBuildingMasterConfigRepresentative;ecmaScriptLogicProcessingSettingsRepresentative;waitingForNextEventWithRelatedFiles=null;static provideCheckingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return r.voidPromiseReturningFunction;const i=new c({projectBuildingMasterConfigRepresentative:e,ecmaScriptLogicProcessingSettingsRepresentative:t});return i.checkTypes.bind(i)}constructor({projectBuildingMasterConfigRepresentative:e,ecmaScriptLogicProcessingSettingsRepresentative:t}){this.projectBuildingMasterConfigRepresentative=e,this.ecmaScriptLogicProcessingSettingsRepresentative=t,this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,ecmaScriptLogicProcessingSettingsRepresentative:this.ecmaScriptLogicProcessingSettingsRepresentative}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_RELATED_WITH_ACTUAL_FILES_HANDLER--BY_TYPE_SCRIPT_TYPES_CHECKER",handler:this.onAnyEventRelatedWithRelatedFiles.bind(this)});const i=c.getAbsolutePathOfExistingVueTSC_ExecutableFile__alwaysForwardSlashesPathSeparators(e.consumingProjectRootDirectoryAbsolutePath);(0,d.isNull)(i)&&d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.UnexpectedEventError('File to "vue-tsc" executable not found'),title:d.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"TypeScriptTypesChecker.constructor(compoundParameter)"}),this.vueTSC_ExecutableFileAbsolutePath=i}onAnyEventRelatedWithRelatedFiles(){clearTimeout((0,d.nullToUndefined)(this.waitingForNextEventWithRelatedFiles)),this.waitingForNextEventWithRelatedFiles=setTimeout(()=>{this.checkTypes().catch(d.Logger.logPromiseError)},(0,d.secondsToMilliseconds)(c.WAITING_FOR_NEXT_EVENT_WITH_RELATED_FILES__SECONDS))}async checkTypes(){return new Promise((e,t)=>{o.default.exec(`node ${this.vueTSC_ExecutableFileAbsolutePath} --noEmit`,{encoding:"utf-8"},(i,n)=>{if((0,d.isNotNull)(i))return i.message.includes("Cannot find module")?(d.Logger.logError({errorType:"TypeScriptTypeCheckingError",title:"TypeScript Types Checking Failed",description:"The reference to unexisting module has terminated the TypeScript types checking",occurrenceLocation:"typeScriptTypesChecker.checkTypes",caughtError:i}),this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?void t(i):void e()):(d.Logger.logErrorLikeMessage({title:"TypeScript Type Checking, Error(s) Detected",description:"The source code is including the TypeScript error(s).\n"+(this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?"Is is unacceptable for production-like modes thus the project building will be terminated.":"")+`${"-".repeat(c.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`+n}),u.default.notify({title:"TypeScript Types Checking, Errors Detected",message:"Please check your terminal for the details."}),this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?void t(i):void e());d.Logger.logSuccess({title:"TypeScript Type Checking, No Errors Found",description:"The source TypeScript is valid. Keep it up!"}),e()})})}static getAbsolutePathOfExistingVueTSC_ExecutableFile__alwaysForwardSlashesPathSeparators(e){for(const t of[l.ImprovedPath.joinPathSegments([e,"node_modules","vue-tsc","bin","vue-tsc.js"],{alwaysForwardSlashSeparators:!0}),l.ImprovedPath.joinPathSegments([e,"node_modules","@yamato-daiwa","automation","node_modules","vue-tsc","bin","vue-tsc.js"],{alwaysForwardSlashSeparators:!0})])if(a.default.existsSync(t))return t;return null}}t.default=c},1142(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(6272),r=i(5480),o=n(i(5209));class a{static generate(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values()){const e=r.ImprovedGlob.getFilesAbsolutePathsSynchronously(i.sourceFilesGlobSelectors);for(const n of e)t.set(r.ImprovedPath.replacePathSeparatorsToForwardSlashes(n),a.getEntryPointsOutputFileActualAbsolutePath(n,i))}return t}static getEntryPointsOutputFileActualAbsolutePath(e,t){let i;if(t.revisioning.mustExecute){const n=r.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:r.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})}),`${r.ImprovedPath.extractFileNameWithoutExtensionFromPath({targetPath:e,mustThrowErrorIfLastPathSegmentHasNoDots:!0})}**.js`],{alwaysForwardSlashSeparators:!0}),o=r.ImprovedGlob.getFilesAbsolutePathsSynchronously([n]);0===o.length?s.Logger.throwErrorWithFormattedMessage({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが見つけられなかった。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}):o.length>1&&s.Logger.throwErrorWithFormattedMessage({errorInstance:new s.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが複数件が発見された:\n${(0,s.stringifyAndFormatArbitraryValue)(o)}\n前の構成は自動的に削除されなかった場合、再構成する前に手動で削除して下さい。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:s.AlgorithmMismatchError.localization.defaultTitle}),i=o[0]}else i=r.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,r.ImprovedPath.computeRelativePath({comparedPath:r.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0}),basePath:t.sourceFilesTopDirectoryAbsolutePath}),`${(0,s.extractFileNameWithAllExtensionsFromPath)({targetPath:(0,o.default)(e),mustThrowErrorIfLastPathSegmentHasNoDots:!1})}.js`],{alwaysForwardSlashSeparators:!0});return i}}t.default=a},4714(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const r=n(i(7809)),o=n(i(4061)),a=n(i(6807)),l=i(2728),d=n(i(3523)),u=n(i(3491)),c=n(i(7689)),p=n(i(6928)),g=i(6272),m=i(5480),h=n(i(5209));class f{static cachedTypeScriptConfigurations={};static generateWebpackConfigurationForEntryPointsGroupWithExistingFiles({entryPointsSourceFilesAbsolutePaths:e,ECMA_ScriptLogicEntryPointsGroupSettings:t,ECMA_ScriptLogicProcessingConfigRepresentative:i,masterConfigRepresentative:n}){const h=t.sourceFilesTopDirectoryAbsolutePath,S=f.getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:e,webpackContext:h});let F;const P=f.cachedTypeScriptConfigurations[t.typeScriptConfigurationFileAbsolutePath];(0,g.isUndefined)(P)?(F=o.default.readTypeScriptConfigurationFileAndGetCompilerOptions(t.typeScriptConfigurationFileAbsolutePath),this.cachedTypeScriptConfigurations[t.typeScriptConfigurationFileAbsolutePath]=F):F=P;const _=f.computePublicPath(t,n),b=!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&t.targetRuntime.type===s.browser,E=!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&t.targetRuntime.type===s.pug,y=t.distributing,A={loader:"postcss-loader",options:{postcssOptions:{plugins:["postcss-normalize-stylus-compatible-container-query-syntax",u.default,(0,c.default)({preset:["default",{normalizeWhitespace:!n.mustProvideIncrementalBuilding,discardComments:!n.mustProvideIncrementalBuilding}]})]}}};return{name:t.ID,context:p.default.normalize(h),target:(()=>{switch(t.targetRuntime.type){case s.browser:case s.pug:return"web";case s.webWorker:return"webworker";case s.nodeJS:return[`node${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[]].join("");case s.electronMainProcess:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-main"].join("");case s.electronRendererProcess:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-renderer"].join("");case s.electronPreload:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-preload"].join("")}})(),entry:S,output:{path:p.default.normalize(t.outputFilesTopDirectoryAbsolutePath),...(0,g.isNotUndefined)(_)?{publicPath:_}:{},filename:t.revisioning.mustExecute?`[name]${t.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[name].js",chunkFilename:t.revisioning.mustExecute?`[id]${t.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[id][contenthash].js",...!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose?{library:{type:(()=>{switch(t.targetRuntime.type){case s.browser:case s.electronRendererProcess:case s.electronPreload:return t.distributing.exposingOfExportsFromEntryPoints.mustAssignToWindowObject?"window":"module";case s.nodeJS:case s.electronMainProcess:return"commonjs";case s.pug:return"umd";case s.webWorker:g.Logger.throwErrorWithFormattedMessage({errorInstance:new g.UnexpectedEventError("The web worker could not be the library, while the computing of 'output.library.type' has been requested"),title:g.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"webpackConfigGenerator.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(entryPointsGroupSettings)"})}})(),name:t.distributing.exposingOfExportsFromEntryPoints.namespace}}:null,...E?{globalObject:"globalThis"}:null},...(0,g.isNotUndefined)(y)&&y.externalizingDependencies.length>0?{externals:y.externalizingDependencies.reduce((e,t)=>(e[t]=t,e),{})}:null,...b?{experiments:{outputModule:!0}}:null,mode:n.mustProvideIncrementalBuilding?"development":"production",devtool:(()=>{switch(t.targetRuntime.type){case s.browser:case s.electronRendererProcess:case s.electronPreload:return!!n.mustProvideIncrementalBuilding&&"cheap-module-source-map";default:return!1}})(),...t.targetRuntime.type===s.nodeJS?{node:{__dirname:!0,__filename:!0}}:null,module:{rules:[{test:/\.tsx?$/u,loader:"ts-loader",options:{configFile:t.typeScriptConfigurationFileAbsolutePath,transpileOnly:!0,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,loader:"@webdiscus/pug-loader",options:{mode:"html"}},{test:/\.renderer\.pug$/u,loader:"@webdiscus/pug-loader",options:{mode:"compile"}},{test:/\.ydur\.pug$/u,loader:"@yamato-daiwa/universal-reactive-webpack-loader",options:{debug:!1}},{loader:"@webdiscus/pug-loader",options:{mode:"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",A,"stylus-loader"]},{use:["style-loader","css-loader",A,"stylus-loader"]}]}]},resolve:{extensions:Array.from(i.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots).map(e=>`.${e}`),alias:{...r.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:F.paths,typeScriptBasicAbsolutePath:F.baseUrl??m.ImprovedPath.extractDirectoryFromFilePath({targetPath:t.typeScriptConfigurationFileAbsolutePath,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})}),...t.targetRuntime.type===s.browser?{vue:"vue/dist/vue.esm-bundler.js"}:null}},resolveLoader:r.default.generateLoadersResolvingSettings(n.consumingProjectRootDirectoryAbsolutePath),...t.targetRuntime.type===s.nodeJS?{externals:[(0,d.default)()]}:null,plugins:[new a.default.DefinePlugin({__PROJECT_ROOT_DIRECTORY__ALWAYS_FORWARD_SLASHES_PATH_SEPARATORS__YDA__:JSON.stringify(n.consumingProjectRootDirectoryAbsolutePath),__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:n.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:n.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:n.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:n.isProductionBuildingMode,...t.targetRuntime.type===s.browser?{__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1}:null,...t.preprocessorVariables}),new l.VueLoaderPlugin],optimization:{minimize:!n.mustProvideIncrementalBuilding,emitOnErrors:n.mustProvideIncrementalBuilding},...Object.entries(t.dependenciesViaGlobals).length>0?{externals:t.dependenciesViaGlobals}:null}}static getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:e,webpackContext:t}){const i={};f.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e);for(const n of e){const e=m.ImprovedPath.computeRelativePath({comparedPath:n,basePath:t});i[(0,h.default)(e)]=n}return i}static computePublicPath(e,t){return t.mustProvideIncrementalBuilding?e.ID.replace(e.ID,"/"):"/"}static checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e){const t=new Set;for(const i of e){const e=(0,g.removeAllFileNameExtensions)(i);t.has(e)?g.Logger.throwErrorWithFormattedMessage({errorType:"IncompatibleFilesError",description:"Incompatible files",title:g.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"WebpackConfigGenerator.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(entryPointsSourceFilesAbsolutePaths)"}):t.add(e)}}}t.default=f},8228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(5480);class a extends s.default{onAnyEventRelatedWithActualFilesHandler;static initialize(e){r.default.addPassiveWatcher(new a(e))}constructor({electronSettings:e,loggingSettings:t,onAnyEventRelatedWithActualFilesHandler:i}){super({ID:"BROWSER_COORDINATOR_RELATED_FILES_WATCHER",targetFilesGlobSelectors:[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.hotReloadingForLocalDevelopmentMode.rootDirectoryAbsolutePath}),...e.hotReloadingForLocalDevelopmentMode.ignoredFilesAndDirectoriesAbsolutePaths.map(e=>o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(e))],mustLogEvents:t.filesWatcherEvents}),this.onAnyEventRelatedWithActualFilesHandler=i}notifyAboutRelatedFileStateChange(e,t){this.onAnyEventRelatedWithActualFilesHandler(e,t)}}t.default=a},2228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1581)),r=n(i(7831)),o=n(i(3148)),a=n(i(2597)),l=i(6272),d=i(5480);class u extends a.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualEntryPointsGroupSettings;pageStateDependentVariationData;localizationData;markupProcessingSettingsRepresentative;pageStateDependentVariationsSpecification;constructor({initialPlainVinylFile:e,markupProcessingSettingsRepresentative:t,pageStateDependentVariationData:i,localizationData:n}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=d.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.markupProcessingSettingsRepresentative=t,this.actualEntryPointsGroupSettings=this.markupProcessingSettingsRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path),this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(this.sourceAbsolutePath,this.actualEntryPointsGroupSettings),this.pageStateDependentVariationsSpecification=this.markupProcessingSettingsRepresentative.getStateDependentVariationsForEntryPointWithAbsolutePath(e.path),(0,l.isNotUndefined)(this.pageStateDependentVariationsSpecification)?this.pageStateDependentVariationData={[this.pageStateDependentVariationsSpecification.stateVariableName]:{}}:(0,l.isNotUndefined)(i)&&(this.pageStateDependentVariationData=i),(0,l.isNotUndefined)(n)&&(this.localizationData=n)}manageVariations(){const e=(0,l.getExpectedToBeNonUndefinedMapValue)(r.default.pagesVariationsMetadata,this.sourceAbsolutePath);if(e.mustInitialFileBeKept&&1===e.absoluteSourcePathsOfAllVariations.size&&e.absoluteSourcePathsOfAllVariations.has(this.sourceAbsolutePath))return{newFiles:[],mustInitialFileBeDeleted:!1};const t=[];for(const[i,n]of e.dataForPugBySourceFilesAbsolutePaths.entries())this.sourceAbsolutePath!==i&&t.push(new u({initialPlainVinylFile:new o.default({base:this.base,path:i,contents:this.contents}),markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative,pageStateDependentVariationData:{...n.localizationData??null,...n.pageStateDependentVariationData??null}}));return{newFiles:t,mustInitialFileBeDeleted:!e.mustInitialFileBeKept}}}t.default=u},8398(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3969));var r;!function(e){let t,i;e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["pug"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set([]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["html"],function(e){e.HTML="HTML",e.handlebars="handlebars",e.razor="razor"}(t=e.OutputFormats||(e.OutputFormats={})),function(e){e.WCAG2A="WCAG2A",e.WCAG2AA="WCAG2AA",e.WCAG2AAA="WCAG2AAA"}(i=e.SupportedAccessibilityStandards||(e.SupportedAccessibilityStandards={})),e.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile=function({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:t}){return(0,s.default)({targetPath:e,targetFileNamePenultimateExtensionWithOrWithoutLeadingDot:t,mustAppendDuplicateEvenIfTargetPenultimateFileNameExtensionAlreadyExist:!0,mustAppendLastFileNameExtensionInsteadIfThereIsNoOne:!0})},e.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint=function({sourceFileNameWithoutLastExtension:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:t,outputFileNameWithLastExtensionWithLeadingDot:i}){return[e,t,i].join(".")}}(r||(r={})),t.default=r},1581(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(6300)),o=n(i(4912)),a=i(6272),l=i(5480);class d extends o.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Markup";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Markup";WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;sourceCodeLintingCommonSettings;importingFromTypeScriptSettings;importingFromJavaScriptSettings;staticPreviewSettings;routingSettings;relevantEntryPointsGroupsSettings;loggingSettings;mustValidateHTML;mustInspectAccessibility;TASK_NAME_FOR_LOGGING="Markup Processing";entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,a.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.common.secondsBetweenFileUpdatingAndStartingOfRebuilding,this.sourceCodeLintingCommonSettings=e.linting,this.importingFromTypeScriptSettings=e.importingFromTypeScript,this.importingFromJavaScriptSettings=e.importingFromJavaScript,this.staticPreviewSettings=e.staticPreview,this.routingSettings=e.routing,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.loggingSettings=e.logging,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${r.default}${e.ID}`,e])),this.mustValidateHTML=Array.from(this.relevantEntryPointsGroupsSettings.values()).some(e=>e.HTML_Validation.mustExecute),this.mustInspectAccessibility=Array.from(this.relevantEntryPointsGroupsSettings.values()).some(e=>e.accessibilityInspection.mustExecute),this.sourceCodeProcessingCommonSettings=e.common}computeOutputFileNameExtension(e){let t;switch(("entryPointsGroupSettingsActualForTargetFile"in e?e.entryPointsGroupSettingsActualForTargetFile:this.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.targetFilePath)).outputFormat){case s.default.OutputFormats.HTML:t="html";break;case s.default.OutputFormats.handlebars:t=this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode?"html":"hbs";break;case s.default.OutputFormats.razor:t="razor"}return(0,a.insertSubstringIf)(".",e.mustPrependDotToFileNameExtension)+t}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values()){let n;if(i.localization.locales.size>0){const t=new Set(Array.from(i.localization.locales.values()).map(({outputFileInterimNameExtensionWithoutDot:e})=>e));n=(0,a.removeSpecifiedFileNameExtensionsFromPath)({filePath:e,mustIgnoreLastOrSingleFileNameExtension:!0,filesNamesExtensions:t,pathsSeparatorMustBeUsedInOutputPathWhen2_KindsMixedInInitialPaths:"/"})}else n=e;if(l.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:n,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}}return(0,a.isUndefined)(t)&&a.Logger.throwErrorWithFormattedMessage({errorInstance:new a.UnexpectedEventError(`No output entry points group has been fond for file of the path:\n${e}`),title:a.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}getStateDependentVariationsForEntryPointWithAbsolutePath(e){return this.staticPreviewSettings.pagesVariations.stateDependent.get((0,a.replaceDoubleBackslashesWithForwardSlashes)(e))}get staticDataForStaticPreview(){return this.staticPreviewSettings.importsFromStaticDataFiles}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}createPagesVariationsMetadata(e){return new Map(e.map(e=>[e,this.createPageVariationsMetadata(e)]))}createPageVariationsMetadata(e){const t=new Map,i=new Set,n=new Map,r=this.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e),{localizedStringResourcesConstantName:o,localeConstantName:u,locales:c,excludedFilesAbsolutePaths:p,nameOfConstantForInterpolationToLangHTML_Attribute:g}=r.localization,m=c.size>0&&!p.includes(e),h=this.computeOutputFileNameExtension({entryPointsGroupSettingsActualForTargetFile:r,mustPrependDotToFileNameExtension:!1}),f=d.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,r),S=this.getStateDependentVariationsForEntryPointWithAbsolutePath(e);if(m)for(const{outputFileInterimNameExtensionWithoutDot:r,localeConstantValue:d,stringResources:p,valueOfConstantForInterpolationToLangHTML_Attribute:m}of c.values()){const c=s.default.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r});t.set(c,l.ImprovedPath.joinPathSegments([f,s.default.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint({sourceFileNameWithoutLastExtension:(0,a.extractFileNameWithoutLastExtension)(e),localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r,outputFileNameWithLastExtensionWithLeadingDot:h})],{alwaysForwardSlashSeparators:!0})),i.add(c),n.set(c,{localizationData:{...(0,a.isNotUndefined)(u)&&(0,a.isNotUndefined)(d)?{[u]:d}:null,...(0,a.isNotUndefined)(o)&&(0,a.isNotUndefined)(p)?{[o]:p}:null,...(0,a.isNotUndefined)(g)&&(0,a.isNotUndefined)(m)?{[g]:m}:null},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:{}}}:null})}else t.set(e,l.ImprovedPath.joinPathSegments([f,`${(0,a.extractFileNameWithoutLastExtension)(e)}.`+h],{alwaysForwardSlashSeparators:!0})),i.add(e);for(const e of(S?.derivedPagesAndStatesMap??new Map).keys())if(m)for(const{outputFileInterimNameExtensionWithoutDot:r,localeConstantValue:d,stringResources:p,valueOfConstantForInterpolationToLangHTML_Attribute:m}of c.values()){const c=s.default.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r});t.set(c,l.ImprovedPath.joinPathSegments([f,s.default.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint({sourceFileNameWithoutLastExtension:(0,a.extractFileNameWithoutLastExtension)(e),localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r,outputFileNameWithLastExtensionWithLeadingDot:h})],{alwaysForwardSlashSeparators:!0})),i.add(c),n.set(c,{localizationData:{...(0,a.isNotUndefined)(u)&&(0,a.isNotUndefined)(d)?{[u]:d}:null,...(0,a.isNotUndefined)(o)&&(0,a.isNotUndefined)(p)?{[o]:p}:null,...(0,a.isNotUndefined)(g)&&(0,a.isNotUndefined)(m)?{[g]:m}:null},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:(0,a.getExpectedToBeNonUndefinedMapValue)(S.derivedPagesAndStatesMap,e)}}:null})}else t.set(e,l.ImprovedPath.joinPathSegments([f,`${(0,a.extractFileNameWithoutLastExtension)(e)}.`+h],{alwaysForwardSlashSeparators:!0})),i.add(e),n.set(e,{localizationData:{},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:(0,a.getExpectedToBeNonUndefinedMapValue)(S.derivedPagesAndStatesMap,e)}}:null});return{mustInitialFileBeKept:!m,initialSourceFileAbsolutePath:e,sourceAndOutputAbsolutePathsOfAllVariations:t,absoluteSourcePathsOfAllVariations:i,dataForPugBySourceFilesAbsolutePaths:n}}}t.default=d},3021(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,staticPreview:{typeScriptConfigurationFileRelativePath:"tsconfig.json"},outputCodeFormatting:{mustExecute:({outputFormat:e})=>e===s.default.OutputFormats.razor,indentationString:" ",lineSeparators:i(6272).LineSeparators.lineFeed,mustGuaranteeTrailingEmptyLine:!0,mustIndentHeadAndBodyTags:!0},outputCodeMinifying:{mustExecute:({outputFormat:e})=>e===s.default.OutputFormats.HTML||e===s.default.OutputFormats.handlebars,attributesExtraWhitespacesCollapsing:!0,attributesValuesDeduplication:!0,commentsRemoving:!0},linting:{mustExecute:!0},HTML_Validation:{mustExecute:!0},accessibilityInspection:{mustExecute:!0,standard:s.default.SupportedAccessibilityStandards.WCAG2AAA},outputFormat:s.default.OutputFormats.HTML,logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0},HTML_Validation:{starting:!0,completionWithoutIssues:!0},accessibilityChecking:{starting:!0,completionWithoutIssues:!0}}};t.default=r},554(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(8931)),o=n(i(7534)),a=n(i(1579)),l=i(6272);var d;!function(e){function t({forEntryPointsGroups:e}){return{newName:"localization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$stringResourcesFileRelativePath:{newName:"stringResourcesFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$localizedStringResourcesConstantName:{newName:"localizedStringResourcesConstantName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$localeConstantName:{newName:"localeConstantName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$nameOfConstantForInterpolationToLangHTML_Attribute:{newName:"nameOfConstantForInterpolationToLangHTML_Attribute",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$locales:{newName:"locales",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$outputFileInterimNameExtensionWithoutDot:{newName:"outputFileInterimNameExtensionWithoutDot",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$localeConstantValue:{newName:"localeConstantValue",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$localeConstantName"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$localeConstantName` is defined"},isNullForbidden:!0,minimalCharactersCount:1},$keyInLocalizedStringResourcesObject:{newName:"keyInLocalizedStringResourcesObject",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$stringResourcesFileRelativePath"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$stringResourcesFileRelativePath` is defined"},isNullForbidden:!0,minimalCharactersCount:1},$valueOfConstantForInterpolationToLangHTML_Attribute:{newName:"valueOfConstantForInterpolationToLangHTML_Attribute",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$nameOfConstantForInterpolationToLangHTML_Attribute"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$nameOfConstantForInterpolationToLangHTML_Attribute` is defined"},isNullForbidden:!0,minimalCharactersCount:1}}}},...e?{$excludedFilesPathsRelativeToSourcesFilesTopDirectory:{newName:"excludedFilesPathsRelativeToSourcesFilesTopDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}:{$excludedFilesPathsRelativeRelativeToProjectRootDirectory:{newName:"excludedFilesPathsRelativeRelativeToProjectRootDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}e.generateLocalizationPropertiesSpecification=t,e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$localization:t({forEntryPointsGroups:!1}),$buildingModeDependent:{newName:"buildingModeDependent",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:r.default.staticPreview,$localDevelopment:r.default.localDevelopment,$testing:r.default.testing,$staging:r.default.staging,$production:r.default.production},value:{type:Object,properties:{$secondsBetweenFileUpdatingAndStartingOfRebuilding:{newName:"secondsBetweenFileUpdatingAndStartingOfRebuilding",type:Number,numbersSet:l.RawObjectDataProcessor.NumbersSets.positiveRealNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},$mustResolveResourcesPointersToRelativePaths:{newName:"mustResolveResourcesPointersToRelativePaths",type:Boolean,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({targetPropertyPathSegments:e})=>"$staticPreview"===e[e.length-2],descriptionForLogging:'project building mode is "$staticPreview"'},isNullForbidden:!0}}}}}},$staticPreview:{newName:"staticPreview",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$stateDependentPagesVariations:{newName:"stateDependentPagesVariations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$specificationFileRelativePath:{newName:"specificationFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$importsFromStaticDataFiles:{newName:"importsFromStaticDataFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{$importedVariableName:{newName:"importedVariableName",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$fileRelativePath:{newName:"fileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},$importingFromTypeScript:{newName:"importingFromTypeScript",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$importedNamespace:{newName:"importedNamespace",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$importingFromJavaScript:{newName:"importingFromJavaScript",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$nameOfGlobalConstantForStoringOfImports:{newName:"nameOfGlobalConstantForStoringOfImports",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$routing:{newName:"routing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$specificationFileRelativePath:{newName:"specificationFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$variable:{newName:"variable",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$localizations:{newName:"localizations",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String,minimalCharactersCount:1}}}},...o.default.generatePropertiesSpecification({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:{$outputFormat:{newName:"outputFormat",type:String,allowedAlternatives:Object.values(s.default.OutputFormats),isUndefinedForbidden:!1,isNullForbidden:!0},$localization:t({forEntryPointsGroups:!0}),$HTML_Validation:{newName:"HTML_Validation",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoring:{newName:"ignoring",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$files:{newName:"files",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$directories:{newName:"directories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}},$accessibilityInspection:{newName:"accessibilityInspection",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$standard:{newName:"standard",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(s.default.SupportedAccessibilityStandards)},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoring:{newName:"ignoring",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$files:{newName:"files",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$directories:{newName:"directories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$outputCodeFormatting:{newName:"outputCodeFormatting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$indentationString:{newName:"indentationString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,validValueRegularExpression:/^\s+$/u},$lineSeparators:{newName:"lineSeparators",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(l.LineSeparators)},$mustGuaranteeTrailingEmptyLine:{newName:"mustGuaranteeTrailingEmptyLine",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$mustIndentHeadAndBodyTags:{newName:"mustIndentHeadAndBodyTags",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$outputCodeMinifying:{newName:"outputCodeMinifying",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$attributesExtraWhitespacesCollapsing:{newName:"attributesExtraWhitespacesCollapsing",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$attributesValuesDeduplication:{newName:"attributesValuesDeduplication",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$commentsRemoving:{newName:"commentsRemoving",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}),$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$HTML_Validation:{newName:"HTML_Validation",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting4:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$accessibilityChecking:{newName:"accessibilityChecking",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(d||(d={})),t.default=d},7831(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static importsFromTypeScript;static importsFromJavaScript;static pagesVariationsMetadata=new Map;static get entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap__includingFictiveOnes(){return Array.from(s.pagesVariationsMetadata.values()).reduce((e,{sourceAndOutputAbsolutePathsOfAllVariations:t})=>(0,n.addEntriesToMap)({targetMap:e,mutably:!0,newEntries:t}),new Map)}static get outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap(){return Array.from(s.pagesVariationsMetadata.values()).reduce((e,{initialSourceFileAbsolutePath:t,sourceAndOutputAbsolutePathsOfAllVariations:i})=>(0,n.addEntriesToMap)({targetMap:e,mutably:!0,newEntries:Array.from(i.values()).map(e=>[e,t])}),new Map)}}t.default=s},2556(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(2858)),o=n(i(1815)),a=n(i(7831)),l=n(i(4520)),d=n(i(6751)),u=n(i(1713)),c=n(i(8033)),p=n(i(7818)),g=n(i(2853)),m=n(i(2228)),h=n(i(703)),f=n(i(919)),S=n(i(6112)),F=n(i(7006)),P=n(i(3748)),_=n(i(1180)),b=n(i(7885)),E=n(i(8079)),y=n(i(6847)),A=i(4167),I=n(i(9399)),v=n(i(2215)),N=n(i(8363)),R=i(6272),T=i(5480),O=i(2006),C=n(i(6457));class D extends o.default{static CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_NAME="AccessibilityInspection";static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="MarkupEntryPointsAndAffiliatedFilesMappingCache.json";logging;CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH;markupProcessingSettingsRepresentative;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper=null;subsequentFilesStateChangeTimeout=null;static provideMarkupProcessingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,R.isUndefined)(t))return(0,g.default)();const i=new D(t,e);return a.default.pagesVariationsMetadata=t.createPagesVariationsMetadata(T.ImprovedGlob.getFilesAbsolutePathsSynchronously(t.initialRelevantEntryPointsSourceFilesAbsolutePaths,{alwaysForwardSlashSeparators:!0})),t.mustValidateHTML&&F.default.initialize({temporaryFilesDirectoryAbsolutePath:f.default.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH,projectBuildingMasterConfigRepresentative:e,logging:{validationStart:t.loggingSettings.HTML_Validation.starting,validationCompletionWithoutIssues:t.loggingSettings.HTML_Validation.completionWithoutIssues}}),t.mustInspectAccessibility&&_.default.beginInitialization({cachedInspectionsResultsFileParentDirectoryAbsolutePath:i.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH,consumingProjectBuildingMode:e.consumingProjectBuildingMode,projectBuildingSelectiveExecutionID:e.selectiveExecutionID,logging:{inspectionStart:t.loggingSettings.HTML_Validation.starting,inspectionCompletionWithoutIssues:t.loggingSettings.HTML_Validation.completionWithoutIssues}}),e.mustProvideIncrementalBuilding&&(i.sourceCodeSelectiveReprocessingHelper=new h.default({initialEntryPointsSourceFilesAbsolutePaths:t.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:c.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:c.default.implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials},isEntryPoint:t.isEntryPoint.bind(t),logging:{mustEnable:t.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:e.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:T.ImprovedPath.joinPathSegments([f.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,D.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),r.default.initializeIfRequiredAndGetInstance({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_MARKUP_SOURCE_CODE_FILE--BY_MARKUP_PROCESSOR",handler:i.onSourceFilesWatcherEmitsAnyEvent.bind(i)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",handler:i.onEntryPointFileAdded.bind(i)}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_MARKUP_PROCESSOR",handler:D.onEntryPointFileDeleted}),e.processingOnDemandSettings.enabled&&(C.default.addOnNewPageOpenedEventHandler({handlerID:"ON_PAGE_CHANGE_EVENT_HANDLER--BY_MARKUP_PROCESSOR",handler:async({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:e})=>(i.processEntryPoints([e])(),Promise.resolve())}),!e.processingOnDemandSettings.fullInitialBuilding))?(0,g.default)():i.processEntryPoints(t.initialRelevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:e.TASK_NAME_FOR_LOGGING}),this.logging={pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount},this.markupProcessingSettingsRepresentative=e,this.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH=T.ImprovedPath.joinPathSegments([f.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,D.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0})}processEntryPoints(e){return 0===e.length?(0,g.default)():()=>l.default.src(e).pipe(this.handleErrorIfItWillOccur()).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithMarkupEntryPointVinylFile.bind(this)})).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:D.managePageVariations})).pipe(super.logInputFilesIfMust()).pipe((0,d.default)(e=>({...e.pageStateDependentVariationData??null,...e.localizationData??null,...this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode?this.markupProcessingSettingsRepresentative.staticDataForStaticPreview:null,...a.default.importsFromTypeScript,...a.default.importsFromJavaScript}))).pipe((0,u.default)({locals:{__IS_STATIC_PREVIEW_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode,__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isProductionBuildingMode,...(0,R.isNotUndefined)(this.markupProcessingSettingsRepresentative.routingSettings)?{[this.markupProcessingSettingsRepresentative.routingSettings.variable]:this.markupProcessingSettingsRepresentative.routingSettings.routes}:null},filters:{html_special_characters_to_html_entities:D.convertApplicableCharactersToHTML_Entities,"code_listing--yda":y.default.apply}})).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.postProcessHTML_LikeCode.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(l.default.dest(e=>m.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e))).on("end",this.onStreamEnded.bind(this))}async replacePlainVinylFileWithMarkupEntryPointVinylFile(e,t){return t(new m.default({initialPlainVinylFile:e,markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative})),Promise.resolve(p.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async managePageVariations(e,t){const{newFiles:i,mustInitialFileBeDeleted:n}=e.manageVariations();return t(i),Promise.resolve(n?p.default.CompletionSignals.REMOVING_FILE_FROM_STREAM:p.default.CompletionSignals.PASSING_ON)}static convertApplicableCharactersToHTML_Entities(e){return e.replace(/&/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""").replace(/'/gu,"'")}async postProcessHTML_LikeCode(e){let t=(0,O.parse)(e.stringifiedContents);t=P.default.resolve({rootHTML_Element:t,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative,absolutePathOfOutputDirectoryForTargetHTML_File:e.outputDirectoryAbsolutePath}),t=b.default.affix({rootHTML_Element:t,publicPath:this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath,consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,absolutePathOfOutputDirectoryForTargetHTML_File:e.outputDirectoryAbsolutePath}),t=E.default.normalize(t),t=v.default.replaceAllowedCSS_ClassesInMarkupAndSaveCorrespondencesIfMust(t,this.projectBuildingMasterConfigRepresentative),e.setContents(t.toString());let i=null;if(e.actualEntryPointsGroupSettings.outputCodeFormatting.mustExecute)switch(e.actualEntryPointsGroupSettings.outputFormat){case s.default.OutputFormats.HTML:e.setContents(D.formatHTML_Code(e)),i=e.stringifiedContents;break;case s.default.OutputFormats.handlebars:e.setContents(D.formatHandlebarsCode(e));break;case s.default.OutputFormats.razor:N.default.generateAndSetContentForVinylFile(e)}else e.actualEntryPointsGroupSettings.outputCodeMinifying.mustExecute&&e.setContents(await D.minifyHTML_Code(e));if(e.actualEntryPointsGroupSettings.outputFormat===s.default.OutputFormats.razor)return e.basename=(0,R.removeSpecifiedFileNameExtensionsFromPath)({filePath:e.basename,filesNamesExtensions:["razor"],mustIgnoreLastOrSingleFileNameExtension:!0,pathsSeparatorMustBeUsedInOutputPathWhen2_KindsMixedInInitialPaths:"/"}),e.extname=".razor",p.default.CompletionSignals.PASSING_ON;if(e.actualEntryPointsGroupSettings.outputFormat===s.default.OutputFormats.handlebars&&!this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode)return e.extname=".hbs",p.default.CompletionSignals.PASSING_ON;const n=T.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),r=(0,S.default)(e.stringifiedContents);return e.actualEntryPointsGroupSettings.HTML_Validation.mustExecute&&(i=i??D.formatHTML_Code(e),F.default.enqueueFileForValidation({formattedHTML_Content:i,HTML_ContentMD5_Hash:r,originalHTML_FilePathRelativeToConsumingProjectRoot__forwardSlashesSeparatorsOnly:n})),e.actualEntryPointsGroupSettings.accessibilityInspection.mustExecute&&(i=i??D.formatHTML_Code(e),this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding?_.default.inspectAtBackgroundAndReportImmediatelyWithoutThrowingOfErrors({HTML_Code:i,HTML_CodeMD5Checksum:r,accessibilityStandard:e.actualEntryPointsGroupSettings.accessibilityInspection.standard,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:n}):_.default.inspectAtBackgroundWithoutReporting({HTML_Code:i,HTML_CodeMD5Checksum:r,accessibilityStandard:e.actualEntryPointsGroupSettings.accessibilityInspection.standard,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:n})),p.default.CompletionSignals.PASSING_ON}onStreamEnded(){if(this.markupProcessingSettingsRepresentative.mustValidateHTML&&F.default.validateQueuedFilesButReportAll(),this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding||this.markupProcessingSettingsRepresentative.mustInspectAccessibility&&_.default.reportCachedValidationsResultsAndFinalize(),this.projectBuildingMasterConfigRepresentative.processingOnDemandSettings.enabled)try{C.default.reload()}catch(e){R.Logger.logError({errorType:R.UnexpectedEventError.NAME,title:R.UnexpectedEventError.localization.defaultTitle,description:"The error has occurred during the attempt browser page reloading. If the browser page reloading functionality has been set up property, we are sorry but it is the bug.",occurrenceLocation:"MarkupProcessor.onStreamEnded",caughtError:e})}}onSourceFilesWatcherEmitsAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,R.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(this.onSubsequentFilesStateChangeTimeoutExpired.bind(this),(0,R.secondsToMilliseconds)(this.markupProcessingSettingsRepresentative.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}onSubsequentFilesStateChangeTimeoutExpired(){if(this.projectBuildingMasterConfigRepresentative.processingOnDemandSettings.enabled){const e=C.default.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators;if((0,R.isNotNull)(e))return this.processEntryPoints([(0,R.getExpectedToBeNonUndefinedMapValue)(a.default.outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap,e)])(),void this.absolutePathOfFilesWaitingForReProcessing.clear()}this.processEntryPoints(this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[])(),this.absolutePathOfFilesWaitingForReProcessing.clear()}onEntryPointFileAdded(e){a.default.pagesVariationsMetadata.set(e,this.markupProcessingSettingsRepresentative.createPageVariationsMetadata(e))}static onEntryPointFileDeleted(e){a.default.pagesVariationsMetadata.delete(e)}static formatHTML_Code(e){const{outputCodeFormatting:t}=e.actualEntryPointsGroupSettings;return(0,A.html)(e.stringifiedContents,{indent_size:2,indent_char:t.indentationString,eol:t.lineSeparators,end_with_newline:t.mustGuaranteeTrailingEmptyLine,indent_body_inner_html:t.mustIndentHeadAndBodyTags})}static formatHandlebarsCode(e){const{outputCodeFormatting:t}=e.actualEntryPointsGroupSettings;return(0,A.html)(e.stringifiedContents,{indent_size:2,indent_char:t.indentationString,eol:t.lineSeparators,end_with_newline:t.mustGuaranteeTrailingEmptyLine,indent_body_inner_html:t.mustIndentHeadAndBodyTags,templating:["handlebars"]})}static async minifyHTML_Code(e){const{outputCodeMinifying:t}=e.actualEntryPointsGroupSettings;return(await I.default.process(e.stringifiedContents,{collapseAttributeWhitespace:t.attributesExtraWhitespacesCollapsing,deduplicateAttributeValues:t.attributesValuesDeduplication,collapseWhitespace:"aggressive",minifyCss:!0,minifyJs:!0,minifySvg:!1})).html}}t.default=D},2858(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({markupProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"MARKUP_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Markup"}),this.settingsRepresentative=e}}t.default=a},1180(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6131)),r=n(i(0)),o=n(i(758)),a=i(6272),l=i(5480),d=n(i(34)),u=n(i(8661)),c=i(2006);class p{webBrowser;relativePathsOfFilesWhichIsBeingInspected=new Set;inspectionsInProgressForProductionLikeModes=[];static selfSoleInstance=null;static hasInitializationStarted=!1;static hasInitializationFailed=!1;static onSelfSoleInstanceReadyEventsHandlers=new Set;CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH;CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH;cachedInspectionsResults;relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution=new Set;static cachedInspectionsResultsFileContentSpecification={nameForLogging:"AccessibilityInspector.CachedInspectionResultsFileContentSpecification",subtype:a.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{contentMD5Checksum:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{ID:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}}};waitingForStaringOfWritingOfCacheFileWithInspectionsResults=null;static WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS=1;logging;static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;static SUBSEQUENT_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS=5;waitingForToastNotificationsWillBePermittedAgain=null;isToastNotificationPermitted=!0;static localization=s.default;static beginInitialization(e){p.hasInitializationStarted=!0;const t=l.ImprovedPath.joinPathSegments([e.cachedInspectionsResultsFileParentDirectoryAbsolutePath,"AccessibilityInspection."+(0,a.insertSubstring)(e.projectBuildingSelectiveExecutionID,{modifier:e=>`${e}.`})+(0,a.toLowerCamelCase)(e.consumingProjectBuildingMode)+".json"]);p.initializeAsynchronousRequirements({cachedInspectionResultsFileAbsolutePath:t,cachedInspectionsResultsDirectoryAbsolutePath:e.cachedInspectionsResultsFileParentDirectoryAbsolutePath}).then(i=>{p.selfSoleInstance=new p({...i,cachedInspectionResultsFileAbsolutePath:t,...e}),p.onSelfSoleInstanceReady(p.selfSoleInstance)}).catch(e=>{p.hasInitializationFailed=!0,a.Logger.logError({errorType:a.AlgorithmMismatchError.NAME,title:a.AlgorithmMismatchError.localization.defaultTitle,description:"The error has occurred during the asynchronous initialization.",occurrenceLocation:"HTML_Validator.beginInitialization(configuration)",caughtError:e})})}static inspectAtBackgroundAndReportImmediatelyWithoutThrowingOfErrors(e){p.getInstanceOnceReady().then(async t=>(clearTimeout((0,a.nullToUndefined)(t.waitingForStaringOfWritingOfCacheFileWithInspectionsResults)),t.inspectSingleFile({...e,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:!0}))).catch(e=>{})}static inspectAtBackgroundWithoutReporting(e){p.getInstanceOnceReady().then(t=>{t.inspectionsInProgressForProductionLikeModes.push(t.inspectSingleFile({...e,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:!1}))}).catch(e=>{})}static reportCachedValidationsResultsAndFinalize(){p.getInstanceOnceReady().then(async e=>(await Promise.all(e.inspectionsInProgressForProductionLikeModes),e)).then(e=>{const t=[];for(const[i,n]of e.cachedInspectionsResults.entries())n.issues.length>0&&t.push((0,a.surroundLabelByOrnament)({label:` ${i} `,ornamentPatten:"─",prependedPartCharactersCount:3,totalCharactersCount:p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG}),p.formatInspectionResultForSingleFile(n.issues));e.writeCacheToFile(),e.cachedInspectionsResults.clear(),e.webBrowser.close().catch(e=>{}),0===t.length&&e.logging.inspectionCompletionWithoutIssues?a.Logger.logSuccess(p.localization.inspectionOfAllFilesHasFinishedWithNoIssuesFoundSuccessLog):(a.Logger.logErrorLikeMessage({title:p.localization.issuesFoundInOneOrMultipleFilesErrorLog.title,description:`\n${t.join("\n")}`}),a.Logger.throwErrorWithFormattedMessage({errorType:"AccessibilityIssuesFoundError",...p.localization.issuesFoundInOneOrMultipleFilesErrorLog,occurrenceLocation:"AccessibilityInspector.reportCachedValidationsResultsAndFinalize"}))}).catch(e=>{if(e instanceof Error&&"AccessibilityIssuesFoundError"===e.name)throw e;a.Logger.logError({errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:"The error occurred during the HTML accessibility inspection.",occurrenceLocation:"AccessibilityInspector.reportCachedValidationsResultsAndFinalize",caughtError:e})})}constructor({cachedInspectionsResults:e,cachedInspectionsResultsFileParentDirectoryAbsolutePath:t,cachedInspectionResultsFileAbsolutePath:i,webBrowser:n,logging:s}){this.cachedInspectionsResults=e??new Map,this.CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH=t,this.CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH=i,this.webBrowser=n,this.logging=s}async inspectSingleFile({HTML_Code:e,HTML_CodeMD5Checksum:t,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,accessibilityStandard:n,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:s}){const o=this.cachedInspectionsResults.get(i);if(o?.contentMD5Checksum===t)return this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.add(i),void(s&&(this.logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,normalizedInspectionIssues:o.issues}),0===this.relativePathsOfFilesWhichIsBeingInspected.size&&(this.waitingForStaringOfWritingOfCacheFileWithInspectionsResults=setTimeout(this.writeCacheToFile.bind(this),(0,a.secondsToMilliseconds)(p.WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS)))));if(0===e.trim().length)return void a.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:i}));this.logging.inspectionStart&&a.Logger.logInfo(p.localization.generateInspectionStartedInfoLog({targetFileRelativePath:i}));const l=(new d.default).startOrRestart();let u,c;s&&this.relativePathsOfFilesWhichIsBeingInspected.add(i);try{u=await this.webBrowser.newPage()}catch(e){return l.stop(),a.Logger.logError({errorType:"WebBrowserPageCreatingFailedError",title:"Web browser page creating failed",description:`The error has occurred during the asynchronous creating of the "Puppeteer" browser web page for the file "${i}". It makes impossible the accessibility inspection for this file.`,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),void(s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i))}try{await u.setContent(e,{waitUntil:"domcontentloaded"})}catch(e){return l.stop(),a.Logger.logError({errorType:"WebBrowserPageContentUpdatingFailedError",title:"Web browser pade content updating failed",description:`The error has occurred during the changing of the web page content to the content of the file "${i}". It makes impossible the accessibility inspection for this file.`,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),void(s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i))}try{c=await(0,r.default)(u.url(),{standard:n,page:u,browser:this.webBrowser,ignoreUrl:!0,ignore:["WCAG2AAA.Principle1.Guideline1_4.1_4_6.G17.Fail"]})}catch(e){return l.stop(),a.Logger.logError({errorType:a.DataRetrievingFailedError.localization.defaultTitle,...p.localization.inspectionFailedErrorLog,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i),void u.close().catch(e=>{})}const g=l.stop().seconds,m=p.normalizeInspectionIssues(c.issues,e);this.cachedInspectionsResults.set(i,{contentMD5Checksum:t,issues:m}),this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.add(i),s&&(this.relativePathsOfFilesWhichIsBeingInspected.delete(i),0===this.relativePathsOfFilesWhichIsBeingInspected.size&&(this.waitingForStaringOfWritingOfCacheFileWithInspectionsResults=setTimeout(this.writeCacheToFile.bind(this),(0,a.secondsToMilliseconds)(p.WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS))),this.logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,normalizedInspectionIssues:m,inspectionPeriod__seconds:g}))}static normalizeInspectionIssues(e,t){const i=[],n=(0,c.parse)(t);for(const[t,i]of e.entries()){const e=n.querySelector(i.selector);(0,a.isNull)(e)||e.setAttribute(p.generateAccessibilityIssueAuxiliaryHTML_Attribute(t),"")}const s=(0,a.splitString)(t,"\n"),r=(0,a.splitString)(n.outerHTML,"\n");for(const[t,n]of e.entries()){const e=p.generateAccessibilityIssueAuxiliaryHTML_Attribute(t),o=(0,a.getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(r,t=>t.includes(e));if((0,a.isNull)(o)){i.push({ID:n.code,message:n.message,codeFragment:{beforeHighlighting:"",highlighted:n.context,afterHighlighting:""}});continue}const l=s[o],d=o+1,u=(0,a.limitMinimalValue)({targetNumber:d-p.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING,minimalValue:1}),c=(0,a.limitMaximalValue)({targetNumber:d+p.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING,maximalValue:s.length}),g=n.context;if(-1===l.indexOf(g)){i.push({ID:n.code,message:n.message,codeFragment:{beforeHighlighting:"",highlighted:n.context,afterHighlighting:""}});continue}const m=l.indexOf(g)+1,h=m+g.length,f=`${(0,a.cropArray)({fromStart:!0,targetArray:s,startingElementNumber__numerationFrom1:u,endingElementNumber__numerationFrom1__including:d-1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}\n`+(0,a.cropString)({targetString:l,startingCharacterNumber__numerationFrom1:1,endingCharacterNumber__numerationFrom1:m-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}),S=`${(0,a.cropString)({targetString:l,startingCharacterNumber__numerationFrom1:h,endingCharacterNumber__numerationFrom1:l.length,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1})}\n`+(0,a.cropArray)({fromStart:!0,targetArray:s,startingElementNumber__numerationFrom1:d+1,endingElementNumber__numerationFrom1__including:c,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n");i.push({ID:n.code,codeFragment:{beforeHighlighting:f,highlighted:g,afterHighlighting:S,location:{lineNumber__numerationFrom1:d,startingColumnNumber__numerationFrom1:m,endingColumnNumber__numerationFrom1:h}},message:n.message})}return i}logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:e,normalizedInspectionIssues:t,inspectionPeriod__seconds:i}){t.length>0&&(a.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:e,formattedErrorsAndWarnings:p.formatInspectionResultForSingleFile(t)})),clearTimeout((0,a.nullToUndefined)(this.waitingForToastNotificationsWillBePermittedAgain)),this.isToastNotificationPermitted&&(u.default.notify(p.localization.issuesFoundNotification),this.isToastNotificationPermitted=!1,this.waitingForToastNotificationsWillBePermittedAgain=setTimeout(()=>{this.isToastNotificationPermitted=!0},(0,a.secondsToMilliseconds)(p.SUBSEQUENT_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS)))),this.logging.inspectionCompletionWithoutIssues&&a.Logger.logSuccess(p.localization.generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:e,secondsElapsed:i}))}static formatInspectionResultForSingleFile(e){const t=[];for(const[i,n]of e.entries())t.push([`${(0,a.surroundLabelByOrnament)({label:p.localization.generateIssueNumberLabel({issueNumber:i+1}),ornamentPatten:"=",prependedPartCharactersCount:3,totalCharactersCount:p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`,...(0,a.isNonEmptyString)(n.codeFragment.beforeHighlighting)?[n.codeFragment.beforeHighlighting]:[],...(0,a.isNonEmptyString)(n.codeFragment.beforeHighlighting)&&(0,a.isNonEmptyString)(n.codeFragment.afterHighlighting)?[a.Logger.highlightText(n.codeFragment.highlighted)]:[n.codeFragment.highlighted],...(0,a.isNonEmptyString)(n.codeFragment.afterHighlighting)?[n.codeFragment.afterHighlighting]:[],"\n",`${"-".repeat(p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,`${n.message}\n`,...(0,a.isNotUndefined)(n.codeFragment.location)?[p.localization.generateIssueOccurrenceLocationIndication({lineNumber:n.codeFragment.location.lineNumber__numerationFrom1,startingColumnNumber:n.codeFragment.location.startingColumnNumber__numerationFrom1,lastColumnNumber:n.codeFragment.location.endingColumnNumber__numerationFrom1})]:[]].join(""));return t.join("\n\n")}static async retrieveCachedPastInspectionsResultsFromFileIfItExists({cachedInspectionsResultsDirectoryAbsolutePath:e,cachedInspectionResultsFileAbsolutePath:t}){if(!await l.ImprovedFileSystem.isFileOrDirectoryExists({targetPath:e,synchronously:!1}))return null;let i;try{i=await l.ObjectDataFilesProcessor.processFile({filePath:t,validDataSpecification:p.cachedInspectionsResultsFileContentSpecification,synchronously:!1})}catch(e){return l.FileNotFoundError,null}return new Map(Object.entries(i))}writeCacheToFile(){l.ImprovedFileSystem.createDirectory({targetPath:this.CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfTargetDirectoryExists:!1,synchronously:!0});const e=Array.from((0,a.filterMap)(this.cachedInspectionsResults,e=>this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.has(e)).entries()).reduce((e,[t,i])=>(e[t]=i,e),{});l.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH,content:JSON.stringify(e,null,2),synchronously:!0})}static async initializeAsynchronousRequirements({cachedInspectionsResultsDirectoryAbsolutePath:e,cachedInspectionResultsFileAbsolutePath:t}){const[i,n]=await Promise.all([p.retrieveCachedPastInspectionsResultsFromFileIfItExists({cachedInspectionResultsFileAbsolutePath:t,cachedInspectionsResultsDirectoryAbsolutePath:e}).catch(e=>null),o.default.launch()]);return{...(0,a.isNotNull)(i)?{cachedInspectionsResults:i}:null,webBrowser:n}}static onSelfSoleInstanceReady(e){for(const t of p.onSelfSoleInstanceReadyEventsHandlers)t(e);p.onSelfSoleInstanceReadyEventsHandlers.clear()}static async getInstanceOnceReady(){return p.hasInitializationStarted||a.Logger.throwErrorWithFormattedMessage({errorInstance:new a.ClassRequiredInitializationHasNotBeenExecutedError({className:"AccessibilityInspector",initializingMethodName:"beginInitialization"}),title:a.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"AccessibilityInspector.getInstanceOnceReady()"}),p.hasInitializationFailed&&a.Logger.throwErrorWithFormattedMessage({errorType:"InitializationFailedError",description:"The initialization has failed thus the accessibility checking could not be executed.",title:"Initialization failed",occurrenceLocation:"AccessibilityInspector.getInstanceOnceReady()"}),p.selfSoleInstance??new Promise(e=>{p.onSelfSoleInstanceReadyEventsHandlers.add(e)})}static generateAccessibilityIssueAuxiliaryHTML_Attribute(e){return`data-accessibility_issue-${e}`}}t.default=p},6131(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s={generateFileIsEmptyWarningLog:({targetFileRelativePath:e})=>({title:"HTML Code Accessibility Inspection Terminated because of Empty File",description:`File "${e}" is empty, no HTML to inspect. Please note that at production-like modes the empty HTML files are being considered as invalid.`}),generateInspectionStartedInfoLog:({targetFileRelativePath:e})=>({title:"HTML Code Accessibility Inspection Started",description:`Target file: ${e}`}),inspectionFailedErrorLog:{title:"HTML conde accessibility checking failed",description:"The error occurred during HTML code accessibility checking. It may be caused by the problems with the internet connection. Well, we should not stop the project building because of this. We believe that you will check the HTML accessibility afterwards and fix the issues if they will be."},generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog:({targetFileRelativePath:e,secondsElapsed:t})=>({title:"HTML Code Accessibility Checking of Single File Complete without Issues",description:`The HTML code in file "${e}" has no the accessibility issues.\n`+((0,n.isUndefined)(t)?"(Cached result, no changes in output HTML code since last building)":`${t} seconds taken.`)}),generateIssuesFoundInSingleFileErrorLog:({targetFileRelativePath:e,formattedErrorsAndWarnings:t})=>({title:"HTML accessibility inspection, issue(s) found",description:`File "${e}" is including the following HTML accessibility issues:\n\n${t}\n\n`}),inspectionOfAllFilesHasFinishedWithNoIssuesFoundSuccessLog:{title:"HTML accessibility inspection, no issues found",description:"All files are fully obeying to selected accessibility standard."},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."},generateIssueNumberLabel:({issueNumber:e})=>` Issue No. ${e} `,generateIssueOccurrenceLocationIndication:({lineNumber:e,startingColumnNumber:t,lastColumnNumber:i})=>`At line ${e}, columns ${t}-${i}`,generateIssuesFoundErrorLog:({targetFileRelativePath:e,formattedErrorsAndWarnings:t})=>({badge:{customText:"HTML code accessibility inspection not passed"},title:"HTML code accessibility inspection, issue(s) found",description:`HTML file "${e}" is including the following accessibility issues:\n\n${t}\n\n`}),formattedError:{violatedGuidelineItem:"Violated rule",keyAndValueSeparator:":"},issuesFoundInOneOrMultipleFilesErrorLog:{title:"Accessibility inspection, issue(s) found",description:"The issue(s) has been found in one or more output HTML files. Intended to be used for the high quality development, YDA can not accept the HTML code with accessibility violations on production and production-like modes. Its strongly recommended to fix these issue(s) instead of disabling of the accessibility checking."},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/ ?`})};t.default=s},8079(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES="[\\u3000-\\u303f\\u3040-\\u309f\\u30a0-\\u30ff\\uff00-\\uffef\\u4e00-\\u9fff\\uac00-\\ud7af]";static extraSpaceSurroundedByCharactersDetectingPatterns=[new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})[\\x20|\\n|\\r\\n]+(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu"),new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu"),new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+(<)`,"gmu"),new RegExp(`(>)\\r?\\n +(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu")];static ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS="data-yda-normalize_spaces_in_cjk";static normalize(e){for(const t of Array.from(e.querySelectorAll(`[${i.ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS}]`))){let e=t.innerHTML;for(const t of i.extraSpaceSurroundedByCharactersDetectingPatterns)e=e.replaceAll(t,"$1$2");t.removeAttribute(i.ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS),t.innerHTML=e}return e}}t.default=i},7006(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7857)),r=n(i(9955)),o=n(i(919)),a=n(i(1421)),l=n(i(8661)),d=i(6272),u=i(5480),c=i(6331),p=n(i(34));class g{static selfSingleInstance=null;queuedFilesMetadata=new Set;consumingProjectRootDirectoryAbsolutePath;static validationsResultsSpecification={nameForLogging:"Nu HTML Checker (v.Nu) Output",subtype:d.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:{messages:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{type:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:["info","error","non-document-error","network-error"]},url:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:7},lastLine:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},lastColumn:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},firstColumn:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},subType:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:["warning","fatal","io","schema","internal"]},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},extract:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},hiliteStart:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0},hiliteLength:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0}}}}}};static CACHED_VALIDATIONS_RESULTS_FOLDER_NAME="HTML_Validation";static CACHED_VALIDATIONS_RESULTS_FILE_CONSTANT_NAME_PART="HTML_Validation";absolutePathOfParentDirectoryOfCachedValidationsResultsFile;absolutePathOfCachedValidationsResultsFile;cachedValidationsResults;static cachedValidationsResultsFileContentSpecification={nameForLogging:"HTML_Validator.CachedValidationResultsFileContentSpecification",subtype:d.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{contentMD5Checksum:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{type:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:["info","error","non-document-error","network-error"]},subType:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:["warning","fatal","io","schema","internal"]},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},lineNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},startingColumnNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},endingColumnNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}}}}};logging;static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;static TEMPORARY_FORMATTED_HTML_FILES_FOLDER_NAME="HTML_Validation";absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files;pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files;static localization=s.default;static initialize(e){(0,d.isNotNull)(g.selfSingleInstance)?d.Logger.logError({errorType:d.ClassRedundantSubsequentInitializationError.NAME,title:d.ClassRedundantSubsequentInitializationError.localization.defaultTitle,description:d.ClassRedundantSubsequentInitializationError.localization.generateDescription({className:"HTML_Validator"}),occurrenceLocation:"HTML_Validator.initialize(configuration)",mustOutputIf:!1}):g.selfSingleInstance=new g(e)}static enqueueFileForValidation(e){g.getExpectedToBeInitializedSelfSingleInstance().queuedFilesMetadata.add(e)}static validateQueuedFilesButReportAll(){g.getExpectedToBeInitializedSelfSingleInstance().validateQueuedFilesButReportAll().catch(d.Logger.logPromiseError)}constructor({temporaryFilesDirectoryAbsolutePath:e,projectBuildingMasterConfigRepresentative:t,logging:i}){let n;this.consumingProjectRootDirectoryAbsolutePath=t.consumingProjectRootDirectoryAbsolutePath,this.absolutePathOfParentDirectoryOfCachedValidationsResultsFile=u.ImprovedPath.joinPathSegments([o.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,g.CACHED_VALIDATIONS_RESULTS_FOLDER_NAME],{alwaysForwardSlashSeparators:!0}),this.absolutePathOfCachedValidationsResultsFile=g.computeAbsolutePathOfCachedValidationsResultsFileActualForCurrentProjectBuildingMode({parentDirectoryAbsolutePath:this.absolutePathOfParentDirectoryOfCachedValidationsResultsFile,projectBuildingSelectiveExecutionID:t.selectiveExecutionID,consumingProjectBuildingMode:t.consumingProjectBuildingMode});try{n=u.ObjectDataFilesProcessor.processFile({filePath:this.absolutePathOfCachedValidationsResultsFile,validDataSpecification:g.cachedValidationsResultsFileContentSpecification,synchronously:!0})}catch(e){e instanceof u.FileNotFoundError||d.Logger.logError({errorType:"CachedDataRetrievingFailure",...g.localization.cachedPreviousValidationsResultsDataRetrievingErrorLog({cachedValidationsResultsFileAbsolutePath:this.absolutePathOfCachedValidationsResultsFile}),occurrenceLocation:"HTML_Validator.retrieveCachedPastValidationsResultsFromFileIfItExists(cachedValidationsResultsFileAbsolutePath)",caughtError:e,mustOutputIf:!1})}this.cachedValidationsResults=new Map(Object.entries(n??{})),this.logging=i,this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files=u.ImprovedPath.joinPathSegments([e,g.TEMPORARY_FORMATTED_HTML_FILES_FOLDER_NAME]),this.pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files=u.ImprovedPath.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files,alwaysForwardSlashSeparators:!0})}async validateQueuedFilesButReportAll(){const e=[],t=new Map,i=new Set,n=new Map,s=new Map;for(const{originalHTML_FilePathRelativeToConsumingProjectRoot__forwardSlashesSeparatorsOnly:r,formattedHTML_Content:o,HTML_ContentMD5_Hash:a}of this.queuedFilesMetadata){i.add(r),n.set(r,a);const l=this.cachedValidationsResults.get(r);if(l?.contentMD5Checksum===a)continue;this.cachedValidationsResults.delete(r),s.set(r,(0,d.splitString)(o,"\n"));const p=u.ImprovedPath.joinPathSegments([this.pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files,`${(0,c.nanoid)()}.html`],{alwaysForwardSlashSeparators:!0});e.push(p);const g=u.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,p],{alwaysForwardSlashSeparators:!0});t.set(`file:/${encodeURI(g)}`,r),u.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:g,content:o,synchronously:!0})}if(this.logging.validationStart&&d.Logger.logInfo(g.localization.validationStartedInfoLog),0===e.length)return void g.reportValidationsResults({validationsResults:this.cachedValidationsResults,validationPeriod__seconds:0});const r=(new p.default).startOrRestart(),o=await g.getRawValidationsResultsFromNuHTML_Checker(e);u.ImprovedFileSystem.removeFilesFromDirectory({directoryPath__absoluteOrRelative:this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files,synchronously:!0});const a=d.RawObjectDataProcessor.process(o,g.validationsResultsSpecification);if(a.isRawDataInvalid)return r.stop(),void d.Logger.logError({errorType:d.UnexpectedEventError.NAME,title:d.UnexpectedEventError.localization.defaultTitle,description:"The Nu HTML Checker does not much with expected one.\n"+d.RawObjectDataProcessor.formatValidationErrorsList(a.validationErrorsMessages),occurrenceLocation:"HTML_Validator.validateQueuedFilesButReportAll()",mustOutputIf:!1});for(const e of a.processedData.messages){const r=(0,d.getExpectedToBeNonUndefinedMapValue)(t,e.url);i.delete(r);const o=this.cachedValidationsResults.get(r)?.issues;(0,d.isUndefined)(o)?this.cachedValidationsResults.set(r,{contentMD5Checksum:(0,d.getExpectedToBeNonUndefinedMapValue)(n,r),issues:[g.normalizeRawValidationIssue(e,(0,d.getExpectedToBeNonUndefinedMapValue)(s,r))]}):o.push(g.normalizeRawValidationIssue(e,(0,d.getExpectedToBeNonUndefinedMapValue)(s,r)))}for(const e of i)this.cachedValidationsResults.set(e,{issues:[],contentMD5Checksum:(0,d.getExpectedToBeNonUndefinedMapValue)(n,e)});const{seconds:l}=r.stop();g.reportValidationsResults({validationsResults:this.cachedValidationsResults,validationPeriod__seconds:l}),this.writeCacheToFile(),this.queuedFilesMetadata.clear()}static async getRawValidationsResultsFromNuHTML_Checker(e){return new Promise((t,i)=>{a.default.execFile("java",["-jar",`"${r.default}"`,"--format","json",...e],{shell:!0},(e,n,s)=>{const r=Buffer.isBuffer(s)?s.toString("utf8"):s;try{t(JSON.parse(r))}catch(e){i(e)}})})}static normalizeRawValidationIssue({type:e,subType:t,message:i,lastLine:n,firstColumn:s,lastColumn:r},o){if((0,d.isUndefined)(n)||(0,d.isUndefined)(r))return{type:e,subType:t,message:i};const a=o[n-1],l=(0,d.limitMinimalValue)({targetNumber:n-g.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING,minimalValue:1}),u=(0,d.limitMaximalValue)({targetNumber:n+g.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING,maximalValue:o.length}),c=s??r;return{type:e,subType:t,message:i,lineNumber__numerationFrom1:n,startingColumnNumber__numerationFrom1:c,endingColumnNumber__numerationFrom1:r,codeFragment:{beforeHighlighting:`${(0,d.cropArray)({fromStart:!0,targetArray:o,startingElementNumber__numerationFrom1:l,endingElementNumber__numerationFrom1__including:(0,d.limitMinimalValue)({targetNumber:n-1,minimalValue:1}),mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}\n`+(c>1?(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:1,endingCharacterNumber__numerationFrom1:c-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}):""),highlighted:(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:c,endingCharacterNumber__numerationFrom1:r,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}),afterHighlighting:`${(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:r+1,endingCharacterNumber__numerationFrom1:a.length,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1})}\n`+(0,d.cropArray)({fromStart:!0,targetArray:o,startingElementNumber__numerationFrom1:n+1,endingElementNumber__numerationFrom1__including:u,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}}}static reportValidationsResults({validationsResults:e,validationPeriod__seconds:t}){const i=Array.from(e.keys()).sort();let n=!1;const s=new Map,r=new Map;for(const[t,{issues:i}]of e.entries()){const e=i.length>0;s.set(t,e),e&&(n=!0,r.set(t,g.formatValidationResultForSingleFile(i)))}const o=`${(0,d.surroundLabelByOrnament)({label:g.localization.validityIssuesDetectedErrorLog.headings.summary,ornamentPatten:"━",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+i.map(e=>((0,d.getExpectedToBeNonUndefinedMapValue)(s,e)?"❌":"✅")+" "+e).join("\n"),a=`${(0,d.surroundLabelByOrnament)({label:g.localization.validityIssuesDetectedErrorLog.headings.details,ornamentPatten:"━",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+i.filter(e=>r.has(e)).map(e=>`${(0,d.surroundLabelByOrnament)({label:e,characterForIndentationAroundLabel:" ",ornamentPatten:"─",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+(0,d.getExpectedToBeNonUndefinedMapValue)(r,e)).join("\n");if(n)return d.Logger.logErrorLikeMessage({title:g.localization.validityIssuesDetectedErrorLog.title,description:`${o}\n\n${a}\n`+g.localization.validityIssuesDetectedErrorLog.generateSecondsElapsedSentence({validationPeriod__seconds:t})}),void l.default.notify(g.localization.validityIssuesDetectedToastNotification);d.Logger.logSuccess({title:g.localization.validationFinishedWithoutIssuesSuccessLog.title,description:g.localization.validationFinishedWithoutIssuesSuccessLog.generateDescription({validationPeriod__seconds:t,preFormattedErrorsMessages:Array.from(e.keys()).map(e=>`● ${e}`).join("\n")})})}static formatValidationResultForSingleFile(e){const t=[];for(const[i,n]of e.entries())t.push([`${(0,d.surroundLabelByOrnament)({label:g.localization.generateIssueNumberLabel({issueNumber:i+1}),ornamentPatten:"┄",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`,...(0,d.isNotUndefined)(n.codeFragment)?[n.codeFragment.beforeHighlighting,d.Logger.highlightText(n.codeFragment.highlighted),`${n.codeFragment.afterHighlighting}\n`]:[],`${"-".repeat(g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,n.message,` (${(()=>{switch(n.type){case g.NormalizedValidationsResults.Issue.Types.error:return g.localization.issuesTypesTitles.grossViolation;case g.NormalizedValidationsResults.Issue.Types.info:return g.localization.issuesTypesTitles.recommendationDisregard}})()})\n`,...(0,d.isNotUndefined)(n.lineNumber__numerationFrom1)&&(0,d.isNotUndefined)(n.startingColumnNumber__numerationFrom1)&&(0,d.isNotUndefined)(n.endingColumnNumber__numerationFrom1)?[g.localization.generateIssueOccurrenceLocationIndication({lineNumber:n.lineNumber__numerationFrom1,startingColumnNumber:n.startingColumnNumber__numerationFrom1,lastColumnNumber:n.endingColumnNumber__numerationFrom1})]:[]].join(""));return t.join("\n\n")}static computeAbsolutePathOfCachedValidationsResultsFileActualForCurrentProjectBuildingMode({parentDirectoryAbsolutePath:e,projectBuildingSelectiveExecutionID:t,consumingProjectBuildingMode:i}){return u.ImprovedPath.joinPathSegments([e,[g.CACHED_VALIDATIONS_RESULTS_FILE_CONSTANT_NAME_PART,...(0,d.isUndefined)(t)?[]:[t],`${(0,d.toLowerCamelCase)(i)}.json`].join(".")])}writeCacheToFile(){const e=Array.from(this.cachedValidationsResults.entries()).reduce((e,[t,i])=>(e[t]=i,e),{});u.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.absolutePathOfCachedValidationsResultsFile,content:JSON.stringify(e,null,2),synchronously:!0})}static getExpectedToBeInitializedSelfSingleInstance(){return g.selfSingleInstance??d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.ClassRequiredInitializationHasNotBeenExecutedError({className:"HTML_Validator",initializingMethodName:"initialize"}),title:d.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"HTML_Validator.getExpectedToBeInitializedSelfSingleInstance()"})}}!function(e){let t;!function(e){let t;!function(e){let t,i;!function(e){e.info="info",e.error="error"}(t=e.Types||(e.Types={})),function(e){e.warning="warning",e.fatal="fatal",e.io="io",e.schema="schema",e.internal="internal"}(i=e.SubTypes||(e.SubTypes={}))}(t=e.Issue||(e.Issue={}))}(t=e.NormalizedValidationsResults||(e.NormalizedValidationsResults={}))}(g||(g={})),t.default=g},7857(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={cachedPreviousValidationsResultsDataRetrievingErrorLog:({cachedValidationsResultsFileAbsolutePath:e})=>({title:"Cached Previous Validations Data Retrieving Failure",description:`Unable to read and/or parse the existing HTML validation cache file "${e}".`}),validationStartedInfoLog:{title:"HTML Code Validation Started",description:"Validating the output HTML files..."},validityIssuesDetectedErrorLog:{title:"HTML Validation, Issue(s) Detected",headings:{summary:"Summary",details:"Details"},generateSecondsElapsedSentence:({validationPeriod__seconds:e})=>`Seconds elapsed: ${e}`},validityIssuesDetectedToastNotification:{title:"HTML Validation, Issue(s) Detected",message:"W3C rules violations and / or recommendations neglect detected. Check the console for the details."},validationFinishedWithoutIssuesSuccessLog:{title:"HTML Validation, All Valid",generateDescription:({validationPeriod__seconds:e,preFormattedErrorsMessages:t})=>`All HTML files (except excluded ones if any) contains valid HTML. The following files has been checked:\n${t}\nSeconds elapsed: ${e}`},generateIssueNumberLabel:({issueNumber:e})=>`Issue No. ${e}`,generateIssueOccurrenceLocationIndication:({lineNumber:e,startingColumnNumber:t,lastColumnNumber:i})=>`At line ${e}, columns ${t}-${i}`,issuesTypesTitles:{grossViolation:"Gross violation",recommendationDisregard:"Recommendation disregard",other:"Other issue"}}},7885(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=n(i(9896)),o=n(i(7196)),a=i(6272),l=i(5480);class d{static TARGET_ELEMENTS_ATTRIBUTE_NAME="data-yda-auto_aspect_ratio";static imagesCachedMetadata=new Map;static affix({rootHTML_Element:e,publicPath:t,absolutePathOfOutputDirectoryForTargetHTML_File:i,consumingProjectRootDirectoryAbsolutePath:n}){for(const u of e.querySelectorAll(`[${d.TARGET_ELEMENTS_ATTRIBUTE_NAME}]`)){const e="IMG"===u.tagName?u.getAttribute("src")??null:d.tryToExtractBackgroundImagePathFromElement(u);if((0,a.isNull)(e)||e.startsWith("http"))continue;let c,p;if(s.default.isAbsolute(e)){if((0,a.isUndefined)(t)){a.Logger.logError({mustOutputIf:!1,errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:'The image has the shortened absolute path while "publicPath" has not been passed. ',occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)"});continue}c=l.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0})}else c=l.ImprovedPath.joinPathSegments([i,e],{alwaysForwardSlashSeparators:!0});try{p=r.default.statSync(c).ctime.getTime()}catch(t){a.Logger.logError({mustOutputIf:!1,errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:`No image with path "${e}" specified in output HTML code has been found. It must be investigated.`,occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:t});continue}const g=l.ImprovedPath.computeRelativePath({comparedPath:c,basePath:n,alwaysForwardSlashSeparators:!0});let m,h;const f=d.imagesCachedMetadata.get(g);if((0,a.isNotUndefined)(f)&&f.modificationDateTime__UNIX_milliseconds===p)m=f.width__pixels,h=f.height__pixels;else{let e,t;try{e=r.default.readFileSync(c)}catch(e){a.Logger.logError({mustOutputIf:!1,errorType:a.FileReadingFailedError.NAME,title:a.FileReadingFailedError.localization.defaultTitle,description:a.FileReadingFailedError.localization.generateDescription({filePath:i}),occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:e});continue}try{t=o.default.sync(e)}catch(e){a.Logger.logError({mustOutputIf:!1,errorType:"ImageAnalyzingFailure",title:"Image analyzing failed",description:"Fail to get the image dimensions.",occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:e});continue}if((0,a.isNull)(t))continue;m=t.width,h=t.height,d.imagesCachedMetadata.set(g,{modificationDateTime__UNIX_milliseconds:p,width__pixels:m,height__pixels:h})}const S=u.getAttribute("style")??"";u.setAttribute("style",`${S}aspect-ratio: ${m}/${h};`),u.removeAttribute(d.TARGET_ELEMENTS_ATTRIBUTE_NAME)}return e}static tryToExtractBackgroundImagePathFromElement(e){const t=e.getAttribute("style");if((0,a.isUndefined)(t))return null;const i=/background(?:-image)?\s*:\s*url\(["'](?<URI>[^"']+)["']/gu.exec(t);return(0,a.isNotNull)(i)?i[1]:null}}t.default=d},7143(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.`})}},3748(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(3704)),o=n(i(7831)),a=n(i(5687)),l=n(i(1741)),d=n(i(4640)),u=n(i(2404)),c=n(i(9706)),p=n(i(7143)),g=i(6272),m=i(5480);class h{static localization=p.default;static aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap=new Map;static markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap=new Map;static stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap=new Map;static scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap=new Map;static imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap=new Map;static videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap=new Map;static audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;rootHTML_Element;projectBuildingMasterConfigRepresentative;markupProcessingSettingsRepresentative;contextHTML_FileOutputDirectoryAbsolutePath;publicDirectoryAbsolutePath;plainCopyingSettingsRepresentative;static resolve(e){return new h(e).resolveInternalLinks().resolveStylesheetsAliasedPaths().resolveScriptsPathsAliases().resolveImagesAliasedPaths().resolveVideosAliasedPaths().resolveAudiosAliasedPaths().rootHTML_Element}constructor({rootHTML_Element:e,projectBuildingMasterConfigRepresentative:t,markupProcessingSettingsRepresentative:i,absolutePathOfOutputDirectoryForTargetHTML_File:n}){this.rootHTML_Element=e,this.projectBuildingMasterConfigRepresentative=t,this.markupProcessingSettingsRepresentative=i,this.contextHTML_FileOutputDirectoryAbsolutePath=n,(0,g.isNotNull)(this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath)&&(this.publicDirectoryAbsolutePath=this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath),this.plainCopyingSettingsRepresentative=t.plainCopyingSettingsRepresentative,0===h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(this.markupProcessingSettingsRepresentative.entryPointsGroupsNormalizedSettingsMappedByReferences,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.stylesProcessingSettingsRepresentative?.entryPointsGroupsNormalizedSettingsMappedByReferences??new Map,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.ECMA_ScriptLogicProcessingSettingsRepresentative?.entryPointsGroupsNormalizedSettingsMappedByReferences??new Map,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.imagesProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),0===h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.fontsProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),0===h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.audiosProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath]))}resolveInternalLinks(){for(const e of this.rootHTML_Element.querySelectorAll("a"))this.resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:"href"});for(const e of this.rootHTML_Element.querySelectorAll("iframe"))this.resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:"src"});return this}resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:t}){const i=e.getAttribute(t);if(!(0,g.isNonEmptyString)(i))return;let n=h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n))return void e.setAttribute(t,this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),a=s[0];if((0,g.isNonEmptyString)(a)){if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&a.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))return;return h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.set(i,n),void e.setAttribute(t,this.buildResourceFileFinalPath(n))}n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:this.markupProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:o.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap__includingFictiveOnes,fileTypeForLogging__singularForm:this.markupProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:this.markupProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.set(i,n),e.setAttribute(t,this.buildResourceFileFinalPath(n)))}}resolveStylesheetsAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.stylesProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("link[rel='stylesheet']")){const i=t.getAttribute("href");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("href",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("href",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("href",this.buildResourceFileFinalPath(n))))}return this}resolveScriptsPathsAliases(){const e=this.projectBuildingMasterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("script")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("src",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:l.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveImagesAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.imagesProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const e of this.rootHTML_Element.querySelectorAll("img"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"src"});for(const e of this.rootHTML_Element.querySelectorAll("picture > source"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"srcset"});for(const e of this.rootHTML_Element.querySelectorAll("link[type='image/x-icon']"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"href"});for(const t of this.rootHTML_Element.querySelectorAll('[style*="background: url("]').concat(this.rootHTML_Element.querySelectorAll('[style*="background:url("]')).concat(this.rootHTML_Element.querySelectorAll('[style*="background-image: url("]')).concat(this.rootHTML_Element.querySelectorAll('[style*="background-image:url("]'))){const i=(0,g.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:t.getAttribute("style")??"",regularExpressionWithCapturingGroups:/url\(["']?(?<possiblyAliasedPath>.+?)["']?\);?/gu,replacer:t=>{const i=t.namedCapturingGroups.possiblyAliasedPath;let n=h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n))return`url("${this.buildResourceFileFinalPath(n)}");`;const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];return(0,g.isNonEmptyString)(o)?(0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)?(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n)?null:(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),`url("${this.buildResourceFileFinalPath(n)}");`)):(0,g.isUndefined)(e)?null:(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:d.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)?null:(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),`url("${this.buildResourceFileFinalPath(n)}");`)):null}});t.setAttribute("style",i)}return this}resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:t}){const i=e.getAttribute(t);if(!(0,g.isNonEmptyString)(i))return;let n=h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(t)??null;if((0,g.isNotNull)(n))return void e.setAttribute(t,this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if(!(0,g.isNonEmptyString)(o))return;if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))return;return h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),void e.setAttribute(t,this.buildResourceFileFinalPath(n))}const a=this.projectBuildingMasterConfigRepresentative.imagesProcessingSettingsRepresentative;(0,g.isUndefined)(a)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:a.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:d.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:a.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:a.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),e.setAttribute(t,this.buildResourceFileFinalPath(n))))}resolveVideosAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.videosProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("video > source")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("src",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:u.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveAudiosAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.audiosProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("audio > source")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.get(i)??null;(0,g.isNotNull)(n)&&t.setAttribute("src",this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:c.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:t,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:i,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:n,fileTypeForLogging__pluralForm:r}){const o=(0,g.explodeURI_PathToSegments)(e),a=o[0];if((0,g.isUndefined)(a))return null;if(a.startsWith(s.default)){const s=t.get(a);if((0,g.isUndefined)(s))return g.Logger.logWarning(h.localization.generateUnknownResourceGroupReferenceWarningLog({fileType__pluralForm:r,firstPathSegment:a,pickedPathOfTargetResourceFile:e,formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,g.stringifyAndFormatArbitraryValue)(Array.from(t.entries()))})),null;const l=m.ImprovedPath.joinPathSegments([s,...o.slice(1)],{alwaysForwardSlashSeparators:!0}),d=(0,g.extractLastExtensionOfFileName)({targetPath:l,withLeadingDot:!1});if((0,g.isNull)(d)||!i.has(d)){const t=Array.from(i).map(e=>(0,g.getURI_PartWithoutFragment)((0,g.appendLastFileNameExtension)({targetPath:l,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}))),s=(0,g.filterMap)(n,e=>t.includes(e));return 0===s.size?(g.Logger.logWarning(h.localization.generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r,checkedAbsolutePaths__formatted:(0,g.stringifyAndFormatArbitraryValue)(t)})),null):(0,g.appendFragmentToURI)({targetURI:Array.from(s.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,g.getURI_Fragment)({targetURI:l,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const u=n.get(l);return(0,g.isUndefined)(u)?(g.Logger.logWarning(h.localization.generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r})),null):u}return null}buildResourceFileFinalPath(e){return(0,g.isNotUndefined)(this.publicDirectoryAbsolutePath)?`/${m.ImprovedPath.computeRelativePath({basePath:this.publicDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})}`:m.ImprovedPath.computeRelativePath({basePath:this.contextHTML_FileOutputDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})}}t.default=h},8363(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8627));class r{static generateAndSetContentForVinylFile(e){const t=e.stringifiedContents,i=r.convertInitialCodeToXML_Compatible(t),n=s.default.normalize(i);e.setContents(n)}static convertInitialCodeToXML_Compatible(e){let t=e;return t=t.replaceAll(/@ref=/gu,"at-ref="),t}}t.default=r},6847(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static optionsSpecification={subtype:n.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CodeListingPugFilerOptions",properties:{mustAppendEmptyLine:{type:Boolean,undefinedValueSubstitution:!1,isNullForbidden:!0},indentationMultiplier:{preValidationModifications:n.convertPotentialStringToIntegerIfPossible,type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},indentationString:{type:String,undefinedForbiddenIf:{predicate:e=>(0,n.isNotUndefined)(e.indentationMultiplier),descriptionForLogging:'"indentationMultiplier" has been specified'},isNullForbidden:!0,minimalCharactersCount:1}}};static apply(e,t){const i=n.RawObjectDataProcessor.process(t,s.optionsSpecification);i.isRawDataInvalid&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:'One or more invalid options found for "CodeListing" pug filer.\n'+n.RawObjectDataProcessor.formatValidationErrorsList(i.validationErrorsMessages)}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"CodeListingPugFilter.apply(sourcePugCode, rawOptions)"});const{mustAppendEmptyLine:r,indentationString:o,indentationMultiplier:a}=i.processedData,l=(0,n.getLineSeparatorType)(e);let d=e;return(0,n.isNotUndefined)(o)&&(0,n.isNotUndefined)(a)&&(d=(0,n.explodeStringToLines)({targetString:d,mustIgnoreCarriageReturn:!0}).map(e=>`${o.repeat(a-1)}${e}`).join(l)),[...r?[l]:[],d.replace(/&(?!#?[a-z0-9]+;)/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""").replace(/'/gu,"'")].join("")}}t.default=s},2282(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(8931)),o=n(i(3021)),a=n(i(2274)),l=n(i(5347)),d=i(6272),u=n(i(518)),c=i(5480),p=n(i(1429));class g extends a.default{static localization=p.default;supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;markupProcessingSettings__fromFile__rawValid;unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths;commonStringResources;static normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new g({projectBuildingCommonSettings__normalized:t,...(0,d.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.markupProcessing}:null,markupProcessingSettings__fromFile__rawValid:e});return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,mustResolveResourcesReferencesToAbsolutePath:i.computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(),secondsBetweenFileUpdatingAndStartingOfRebuilding:i.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[i.consumingProjectBuildingMode]?.secondsBetweenFileUpdatingAndStartingOfRebuilding??o.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i.normalizeLintingSettings(),...(0,d.isNotUndefined)(e.importingFromTypeScript)?{importingFromTypeScript:i.normalizeImportingFromTypeScriptSettings(e.importingFromTypeScript)}:null,...(0,d.isNotUndefined)(e.importingFromJavaScript)?{importingFromJavaScript:i.normalizeImportingFromJavaScriptSettings(e.importingFromJavaScript)}:null,staticPreview:{pagesVariations:i.normalizeStaticPreviewPagesVariationsSettings(),importsFromStaticDataFiles:i.normalizeImportsFromStaticDataFiles()},...(0,d.isNotUndefined)(e.routing)?{routing:{variable:e.routing.variable,routes:l.default.normalize({routingSettings__fromFile__rawValid:e.routing,projectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,absolutePathsOfSectioningToCache:new Set})}}:null,relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings.bind(i)),logging:i.normalizeLoggingSettings()}}constructor(e){super(e),this.markupProcessingSettings__fromFile__rawValid=e.markupProcessingSettings__fromFile__rawValid,this.unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths=new Set((this.markupProcessingSettings__fromFile__rawValid.common?.localization?.excludedFilesPathsRelativeRelativeToProjectRootDirectory??[]).map(t=>c.ImprovedPath.joinPathSegments([e.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})))}computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(){const e=this.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[this.consumingProjectBuildingMode]?.mustResolveResourcesPointersToRelativePaths;return this.consumingProjectBuildingMode===r.default.staticPreview?(!1===e&&d.Logger.logWarning(g.localization.noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog),!1):(0,d.isUndefined)(e)?!(0,d.isUndefined)(this.actualPublicDirectoryAbsolutePath)||(d.Logger.logWarning(g.localization.generateUnableToResolveResourcesReferencesToAbsolutePathLog({consumingProjectBuildingMode:this.consumingProjectBuildingMode})),!1):!e}normalizeLintingSettings(){return(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting)?{mustExecute:this.markupProcessingSettings__fromFile__rawValid.linting.enable??o.default.linting.mustExecute,...(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath)?{presetFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null}:{mustExecute:o.default.linting.mustExecute}}normalizeImportingFromTypeScriptSettings(e){const t=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0});return{typeScriptConfigurationFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,(0,d.isNotUndefined)(e.typeScriptConfigurationFileRelativePath)?(0,d.appendLastFileNameExtension)({targetPath:e.typeScriptConfigurationFileRelativePath,targetFileNameExtensionWithOrWithoutLeadingDot:"json",mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}):o.default.staticPreview.typeScriptConfigurationFileRelativePath],{alwaysForwardSlashSeparators:!0}),sourceFileAbsolutePath:t,importedNamespace:e.importedNamespace}}normalizeImportingFromJavaScriptSettings(e){return{sourceFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0}),nameOfGlobalConstantForStoringOfImports:e.nameOfGlobalConstantForStoringOfImports}}normalizeStaticPreviewPagesVariationsSettings(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.stateDependentPagesVariations,t=new Map;if((0,d.isUndefined)(e)||this.consumingProjectBuildingMode!==r.default.staticPreview)return{stateDependent:t};const i=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.specificationFileRelativePath],{alwaysForwardSlashSeparators:!0});let n;try{n=c.ObjectDataFilesProcessor.processFile({filePath:i,schema:c.ObjectDataFilesProcessor.SupportedSchemas.YAML,synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({customMessage:g.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage({staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath:i})}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()",innerError:e})}if(!(0,d.isArbitraryObject)(n))return d.Logger.logError({errorType:d.InvalidExternalDataError.NAME,title:d.InvalidExternalDataError.localization.defaultTitle,description:d.PoliteErrorsMessagesBuilder.buildMessage(g.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:i,stringifiedRawData:(0,d.stringifyAndFormatArbitraryValue)(n),rawDataActualType:typeof n})),occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),{stateDependent:t};for(const[i,s]of Object.entries(n)){const n=(0,d.appendLastFileNameExtension)({targetPath:i,targetFileNameExtensionWithOrWithoutLeadingDot:"pug",mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1});(0,d.isArbitraryObject)(s)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e.specificationFileRelativePath,invalidEntryKey:n,invalidEntryValueType:typeof s,invalidEntryStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(s)})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),(0,d.isNonEmptyString)(s.$stateObjectTypeVariableName)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateVariableNameMessage({targetMarkupFileRelativePath:n,stringifiedValueOfSpecifiedVariableNameProperty:(0,d.stringifyAndFormatArbitraryValue)(s.$stateObjectTypeVariableName),specifiedTypeOfVariableNameProperty:typeof s.$stateObjectTypeVariableName})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),(0,d.isArbitraryObject)(s.$stateDependentVariations)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateDependentVariationsSpecificationMessage({targetMarkupFileRelativePath:n,actualType:typeof s.$stateDependentVariations,actualStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(s.$stateDependentVariations)})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"});const r=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),o=new Map;for(const[e,t]of Object.entries(s.$stateDependentVariations)){const i=`${(0,d.removeAllFileNameExtensions)(r)}${e}.pug`;(0,d.isArbitraryObject)(t)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateVariableMessage({targetMarkupFileRelativePath:n,actualStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(t),actualType:typeof t})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),o.set(i,t)}t.set(c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),{stateVariableName:s.$stateObjectTypeVariableName,derivedPagesAndStatesMap:o})}return{stateDependent:t}}normalizeImportsFromStaticDataFiles(){const e={};for(const t of this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromStaticDataFiles??[]){let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.fileRelativePath]),synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({filePath:t.fileRelativePath}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.normalizeImportsFromStaticDataFiles()",innerError:e})}e[t.importedVariableName]=i}return e}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings(e,t){const i=t.buildingModeDependent[this.consumingProjectBuildingMode],n=t.outputFormat??o.default.outputFormat;return{...e,outputFormat:n,localization:this.normalizeEntryPointsGroupLocalizationsSettings(e.sourceFilesTopDirectoryAbsolutePath,t.localization),HTML_Validation:{mustExecute:n===s.default.OutputFormats.HTML&&!0!==t.HTML_Validation?.disable&&o.default.HTML_Validation.mustExecute,ignoring:{filesAbsolutePaths:(t.HTML_Validation?.ignoring?.files??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),directoriesAbsolutePaths:(t.HTML_Validation?.ignoring?.directories??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}},accessibilityInspection:{mustExecute:n===s.default.OutputFormats.HTML&&!0!==t.accessibilityInspection?.disable&&o.default.accessibilityInspection.mustExecute,standard:t.accessibilityInspection?.standard??o.default.accessibilityInspection.standard,ignoring:{filesAbsolutePaths:(t.HTML_Validation?.ignoring?.files??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),directoriesAbsolutePaths:(t.HTML_Validation?.ignoring?.directories??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}},outputCodeFormatting:{mustExecute:!0===i.outputCodeFormatting?.enable||o.default.outputCodeFormatting.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,outputFormat:n}),indentationString:i.outputCodeFormatting?.indentationString??o.default.outputCodeFormatting.indentationString,lineSeparators:i.outputCodeFormatting?.lineSeparators??o.default.outputCodeFormatting.lineSeparators,mustGuaranteeTrailingEmptyLine:i.outputCodeFormatting?.mustGuaranteeTrailingEmptyLine??o.default.outputCodeFormatting.mustGuaranteeTrailingEmptyLine,mustIndentHeadAndBodyTags:i.outputCodeFormatting?.mustIndentHeadAndBodyTags??o.default.outputCodeFormatting.mustIndentHeadAndBodyTags},outputCodeMinifying:{mustExecute:!0===i.outputCodeMinifying?.enable||o.default.outputCodeMinifying.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,outputFormat:n}),attributesExtraWhitespacesCollapsing:i.outputCodeMinifying?.attributesExtraWhitespacesCollapsing??o.default.outputCodeMinifying.attributesExtraWhitespacesCollapsing,attributesValuesDeduplication:i.outputCodeMinifying?.attributesValuesDeduplication??o.default.outputCodeMinifying.attributesValuesDeduplication,commentsRemoving:i.outputCodeMinifying?.commentsRemoving??o.default.outputCodeMinifying.commentsRemoving}}}normalizeEntryPointsGroupLocalizationsSettings(e,t){const i=t?.localizedStringResourcesConstantName??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localizedStringResourcesConstantName,n=t?.localeConstantName??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localeConstantName,s=t?.nameOfConstantForInterpolationToLangHTML_Attribute??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.nameOfConstantForInterpolationToLangHTML_Attribute;(0,d.isUndefined)(this.commonStringResources)&&(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.stringResourcesFileRelativePath)&&(this.commonStringResources=this.getStringResourcesFromFile(this.markupProcessingSettings__fromFile__rawValid.common.localization.stringResourcesFileRelativePath));const r=(0,d.isNotUndefined)(t?.stringResourcesFileRelativePath)?this.getStringResourcesFromFile(t.stringResourcesFileRelativePath):this.commonStringResources,o=new Map;for(const[e,{outputFileInterimNameExtensionWithoutDot:t,localeConstantValue:i,keyInLocalizedStringResourcesObject:n,valueOfConstantForInterpolationToLangHTML_Attribute:s}]of Object.entries(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.locales??{}))o.set(e,{outputFileInterimNameExtensionWithoutDot:t,...(0,d.isNotUndefined)(r)&&(0,d.isNotUndefined)(n)?{stringResources:r[n]}:null,...(0,d.isNotUndefined)(i)?{localeConstantValue:i}:null,...(0,d.isNotUndefined)(s)?{valueOfConstantForInterpolationToLangHTML_Attribute:s}:null});for(const[e,{outputFileInterimNameExtensionWithoutDot:i,localeConstantValue:n,keyInLocalizedStringResourcesObject:s,valueOfConstantForInterpolationToLangHTML_Attribute:a}]of Object.entries(t?.locales??{})){const t=o.get(e);o.set(e,{...t??null,outputFileInterimNameExtensionWithoutDot:i,...(0,d.isNotUndefined)(r)&&(0,d.isNotUndefined)(s)?{stringResources:r[s]}:null,...(0,d.isNotUndefined)(n)?{localeConstantValue:n}:null,...(0,d.isNotUndefined)(a)?{valueOfConstantForInterpolationToLangHTML_Attribute:a}:null})}return{...(0,d.isNotUndefined)(i)?{localizedStringResourcesConstantName:i}:null,...(0,d.isNotUndefined)(n)?{localeConstantName:n}:null,...(0,d.isNotUndefined)(s)?{nameOfConstantForInterpolationToLangHTML_Attribute:s}:null,locales:o,excludedFilesAbsolutePaths:(t?.excludedFilesPathsRelativeToSourcesFilesTopDirectory?.map(t=>c.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0}))??[]).concat(Array.from((0,d.removeSetElementsByPredicates)({targetSet:this.unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths,predicate:t=>(0,u.default)({whichPath:t,ofWhichPath:e})}).removedElements))}}getStringResourcesFromFile(e){const t=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0});let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:t,synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({customMessage:`Unable to read the file with string resources at "${t}".`}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)",innerError:e})}return(0,d.isArbitraryObject)(i)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:`The content of string resources files "${t}" is not an object.`}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)"}),i}normalizeLoggingSettings(){return{filesPaths:this.markupProcessingSettings__fromFile__rawValid.logging?.filesPaths??o.default.logging.filesPaths,filesCount:this.markupProcessingSettings__fromFile__rawValid.logging?.filesCount??o.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:this.markupProcessingSettings__fromFile__rawValid.logging?.partialFilesAndParentEntryPointsCorrespondence??o.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:this.markupProcessingSettings__fromFile__rawValid.logging?.filesWatcherEvents??o.default.logging.filesWatcherEvents,linting:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.linting.starting??o.default.logging.linting.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.linting.completionWithoutIssues??o.default.logging.linting.completionWithoutIssues},HTML_Validation:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.HTML_Validation?.starting??o.default.logging.HTML_Validation.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.HTML_Validation?.completionWithoutIssues??o.default.logging.HTML_Validation.completionWithoutIssues},accessibilityChecking:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.accessibilityChecking?.starting??o.default.logging.accessibilityChecking.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.accessibilityChecking?.completionWithoutIssues??o.default.logging.accessibilityChecking.completionWithoutIssues}}}}t.default=g},1429(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.$mustResolveResourcesPointersToRelativePaths" 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].$mustResolveResourcesPointersToRelativePaths" 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}`}},5347(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);class r{static routingPathSegments=[];static projectRootDirectoryAbsolutePath;static cachedAbsolutePathsOfSectioning=new Set;static normalize({routingSettings__fromFile__rawValid:e,projectRootDirectoryAbsolutePath:t,absolutePathsOfSectioningToCache:i}){r.cachedAbsolutePathsOfSectioning=i,r.projectRootDirectoryAbsolutePath=t;const o=s.ObjectDataFilesProcessor.processFile({filePath:s.ImprovedPath.joinPathSegments([t,e.specificationFileRelativePath]),synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML}),a={};for(const[i,r]of Object.entries(e.localizations??{})){const e=s.ImprovedPath.joinPathSegments([t,r],{alwaysForwardSlashSeparators:!0}),o=s.ObjectDataFilesProcessor.processFile({filePath:e,synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML});(0,n.isArbitraryObject)(o)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing localization at "${e}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalize(compoundParameter)"}),a[i]=o}if(0===Object.entries(a).length)return r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:o,outputWorkpiece:{}});const l={};for(const e of Object.keys(a))l[e]={},r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:o,outputWorkpiece:l[e],localization:{locale:e,strings:a[e]}});return r.cachedAbsolutePathsOfSectioning=new Set,l}static normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:e,outputWorkpiece:t,localization:i}){let s,o;(0,n.isArbitraryObject)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:["Malformed routing",r.routingPathSegments.length>0?[` at "${r.routingPathSegments.join(".")}"`]:[],". ",`Must be an object while ${typeof e} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(...parameters)"}),r.routingPathSegments.length>0?(s=2,o=r.routingPathSegments.push("$children","")-1):(s=1,o=r.routingPathSegments.push("")-1);for(const[s,a]of Object.entries(e)){r.routingPathSegments[o]=s,(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}". Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(...parameters)"});const e=r.normalizeURI_IfExists(a.$URI,i);t[s]={$heading:r.normalizeHeading(a.$heading,i),...(0,n.isNotNull)(e)?{$URI:e}:null,...(0,n.isArbitraryObject)(a.$children)?{$children:r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:a.$children,outputWorkpiece:{},localization:i})}:null,...(0,n.isArbitraryObject)(a.$sectioning)?{$sectioning:r.normalizeSectioning(a.$sectioning,e,i)}:null}}return(0,n.cropArray)({targetArray:r.routingPathSegments,mutably:!0,fromEnd:!0,fromRightmostElement:!0,elementsCount:s,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}),t}static normalizeURI_IfExists(e,t){if((0,n.isEitherUndefinedOrNull)(e))return null;(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"});let i=e;if(i.startsWith("`")&&((0,n.isUndefined)(t)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". The specified URI has been wrapped to backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromFirstPosition:!0}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromLastPosition:!0}),i.includes("${")&&(i=(0,n.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:i,regularExpressionWithCapturingGroups:/(?<interpolation>\$\{\s*(?<variable>(?:\w|\.)+)\s*\})/gmu,replacer(e){const i=(0,n.getObjectPropertySafely)(t.strings,e.namedCapturingGroups.variable);return(0,n.isString)(i)||(0,n.isNumber)(i,{mustConsiderNaN_AsNumber:!1})?String(i):null}})),i.includes("$"))){const e=(0,n.getObjectPropertySafely)(t.strings,i);return(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". The specified URI is including backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"}),e}return i}static normalizeHeading(e,t){(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:[`Malformed routing at "${r.routingPathSegments.join(".")}.$heading".`,`Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"});let i=e;if(i.startsWith("`")){(0,n.isEitherUndefinedOrNull)(t)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$heading".The specified URI is including backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromFirstPosition:!0}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromLastPosition:!0});const e=(0,n.getObjectPropertySafely)(t.strings,i);return(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:[`Malformed localized heading at "${r.routingPathSegments.join(".")}.$heading".`,`Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"}),e}return i}static normalizeSectioning(e,t,i){r.routingPathSegments.push("$sectioning"),(0,n.isString)(t)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The sectioning at "${r.routingPathSegments.join(".")}" has been defined while the $URI of the parent route has not been. It must be defined to compute the URI for each section.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"}),(0,n.isNonEmptyString)(e.$specificationFileRelativePath)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$specificationFileRelativePath".The "$sectioning.$specificationFileRelativePath" must be defined with the valid file path relative to project top directory.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const o=s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,e.$specificationFileRelativePath],{alwaysForwardSlashSeparators:!0});let a;try{a=s.ObjectDataFilesProcessor.processFile({filePath:s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,e.$specificationFileRelativePath]),synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML})}catch(t){n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The error has occurred during the reading of sectioning file at "${e.$specificationFileRelativePath}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)",innerError:t})}if(r.cachedAbsolutePathsOfSectioning.add(o),(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${e.$specificationFileRelativePath}". Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"}),(0,n.isArbitraryObject)(e.$localizations)){(0,n.isUndefined)(i)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The $localizations has been specified for sectioning "${r.routingPathSegments.join(".")}", but common localizations for routing has not been. Specify the $localizations property also in routing configuration.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const o=e.$localizations[i.locale];r.routingPathSegments.push("$localizations",i.locale),(0,n.isString)(o)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Invalid path to sectioning localization at "${r.routingPathSegments.join(".")}". Must be the string with file path relative to project root directory, `+typeof(0,n.nullToUndefined)(o)+" found."}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const l=s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,o],{alwaysForwardSlashSeparators:!0});let d;try{d=s.ObjectDataFilesProcessor.processFile({filePath:l,synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML})}catch(e){n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.FileReadingFailedError({filePath:l}),title:n.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)",innerError:e})}r.cachedAbsolutePathsOfSectioning.add(l),(0,n.isArbitraryObject)(d)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning localization at "${l}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const u=r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a,outputWorkpiece:{},localization:{locale:i.locale,strings:d},parentRouteURI:t});return r.routingPathSegments.splice(-2),u}return r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a,outputWorkpiece:{},parentRouteURI:t})}static normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:e,outputWorkpiece:t,localization:i,parentRouteURI:s}){(0,n.isArbitraryObject)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}". Must be an object while ${typeof(0,n.nullToUndefined)(e)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),r.routingPathSegments.push(..."$sectioning"===r.routingPathSegments[r.routingPathSegments.length-3]?[""]:["$children",""]),r.routingPathSegments.push("");for(const[o,a]of Object.entries(e))r.routingPathSegments[r.routingPathSegments.length-1]=o,(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${r.routingPathSegments.join(".")}".Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),(0,n.isString)(a.$anchor)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${r.routingPathSegments.join(".")}". The property "$anchor" must be defined with string while ${typeof a} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),t[o]={$heading:r.normalizeHeading(a.$heading,i),$anchor:a.$anchor,$URI:`${s}#${a.$anchor}`,...(0,n.isArbitraryObject)(a.$children)?{$children:r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a.$children,outputWorkpiece:{},localization:i,parentRouteURI:s})}:null};return r.routingPathSegments.pop(),t}}t.default=r},7102(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(7831)),o=n(i(2853)),a=n(i(4520)),l=n(i(2977)),d=n(i(7818)),u=n(i(6807)),c=n(i(9202)),p=n(i(4714)),g=n(i(7809)),m=n(i(4061)),h=n(i(9896)),f=i(6272),S=i(5480),F=n(i(4696));class P extends s.default{logging={pathsOfFilesWillBeProcessed:!1,quantityOfFilesWillBeProcessed:!1};webpackConfiguration;typeScriptSourceFileAbsolutePath;importedNamespaceName;static provideTypeScriptImportsForMarkupIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,o.default)();const i=t.importingFromTypeScriptSettings;if((0,f.isUndefined)(i))return(0,o.default)();const n=new P(e,i);return e=>n.provideTypeScriptImports(e)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,taskTitleForLogging:"Exporting of TypeScript to Pug"});const i=m.default.readTypeScriptConfigurationFileAndGetCompilerOptions(t.typeScriptConfigurationFileAbsolutePath),n=g.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:i.paths,typeScriptBasicAbsolutePath:i.baseUrl??S.ImprovedPath.extractDirectoryFromFilePath({targetPath:t.typeScriptConfigurationFileAbsolutePath,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}})});h.default.existsSync(t.sourceFileAbsolutePath)||f.Logger.throwErrorWithFormattedMessage({errorInstance:new S.FileNotFoundError({customMessage:`The TypeScript file "${t.sourceFileAbsolutePath}" for the exporting to Pug was found. Please create this file and provide some exports from it.`}),title:S.FileNotFoundError.localization.defaultTitle,occurrenceLocation:"compiledInlineTypeScriptImporterForPug.constructor(...parameters)"});const s=p.default.getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:[t.sourceFileAbsolutePath],webpackContext:e.consumingProjectRootDirectoryAbsolutePath});this.webpackConfiguration=P.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({webpackEntryPointDefinition:s,compiledTypeScriptImportingSettings:t,projectBuildingMasterConfigRepresentative:e,webpackAliasesConfiguration:n}),this.typeScriptSourceFileAbsolutePath=t.sourceFileAbsolutePath,this.importedNamespaceName=t.importedNamespace}provideTypeScriptImports(e){return a.default.src(this.typeScriptSourceFileAbsolutePath).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe((0,c.default)(this.webpackConfiguration,null,this.onBuildHasCompleted.bind(this))).pipe(super.logOutputFilesIfMust()).pipe(d.default.modify({onStreamStartedEventCommonHandler:async t=>{const i=(0,l.default)(t),n=(0,F.default)(i);return(0,f.isArbitraryObject)(n)&&(0,f.isArbitraryObject)(n.default)?(r.default.importsFromTypeScript={[this.importedNamespaceName]:n.default},e(),Promise.resolve(d.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)):(e(),Promise.resolve(d.default.CompletionSignals.REMOVING_FILE_FROM_STREAM))}}))}onBuildHasCompleted(e,t){(0,f.isNeitherUndefinedNorNull)(e)||(0,f.isNotUndefined)(t)&&(f.Logger.logSuccess({title:"Injection of transpiled TypeScript to Pug successful",description:`The TypeScript file has been transpiled and injected to Pug. The exported entity stored to "${this.importedNamespaceName}" variable.`}),process.stdout.write(`${t.toString({colors:!0})}\n`))}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({webpackEntryPointDefinition:e,compiledTypeScriptImportingSettings:t,projectBuildingMasterConfigRepresentative:i,webpackAliasesConfiguration:n}){return{entry:e,output:{library:{type:"umd",name:t.importedNamespace},globalObject:"globalThis"},watch:i.mustProvideIncrementalBuilding,mode:"production",optimization:{minimize:!0},module:{rules:[{test:/\.ts$/u,loader:"ts-loader",options:{transpileOnly:!0}}]},resolve:{extensions:[".ts",".js"],alias:n},resolveLoader:g.default.generateLoadersResolvingSettings(i.consumingProjectRootDirectoryAbsolutePath),plugins:[new u.default.DefinePlugin({__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:i.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:i.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:i.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:i.isProductionBuildingMode})]}}}t.default=P},5217(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(7831)),o=i(6272),a=n(i(4696)),l=n(i(9896));class d extends s.default{logging={pathsOfFilesWillBeProcessed:!1,quantityOfFilesWillBeProcessed:!1};static provideJavaScriptImportsForMarkupIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,o.isUndefined)(t))return e=>{e()};const i=t.importingFromJavaScriptSettings;if((0,o.isUndefined)(i))return e=>{e()};const n=(0,a.default)(l.default.readFileSync(i.sourceFileAbsolutePath,"utf-8"));return r.default.importsFromJavaScript={[i.nameOfGlobalConstantForStoringOfImports]:n},e=>{e()}}}t.default=d},3011(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2858)),r=n(i(6274)),o=n(i(8033)),a=n(i(8510)),l=n(i(3330)),d=n(i(7818)),u=n(i(2853)),c=i(6272),p=i(5480),g=n(i(8880));class m extends r.default{static localization=g.default;pugLintInstance=new a.default;pugLintConfig;static provideLintingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,u.default)();let i;try{i=l.default.load()}catch(e){c.Logger.throwErrorWithFormattedMessage({errorInstance:new c.InvalidConfigError({customMessage:"Invalid puglint config."}),title:c.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative)",innerError:e})}if((0,c.isUndefined)(i))return c.Logger.logError({errorType:c.ConfigFileNotFoundError.NAME,title:m.localization.pugLintFileNotFoundErrorLog.title,description:c.ConfigFileNotFoundError.localization.generateDescription({targetTechnologyName:"pug-lint",configFilePathOrMultipleOfThem:o.default.linterConfigurationFilesNamesWithExtensions,messageSpecificPart:m.localization.pugLintFileNotFoundErrorLog.pugLintConfigurationFileRequirementExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative)"}),(0,u.default)();const n=new m({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e,pugLintConfig:i});return e.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyRelatedFileAddedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_ADDED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenAddedOrUpdated.bind(n)}).addOnAnyRelatedFileUpdatedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_UPDATED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenAddedOrUpdated.bind(n)}).addOnAnyRelatedFileDeletedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_DELETED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenDeleted.bind(n)}),n.checkFiles(n.targetFilesGlobSelectors)}constructor({markupProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t,pugLintConfig:i}){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"Markup Processing / Markup Source Code Linting",sourceFilesCachedCheckingResults:{fileNameWithExtension:"MarkupLintingCache.json",contentSpecification:{subtype:c.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CachedMarkupLintingResultsFileContent",properties:{files:{type:c.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{code:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},sourceListing:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},lineNumber:{type:Number,isUndefinedForbidden:!0,isNullForbidden:!0,numbersSet:c.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0},columnNumber:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:c.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0}}}},modificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},emptyValue:{files:{}}},targetFilesGlobSelectors:[p.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:["pug"]}),p.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(p.ImprovedPath.joinPathSegments([t.consumingProjectRootDirectoryAbsolutePath,"node_modules"])),...(0,c.isNonEmptyArray)(i.excludeFiles)?i.excludeFiles.map(e=>p.ImprovedGlob.buildAbsolutePathBasedGlob({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,relativePathBasedGlob:e,isExclusive:!0})):[]],logging:{pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount,checkingStart:e.loggingSettings.linting.starting,completionWithoutIssues:e.loggingSettings.linting.completionWithoutIssues}}),this.pugLintConfig=i;try{this.pugLintInstance.configure(this.pugLintConfig)}catch(e){c.Logger.throwErrorWithFormattedMessage({errorInstance:new c.InvalidConfigError({customMessage:m.localization.pugLintConfigurationIsInvalid.description}),title:m.localization.pugLintConfigurationIsInvalid.title,occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative) ->constructor(compoundParameter)",innerError:e})}}async checkSingleFile(e){try{e[r.default.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=this.pugLintInstance.checkFile(e.path).map(e=>({code:e.code,message:e.msg,sourceListing:e.src,lineNumber:e.line,columnNumber:e.column}))}catch(e){c.Logger.throwErrorWithFormattedMessage({errorType:"MarkupLintingError",title:m.localization.lintingFailedErrorLog.title,description:c.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:m.localization.lintingFailedErrorLog.technicalDetails,politeExplanation:m.localization.lintingFailedErrorLog.politeExplanation}),occurrenceLocation:"markupSourceCodeLinter.checkSingleFile()",innerError:e})}return Promise.resolve(d.default.CompletionSignals.PASSING_ON)}formatIssuesOfSingleFile(e){return e.issues.map(e=>`------------------------------------------------------------------------------------------------------\n${this.createExtractionFromCodeListingWithHighlightedIssueLine(e)}\n------------------------------------------------------------------------------------------------------\n${e.message} (${e.code})\nat line ${e.lineNumber}`+(0,c.insertSubstring)(e.columnNumber,{modifier:e=>`, column ${e}`})).join("\n\n")}createExtractionFromCodeListingWithHighlightedIssueLine(e){const t=e.sourceListing.split("\n");if((0,c.isUndefined)(e.columnNumber))t[e.lineNumber-1]=c.Logger.highlightText(t[e.lineNumber-1]);else{const i=t[e.lineNumber-1],n=(0,c.cropString)({targetString:i,startingCharacterNumber__numerationFrom1:e.columnNumber,endingCharacterNumber__numerationFrom0:(0,c.limitMinimalValue)({targetNumber:i.length-1,minimalValue:0}),mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1});t[e.lineNumber-1]=i.replace(n,c.Logger.highlightText(n))}let i=e.lineNumber-1-this.DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT;i<0&&(i=0);let n=e.lineNumber+this.DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT;return n>t.length&&(n=t.length),t.slice(i,n).join("\n")}}t.default=m},8880(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."},pugLintConfigurationIsInvalid:{title:"'pug-lint' configuration is invalid",description:"The 'pug-lint' utility has not accepted the specified configuration."},lintingFailedErrorLog:{title:"Markup linting error",technicalDetails:'The error occurred during execution of "pug-lint".',politeExplanation:"The Pug linter has thrown the error under unknown for YDA developers combination of conditions."}}},2215(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5364)),r=n(i(8817)),o=n(i(5987)),a=i(6272);class l{static replaceAllowedCSS_ClassesInStylesheetAndSaveCorrespondencesIfMust(e,t){if(!t.CSS_ClassesMinificationOnFlySettings.enabled)return;const{CSS_ClassesRegularExpressions:i,ignoredCSS_Classes:n,forbiddenMinifiedCSS_ClassesNames:s}=t.CSS_ClassesMinificationOnFlySettings,a=r.default.parse(e.stringifiedContents),d=(0,o.default)(e=>{e.walkClasses(e=>{l.processPostCSS_ClassNode({classNode:e,ignoredCSS_Classes:n,CSS_ClassesRegularExpressions:i,forbiddenMinifiedCSS_ClassesNames:s})})});a.walkRules(e=>{e.selector=d.processSync(e.selector)}),e.setContents(a.toString())}static replaceAllowedCSS_ClassesInMarkupAndSaveCorrespondencesIfMust(e,t){if(!t.CSS_ClassesMinificationOnFlySettings.enabled||0===s.default.initialAndShortenedCSS_ClassesCorrespondence.size)return e;const{generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:i,forbiddenMinifiedCSS_ClassesNames:n}=t.CSS_ClassesMinificationOnFlySettings;for(const t of e.querySelectorAll("[class]")){const e=t.getAttribute("class");(0,a.isUndefined)(e)||t.setAttribute("class",e.split(/\s+/u).map(e=>{const t=s.default.initialAndShortenedCSS_ClassesCorrespondence.get(e);if((0,a.isNotUndefined)(t))return t;if(!i.enabled||i.ignoredInitialCSS_Classes.has(e))return e;const r=l.issueAndNewAvailableCSS_ClassName(n);return s.default.initialAndShortenedCSS_ClassesCorrespondence.set(e,r),r}).join(" "))}return e}static processPostCSS_ClassNode({classNode:e,ignoredCSS_Classes:t,CSS_ClassesRegularExpressions:i,forbiddenMinifiedCSS_ClassesNames:n}){const r=e.value;if(t.has(r)||!Array.from(i).some(e=>e.test(r)))return;const o=s.default.initialAndShortenedCSS_ClassesCorrespondence.get(r);if((0,a.isUndefined)(o)){const t=l.issueAndNewAvailableCSS_ClassName(n);s.default.initialAndShortenedCSS_ClassesCorrespondence.set(r,t),e.value=t}else e.value=o}static indexesOfCharacters=[0,0];static issueAndNewAvailableCSS_ClassName(e){let t;do{t=l.indexesOfCharacters.map((e,t)=>(t===l.indexesOfCharacters.length-1?a.stringifiedDigits:a.lowercaseLatinCharacters)[e]).join(""),l.increment()}while(e.has(t));return t}static increment(){const e=l.indexesOfCharacters.length;for(let t=e-1;t>=0;t--){const i=t===e-1?a.stringifiedDigits:a.lowercaseLatinCharacters,n=l.indexesOfCharacters[t],s=n===i.length-1?0:n+1;if(l.indexesOfCharacters[t]=s,0!==s)return}l.indexesOfCharacters.unshift(0)}}t.default=l},4644(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7741)),r=n(i(2597)),o=i(5480);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualEntryPointsGroupSettings;constructor({initialPlainVinylFile:e,actualEntryPointsGroupSettings:t}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.actualEntryPointsGroupSettings=t,this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(this.sourceAbsolutePath,this.actualEntryPointsGroupSettings)}}t.default=a},5685(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(62)),r=n(i(7197)),o=n(i(3746)),a=n(i(2274)),l=n(i(8527)),d=i(6272),u=i(5480);class c extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new c({projectBuildingCommonSettings__normalized:t,...(0,d.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.stylesProcessing}:{}});return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,secondsBetweenFileUpdatingAndStartingOfRebuilding:e.common?.buildingModeDependent?.[i.consumingProjectBuildingMode]?.secondsBetweenFileUpdatingAndStartingOfRebuilding??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:(0,d.isUndefined)(e.linting)?{mustExecute:r.default.linting.mustExecute}:{mustExecute:e.linting.enable??r.default.linting.mustExecute,...(0,d.isNotUndefined)(e.linting.presetFileRelativePath)?{presetFileAbsolutePath:u.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,o.default.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings.bind(i)),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:e.logging?.partialFilesAndParentEntryPointsCorrespondence??r.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents,linting:{starting:e.logging?.linting.starting??r.default.logging.linting.starting,completionWithoutIssues:e.logging?.linting.completionWithoutIssues??r.default.logging.linting.completionWithoutIssues}}}}constructor(e){super(e)}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings(e,t){return{...e,mustGenerateSourcemaps:t.buildingModeDependent[this.consumingProjectBuildingMode].mustGenerateSourcemaps??r.default.sourcemaps.mustGenerate({consumingProjectBuildingMode:this.consumingProjectBuildingMode}),revisioning:l.default.normalize({revisioningSettings__rawValid:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning,revisioningSettings__default:{mustExecute:r.default.revisioning.mustExecute,contentHashPostfixSeparator:r.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode})}}}t.default=c},62(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["styl","stylus"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set([]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["css"]}(i||(i={})),t.default=i},7741(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(4912)),o=i(6272);class a extends r.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Stylesheet";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Stylesheets";WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeLintingCommonSettings;relevantEntryPointsGroupsSettings;loggingSettings;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,o.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.common.secondsBetweenFileUpdatingAndStartingOfRebuilding,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${s.default}${e.ID}`,e])),this.sourceCodeLintingCommonSettings=e.linting,this.loggingSettings=e.logging,this.sourceCodeProcessingCommonSettings=e.common}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}}t.default=a},7197(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,sourcemaps:{mustGenerate:e=>e.consumingProjectBuildingMode===s.default.staticPreview||e.consumingProjectBuildingMode===s.default.localDevelopment},revisioning:{mustExecute:e=>e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0},logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0}}};t.default=r},6394(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(7534)),o=n(i(523)),a=n(i(1579)),l=i(6272);var d;!function(e){e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$buildingModeDependent:{newName:"buildingModeDependent",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$secondsBetweenFileUpdatingAndStartingOfRebuilding:{newName:"secondsBetweenFileUpdatingAndStartingOfRebuilding",type:Number,numbersSet:l.RawObjectDataProcessor.NumbersSets.positiveRealNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},$mustResolveResourceReferencesToRelativePaths:{newName:"mustResolveResourceReferencesToRelativePaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},...r.default.generatePropertiesSpecification({entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$sourcemaps:{newName:"mustGenerateSourcemaps",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification}}}),$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(d||(d={})),t.default=d},5687(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map}t.default=i},5228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7741)),r=n(i(8250)),o=n(i(1815)),a=n(i(5687)),l=n(i(4520)),d=n(i(4724)),u=n(i(1805)),c=n(i(3813)),p=n(i(2872)),g=n(i(3491)),m=n(i(7689)),h=n(i(9986)),f=n(i(1391)),S=n(i(7818)),F=n(i(2853)),P=n(i(703)),_=n(i(919)),b=n(i(4644)),E=n(i(7749)),y=n(i(2215)),A=n(i(9269)),I=i(6272),v=i(5480);class N extends o.default{static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="StylusEntryPointsAndAffiliatedFilesMappingCache.json";logging;stylesProcessingConfigRepresentative;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper=null;subsequentFilesStateChangeTimeout=null;static provideStylesProcessingIfMust(e){const t=e.stylesProcessingSettingsRepresentative;if((0,I.isUndefined)(t))return(0,F.default)();const i=new N(t,e);return e.mustProvideIncrementalBuilding&&(i.sourceCodeSelectiveReprocessingHelper=new P.default({initialEntryPointsSourceFilesAbsolutePaths:t.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:f.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:f.default.implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials},isEntryPoint:t.isEntryPoint.bind(t),logging:{mustEnable:t.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:e.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:v.ImprovedPath.joinPathSegments([_.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,N.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),r.default.initializeIfRequiredAndGetInstance({stylesProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_STYLES_SOURCE_CODE_FILE--BY_STYLED_PROCESSOR",handler:i.onSourceFilesWatcherEmitsAnyEvent.bind(i)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_STYLES_ENTRY_POINT_FILE_ADDED--BY_STYLES_PROCESSOR",handler:i.onEntryPointFileAdded.bind(i)}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_STYLES_ENTRY_POINT_FILE_DELETED--BY_STYLES_PROCESSOR",handler:N.onEntryPointFileDeleted})),i.processEntryPoints(t.initialRelevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"Styles Processing"}),this.logging={pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount},this.stylesProcessingConfigRepresentative=e}processEntryPoints(e){return 0===e.length?(0,F.default)():()=>l.default.src(e).pipe(super.handleErrorIfItWillOccur()).pipe(S.default.modify({onStreamStartedEventCommonHandler:this.replacePlainVinylFileWithStylesEntryPointVinylFile.bind(this)})).pipe((0,d.default)(e=>e.actualEntryPointsGroupSettings.mustGenerateSourcemaps,u.default.init())).pipe(this.logInputFilesIfMust()).pipe((0,c.default)({"include css":!0})).pipe(S.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>(y.default.replaceAllowedCSS_ClassesInStylesheetAndSaveCorrespondencesIfMust(e,this.projectBuildingMasterConfigRepresentative),Promise.resolve(S.default.CompletionSignals.PASSING_ON))})).pipe((0,p.default)(()=>({plugins:[h.default,g.default,(0,m.default)({preset:["default",{normalizeWhitespace:!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding,discardComments:!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding}]})]}))).pipe((0,d.default)(e=>e.actualEntryPointsGroupSettings.mustGenerateSourcemaps,u.default.write())).pipe(S.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.onOutputCSS_FileReady.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(l.default.dest(e=>b.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onSourceFilesWatcherEmitsAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,I.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{this.processEntryPoints(this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[])(),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,I.secondsToMilliseconds)(this.stylesProcessingConfigRepresentative.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}onEntryPointFileAdded(e){const t=this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e);a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e,v.ImprovedPath.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t),`${(0,I.extractFileNameWithoutLastExtension)(e)}.css`],{alwaysForwardSlashSeparators:!0}))}static onEntryPointFileDeleted(e){a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.delete(e)}async replacePlainVinylFileWithStylesEntryPointVinylFile(e,t){return t(new b.default({initialPlainVinylFile:e,actualEntryPointsGroupSettings:this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path)})),Promise.resolve(S.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}async onOutputCSS_FileReady(e){e.actualEntryPointsGroupSettings.revisioning.mustExecute&&E.default.appendPostfixIfPossible(e,{contentHashPostfixSeparator:e.actualEntryPointsGroupSettings.revisioning.contentHashPostfixSeparator}),a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e.sourceAbsolutePath,v.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0}));let t=e.stringifiedContents;return t=A.default.resolve({CSS_Code:t,absolutePathOfOutputDirectoryForParentFile:e.outputDirectoryAbsolutePath,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,logging:{parentFileAbsolutePath:v.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})}}),e.setContents(t),Promise.resolve(S.default.CompletionSignals.PASSING_ON)}}t.default=N},8250(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({stylesProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"STYLES_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Stylesheet"}),this.settingsRepresentative=e}}t.default=a},5309(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3390));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},3390(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"}}},142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static partialFilesIncludingDeclarationPatterns=[/from\s+["']((?:\w|-|\.|\/|:|@|~)+)["']/gmu]}},9227(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=n(i(9896)),o=i(5480),a=i(6272);class l{static SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS=["eslint.config.js","eslint.config.mjs","eslint.config.cjs","eslint.config.ts","eslint.config.mts","eslint.config.cts"];static generateExcludingGlobSelectorsOfIgnoredFiles(e){let t;for(const i of l.SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS)try{t=r.default.readFileSync(o.ImprovedPath.joinPathSegments([e,i],{alwaysForwardSlashSeparators:!0}),"utf-8");break}catch(e){if((0,o.isErrnoException)(e)&&"ENOENT"===e.code)continue;a.Logger.logError({mustOutputIf:!1,errorType:"FileReadingFailedError",title:"File Reading Failed",description:`Unable to read the file ${i} while this file seems to be exist`,occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)",caughtError:e})}if((0,a.isUndefined)(t))return a.Logger.logWarning({title:"No Files Will be Ignored by ESLint",description:"ESLint configuration file not found thus unable to decide which files must be ignored.",occurrenceLocation:"className.methodName(compoundParameter)"}),[];const i=(0,a.getMatchingWithFirstRegularExpressionCapturingGroup)(t,/ignores:\s*(?<array>\[(?:.|\s)+?\])/gu);if((0,a.isNull)(i))return[];let n;try{n=JSON.parse(i.replace("'",'"'))}catch(e){return a.Logger.logError({errorType:a.InvalidExternalDataError.NAME,title:a.InvalidExternalDataError.localization.defaultTitle,description:"Invalid ignoring patters in ESLint configuration.",occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)",caughtError:e}),[]}const d=a.RawObjectDataProcessor.process(n,{subtype:a.RawObjectDataProcessor.ObjectSubtypes.indexedArray,nameForLogging:"ESLint ignoring patterns",areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}});return d.isRawDataInvalid?(a.Logger.logError({errorType:a.InvalidExternalDataError.NAME,title:a.InvalidExternalDataError.localization.defaultTitle,description:"Invalid ignoring patters in ESLint configuration.\n"+a.RawObjectDataProcessor.formatValidationErrorsList(d.validationErrorsMessages),occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)"}),[]):d.processedData.filter(e=>!e.includes("node_module")).flatMap(t=>{if(t.startsWith("**/"))return[o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/^\*\*\//gu,"")))];const i=(0,a.explodeURI_PathToSegments)(t),n=(0,a.getLastElementOfArray)(i);if((0,a.isNotNull)(n)&&n.includes(".")){const i=o.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0});return[o.ImprovedGlob.includingGlobSelectorToExcludingOne(i),o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/\*/gu,"")))]}return[o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/\*/gu,"")))]})}}t.default=l},8033(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static partialFilesIncludingDeclarationPatterns=[/^ *(?:include|extends) +((?:\w|-|\.|\/)+) *$/gmu];static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials=new Set(["pug"]);static linterConfigurationFilesNamesWithExtensions=[".pug-lintrc",".pug-lintrc.js",".pug-lintrc.json","package.json"];static defineIndentString(e){for(const t of(0,n.explodeStringToLines)({targetString:e,mustIgnoreCarriageReturn:!0})){const e=(0,n.getMatchingWithFirstRegularExpressionCapturingGroup)(t,/^(?<indent> +|\t)\S/gmu);if((0,n.isNotNull)(e))return e}return" "}static isSourceCodeIncludingExtendingDeclaration(e){return/^extends/gmu.test(e)}static isSourceCodeLineIncludingExtendingDeclaration(e){return e.startsWith("extends")}static isSourceCodeLineIncludingSpecificBlockModifyingDeclaration({sourceCodeLine:e,blockName:t}){return new RegExp(`^(?: +|\\t)?block (?:append|prepend)? ${t}`,"u").test(e)}static extractBlock({startLineIndex:e,sourceCodeLines:t}){let i,n=e+1;for(const e of t.slice(n)){if(/^(?: +|\t)?block/u.test(e)){i=n;break}n++}return i=i??t.length-1,{startLineIndex:e,endLineIndex:i,codeLines:t.slice(e,i)}}static appendCodeToBlock({sourceCodeLinesOfTargetBlock:e,newCode:t,lineSeparator:i}){return`${e.join(i)}${i}${t}`}}t.default=s},3746(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},1391(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static partialFilesIncludingDeclarationPatterns=[/^ *@(?:import|require) +['"]((?:\w|-|\.|\/)+?)['"] *;? *$/gmu];static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials=new Set(["styl","stylus","css"])}t.default=i},4061(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9899)),r=i(6272),o=i(5480);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.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:t})}(0,r.isNotUndefined)(t.error)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:(0,r.isNonEmptyString)(t.error.messageText)?t.error.messageText:t.error.messageText.messageText}),(0,r.isArbitraryObject)(t.config)&&"compilerOptions"in t.config||r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.InvalidConfigError({mentionToConfig:`TypeScript (${e})`}),title:r.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)"});try{i=s.default.convertCompilerOptionsFromJson(t.config.compilerOptions,o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0}}))}catch(t){r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:t})}return i.errors.length>0&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:i.errors.map(e=>(0,r.isNonEmptyString)(e.messageText)?e.messageText:e.messageText.messageText).join("\n")}),i.options}}},7809(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);class s{static convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptBasicAbsolutePath:e,typeScriptPathsSettings:t}){const i={};for(const[s,r]of Object.entries(t??{}))i[s.endsWith("/*")?s.slice(0,-2):s]=r.map(t=>n.ImprovedPath.joinPathSegments([e,...t.endsWith("/*")?[t.slice(0,-2)]:[t]],{alwaysForwardSlashSeparators:!0}));return i}static generateLoadersResolvingSettings(e){return{modules:[n.ImprovedPath.joinPathSegments([e,"node_modules"],{alwaysForwardSlashSeparators:!0}),n.ImprovedPath.joinPathSegments([__dirname,"node_modules"],{alwaysForwardSlashSeparators:!0})]}}}!function(e){let t,i,n;!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"}(n=e.BuildingTargets||(e.BuildingTargets={}))}(s||(s={})),t.default=s},919(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9510)),r=n(i(9896)),o=i(6272),a=i(5480);class l{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 DOT_VERSION_FILE_NAME=".version";static CURRENT_YDA_VERSION=s.default.version;static selfSoleInstance=null;DOT_YDA_DIRECTORY_ABSOLUTE_PATH;TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH;OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH;GIT_IGNORE_FILE_ABSOLUTE_PATH;DOT_VERSION_FILE_ABSOLUTE_PATH;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;static unrollDotYDA_Directory(e){let t,i;if((0,o.isNull)(l.selfSoleInstance)?(t=new l(e),l.selfSoleInstance=t):(o.Logger.logError({errorType:o.ClassRedundantSubsequentInitializationError.NAME,title:o.ClassRedundantSubsequentInitializationError.localization.defaultTitle,description:o.ClassRedundantSubsequentInitializationError.localization.generateDescription({className:"DotYDA_DirectoryManager"}),occurrenceLocation:"DotYDA_DirectoryManager.unrollDotYDA_Directory(consumingProjectRootDirectoryAbsolutePath)"}),t=l.selfSoleInstance),r.default.existsSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH)){try{i=r.default.readFileSync(t.DOT_VERSION_FILE_ABSOLUTE_PATH,"utf-8").trim()}catch{return a.ImprovedFileSystem.removeDirectoryWithFiles({targetPath:t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfOneOrMoreFilesCouldNotBeDeleted:!1}),void t.unrollDotYDA_DirectoryScratch()}i!==l.CURRENT_YDA_VERSION&&(a.ImprovedFileSystem.removeDirectoryWithFiles({targetPath:t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfOneOrMoreFilesCouldNotBeDeleted:!1}),t.unrollDotYDA_DirectoryScratch())}else t.unrollDotYDA_DirectoryScratch()}constructor(e){this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e,this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,l.DOT_YDA_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.TEMPORARY_FILES_SUBDIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.OPTIMIZATION_FILES_SUBDIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.GIT_IGNORE_FILE_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.GIT_IGNORE_FILE_NAME],{alwaysForwardSlashSeparators:!0}),this.DOT_VERSION_FILE_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.DOT_VERSION_FILE_NAME],{alwaysForwardSlashSeparators:!0})}static get DOT_YDA_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().DOT_YDA_DIRECTORY_ABSOLUTE_PATH}static get TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH}static get OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH}unrollDotYDA_DirectoryScratch(){r.default.mkdirSync(this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH),r.default.mkdirSync(this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.mkdirSync(this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.writeFileSync(this.GIT_IGNORE_FILE_ABSOLUTE_PATH,`/${l.TEMPORARY_FILES_SUBDIRECTORY_NAME}/`),r.default.writeFileSync(this.DOT_VERSION_FILE_ABSOLUTE_PATH,l.CURRENT_YDA_VERSION)}static getExpectedToBeInitializedSelfSoleInstance(){return(0,o.isNull)(l.selfSoleInstance)&&o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.ClassRequiredInitializationHasNotBeenExecutedError({className:"DotYDA_DirectoryManager",initializingMethodName:"unrollDotYDA_Directory"}),title:o.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.getExpectedToBeInitializedSelfSoleInstance()"}),l.selfSoleInstance}}t.default=l},7749(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(6272),r=n(i(6112));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.throwErrorWithFormattedMessage({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))}}},7818(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2203)),r=n(i(3148)),o=i(6272);class a{static modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:e,onStreamEndedEventHandler:t}){return new s.default.Transform({objectMode:!0,transform(t,i,n){r.default.isVinyl(t)||o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.UnexpectedEventError(o.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:o.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modifyForSingleVinylFileSubtype(compoundParameter)",additionalData:{chunk:t}});const s=t;e(s,e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)}).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,s);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)})},flush(e){(0,o.isUndefined)(t)?e():t(e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)}).then(()=>{e()}).catch(t=>{e(t)})}})}static modify(e){return new s.default.Transform({objectMode:!0,transform(t,i,n){r.default.isVinyl(t)||o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.UnexpectedEventError(o.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:o.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modify(compoundParameter)",additionalData:{chunk:t}});const s=e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)},l=t;let d=!1;for(const[t,i]of e.onStreamStartedEventHandlersForSpecificFileTypes??new Map)l instanceof t&&(d=!0,i(l,s).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)}));if(!d){if((0,o.isUndefined)(e.onStreamStartedEventCommonHandler))return void n(null,l);e.onStreamStartedEventCommonHandler(l,s).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)})}},flush(t){(0,o.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},6979(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);class s{static ASSETS_DIRECTORY_ROOT_ABSOLUTE_PATH=n.ImprovedPath.joinPathSegments([__dirname,"Assets"],{alwaysForwardSlashSeparators:!0});static LOADING_SCREEN_HTML_FILE_FOR_PROCESSING_ON_DEMAND_MODE_ABSOLUTE_PATH=n.ImprovedPath.joinPathSegments([s.ASSETS_DIRECTORY_ROOT_ABSOLUTE_PATH,"LoadingScreenForProcessingOnDemandMode.html"],{alwaysForwardSlashSeparators:!0})}t.default=s},703(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(6272),r=i(5480),o=n(i(9896)),a=n(i(6928));class l{static debugging={enabled:!1,onlyForFilesTypeInSingularForm:"ECMAScript Logic",onlyForEntryPointsWhichPathIncludes:"RendererProcessEntryPoint"};static MUST_OUTPUT_ERRORS_FOR_DEVELOPERS=!0;static cachedMetadataFileContentSpecification={nameForLogging:"SourceCodeSelectiveReprocessingHelper.CachedRawMetadata",subtype:s.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:{entryPoints:{type:s.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{modificationDate__ISO8601:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},directChildrenFilesRelativePaths:{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0,element:{type:String}}}}},childrenFiles:{type:s.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{modificationDate__ISO8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},directChildrenFilesRelativePaths:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}},parentEntryPointsRelativePaths:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}}}}}}};entryPointsMetadata=new Map;isEntryPoint;childrenFilesMetadata=new Map;resolvedAliasedPaths=new Map;childrenFilesResolutionRules;absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass=new Set;directoriesAliasesAndTheirAbsolutePatsMap;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;CACHED_METADATA_FILE_ABSOLUTE_PATH;TARGET_FILES_TYPE_IN_SINGULAR_FORM;currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators;currentChainOfRelativePathsInFilesTree=[];constructor(e){this.isEntryPoint=e.isEntryPoint,this.childrenFilesResolutionRules=e.childrenFilesResolutionRules,this.directoriesAliasesAndTheirAbsolutePatsMap=e.directoriesAliasesAndTheirAbsolutePatsMap??new Map,this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e.consumingProjectRootDirectoryAbsolutePath,this.CACHED_METADATA_FILE_ABSOLUTE_PATH=e.cacheFileAbsolutePath,this.TARGET_FILES_TYPE_IN_SINGULAR_FORM=e.logging.targetFilesTypeInSingularForm,this.retrieveCacheFromFileAndApplyIfItExists(),this.scanFilesHierarchyTreeForEntryPoints(new Set(e.initialEntryPointsSourceFilesAbsolutePaths.map(e=>r.ImprovedPath.replacePathSeparatorsToForwardSlashes(e)))),e.logging.mustEnable&&this.logChildrenFilesAndEntryPointsRelationships(),this.saveCachedFilesMetadataMapsToFile()}getAbsolutePathsOfEntryPointsWhichMustBeProcessed(e){const t=new Set,i=new Set;for(const n of e){const e=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:n,alwaysForwardSlashSeparators:!0});o.default.existsSync(n)?this.isEntryPoint(n)?t.add(n):i.add(n):this.clearFileMetadataPathFromCache(e)}this.scanFilesHierarchyTreeForEntryPoints(t),this.saveCachedFilesMetadataMapsToFile();for(const e of i){const i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});(0,s.addElementsToSet)({targetSet:t,newElements:this.childrenFilesMetadata.get(i)?.parentEntryPointsAbsolutePaths??new Set})}return Array.from(t)}retrieveCacheFromFileAndApplyIfItExists(){let e;try{e=r.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_METADATA_FILE_ABSOLUTE_PATH,validDataSpecification:l.cachedMetadataFileContentSpecification,synchronously:!0})}catch(e){return void(e instanceof r.FileNotFoundError||s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:"CachedDataRetrievingFailedError",title:"Cached Data Retrieving Failed",description:`Unable to read the existing cache file at "${this.CACHED_METADATA_FILE_ABSOLUTE_PATH}".`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.retrieveCacheFromFileAndApplyIfItExists()",caughtError:e}))}for(const[t,i]of Object.entries(e.entryPoints))this.entryPointsMetadata.set(t,{modificationDate__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:new Set(i.directChildrenFilesRelativePaths)});for(const[t,i]of Object.entries(e.childrenFiles))this.childrenFilesMetadata.set(t,{modificationDateTime__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:new Set(i.directChildrenFilesRelativePaths),parentEntryPointsAbsolutePaths:new Set(i.parentEntryPointsRelativePaths.map(e=>r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0})))})}scanFilesHierarchyTreeForEntryPoints(e){for(const t of e){this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators=t;const e=r.ImprovedPath.extractDirectoryFromFilePath({targetPath:t,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0}),i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:t,alwaysForwardSlashSeparators:!0});let n;s.Logger.logDebug({mustOutputIf:this.mustOutputDebug,title:"SourceCodeSelectiveReprocessingHelper, Scan Files Hierarchy Tree for Entry Point - 1",description:t,additionalData:{entryPointDirectoryAbsolutePath__forwardSlashSeparators:e,entryPointPathRelativeToConsumingProjectRootDirectory__forwardSlashSeparators:i}});try{n=o.default.statSync(t).mtime.toISOString()}catch(e){if((0,r.isErrnoException)(e)&&"ENOENT"===e.code){this.entryPointsMetadata.delete(i);continue}s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:"FileStatisticsRetrievingFailedError",title:"File Statistics Retrieving Failed Error",description:`Unable to retrieve the statistics of file "${i}". This file will not be mapped.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.scanFilesHierarchyTreeForEntryPoints(targetEntryPointsAbsolutePaths__forwardSlashSeparators)",caughtError:e});continue}let a=this.entryPointsMetadata.get(i),d=new Set;if(s.Logger.logDebug({mustOutputIf:this.mustOutputDebug,title:"SourceCodeSelectiveReprocessingHelper, Scan Files Hierarchy Tree for Entry Point - 2",description:(0,s.isUndefined)(a)?"No cached metadata for this entry point has been previously stored":"Has cached metadata for this entry point",additionalData:{...(0,s.isNotUndefined)(a)?{cachedMetadataOfCurrentEntryPoint:a,hasMetadataOutdated:a.modificationDate__ISO8601!==n}:null}}),a?.modificationDate__ISO8601===n)for(const e of a.directChildrenFilesRelativePaths){const t=r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0});o.default.existsSync(t)||this.clearFileMetadataPathFromCache(e),d=new Set(Array.from(a.directChildrenFilesRelativePaths))}else d=this.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:t,preComputedTargetFileDirectoryAbsolutePath__forwardSlashSeparators:e}),a={modificationDate__ISO8601:n,directChildrenFilesRelativePaths:(0,s.createSetBasedOnOtherSet)(d,e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))},this.entryPointsMetadata.set(i,a);for(const e of d){const i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=i,this.updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:i,parentEntryPointAbsolutePath__forwardSlashSeparators:t}),this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.add(e)}}this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.clear()}getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:e,preComputedTargetFileDirectoryAbsolutePath__forwardSlashSeparators:t}){const i=new Set;let n;try{n=o.default.readFileSync(e,"utf-8")}catch(t){return(0,r.isErrnoException)(t)&&"ENOENT"===t.code?(s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:s.UnexpectedEventError.NAME,title:s.UnexpectedEventError.localization.defaultTitle,description:`Contrary to expectations, "${e}" file does not exist. Skipping this file.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators(compoundParameter)",caughtError:t}),i):(s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:s.FileReadingFailedError.NAME,title:s.FileReadingFailedError.localization.defaultTitle,description:s.FileReadingFailedError.localization.generateDescription({filePath:e}),occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators(compoundParameter)",caughtError:t}),i)}for(const o of this.childrenFilesResolutionRules.childrenFilesIncludingDeclarationsPatterns){const a=new Set(Array.from(n.matchAll(o)).map(e=>e[1]).filter(e=>(0,s.isNonEmptyString)(e))),l=t??r.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0});for(const e of a){const t=this.computeAbsolutePathOfChildFileIfItExists({childFileRawPath:e,parentFileDirectoryAbsolutePath__forwardSlashSeparators:l});(0,s.isNotNull)(t)&&i.add(t)}}return i}computeAbsolutePathOfChildFileIfItExists({childFileRawPath:e,parentFileDirectoryAbsolutePath__forwardSlashSeparators:t}){let i=new Set;const n=r.ImprovedPath.explodePathToSegments(e),l=n[0];let d;if((0,s.isNonEmptyString)(l)&&(i=(0,s.createSetBasedOnOtherSet)(this.directoriesAliasesAndTheirAbsolutePatsMap.get(l)??new Set,e=>r.ImprovedPath.joinPathSegments((0,s.replaceArrayElementsByIndexesImmutably)({targetArray:n,index:0,newElement:e}),{alwaysForwardSlashSeparators:!0}))),i.size>0){const t=this.resolvedAliasedPaths.get(e);if((0,s.isString)(t)){try{if(o.default.existsSync(t))return t}catch(e){}this.resolvedAliasedPaths.delete(e)}d=!0}else d=!1,i=new Set([e]);const u=new Set,c=(0,s.extractLastExtensionOfFileName)({targetPath:e,withLeadingDot:!1});if((0,s.isNull)(c)||!(0,s.mergeSets)(this.childrenFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,this.childrenFilesResolutionRules.additionalExplicitFileNameExtensionsWithoutLeadingDotsOfChildrenFiles??new Set).has(c))for(const e of i)(0,s.addElementsToSet)({targetSet:u,newElements:Array.from(this.childrenFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles).map(i=>r.ImprovedPath.joinPathSegments([...a.default.isAbsolute(e)?[]:[t],`${e}.${i}`],{alwaysForwardSlashSeparators:!0}))});else for(const e of i)u.add(r.ImprovedPath.joinPathSegments([...a.default.isAbsolute(e)?[]:[t],e],{alwaysForwardSlashSeparators:!0}));for(const t of u)try{if(o.default.existsSync(t))return d&&this.resolvedAliasedPaths.set(e,t),t}catch(e){return null}return null}updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:t,parentEntryPointAbsolutePath__forwardSlashSeparators:i}){const n=this.childrenFilesMetadata.get(t);if(this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.has(e)&&(0,s.isNotUndefined)(n))return n.parentEntryPointsAbsolutePaths.add(i),void this.registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:n,parentEntryPointAbsolutePath__forwardSlashSeparators:i});let a,l;try{a=o.default.statSync(e).mtime.toISOString()}catch(t){return void s.Logger.logError({errorType:"FileStatisticsRetrievingFailedError",title:"File Statistics Retrieving Failed Error",description:`Unable to retrieve the statistics of file "${e}". This file will not be mapped.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.updateMetadataForExistingChildFile(compoundParameter)",caughtError:t})}if(n?.modificationDateTime__ISO8601===a){l=new Set;for(const e of n.directChildrenFilesRelativePaths){const t=r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0});o.default.existsSync(t)||n.directChildrenFilesRelativePaths.delete(e),l=new Set(Array.from(n.directChildrenFilesRelativePaths).map(e=>r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e])))}n.parentEntryPointsAbsolutePaths.add(i)}else l=this.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:e}),this.childrenFilesMetadata.set(t,{parentEntryPointsAbsolutePaths:new Set([i]),modificationDateTime__ISO8601:a,directChildrenFilesRelativePaths:(0,s.createSetBasedOnOtherSet)(l,e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))});this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.add(e);for(const e of l){const t=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});this.currentChainOfRelativePathsInFilesTree.includes(t)||(this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=t,this.updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:t,parentEntryPointAbsolutePath__forwardSlashSeparators:i}))}this.currentChainOfRelativePathsInFilesTree.pop()}registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:e,parentEntryPointAbsolutePath__forwardSlashSeparators:t}){for(const i of e.directChildrenFilesRelativePaths){if(this.currentChainOfRelativePathsInFilesTree.includes(i))continue;this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=i;const e=this.childrenFilesMetadata.get(i);(0,s.isUndefined)(e)||(e.parentEntryPointsAbsolutePaths.add(t),this.registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:e,parentEntryPointAbsolutePath__forwardSlashSeparators:t}))}this.currentChainOfRelativePathsInFilesTree.pop()}clearFileMetadataPathFromCache(e){this.entryPointsMetadata.delete(e);for(const t of this.entryPointsMetadata.values())t.directChildrenFilesRelativePaths.delete(e);this.childrenFilesMetadata.delete(e);for(const t of this.childrenFilesMetadata.values())t.directChildrenFilesRelativePaths.delete(e),t.parentEntryPointsAbsolutePaths.delete(e)}saveCachedFilesMetadataMapsToFile(){const e={entryPoints:Array.from(this.entryPointsMetadata.entries()).reduce((e,[t,i])=>(e[t]={modificationDate__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:Array.from(i.directChildrenFilesRelativePaths)},e),{}),childrenFiles:Array.from(this.childrenFilesMetadata.entries()).reduce((e,[t,i])=>(e[t]={modificationDate__ISO8601:i.modificationDateTime__ISO8601,directChildrenFilesRelativePaths:Array.from(i.directChildrenFilesRelativePaths),parentEntryPointsRelativePaths:Array.from(i.parentEntryPointsAbsolutePaths).map(e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))},e),{})};r.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.CACHED_METADATA_FILE_ABSOLUTE_PATH,content:JSON.stringify(e,null,2),synchronously:!0})}logChildrenFilesAndEntryPointsRelationships(){let e="";for(const[t,i]of this.childrenFilesMetadata.entries()){e=`${e}File: "${t}" has parents:\n`;for(const t of i.parentEntryPointsAbsolutePaths)e=`${e} ● ${r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:t,alwaysForwardSlashSeparators:!0})}\n`}s.Logger.logInfo({title:`${this.TARGET_FILES_TYPE_IN_SINGULAR_FORM} Children Files and Respective Parent Entry Points Relationships`,description:e.length>0?e:"No existing children files has been found."})}get mustOutputDebug(){return!(!l.debugging.enabled||(0,s.isNonEmptyString)(l.debugging.onlyForFilesTypeInSingularForm)&&l.debugging.onlyForFilesTypeInSingularForm!==this.TARGET_FILES_TYPE_IN_SINGULAR_FORM||(0,s.isNonEmptyString)(l.debugging.onlyForEntryPointsWhichPathIncludes)&&(0,s.isString)(this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators)&&!this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators.includes(l.debugging.onlyForEntryPointsWhichPathIncludes))}}t.default=l},2597(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3148)),r=i(6272);class o extends s.default{static getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e){return e instanceof o||r.Logger.throwErrorWithFormattedMessage({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,...(0,r.isNotUndefined)(e.stem)?{stem:e.stem}:null,...(0,r.isNotUndefined)(e.extname)?{extname:e.extname}:null})}setContents(e){this.contents=Buffer.from(e)}setBufferedContent(e){this.contents=e}get stringifiedContents(){return(0,r.isNull)(this.contents)||(0,r.isArbitraryObject)(this.contents)&&!(this.contents instanceof Buffer)?"":this.contents.toString()}getContentsExpectedToBeBuffer(){return(0,r.isArbitraryObject)(this.contents)&&this.contents instanceof Buffer?this.contents:void r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.UnexpectedEventError("Contrary to expectations, the `contents` field is not an instance of Buffer"),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"VinylFileClass.getContentsExpectedToBeBuffer(targetVinylFile"})}}t.default=o},1496(e,t){t.voidPromiseReturningFunction=void 0,t.voidPromiseReturningFunction=async()=>Promise.resolve()},2853(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return()=>(new n.PassThrough).end()};const n=i(2203)},2977(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e.contents?"":e.contents instanceof Buffer?e.contents.toString():""}},6272(e){e.exports=require("@yamato-daiwa/es-extensions")},5480(e){e.exports=require("@yamato-daiwa/es-extensions-nodejs")},3491(e){e.exports=require("autoprefixer")},7396(e){e.exports=require("browser-sync")},7689(e){e.exports=require("cssnano")},818(e){e.exports=require("dotenv")},7249(e){e.exports=require("eslint")},4520(e){e.exports=require("gulp")},6751(e){e.exports=require("gulp-data")},4724(e){e.exports=require("gulp-if")},2652(e){e.exports=require("gulp-imagemin")},771(e){e.exports=require("gulp-nodemon")},9610(e){e.exports=require("gulp-plumber")},2872(e){e.exports=require("gulp-postcss")},1713(e){e.exports=require("gulp-pug")},1805(e){e.exports=require("gulp-sourcemaps")},3813(e){e.exports=require("gulp-stylus")},9399(e){e.exports=require("htmlnano")},1416(e){e.exports=require("imagemin-pngquant")},4167(e){e.exports=require("js-beautify")},6331(e){e.exports=require("nanoid")},2006(e){e.exports=require("node-html-parser")},8661(e){e.exports=require("node-notifier")},0(e){e.exports=require("pa11y")},8817(e){e.exports=require("postcss")},9986(e){e.exports=require("postcss-normalize-stylus-compatible-container-query-syntax")},5987(e){e.exports=require("postcss-selector-parser")},7196(e){e.exports=require("probe-image-size")},8510(e){e.exports=require("pug-lint")},3330(e){e.exports=require("pug-lint/lib/config-file")},758(e){e.exports=require("puppeteer")},8627(e){e.exports=require("razor-by-pug")},4696(e){e.exports=require("require-from-string")},3284(e){e.exports=require("stream-combiner2")},9899(e){e.exports=require("typescript")},3148(e){e.exports=require("vinyl")},9955(e){e.exports=require("vnu-jar")},2728(e){e.exports=require("vue-loader")},6807(e){e.exports=require("webpack")},3523(e){e.exports=require("webpack-node-externals")},9202(e){e.exports=require("webpack-stream")},5317(e){e.exports=require("child_process")},9896(e){e.exports=require("fs")},1943(e){e.exports=require("fs/promises")},1421(e){e.exports=require("node:child_process")},1455(e){e.exports=require("node:fs/promises")},857(e){e.exports=require("os")},6928(e){e.exports=require("path")},2203(e){e.exports=require("stream")},6112(e,t,i){i.r(t),i.d(t,{default:()=>r});const n=require("node:crypto"),s=require("node:util");function r(e){if("string"!=typeof e&&!s.types.isUint8Array(e))throw new TypeError("Expected a Uint8Array or string");return n.createHash("md5").update(e).digest("hex").slice(0,10)}},9510(e){e.exports=JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.9.1","description":"The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.","keywords":["build","pug","stylus","tool","typescript"],"engines":{"node":">=24.0.0"},"bin":{"yda":"Executable"},"files":["EntryPoint.js","Assets"],"dependencies":{"@eslint-community/eslint-plugin-eslint-comments":"4.8.1","@stylistic/eslint-plugin":"5.10.0","@typescript-eslint/eslint-plugin":"8.71.1","@typescript-eslint/parser":"8.71.1","@vue/compiler-sfc":"3.5.43","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.9.3","@yamato-daiwa/es-extensions-nodejs":"1.9.3","@yamato-daiwa/style_guides":"0.14.8","@yamato-daiwa/universal-reactive-webpack-loader":"../../../../ECMAScriptPackagesDevelopment/YamatoDaiwaUniversalReactive/AdaptersForProjectBuildingSystems/Webpack","autoprefixer":"10.6.1","browser-sync":"3.0.4","css-loader":"7.1.5","cssnano":"8.0.8","dotenv":"17.4.2","eslint":"9.39.4","eslint-plugin-import":"2.32.0","eslint-plugin-n":"18.4.1","eslint-plugin-react":"7.37.5","eslint-plugin-vue":"9.33.0","eslint-plugin-vue-pug":"0.6.2","gulp":"4.0.2","gulp-data":"1.3.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","htmlnano":"3.4.0","imagemin-pngquant":"9.0.2","js-beautify":"1.15.4","json5-loader":"4.0.1","nanoid":"6.0.1","node-html-parser":"7.1.0","node-notifier":"10.0.1","pa11y":"9.1.1","postcss":"8.5.28","postcss-loader":"8.2.1","postcss-normalize-stylus-compatible-container-query-syntax":"1.1.2","postcss-selector-parser":"7.1.6","probe-image-size":"7.4.0","pug-lint":"2.7.0","puppeteer":"24.43.0","razor-by-pug":"0.1.0","require-from-string":"2.0.2","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.3","ts-loader":"9.6.2","vinyl":"2.2.1","vnu-jar":"26.3.10","vue-loader":"17.4.2","vue-style-loader":"4.1.3","vue-tsc":"3.2.8","webpack":"5.109.2","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.9.0"},"devDependencies":{"@types/browser-sync":"2.29.1","@types/cssnano":"5.0.0","@types/gulp":"4.0.18","@types/gulp-if":"3.0.5","@types/gulp-imagemin":"7.0.3","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.37","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.38","@types/gulp-stylus":"2.7.8","@types/js-beautify":"1.14.3","@types/node":"22.20.3","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/require-from-string":"1.2.3","@types/vnu-jar":"17.11.2","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.16","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"6.0.3","webpack-cli":"6.0.1"},"scripts":{"Incremental Development Building":"webpack --mode development","Production Building":"webpack --mode production","Linting":"eslint Source","Build Distributable for Documentation":"webpack --config webpack.config.documentation.ts --mode production","Project Structure Visualizing":"wsl tree -I \\".git|.idea|node_modules\\" || tree -I \\".git|.idea|node_modules\\""},"license":"MIT","homepage":"https://automation.yamato-daiwa.com/","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"},"funding":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation?sponsor=1","allowScripts":{"core-js@2.6.12":true,"es5-ext@0.10.64":true,"gifsicle@5.3.0":true,"husky@4.3.8":true,"mozjpeg@6.0.1":true,"optipng-bin@6.0.0":true,"pngquant-bin@6.0.1":true,"puppeteer@24.43.0":true,"vnu-jar@26.3.10":true}}')}};const t={};function i(n){const s=t[n];if(void 0!==s)return s.exports;const r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++];i.o(e,s)?0===r&&n++:0===r?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.hasOwn(e,t),i.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(3875)})();
|
|
1
|
+
(()=>{"use strict";var e={8913(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8596)),r=n(i(8931)),o=i(5480);var a;!function(e){let t;!function(e){e.projectBuilding="build",e.referenceGenerating="help"}(t=e.CommandPhrases||(e.CommandPhrases={})),e.specification={applicationName:"Yamato Daiwa Automation",applicationDescription:"The high-level project building tool with declarative configuration.",commandPhrases:{[t.projectBuilding]:{description:`Builds the projects according to the configuration file ("${s.default}" as default).`,isDefault:!0,options:{mode:{newName:"projectBuildingMode",shortcut:"m",required:!0,type:o.ConsoleCommandsParser.ParametersTypes.string,allowedAlternatives:Object.values(r.default),description:"The project building mode; affects to presence or absence of incremental building, browser live reloading, code minification etc."},selectiveExecution:{newName:"selectiveExecutionID",shortcut:"s",required:!1,type:o.ConsoleCommandsParser.ParametersTypes.string,description:"Allows to specify the selection of tasks, entry points groups, etc. by selective execution ID, herewith the desired selective execution must be preliminarily defined in the configuration file."},configurationFile:{newName:"customConfigurationFileName__possiblyWithoutExtension",shortcut:"c",required:!1,type:o.ConsoleCommandsParser.ParametersTypes.string,description:`Custom name of the configuration file (the default one is "${s.default}")`}}},[t.referenceGenerating]:{}}}}(a||(a={})),t.default=a},3875(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(749)),r=n(i(8596)),o=n(i(8913)),a=n(i(8945)),l=n(i(919)),d=n(i(6928)),u=i(6272),c=i(5480);class p{static{u.Logger.setImplementation(c.ConsoleApplicationLogger),u.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI(s.default),p.interpretAndExecuteConsoleCommand()}static interpretAndExecuteConsoleCommand(){u.PoliteErrorsMessagesBuilder.setTechnicalDetailsOnlyModeIf(!1);const e=c.ConsoleCommandsParser.parse(o.default.specification),t=process.cwd();switch(l.default.unrollDotYDA_Directory(t),e.phrase){case o.default.CommandPhrases.projectBuilding:{const i=d.default.resolve(t,r.default);let n;try{n=c.ObjectDataFilesProcessor.processFile({filePath:i,synchronously:!0})}catch(e){e instanceof c.FileNotFoundError&&u.Logger.throwErrorWithFormattedMessage({errorInstance:new c.FileNotFoundError({customMessage:`The configuration file for "Yamato Daiwa Automation" utility not found at path "${i}". The "Yamato Daiwa Automation" utility is required the configuration file and will expect the file "${r.default}" at the same directory as CLI has been invoked. You can set custom configuration file name via CLI if you want.`}),title:c.FileNotFoundError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",innerError:e}),u.Logger.throwErrorWithFormattedMessage({errorInstance:new u.FileReadingFailedError({customMessage:`The configuration file for "Yamato Daiwa Automation" utility not found at path "${i}". The "Yamato Daiwa Automation" utility is required the configuration file and will expect the file "${r.default}" at the same directory as CLI has been invoked. You can set custom configuration file name via CLI if you want.`}),title:u.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"EntryPoint.interpretAndExecuteConsoleCommand()",innerError:e})}a.default.buildProject({consumingProjectRootDirectoryAbsolutePath:t,projectBuildingConfig__fromConsole:{projectBuildingMode:e.projectBuildingMode,selectiveExecutionID:e.selectiveExecutionID},rawConfigFromFile:n});break}case o.default.CommandPhrases.referenceGenerating:u.Logger.logInfo({title:"Yamato Daiwa Automation",description:c.ConsoleCommandsParser.generateFullHelpReference(o.default.specification)})}}}t.default=p},3395(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({filePath:e,content:t,synchronously:i}){if(!i)return r.default.writeFile(e,t).catch(async i=>{if((0,o.isErrnoException)(i)&&"ENOENT"===i.code)return o.ImprovedFileSystem.createDirectory({targetPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1}}),synchronously:!0,mustThrowErrorIfTargetDirectoryExists:!0}),r.default.writeFile(e,t);throw i});try{s.default.writeFileSync(e,t)}catch(i){(0,o.isErrnoException)(i)&&"ENOENT"===i.code&&(o.ImprovedFileSystem.createDirectory({targetPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1}}),synchronously:!0,mustThrowErrorIfTargetDirectoryExists:!0}),s.default.writeFileSync(e,t))}};const s=n(i(9896)),r=n(i(1943)),o=i(5480)},518(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({whichPath:e,ofWhichPath:t}){const i=s.default.relative(t,e);return i.length>0&&!i.startsWith("..")&&!s.default.isAbsolute(i)};const s=n(i(6928))},34(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);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,n.millisecondsToSeconds)(e),milliseconds:e}}reset(){this.activationUnixTimestamp__milliseconds=0,this.deactivationUnixTimestamp__milliseconds=0}}},5553(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.explodeStringToLines)({targetString:e,mustIgnoreCarriageReturn:!1}).join(t)};const n=i(6272)},8945(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3382)),r=n(i(92)),o=n(i(9271)),a=n(i(2556)),l=n(i(3011)),d=n(i(7102)),u=n(i(5217)),c=n(i(5228)),p=n(i(4702)),g=n(i(363)),m=n(i(7318)),h=n(i(5379)),f=n(i(3067)),S=n(i(3130)),F=n(i(1311)),P=n(i(9585)),_=n(i(1569)),b=n(i(6457)),E=n(i(4324)),y=n(i(4533)),A=n(i(8066)),I=n(i(4520)),v=n(i(4871)),N=i(6272);t.default=class{static buildProject({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,rawConfigFromFile:i}){const n=N.RawObjectDataProcessor.process(i,s.default.propertiesSpecification,{processingApproach:N.RawObjectDataProcessor.ProcessingApproaches.manipulationsWithSourceObject});n.isRawDataInvalid&&N.Logger.throwErrorWithFormattedMessage({errorInstance:new N.InvalidConfigError({mentionToConfig:"@yamato-daiwa/automation (project building)",messageSpecificPart:N.RawObjectDataProcessor.formatValidationErrorsList(n.validationErrorsMessages)}),title:N.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"ProjectBuilder.buildProject(parametersObject)"});const R=n.processedData.projectBuilding,T=r.default.normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromConsole:t,projectBuildingConfig__fromFile__rawValid:R}),O=new o.default(T),C="BUILD_PROJECT";I.default.task(C,I.default.parallel([l.default.provideLintingIfMust(O),m.default.provideCheckingIfMust(O),g.default.provideLintingIfMust(O),I.default.series([I.default.parallel([d.default.provideTypeScriptImportsForMarkupIfMust(O),u.default.provideJavaScriptImportsForMarkupIfMust(O),p.default.provideLogicProcessingIfMust(O),_.default.providePlainCopierIfMust(O)]),f.default.provideImagesProcessingIfMust(O),S.default.provideFontsProcessingIfMust(O),P.default.provideAudiosProcessingIfMust(O),F.default.provideVideosProcessingIfMust(O),c.default.provideStylesProcessingIfMust(O),a.default.provideMarkupProcessingIfMust(O),b.default.provideBrowserLiveReloadingIfMust(O),A.default.generateIfMust(O),I.default.parallel([v.default.watchIfMust(O),E.default.launchIfMust(O),h.default.orchestrateIfMust(O),y.default.coordinateIfMust(O)])])])),I.default.task(C)?.(e=>{(0,N.isNeitherUndefinedNorNull)(e)&&N.Logger.logError({errorType:N.UnexpectedEventError.NAME,title:N.UnexpectedEventError.localization.defaultTitle,description:"The following unexpected error has crashed the Gulp pipeline:",occurrenceLocation:"ProjectBuilder.buildProject(compoundParameter)",caughtError:e})})}}},4784(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8809)),r=n(i(8996)),o=n(i(2061)),a=i(6272);class l extends o.default{audiosProcessingSettings__fromFile__rawValid;static normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,audiosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.audiosProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.audiosProcessingSettings__fromFile__rawValid=e.audiosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},8809(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["mp3","ogg","wma","wav","flac"])}},1846(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Audio";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Audios";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},8996(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},2421(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},9706(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},9585(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9706)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(7013)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideAudiosProcessingIfMust(e){const t=e.audiosProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({audiosProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_AUDIO_FILE_ADDED--BY_AUDIOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_AUDIO_FILE_UPDATED--BY_AUDIOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_AUDIO_FILE_DELETED--BY_AUDIOS_PROCESSOR",handler:i.onAudioFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Audios Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onAudioFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},7013(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({audiosProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"AUDIOS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Audio"})}}t.default=a},5196(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4253)),r=n(i(4688)),o=n(i(2061)),a=i(6272);class l extends o.default{fontsProcessingSettings__fromFile__rawValid;static normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,fontsProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.fontsProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.fontsProcessingSettings__fromFile__rawValid=e.fontsProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},4253(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["ttf","otf","woff","txt"])}},682(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Font";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Fonts";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},4688(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},5609(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},7078(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},3130(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7078)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(2873)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideFontsProcessingIfMust(e){const t=e.fontsProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({fontsProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_FONTS_FILE_ADDED--BY_FONTS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_FONTS_FILE_UPDATED--BY_FONTS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_FONTS_FILE_DELETED--BY_FONTS_PROCESSOR",handler:i.onFontFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Fonts Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onFontFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},2873(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({fontsProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"FONTS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Video"})}}t.default=a},4802(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4031)),r=n(i(9896)),o=i(5480);class a extends s.default{mustBeOptimizedDuringCurrentExecution;hasBeenOptimizedDuringCurrentExecution=!1;sourceFileLastModificationDateTime__ISO8601;optimizedContentRevisionHash;constructor({cachedOptimizedImagedMetadata:e,consumingProjectRootDirectoryAbsolutePath:t,cachedOptimizedImagesDirectoryAbsolutePath:i,...n}){super(n);const s=n.actualAssetsGroupSettings.imagesOptimization.mustOptimize&&(0===n.assetsProcessingCommonSettings.imagesOptimization.ignoresFilesGlobs.size||!o.ImprovedGlob.isFilePathMatchingWithAtLeastOneGlobSelector({filePath:this.sourceAbsolutePath,globSelectors:[...n.assetsProcessingCommonSettings.imagesOptimization.ignoresFilesGlobs]}));if(this.sourceFileLastModificationDateTime__ISO8601=r.default.statSync(this.sourceAbsolutePath).mtime.toISOString(),s){const n=e[o.ImprovedPath.computeRelativePath({basePath:t,comparedPath:this.sourceAbsolutePath,alwaysForwardSlashSeparators:!0})];if(this.sourceFileLastModificationDateTime__ISO8601===n?.targetImageLastModificationDateTime__ISO_8601)try{this.setBufferedContent(r.default.readFileSync(o.ImprovedPath.joinPathSegments([i,n.cachedImageFileNameWithExtension]))),this.mustBeOptimizedDuringCurrentExecution=!1}catch{this.mustBeOptimizedDuringCurrentExecution=!0}else this.mustBeOptimizedDuringCurrentExecution=!0}else this.mustBeOptimizedDuringCurrentExecution=!1}}t.default=a},2662(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2115)),r=n(i(6570)),o=n(i(2061)),a=n(i(919)),l=i(6272),d=i(5480);class u extends o.default{imagesProcessingSettings__fromFile__rawValid;static normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new u({...(0,l.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,imagesProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds,imagesOptimization:u.normalizeImagesOptimizationCommonSettings(t,e.common?.imagesOptimization)},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.imagesProcessingSettings__fromFile__rawValid.assetsGroups,i.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings.bind(i)),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.imagesProcessingSettings__fromFile__rawValid=e.imagesProcessingSettings__fromFile__rawValid}completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e,t){return{...e,imagesOptimization:{mustOptimize:t.imagesOptimization?.enabled??r.default.mustOptimize(this.consumingProjectBuildingMode)}}}static normalizeImagesOptimizationCommonSettings(e,t){return{cachedOptimizedImagesDirectoryAbsolutePath:d.ImprovedPath.joinPathSegments([...(0,l.isNotUndefined)(t?.cachedOptimizedImagesDirectoryRelativePath)?[e.projectRootDirectoryAbsolutePath,t.cachedOptimizedImagesDirectoryRelativePath]:[a.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,"Images"]],{alwaysForwardSlashSeparators:!0}),ignoresFilesGlobs:new Set([...(t?.relativePathsOfIgnoredFiles??[]).map(t=>d.ImprovedPath.joinPathSegments([e.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})),...(t?.relativePathsOfIgnoredDirectories??[]).map(t=>d.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector({targetDirectoryPath:d.ImprovedPath.joinPathSegments([e.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})}))])}}}t.default=u},2115(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["jpg","jpeg","png","gif","svg","ico","webp"])}},5872(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="image";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="images";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},6570(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0},mustOptimize:e=>e!==s.default.staticPreview&&e!==s.default.localDevelopment};t.default=r},3015(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification={...s.default.PropertiesSpecification.Common.generate({assetTypeSpecificPropertiesSpecification:{$imagesOptimization:{newName:"imagesOptimization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$cachedOptimizedImagesDirectoryRelativePath:{newName:"cachedOptimizedImagesDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$ignoreFiles:{newName:"relativePathsOfIgnoredFiles",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreDirectories:{newName:"relativePathsOfIgnoredDirectories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}),...s.default.PropertiesSpecification.AssetsGroups.generate({assetTypeSpecificPropertiesSpecification:{assetsGroupDependent:{$imagesOptimization:{newName:"imagesOptimization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}})}}(r||(r={})),t.default=r},4640(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},3067(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4640)),r=n(i(4520)),o=n(i(4724)),a=n(i(2652)),l=n(i(1416)),d=n(i(2289)),u=n(i(7818)),c=n(i(8512)),p=n(i(2853)),g=n(i(4802)),m=n(i(919)),h=n(i(7006)),f=i(6272),S=i(5480),F=n(i(1455)),P=n(i(3395));class _ extends d.default{static CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME="Images";static CACHED_OPTIMIZED_IMAGES_METADATA_FILE_NAME_WITH_EXTENSION="OptimizedImagesMetadata.json";static cachedOptimizedImagedMetadataSpecification={nameForLogging:"ImagesProcessor.ImagesProcessingTypes.CachedOptimizedImagesMetadata",subtype:f.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{cachedImageFileNameWithExtension:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},targetImageLastModificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}};CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH;CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH;cachedOptimizedImagedMetadata;static provideImagesProcessingIfMust(e){const t=e.imagesProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,p.default)();const i=new _(e,t);return e.mustProvideIncrementalBuilding&&c.default.initializeIfRequiredAndGetInstance({imagesProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_IMAGES_FILE_ADDED--BY_IMAGES_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_IMAGES_FILE_UPDATED--BY_IMAGES_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_IMAGES_FILE_DELETED--BY_IMAGES_PROCESSOR",handler:i.onImageFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){let i;super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Images Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds}),this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH=S.ImprovedPath.joinPathSegments([m.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH=S.ImprovedPath.joinPathSegments([m.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,_.CACHED_OPTIMIZED_IMAGES_DIRECTORY_NAME,_.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_NAME_WITH_EXTENSION],{alwaysForwardSlashSeparators:!0});try{i=S.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH,validDataSpecification:_.cachedOptimizedImagedMetadataSpecification,synchronously:!0})}catch(e){e instanceof S.FileNotFoundError||f.Logger.logError({errorType:"CachedDataRetrievingFailure",...h.default.localization.cachedPreviousValidationsResultsDataRetrievingErrorLog({cachedValidationsResultsFileAbsolutePath:this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH}),occurrenceLocation:"ImagesProcessor.provideImagesProcessingIfMust(projectBuildingMasterConfigRepresentative) ->ImagesProcessor.constructor(...)",caughtError:e,mustOutputIf:!1})}this.cachedOptimizedImagedMetadata=i??{}}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,f.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithImageVinylFile.bind(this)})).pipe((0,o.default)(e=>e.mustBeOptimizedDuringCurrentExecution,(0,a.default)([a.default.mozjpeg({progressive:!0}),a.default.gifsicle({interlaced:!0}),a.default.svgo({}),(0,l.default)()]))).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>{if(e.hasBeenOptimizedDuringCurrentExecution=e.mustBeOptimizedDuringCurrentExecution,e.hasBeenOptimizedDuringCurrentExecution){const t=`${(new Date).getTime()}${e.extname}`,i=S.ImprovedPath.joinPathSegments([this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH,t],{alwaysForwardSlashSeparators:!0});(0,P.default)({filePath:i,content:e.getContentsExpectedToBeBuffer(),synchronously:!0});const n=e.sourceFileLastModificationDateTime__ISO8601;this.cachedOptimizedImagedMetadata[S.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.sourceAbsolutePath,alwaysForwardSlashSeparators:!0})]={cachedImageFileNameWithExtension:t,targetImageLastModificationDateTime__ISO_8601:n},await F.default.writeFile(this.CACHED_OPTIMIZED_IMAGES_METADATA_FILE_ABSOLUTE_PATH,JSON.stringify(this.cachedOptimizedImagedMetadata,null,2))}return Promise.resolve(u.default.CompletionSignals.PASSING_ON)}})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:d.default.addContentHashPostfixToFileNameIfMust})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>(e.hasBeenOptimizedDuringCurrentExecution=e.mustBeOptimizedDuringCurrentExecution,Promise.resolve(u.default.CompletionSignals.PASSING_ON))})).pipe(u.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:_.postProcessFile.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>g.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}async replacePlainVinylFileWithImageVinylFile(e,t){return t(new g.default({initialPlainVinylFile:e,actualAssetsGroupSettings:this.associatedAssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path),assetsProcessingCommonSettings:this.associatedAssetsProcessingSettingsRepresentative.assetsProcessingCommonSettings,cachedOptimizedImagedMetadata:this.cachedOptimizedImagedMetadata,consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,cachedOptimizedImagesDirectoryAbsolutePath:this.CACHED_OPTIMIZED_IMAGES_DIRECTORY_ABSOLUTE_PATH})),Promise.resolve(u.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(S.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),S.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(u.default.CompletionSignals.PASSING_ON)}onImageFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}}t.default=_},8512(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({imagesProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"IMAGE_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Image"})}}t.default=a},4602(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6399)),r=n(i(7262)),o=n(i(2061)),a=i(6272);class l extends o.default{videosProcessingSettings__fromFile__rawValid;static normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new l({...(0,a.isNotUndefined)(t.tasksAndSourceFilesSelection)?{assetsGroupsIDsSelection:t.tasksAndSourceFilesSelection.imagesProcessing}:null,supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,videosProcessingSettings__fromFile__rawValid:e,consumingProjectBuildingMode:t.projectBuildingMode,consumingProjectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath});return{common:{supportedSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots,periodBetweenFileUpdatingAndRebuildingStarting__seconds:e.common?.periodBetweenFileUpdatingAndRebuildingStarting__seconds??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},assetsGroups:i.createNormalizedAssetsGroupsSettings(i.videosProcessingSettings__fromFile__rawValid.assetsGroups,l.completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents}}}constructor(e){super(e),this.videosProcessingSettings__fromFile__rawValid=e.videosProcessingSettings__fromFile__rawValid}static completeAssetsGroupNormalizedSettingsCommonPropertiesUntilImagesGroupNormalizedSettings(e){return{...e}}}t.default=l},6399(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={supportedSourceFilesNamesExtensionsWithoutLeadingDots:new Set(["avi","mov","mkv","mp4","avchd","flw","swf"])}},1340(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077));class r extends s.default{relevantSourceFilesGlobSelectors;assetsProcessingCommonSettings;relevantAssetsGroupsSettingsMappedByGroupID;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Video";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Videos";constructor(e,t){super({assetsProcessingCommonSettings:e.common,projectBuildingMasterConfigRepresentative:t,loggingSettings:e.logging,relevantAssetsGroupsSettingsMappedByGroupID:e.assetsGroups}),this.assetsProcessingCommonSettings=e.common,this.relevantAssetsGroupsSettingsMappedByGroupID=e.assetsGroups,this.relevantSourceFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>e.sourceFilesGlobSelector)}}t.default=r},7262(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,logging:{filesPaths:!0,filesCount:!0,filesWatcherEvents:!0}}},7491(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(689));var r;!function(e){e.propertiesSpecification=s.default.propertiesSpecification}(r||(r={})),t.default=r},2404(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},1311(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2404)),r=n(i(4520)),o=n(i(2289)),a=n(i(7818)),l=n(i(9167)),d=n(i(2853)),u=n(i(4031)),c=i(6272),p=i(5480);class g extends o.default{static provideVideosProcessingIfMust(e){const t=e.videosProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new g(e,t);return e.mustProvideIncrementalBuilding&&l.default.initializeIfRequiredAndGetInstance({videosProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnFileAddedEventHandler({handlerID:"ON_VIDEO_FILE_ADDED--BY_VIDEOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addFileUpdatedEventHandler({handlerID:"ON_VIDEO_FILE_UPDATED--BY_VIDEOS_PROCESSOR",handler:i.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(i)}).addOnFileDeletedEventHandler({handlerID:"ON_VIDEO_FILE_DELETED--BY_VIDEOS_PROCESSOR",handler:i.onVideoFileDeleted.bind(i)}),i.processAssets(t.actualAssetsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,associatedAssetsProcessingSettingsRepresentative:t,taskTitleForLogging:"Videos Processing",waitingForSubsequentFilesWillSavedPeriod__seconds:t.assetsProcessingCommonSettings.periodBetweenFileUpdatingAndRebuildingStarting__seconds})}processAssets(e){return 0===e.length?()=>r.default.src("."):()=>r.default.src((0,c.readonlyArrayToMutableOne)(e)).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithAssetVinylFile.bind(this)})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:o.default.addContentHashPostfixToFileNameIfMust})).pipe(a.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:g.postProcessFile})).pipe(super.logOutputFilesIfMust()).pipe(r.default.dest(e=>u.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onVideoFileDeleted(e){this.absolutePathOfFilesWaitingForReProcessing.delete(e),s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.delete(e)}static async postProcessFile(e){return s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap.set(p.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.sourceAbsolutePath),p.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})),Promise.resolve(a.default.CompletionSignals.PASSING_ON)}}t.default=g},9167(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(633)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({videosProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"VIDEOS_SOURCE_FILES_WATCHER",mustLogEvents:e.loggingSettings.filesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Video"})}}t.default=a},2713(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(5480);class a extends s.default{onAnyEventRelatedWithActualFilesHandler;static initialize(e){r.default.addPassiveWatcher(new a(e))}constructor({browserLiveReloadingSettingsRepresentative:e,onAnyEventRelatedWithActualFilesHandler:t}){super({ID:"BROWSER_COORDINATOR_RELATED_FILES_WATCHER",targetFilesGlobSelectors:[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.targetFilesRootDirectoryAbsolutePath})],mustLogEvents:e.mustLogOutputFileChangeDetection}),this.onAnyEventRelatedWithActualFilesHandler=t}notifyAboutRelatedFileStateChange(e,t){this.onAnyEventRelatedWithActualFilesHandler(e,t)}}t.default=a},6457(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6979)),r=n(i(7831)),o=n(i(2858)),a=n(i(7396)),l=n(i(2713)),d=i(6272),u=i(5480),c=n(i(9896)),p=n(i(7426));class g{static selfSingleInstance;static localization=p.default;static onNewPageOpenedEventHandlers=new Map;static EXPERIMENTAL_LOGGING=!1;browserLiveReloadingSettingsRepresentative;absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly=new Set;waitingForSubsequentFilesWillBeUpdatedCountdown;currentHTML_FileAbsolutePath__forwardSlashesPathSeparators=null;processingOnDemandSettings;loadingPageHTML_ForProcessingOnDemandMode;isFirstPageRequestInProcessingOnDemandMode=!0;static provideBrowserLiveReloadingIfMust(e){const t=e.getBrowserLiveReloadingSettingsRepresentativeIfMustProvideBrowserLiveReloading();if((0,d.isNull)(t))return e=>{e()};const i=new g(t,e);return g.selfSingleInstance=i,e=>{l.default.initialize({onAnyEventRelatedWithActualFilesHandler:i.onAnyChangeInRelatedFiles.bind(i),browserLiveReloadingSettingsRepresentative:t}),i.initializeBrowsersync(),e()}}static addOnNewPageOpenedEventHandler({handlerID:e,handler:t}){g.onNewPageOpenedEventHandlers.set(e,t)}static reload(){a.default.reload()}static get currentHTML_FileAbsolutePath__forwardSlashesPathSeparators(){return g.selfSingleInstance?.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators??null}constructor(e,t){this.browserLiveReloadingSettingsRepresentative=e,this.processingOnDemandSettings=t.processingOnDemandSettings,this.processingOnDemandSettings.enabled&&this.processingOnDemandSettings.fullInitialBuilding&&(0,d.isNotUndefined)(t.markupProcessingSettingsRepresentative)&&(0,d.addElementsToSet)({targetSet:this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly,newElements:t.markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,mutably:!0}),this.processingOnDemandSettings.enabled&&(0,d.isNotUndefined)(t.markupProcessingSettingsRepresentative)&&(this.processingOnDemandSettings.fullInitialBuilding&&(0,d.addElementsToSet)({targetSet:this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly,newElements:t.markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,mutably:!0}),o.default.initializeIfRequiredAndGetInstance({projectBuildingMasterConfigRepresentative:t,markupProcessingSettingsRepresentative:t.markupProcessingSettingsRepresentative}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_BROWSER_LIVE_RELOADER",handler:e=>{this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.delete(e)}}))}initializeBrowsersync(){a.default.init({...(0,d.isNull)(this.browserLiveReloadingSettingsRepresentative.proxy)?{server:{baseDir:this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,index:this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension}}:{proxy:this.browserLiveReloadingSettingsRepresentative.proxy},...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.HTTPS)?{https:{key:this.browserLiveReloadingSettingsRepresentative.HTTPS.keyAbsolutePath,cert:this.browserLiveReloadingSettingsRepresentative.HTTPS.certificateAbsolutePath}}:null,cors:this.browserLiveReloadingSettingsRepresentative.mustUseCORS,...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.localServerCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.localServerCustomPort}:null,ignore:this.browserLiveReloadingSettingsRepresentative.globSelectorsOfFilesAndDirectoriesWhichWillBeIgnored,...this.browserLiveReloadingSettingsRepresentative.targetBrowsers.length>0?{browser:this.browserLiveReloadingSettingsRepresentative.targetBrowsers}:null,ui:!!this.browserLiveReloadingSettingsRepresentative.mustEnableBrowsersyncUserInterface&&{...(0,d.isNotNull)(this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort)?{port:this.browserLiveReloadingSettingsRepresentative.browsersyncUserInterfaceCustomPort}:null},notify:this.browserLiveReloadingSettingsRepresentative.mustDisplayBrowsersyncConnectedPopupInBrowser,middleware:this.onRequest.bind(this)})}onAnyChangeInRelatedFiles(e){d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onAnyChangeInRelatedFiles,",description:e,compactLayout:!0,mustOutputIf:g.EXPERIMENTAL_LOGGING}),this.processingOnDemandSettings.enabled&&"html"===(0,d.extractLastExtensionOfFileName)({targetPath:e,withLeadingDot:!0})||(clearTimeout(this.waitingForSubsequentFilesWillBeUpdatedCountdown),this.waitingForSubsequentFilesWillBeUpdatedCountdown=setTimeout(()=>{d.Logger.logInfo({mustOutputIf:this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon,...g.localization.browserTabWillBeReloadedSoonLog}),a.default.reload()},(0,d.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds)))}async onRequest(e,t,i){if(d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onRequest, URI:",description:e.url??"No URI",compactLayout:!0,mustOutputIf:g.EXPERIMENTAL_LOGGING}),!this.processingOnDemandSettings.enabled)return void i();if((0,d.isUndefined)(e.url))return void i();const n="/"===e.url?u.ImprovedPath.joinPathSegments([this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,this.browserLiveReloadingSettingsRepresentative.startingFileNameWithExtension],{alwaysForwardSlashSeparators:!0}):u.ImprovedPath.joinPathSegments([this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath,e.url],{alwaysForwardSlashSeparators:!0});if("html"!==(0,d.extractLastExtensionOfFileName)({targetPath:n,withLeadingDot:!1}))return void i();const s=r.default.outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap.get(n);if((0,d.isUndefined)(s))return void i();const o=this.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators!==n;if(d.Logger.logWarning({badge:{customText:"Experimental"},title:"BrowserLiveReloader.onRequest, Target HTML File:",description:n,mustOutputIf:g.EXPERIMENTAL_LOGGING,additionalData:{hasPageChanged:o,relatedEntryPointsSourceFiles:s}}),this.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators=n,this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.has(s))return i(),this.isFirstPageRequestInProcessingOnDemandMode?void(this.isFirstPageRequestInProcessingOnDemandMode=!1):void(o&&await Promise.all(Array.from(g.onNewPageOpenedEventHandlers.values()).map(async e=>e({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:s,HTML_FileAbsolutePath__forwardSlashSeparators:n}))));t.setHeader("Content-Type","text/html"),t.write(this.getLoadingPageHTML_ForProcessingOnDemandMode()),t.end(),await Promise.all(Array.from(g.onNewPageOpenedEventHandlers.values()).map(async e=>e({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:s,HTML_FileAbsolutePath__forwardSlashSeparators:n}))),this.absolutePathsOfSourceFilesCorrespondingToViewedPages__forwardSlashesPathSeparators__processingOnDemandModeOnly.add(s),this.isFirstPageRequestInProcessingOnDemandMode=!1}getLoadingPageHTML_ForProcessingOnDemandMode(){return this.loadingPageHTML_ForProcessingOnDemandMode??(this.loadingPageHTML_ForProcessingOnDemandMode=c.default.readFileSync(s.default.LOADING_SCREEN_HTML_FILE_FOR_PROCESSING_ON_DEMAND_MODE_ABSOLUTE_PATH,"utf-8"))}}t.default=g},7426(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."}}},792(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);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 HTTPS(){return this.browserLiveReloadingSettings.setup.localServer.HTTPS??null}get mustUseCORS(){return this.browserLiveReloadingSettings.setup.localServer.mustUseCORS}get targetBrowsers(){return(0,n.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}}},3554(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}}},6191(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={$setups:{newName:"setups",type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$localServer:{newName:"localServer",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$rootDirectoryRelativePath:{newName:"rootDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$ignoredFilesAndDirectoriesRelativePaths:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$customPort:{newName:"customPort",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,maximalValue:65536},$customStartingFileNameWithExtension:{newName:"customStartingFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$HTTPS:{newName:"HTTPS",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$SSL_KeyRelativePath:{newName:"SSL_KeyRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$SSL_CertificateRelativePath:{newName:"SSL_CertificateRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$useCORS:{newName:"useCORS",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$proxy:{newName:"proxy",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$openInBrowsers:{newName:"openInBrowsers",type:n.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$browserSyncUserInterface:{newName:"browserSyncUserInterface",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$customPort:{newName:"customPort",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,maximalValue:65536},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$periodBetweenFileUpdatingAndBrowserReloading__seconds:{newName:"periodBetweenFileUpdatingAndBrowserReloading__seconds",type:Number,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.anyRealNumber}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$outputFileChangeDetection:{newName:"outputFileChangeDetection",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$browserTabWillBeReloadedSoon:{newName:"browserTabWillBeReloadedSoon",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$browsersyncConnection:{newName:"browsersyncConnection",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}(s||(s={})),t.default=s},7927(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3554)),r=i(6272),o=i(5480),a=n(i(8524));class l{static localization=a.default;static normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:t,hasSelectiveExecutionBeenDeclared:i,selectedBrowserLiveReloadingSetupID:n}){let a;if((0,r.isNotUndefined)(n))a=e.setups[n],(0,r.isUndefined)(a)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.InvalidParameterValueError({customMessage:l.localization.generateUndefinedBrowserLiveReloadingSetupID_Message({selectedBrowserLiveReloadingSetupID:n,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:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.rootDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ignoredFilesAndDirectoriesRelativePaths:a.localServer.ignoredFilesAndDirectoriesRelativePaths??[],...(0,r.isNotUndefined)(a.localServer.customPort)?{port:a.localServer.customPort}:null,startingFileNameWithExtension:a.localServer.customStartingFileNameWithExtension??s.default.setup.localServer.startingFileNameWithExtension,...(0,r.isNotUndefined)(a.localServer.HTTPS)?{HTTPS:{keyAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.HTTPS.SSL_KeyRelativePath],{alwaysForwardSlashSeparators:!0}),certificateAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,a.localServer.HTTPS.SSL_CertificateRelativePath],{alwaysForwardSlashSeparators:!0})}}:null,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},8524(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUndefinedBrowserLiveReloadingSetupID_Message:({selectedBrowserLiveReloadingSetupID:e,stringifiedAvailableBrowserLiveReloadingSetupsIDs:t})=>`The specified browser setup ID "${e}" is not defined in configuration file. Below setups IDs has been defined:\n`+t}},5364(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static initialAndShortenedCSS_ClassesCorrespondence=new Map}t.default=i},831(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931));t.default={revisioning:{mustExecute:({consumingProjectBuildingMode:e})=>e!==s.default.staticPreview&&e!==s.default.localDevelopment,contentHashPostfixSeparator:"--"}}},8596(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="yda.config.yaml"},802(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={processingOnDemand:{enabled:!1,fullInitialBuilding:!1},CSS_ClassesMinificationOnFly:{generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:!1}}}},2159(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(266)),o=n(i(6151)),a=n(i(802)),l=i(9851),d=n(i(4433)),u=i(6272),c=i(5480);class p{static normalize({commonSettings__fromFile__rawValid:e,consumingProjectRootDirectoryAbsolutePath:t,projectBuildingMode:i,actualSelectiveExecutionID:n,actualSelectiveExecution:d}){const g=c.ImprovedPath.replacePathSeparatorsToForwardSlashes(t),m=e.publicDirectoriesRelativePaths?.[i];let h;(0,u.isNotUndefined)(m)&&(h=c.ImprovedPath.joinPathSegments([g,m],{alwaysForwardSlashSeparators:!0}));const f=e.filesWatching;return{projectRootDirectoryAbsolutePath:g,projectBuildingMode:i,mustProvideIncrementalBuilding:(0,r.default)(i),...(0,u.isNotUndefined)(n)?{selectiveExecutionID:n}:null,...(0,u.isNotUndefined)(d)?{tasksAndSourceFilesSelection:{markupProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.markupProcessing],stylesProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.stylesProcessing],ECMA_ScriptLogicProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing],imagesProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.imagesProcessing],fontsProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.fontsProcessing],audiosProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.audiosProcessing],plainCopying:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.plainCopying],videosProcessing:d.tasksAndSourceFilesSelection[l.ProjectBuildingTasksIDsForConfigFile.videosProcessing]}}:null,filesWatching:{excludedFilesGlobSelectors:new Set([...o.default.relativePathsOfExcludeFiles,...f?.relativePathsOfExcludedFiles??[],...i===s.default.staticPreview||i===s.default.localDevelopment?f?.buildingModeDependent?.[i].relativePathsOfExcludedFiles??[]:[]].map(e=>c.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0}))),excludedDirectoriesGlobSelectors:new Set([...o.default.relativePathsOfExcludeDirectories,...f?.relativePathsOfExcludeDirectories??[],...i===s.default.staticPreview||i===s.default.localDevelopment?f?.buildingModeDependent?.[i].relativePathsOfExcludeDirectories??[]:[]].map(e=>c.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0})})))},browserLiveReloadingSetupID:d?.browserLiveReloadingSetupID,mustGenerateOutputPackageJSON:!0===d?.distributablePackageJSON_Generating,dockerSetupID:d?.dockerSetupID,actualPublicDirectoryAbsolutePath:h,processingOnDemand:{enabled:d?.processingOnDemand?.enabled??e.processingOnDemand?.enabled??a.default.processingOnDemand.enabled,fullInitialBuilding:d?.processingOnDemand?.fullInitialBuilding??e.processingOnDemand?.fullInitialBuilding??a.default.processingOnDemand.fullInitialBuilding},CSS_ClassesMinificationOnFly:p.normalizeCSS_ClassesMinificationOnFlySettings({CSS_ClassesMinificationOnFlySettings__fromFile__rawValid:e.CSS_ClassesShorteningOnFly,projectBuildingMode:i,actualSelectiveExecutionID:n,consumingProjectRootDirectoryAbsolutePath:t})}}static normalizeCSS_ClassesMinificationOnFlySettings({CSS_ClassesMinificationOnFlySettings__fromFile__rawValid:e,projectBuildingMode:t,actualSelectiveExecutionID:i,consumingProjectRootDirectoryAbsolutePath:n}){if((0,u.isUndefined)(e))return{enabled:!1,CSS_ClassesRegularExpressions:new Set,forbiddenMinifiedCSS_ClassesNames:new Set,ignoredCSS_Classes:new Set,generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:!1,ignoredInitialCSS_Classes:new Set}};const s=new Set((0,u.isString)(e.CSS_ClassesPrefixesDefaultSeparators)?[e.CSS_ClassesPrefixesDefaultSeparators]:e.CSS_ClassesPrefixesDefaultSeparators),r=[];for(const t of e.pathsOfPartialSetupFilesRelativeToProjectRootDirectory??[])r.push(c.ObjectDataFilesProcessor.processFile({filePath:c.ImprovedPath.joinPathSegments([n,t]),schema:c.ObjectDataFilesProcessor.SupportedSchemas.YAML,synchronously:!0,validDataSpecification:{nameForLogging:t,subtype:u.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:d.default.PropertiesSpecification.CSS_ClassesMinificationOnFly.partial}}));return{enabled:!0===e.enabledOn.projectBuildingModes[t]&&((0,u.isUndefined)(i)||(0,u.isUndefined)(e.enabledOn.selectiveExecutions)||!0===e.enabledOn.selectiveExecutions[i]),CSS_ClassesRegularExpressions:new Set(e.CSS_ClassesPrefixes.concat(r.flatMap(e=>e.CSS_ClassesPrefixes)).map(e=>{let t,i=[];(0,u.isString)(e)?t=e:(t=e.prefix,i=(0,u.isString)(e.separators)?[e.separators]:e.separators),0===i.length&&(i=Array.from(s));const n=i.map(e=>Array.from(e)[0]);return new RegExp([`^(?:(?:${t}$)|`,`(?:${t}(?:${i.join("|")})(?!${n.join("|")}).+?$))`].join(""),"u")})),forbiddenMinifiedCSS_ClassesNames:new Set([...e.forbiddenShortenedCSS_ClassesNames??[],...r.flatMap(e=>e.forbiddenShortenedCSS_ClassesNames??[])]),ignoredCSS_Classes:new Set([...e.ignoredInitialCSS_Classes??[],...r.flatMap(e=>e.ignoredInitialCSS_Classes??[])]),generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{enabled:e.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets?.enabled??a.default.CSS_ClassesMinificationOnFly.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets.enabled,ignoredInitialCSS_Classes:new Set(e.generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets?.ignoredInitialCSS_Classes??[])}}}}t.default=p},283(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=i(6272),o=i(5480),a=n(i(5688));class l{static localization=a.default;static resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:t,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:i,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:n,logging:{parentFileAbsolutePath:a,fileTypeForLogging__singularForm:d,fileTypeForLogging__pluralForm:u}}){const c=(0,r.explodeURI_PathToSegments)(e),p=c[0];if((0,r.isUndefined)(p))return null;if(p.startsWith(s.default)){const s=t.get(p);if((0,r.isUndefined)(s))return r.Logger.logWarning(l.localization.generateUnknownResourcesGroupAliasWarningLog({resourcesGroupAlias:p,resourceFileType__singularForm:d,resourcePointer:e,resourceFileType__pluralForm:u,parentFileAbsolutePath:a,formattedResourcesGroupsAliasesAndCorrespondingAbsolutePathsMap:Array.from(t.entries()).map(([e,t])=>` ● ${e}: ${t}`).join("\n")})),null;const g=o.ImprovedPath.joinPathSegments([s,...c.slice(1)],{alwaysForwardSlashSeparators:!0}),m=(0,r.extractLastExtensionOfFileName)({targetPath:g,withLeadingDot:!1});if((0,r.isNull)(m)||!i.has(m)){const t=Array.from(i).map(e=>(0,r.getURI_PartWithoutFragment)((0,r.appendLastFileNameExtension)({targetPath:g,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}))),s=(0,r.filterMap)(n,e=>t.includes(e));return 0===s.size?(r.Logger.logWarning(l.localization.generateNoMatchesForResourceReferenceWihtoutExplicitSupportedFileNameExtensionWarningLog({resourcePointer:e,formattedListOfCheckedAbsolutePathsOfTargetFiles:t.map(e=>` ● ${e}`).join("\n"),resourceFileType__singularForm:d})),null):(0,r.appendFragmentToURI)({targetURI:Array.from(s.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,r.getURI_Fragment)({targetURI:g,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const h=n.get(g);return(0,r.isUndefined)(h)?(r.Logger.logWarning(l.localization.generateFileNotFoundForResolvedResourceReferenceWarningLog({resourcePointer:e,resourceFileType__singularForm:d,resolvedFileAbsolutePath:g})),null):h}return null}}t.default=l},9269(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3704)),r=n(i(283)),o=n(i(4640)),a=i(6272),l=i(5480);class d extends r.default{static aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap=new Map;static imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static resolve({CSS_Code:e,absolutePathOfOutputDirectoryForParentFile:t,projectBuildingMasterConfigRepresentative:i,logging:{parentFileAbsolutePath:n}}){const r=i.actualPublicDirectoryAbsolutePath,l=i.plainCopyingSettingsRepresentative,u=i.imagesProcessingSettingsRepresentative;return 0===d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,a.createMapBasedOnOtherMap)(i.imagesProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),(0,a.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:e,regularExpressionWithCapturingGroups:/url\(["']?(?<possiblyAliasedPath>.+?)["']?\);?/gu,replacer:e=>{const i=e.namedCapturingGroups.possiblyAliasedPath;let c=d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,a.isNotNull)(c))return`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`;const p=(0,a.explodeURI_PathToSegments)(i),g=p[0];return(0,a.isNonEmptyString)(g)?(0,a.isNotUndefined)(l)&&g.startsWith(s.default)?(c=l.getSourceFileAbsolutePathByAliasedPath(p),(0,a.isNull)(c)?null:(d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,c),`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`)):(0,a.isUndefined)(u)?null:(c=d.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:d.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:u.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:o.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,logging:{fileTypeForLogging__singularForm:u.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:u.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,parentFileAbsolutePath:n}}),(0,a.isNull)(c)?null:(d.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,c),`url("${this.buildResourceFileFinalPath({resolvedOutputAbsolutePathOfResourceFile:c,absolutePathOfOutputDirectoryForParentFile:t,publicDirectoryAbsolutePath:r})}");`)):null}})}static buildResourceFileFinalPath({publicDirectoryAbsolutePath:e,resolvedOutputAbsolutePathOfResourceFile:t,absolutePathOfOutputDirectoryForParentFile:i}){return(0,a.isNotUndefined)(e)?`/${l.ImprovedPath.computeRelativePath({basePath:e,comparedPath:t,alwaysForwardSlashSeparators:!0})}`:l.ImprovedPath.computeRelativePath({basePath:i,comparedPath:t,alwaysForwardSlashSeparators:!0})}}t.default=d},5688(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={generateUnknownResourcesGroupAliasWarningLog:({resourceFileType__pluralForm:e,resourcesGroupAlias:t,resourceFileType__singularForm:i,resourcePointer:n,parentFileAbsolutePath:s,formattedResourcesGroupsAliasesAndCorrespondingAbsolutePathsMap:r})=>({title:"Unknown Resources Group Alias in Resource Pointer",description:`Unknown ${e} resources group alias "${t}" found in ${i} resource pointer "${n}" at the file "${s}". The ${e} resources group alias be the one of the following declared ones: \n`+r}),generateNoMatchesForResourceReferenceWihtoutExplicitSupportedFileNameExtensionWarningLog:({resourceFileType__singularForm:e,resourcePointer:t,formattedListOfCheckedAbsolutePathsOfTargetFiles:i})=>({title:"Unknown Resource Pointer",description:`No file found for ${e} resource pointer "${t}" which has no explicit last file name extension among the supported ones. Tried to search the file at paths with all supported files names extensions:\n`+i}),generateFileNotFoundForResolvedResourceReferenceWarningLog:({resourceFileType__singularForm:e,resourcePointer:t,resolvedFileAbsolutePath:i})=>({title:"Unknown Resource Pointer",description:`The ${e} resource pointer "${t}" has been resolved to absolute path "${i}", but no corresponding output file has been found for this path.`})}},689(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(446)),o=n(i(523)),a=i(6272);var l;!function(e){let t;!function(e){let t,i;!function(e){e.generate=function({assetTypeSpecificPropertiesSpecification:e={}}={}){return{$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$periodBetweenFileUpdatingAndRebuildingStarting__seconds:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,numbersSet:a.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},...e}}}}}(t=e.Common||(e.Common={})),function(e){e.generate=function({assetTypeSpecificPropertiesSpecification:e={assetsGroupIndependent:{},assetsGroupDependent:{}}}={}){return{$assetsGroups:{newName:"assetsGroups",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},...e.assetsGroupIndependent,$buildingModeDependent:{newName:"buildingModeDependent",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,minimalEntriesCount:1,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},...e.assetsGroupDependent}}}}}}}}}(i=e.AssetsGroups||(e.AssetsGroups={}))}(t=e.PropertiesSpecification||(e.PropertiesSpecification={})),e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$periodBetweenFileUpdatingAndRebuildingStarting__seconds:{newName:"periodBetweenFileUpdatingAndRebuildingStarting__seconds",type:Number,numbersSet:a.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}},$assetsGroups:{newName:"assetsGroups",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesTopDirectoryPathAliasForReferencingFromHTML:{newName:"sourceFilesTopDirectoryPathAliasForReferencingFromHTML",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$buildingModeDependent:{newName:"buildingModeDependent",type:a.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,minimalEntriesCount:1,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification}}}}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}(l||(l={})),t.default=l},9851(e,t){var i;t.ProjectBuildingTasksIDsForConfigFile=void 0,function(e){e.markupProcessing="markupProcessing",e.stylesProcessing="stylesProcessing",e.ECMA_ScriptLogicProcessing="ECMA_ScriptLogicProcessing",e.imagesProcessing="imagesProcessing",e.fontsProcessing="fontsProcessing",e.audiosProcessing="audiosProcessing",e.videosProcessing="videosProcessing",e.browserLiveReloading="browserLiveReloading",e.plainCopying="plainCopying",e.filesWatching="filesWatching",e.outputPackageJSON_Generating="outputPackageJSON_Generating",e.dockerLaunching="dockerLaunching"}(i||(t.ProjectBuildingTasksIDsForConfigFile=i={}))},4433(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=i(9851),o=i(6272);var a;!function(e){let t;e.propertiesSpecification={$selectiveExecutions:{newName:"selectiveExecutions",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$tasksAndSourceFilesSelection:{newName:"tasksAndSourceFilesSelection",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$markupProcessing","$stylesProcessing","$ECMA_ScriptLogicProcessing","$imagesProcessing","$fontsProcessing","$audiosProcessing","$videosProcessing","$plainCopying","$browserLiveReloading"],keysRenamings:{$markupProcessing:r.ProjectBuildingTasksIDsForConfigFile.markupProcessing,$stylesProcessing:r.ProjectBuildingTasksIDsForConfigFile.stylesProcessing,$ECMA_ScriptLogicProcessing:r.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing,$imagesProcessing:r.ProjectBuildingTasksIDsForConfigFile.imagesProcessing,$fontsProcessing:r.ProjectBuildingTasksIDsForConfigFile.fontsProcessing,$audiosProcessing:r.ProjectBuildingTasksIDsForConfigFile.audiosProcessing,$videosProcessing:r.ProjectBuildingTasksIDsForConfigFile.videosProcessing,$plainCopying:r.ProjectBuildingTasksIDsForConfigFile.plainCopying,$browserLiveReloading:r.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading},value:{type:Array,minimalElementsCount:1,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}},$browserLiveReloadingSetupID:{newName:"browserLiveReloadingSetupID",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$dockerSetupID:{newName:"dockerSetupID",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$distributablePackageJSON_Generating:{newName:"distributablePackageJSON_Generating",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$processingOnDemand:{newName:"processingOnDemand",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fullInitialBuilding:{newName:"fullInitialBuilding",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},$publicDirectoriesRelativePaths:{newName:"publicDirectoriesRelativePaths",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$localDevelopment","$testing","$staging","$production"],keysRenamings:{$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:String,minimalCharactersCount:1}},$CSS_ClassesShorteningOnFly:{newName:"CSS_ClassesShorteningOnFly",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enableOn:{newName:"enabledOn",type:Object,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,properties:{$projectBuildingModes:{newName:"projectBuildingModes",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Boolean}},$selectiveExecutions:{newName:"selectiveExecutions",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Boolean}}}},$CSS_ClassesPrefixesDefaultSeparators:{newName:"CSS_ClassesPrefixesDefaultSeparators",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!0,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$CSS_ClassesPrefixes:{newName:"CSS_ClassesPrefixes",type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,alternatives:[{type:String,minimalCharactersCount:1},{type:Object,properties:{$prefix:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$separator:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}]}},$forbidShortenedCSS_ClassesNames:{newName:"forbiddenShortenedCSS_ClassesNames",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:{newName:"generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}},$pathsOfPartialSetupFilesRelativeToProjectRootDirectory:{newName:"pathsOfPartialSetupFilesRelativeToProjectRootDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}},$filesWatching:{newName:"filesWatching",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$excludeFilesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludedFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$excludeDirectoriesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludeDirectories",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,allowedKeys:["$staticPreview","$localDevelopment"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment},value:{type:Object,properties:{$excludeFilesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludedFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}},$excludeDirectoriesWithPathsRelativeToProjectRootDirectory:{newName:"relativePathsOfExcludeDirectories",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,element:{type:String,minimalCharactersCount:1}}}}}}},$processingOnDemand:{newName:"processingOnDemand",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enabled",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fullInitialBuilding:{newName:"fullInitialBuilding",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}},function(e){let t;!function(e){e.partial={$CSS_ClassesPrefixesDefaultSeparators:{newName:"CSS_ClassesPrefixesDefaultSeparators",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!1,areNullElementsForbidden:!1,minimalElementsCount:0,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$CSS_ClassesPrefixes:{newName:"CSS_ClassesPrefixes",type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,alternatives:[{type:String,minimalCharactersCount:1},{type:Object,properties:{$prefix:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$separator:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}]}},$forbidShortenedCSS_ClassesNames:{newName:"forbiddenShortenedCSS_ClassesNames",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$ignoreInitialCSS_Classes:{newName:"ignoredInitialCSS_Classes",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}(t=e.CSS_ClassesMinificationOnFly||(e.CSS_ClassesMinificationOnFly={}))}(t=e.PropertiesSpecification||(e.PropertiesSpecification={}))}(a||(a={})),t.default=a},1579(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.propertiesSpecification={$presetFileRelativePath:{newName:"presetFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}(i||(i={})),t.default=i},9747(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={$segmentsWhichMustBeRemoved:{newName:"segmentsWhichMustBeRemoved",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$segmentsWhichLastDuplicatesMustBeRemoved:{newName:"segmentsWhichLastDuplicatesMustBeRemoved",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved:{newName:"segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved",type:Number,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}}(s||(s={})),t.default=s},446(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9747));var r;!function(e){e.propertiesSpecification={$outputTopDirectoryRelativePath:{newName:"outputTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$outputPathTransformations:{newName:"outputPathTransformations",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:s.default.propertiesSpecification}}}(r||(r={})),t.default=r},523(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.propertiesSpecification={$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$contentHashPostfixSeparator:{newName:"contentHashPostfixSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}}(i||(i={})),t.default=i},7534(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(446)),o=i(6272);var a;!function(e){e.generatePropertiesSpecification=function({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:e={},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:t}){return{$entryPointsGroups:{newName:"entryPointsGroups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$sourceFilesTopDirectoryRelativePath:{newName:"sourceFilesTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$sourceFilesSelection:{newName:"sourceFilesSelection",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots:{newName:"onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots:{newName:"penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>(0,o.isNotUndefined)(e.$onlyWithPenultimateFileNamesExtensions),descriptionForLogging:"`$onlyWithPenultimateFileNamesExtensions` has been specified"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$mustIgnoreAllSubdirectories:{newName:"mustIgnoreAllSubdirectories",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$namesOfExcludeSubdirectories:{newName:"namesOfExcludeSubdirectories",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>!0===e.$mustIgnoreAllSubdirectories,descriptionForLogging:"`$mustIgnoreAllSubdirectories` has been specified with true"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$prefixesOfExcludedSubdirectories:{newName:"prefixesOfExcludedSubdirectories",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e})=>!0===e.$mustIgnoreAllSubdirectories,descriptionForLogging:"`$mustIgnoreAllSubdirectories` has been specified with true"},isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},{type:String,minimalCharactersCount:1}]},$prefixesOfExcludeFiles:{newName:"prefixesOfExcludeFiles",type:o.RawObjectDataProcessor.ValuesTypesIDs.polymorphic,isUndefinedForbidden:!1,isNullForbidden:!0,alternatives:[{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String}},{type:String,minimalCharactersCount:1}]}}},$sourceFilesTopDirectoryPathAliasName:{newName:"sourceFilesTopDirectoryPathAliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$singleEntryPointSourceFileRelativePath:{newName:"singleEntryPointSourceFileRelativePath",type:String,undefinedForbiddenIf:{predicate:({rawData__currentObjectDepth:e})=>!(0,o.isNonEmptyString)(e.$sourceFilesTopDirectoryRelativePath),descriptionForLogging:"`$sourceFilesTopDirectoryRelativePath` has not been specified"},isNullForbidden:!0,minimalCharactersCount:1},$singleEntryPointSourceFilePathAliasName:{newName:"singleEntryPointSourceFilePathAliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},...e,$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{...r.default.propertiesSpecification,...t}}}}}}}}}(a||(a={})),t.default=a},2061(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(831)),o=n(i(7700)),a=n(i(8527)),l=i(6272),d=i(5480);t.default=class{assetsGroupsIDsSelection;supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots;consumingProjectRootDirectoryAbsolutePath;consumingProjectBuildingMode;constructor(e){this.assetsGroupsIDsSelection=e.assetsGroupsIDsSelection??[],this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots=e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,this.consumingProjectRootDirectoryAbsolutePath=e.consumingProjectRootDirectoryAbsolutePath,this.consumingProjectBuildingMode=e.consumingProjectBuildingMode}createNormalizedAssetsGroupsSettings(e,t){const i=new Map;if((0,l.isUndefined)(e))return i;for(const[n,u]of Object.entries(e)){const e=u.buildingModeDependent[this.consumingProjectBuildingMode];if((0,l.isUndefined)(e))continue;const c=d.ImprovedPath.extractDirectoryFromFilePath({targetPath:d.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,u.sourceFilesTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!0,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1},alwaysForwardSlashSeparators:!0}),p=s.default+(u.referenceCustomAliasName??n),g=d.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),m={ID:n,sourceFilesTopDirectoryAbsolutePath:c,sourceFilesGlobSelector:d.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:c,fileNamesExtensions:this.supportedEntryPointsSourceFilenameExtensionsWithoutLeadingDots}),sourceFilesTopDirectoryPathAliasName:p,outputFilesTopDirectoryAbsolutePath:g,outputPathTransformations:o.default.normalize(e.outputPathTransformations),revisioning:a.default.normalize({revisioningSettings__rawValid:e.revisioning,revisioningSettings__default:{mustExecute:r.default.revisioning.mustExecute,contentHashPostfixSeparator:r.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode})};i.set(n,t(m,u))}return i}}},7700(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);t.default=class{static normalize(e){return{segmentsWhichMustBeRemoved:e?.segmentsWhichMustBeRemoved??[],segmentsWhichLastDuplicatesMustBeRemoved:e?.segmentsWhichLastDuplicatesMustBeRemoved??[],...(0,n.isNotUndefined)(e?.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved)?{segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved:e.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved}:null}}}},8527(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static normalize({revisioningSettings__rawValid:e,revisioningSettings__default:t,consumingProjectBuildingMode:i}){return{mustExecute:!0!==e?.disable&&t.mustExecute({consumingProjectBuildingMode:i}),contentHashPostfixSeparator:e?.contentHashPostfixSeparator??t.contentHashPostfixSeparator}}}},2274(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7700)),r=i(6272),o=i(5480);t.default=class{projectBuildingCommonSettings__normalized;entryPointsGroupsIDsSelection;constructor(e){this.projectBuildingCommonSettings__normalized=e.projectBuildingCommonSettings__normalized,(0,r.isNonEmptyArray)(e.entryPointsGroupsIDsSelection)&&(this.entryPointsGroupsIDsSelection=e.entryPointsGroupsIDsSelection)}createNormalizedEntryPointsGroupsSettings(e,t){const i=new Map;if((0,r.isUndefined)(e))return i;for(const[n,a]of Object.entries(e)){if((0,r.isNotUndefined)(this.entryPointsGroupsIDsSelection)&&!this.entryPointsGroupsIDsSelection.includes(n))continue;const e=a.buildingModeDependent[this.consumingProjectBuildingMode];if((0,r.isUndefined)(e))continue;let l;const d=[];let u,c;if("singleEntryPointSourceFileRelativePath"in a){u=!0;const e=o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,a.singleEntryPointSourceFileRelativePath],{alwaysForwardSlashSeparators:!0});d.push(e),l=o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0}}),c=a.singleEntryPointSourceFilePathAliasName}else u=!1,l=o.ImprovedPath.extractDirectoryFromFilePath({targetPath:o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,a.sourceFilesTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!0,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!0,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}}),d.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsGroupSourceFilesTopDirectoryAbsolutePath:l,sourceFilesSelection:a.sourceFilesSelection})),c=a.sourceFilesTopDirectoryPathAliasName;const p={ID:n,sourceFilesTopDirectoryAbsolutePath:l,sourceFilesTopDirectoryPathOrSingleFileAliasName:c??n,sourceFilesGlobSelectors:d,isSingeEntryPointGroup:u,outputFilesTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),outputPathTransformations:s.default.normalize(e.outputPathTransformations)};i.set(n,t(p,a))}return i}getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({entryPointsGroupSourceFilesTopDirectoryAbsolutePath:e,sourceFilesSelection:{onlyWithPenultimateFileNamesExtensions__withOrWithoutLeadingDots:t=[],mustIgnoreAllSubdirectories:i=!1,...n}={}}){const s=[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,penultimateFileNamesExtensions:Array.isArray(t)?t:[t]})];let a,l,d,u;return a=Array.isArray(n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots)?n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots:(0,r.isString)(n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots)?[n.penultimateNamesExtensionsOfExcludedFiles__withOrWithoutLeadingDots]:[],a.length>0&&s.push(o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector({targetDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,penultimateFileNamesExtensions:a})),l=Array.isArray(n.prefixesOfExcludeFiles)?n.prefixesOfExcludeFiles:(0,r.isString)(n.prefixesOfExcludeFiles)?[n.prefixesOfExcludeFiles]:[],l.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,filesNamesPrefixes:l,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),i?(s.push(o.ImprovedGlob.buildAllFilesInCurrentDirectoryButNotBelowGlobSelector({basicDirectoryPath:e,fileNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),s):(d=Array.isArray(n.namesOfExcludeSubdirectories)?n.namesOfExcludeSubdirectories:(0,r.isString)(n.namesOfExcludeSubdirectories)?[n.namesOfExcludeSubdirectories]:[],d.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector({basicDirectoryPath:e,subdirectoriesNames:d,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),u=Array.isArray(n.prefixesOfExcludedSubdirectories)?n.prefixesOfExcludedSubdirectories:(0,r.isString)(n.prefixesOfExcludedSubdirectories)?[n.prefixesOfExcludedSubdirectories]:[],u.length>0&&s.push(o.ImprovedGlob.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector({basicDirectoryPath:e,subdirectoriesPrefixes:u,filesNamesExtensions:this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots})),s)}get consumingProjectRootDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath}get consumingProjectBuildingMode(){return this.projectBuildingCommonSettings__normalized.projectBuildingMode}get actualPublicDirectoryAbsolutePath(){return this.projectBuildingCommonSettings__normalized.actualPublicDirectoryAbsolutePath}}},749(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues"},8931(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},3704(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="$"},6300(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="@"},266(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e===s.default.staticPreview||e===s.default.localDevelopment};const s=n(i(8931))},8077(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);t.default=class{assetsProcessingCommonSettings;loggingSettings;relevantAssetsGroupsSettingsMappedByGroupID;relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName;hasAtLeastOneActualAssetsGroup;actualAssetsSourceFilesAbsolutePaths;actualOutputFilesGlobSelectors;supportedSourceFilesNamesExtensionsWithoutLeadingDots;projectBuildingMasterConfigRepresentative;static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:e,relevantAssetsGroupNormalizedSettings:t}){let i=s.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,s.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:s.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})})],{alwaysForwardSlashSeparators:!0});if((0,n.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=(0,n.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.outputPathTransformations.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),(0,n.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=(0,n.explodeURI_PathToSegments)(i);for(const s of t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,n.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===s);(0,n.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,n.isNumber)(t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,n.explodeURI_PathToSegments)(i).slice(0,-t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}constructor({projectBuildingMasterConfigRepresentative:e,assetsProcessingCommonSettings:t,loggingSettings:i,relevantAssetsGroupsSettingsMappedByGroupID:n}){this.projectBuildingMasterConfigRepresentative=e,this.assetsProcessingCommonSettings=t,this.loggingSettings=i,this.relevantAssetsGroupsSettingsMappedByGroupID=n,this.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName=new Map(Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>[e.sourceFilesTopDirectoryPathAliasName,e])),this.hasAtLeastOneActualAssetsGroup=this.relevantAssetsGroupsSettingsMappedByGroupID.size>0,this.actualAssetsSourceFilesAbsolutePaths=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).flatMap(e=>s.ImprovedGlob.getFilesAbsolutePathsSynchronously([e.sourceFilesGlobSelector])),this.supportedSourceFilesNamesExtensionsWithoutLeadingDots=this.assetsProcessingCommonSettings.supportedSourceFilesNamesExtensionsWithoutLeadingDots,this.actualOutputFilesGlobSelectors=Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()).map(e=>s.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.supportedSourceFilesNamesExtensionsWithoutLeadingDots}))}getAssetsNormalizedSettingsActualForTargetSourceFile(e){return(0,n.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(Array.from(this.relevantAssetsGroupsSettingsMappedByGroupID.values()),t=>s.ImprovedGlob.isFilePathMatchingWithGlobSelector({filePath:e,globSelector:t.sourceFilesGlobSelector}),{mustThrowErrorIfElementNotFoundOrMatchesAreMultiple:!0})}}},4912(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1239)),r=i(6272),o=i(5480);class a extends s.default{static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t){let i=t.isSingeEntryPointGroup?t.outputFilesTopDirectoryAbsolutePath:o.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,o.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})})],{alwaysForwardSlashSeparators:!0});if((0,r.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichMustBeRemoved)&&(i=(0,r.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.outputPathTransformations.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),(0,r.isNonEmptyArray)(t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)){const e=(0,r.explodeURI_PathToSegments)(i);for(const n of t.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,r.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===n);(0,r.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,r.isNumber)(t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,r.explodeURI_PathToSegments)(i).slice(0,-t.outputPathTransformations.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values())if(o.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}return(0,r.isUndefined)(t)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.UnexpectedEventError(`No output entry points group has been fond for file of the path:\n${e}`),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}get hasAtLeastOneRelevantEntryPointsGroup(){return this.relevantEntryPointsGroupsSettings.size>0}}t.default=a},8820(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);t.default=class{static transform(e,t){let i=e;if(t.segmentsWhichMustBeRemoved.length>0&&(i=(0,n.removeSpecificSegmentsFromURI_Path)({targetPath:i,targetSegments:t.segmentsWhichMustBeRemoved,mustOutputAlwaysWithForwardSlashesPathSeparators:!0})),t.segmentsWhichLastDuplicatesMustBeRemoved.length>0){const e=(0,n.explodeURI_PathToSegments)(i);for(const s of t.segmentsWhichLastDuplicatesMustBeRemoved){const t=(0,n.getIndexesOfSatisfiesThePredicateArrayElements)(e,e=>e===s);(0,n.removeArrayElementsByIndexes)({targetArray:e,indexes:t[t.length-1],mutably:!0}),i=e.join("/")}}return(0,n.isNumber)(t.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved,{mustConsiderNaN_AsNumber:!0})&&(i=(0,n.explodeURI_PathToSegments)(i).slice(0,-t.segmentsCountRelativeToGroupTopDirectoryWhichMustBeRemoved).join("/")),i}}},1239(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=(i(6272),i(5480));t.default=class{projectBuildingMasterConfigRepresentative;cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths;constructor(e){this.projectBuildingMasterConfigRepresentative=e}isEntryPoint(e){return s.default.isAbsolute(e)||(e=r.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),Array.from(this.relevantEntryPointsGroupsSettings.values()).some(t=>t.isSingeEntryPointGroup?e===t.sourceFilesGlobSelectors[0]:r.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:t.sourceFilesGlobSelectors}))}get actualOutputFilesGlobSelectors(){return Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>r.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.outputFilesTopDirectoryAbsolutePath,fileNamesExtensions:this.sourceCodeProcessingCommonSettings.supportedOutputFileNameExtensionsWithoutLeadingDots}))}get initialRelevantEntryPointsSourceFilesAbsolutePaths(){return this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths??(this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths=Array.from(this.relevantEntryPointsGroupsSettings.values()).flatMap(e=>r.ImprovedGlob.getFilesAbsolutePathsSynchronously(e.sourceFilesGlobSelectors,{alwaysForwardSlashSeparators:!0})))}}},1815(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9610)),r=n(i(7818)),o=i(6272),a=i(5480),l=n(i(8661));class d{static SUBSEQUENT_ERROR_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS=3;projectBuildingMasterConfigRepresentative;TASK_TITLE_FOR_LOGGING;processedFilesCountDuringCurrentRun=0;waitingForErrorToastNotificationsWillBePermittedAgain=null;isErrorToastNotificationPermitted=!0;constructor({projectBuildingMasterConfigRepresentative:e,taskTitleForLogging:t}){this.projectBuildingMasterConfigRepresentative=e,this.TASK_TITLE_FOR_LOGGING=t}handleErrorIfItWillOccur(){return(0,s.default)({errorHandler:e=>{const t=`${this.TASK_TITLE_FOR_LOGGING}, Error Occurred`;o.Logger.logErrorLikeMessage({title:t,description:e.message,additionalData:{...JSON.parse(JSON.stringify(e)),stdout:"(OMITTED)",stderr:"(OMITTED)"}}),clearTimeout((0,o.nullToUndefined)(this.waitingForErrorToastNotificationsWillBePermittedAgain)),this.isErrorToastNotificationPermitted&&(l.default.notify({title:t,message:"Please check your terminal for the details."}),this.isErrorToastNotificationPermitted=!1),this.waitingForErrorToastNotificationsWillBePermittedAgain=setTimeout(()=>{this.isErrorToastNotificationPermitted=!0},(0,o.secondsToMilliseconds)(d.SUBSEQUENT_ERROR_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS))}})}logInputFilesIfMust(){return r.default.modify({onStreamStartedEventCommonHandler:async e=>(o.Logger.logGeneric({mustOutputIf:this.logging.pathsOfFilesWillBeProcessed,badge:!1,title:"⦅ ➞□ Input ⦆",description:`[ ${this.TASK_TITLE_FOR_LOGGING} ] `+a.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),compactLayout:!0}),this.processedFilesCountDuringCurrentRun++,Promise.resolve(r.default.CompletionSignals.PASSING_ON)),onStreamEndedEventHandler:async()=>(o.Logger.logGeneric({mustOutputIf:this.logging.quantityOfFilesWillBeProcessed,badge:!1,title:this.TASK_TITLE_FOR_LOGGING,description:`${this.processedFilesCountDuringCurrentRun} files will be processed`,compactLayout:!0}),this.processedFilesCountDuringCurrentRun=0,Promise.resolve())})}logOutputFilesIfMust(){return r.default.modify({onStreamStartedEventCommonHandler:async e=>(o.Logger.logSuccess({mustOutputIf:this.logging.pathsOfFilesWillBeProcessed,badge:!1,title:"⦅ □➞ Output ⦆",description:`[ ${this.TASK_TITLE_FOR_LOGGING} ] `+a.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),compactLayout:!0}),this.processedFilesCountDuringCurrentRun++,Promise.resolve(r.default.CompletionSignals.PASSING_ON)),onStreamEndedEventHandler:async()=>(o.Logger.logSuccess({mustOutputIf:this.logging.quantityOfFilesWillBeProcessed,badge:!1,title:this.TASK_TITLE_FOR_LOGGING,description:`${this.processedFilesCountDuringCurrentRun} file(s) has been processed`,compactLayout:!0}),this.processedFilesCountDuringCurrentRun=0,Promise.resolve())})}}t.default=d},6274(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(919)),o=n(i(4520)),a=n(i(4724)),l=n(i(7818)),d=i(3284),u=n(i(2853)),c=n(i(9896)),p=i(6272),g=i(5480);class m extends s.default{static CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE="checkingIssues";static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING;specificationOfFileContentWithCachedResultsOfSourceFilesChecking;sourceFilesCheckingCachedResults;targetFilesGlobSelectors;DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT=2;DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT=1;logging;isFirstGulpPipelinePass=!0;relativePathsOfFoundFilesMentionedInCacheFile=new Set;constructor(e){if(super(e),this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING=g.ImprovedPath.joinPathSegments([r.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,e.sourceFilesCachedCheckingResults.fileNameWithExtension],{alwaysForwardSlashSeparators:!0}),this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking=e.sourceFilesCachedCheckingResults.contentSpecification,c.default.existsSync(this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING))try{this.sourceFilesCheckingCachedResults=g.ObjectDataFilesProcessor.processFile({filePath:this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING,validDataSpecification:this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking,synchronously:!0})}catch(t){p.Logger.logError({mustOutputIf:!1,errorType:p.InvalidExternalDataError.NAME,title:p.InvalidExternalDataError.localization.defaultTitle,description:p.InvalidExternalDataError.localization.generateDescription({mentionToExpectedData:this.specificationOfFileContentWithCachedResultsOfSourceFilesChecking.nameForLogging}),occurrenceLocation:"LinterLikeTaskExecutor.constructor(constructorParameter)",caughtError:t}),this.sourceFilesCheckingCachedResults=e.sourceFilesCachedCheckingResults.emptyValue}else this.sourceFilesCheckingCachedResults=e.sourceFilesCachedCheckingResults.emptyValue;this.targetFilesGlobSelectors=e.targetFilesGlobSelectors,this.logging=e.logging}checkFiles(e){return 0===e.length?(0,u.default)():()=>o.default.src((0,p.readonlyArrayToMutableOne)(e),{read:!1}).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe(l.default.modify({onStreamStartedEventCommonHandler:this.registerFoundFileMentionedInCache.bind(this)})).pipe((0,a.default)(this.areUpToDateCheckingResultsForSpecificFilePresentsInCache.bind(this),l.default.modify({onStreamStartedEventCommonHandler:this.pickCheckingResultsForSpecificFileFromCache.bind(this)}),(0,d.obj)(l.default.modify({onStreamStartedEventCommonHandler:m.readVinylFileAndInitializeContentsField}),l.default.modify({onStreamStartedEventCommonHandler:this.logFileCheckingStartedEventIfMust.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.checkSingleFile.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.cacheFileCheckingResult.bind(this)}),l.default.modify({onStreamStartedEventCommonHandler:this.logNoIssuesFoundInFileEventIfMust.bind(this)})))).pipe(super.logOutputFilesIfMust()).pipe(l.default.modify({onStreamEndedEventHandler:async()=>(this.onStreamEnded(),Promise.resolve())}))}async registerFoundFileMentionedInCache(e){const t=g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative);return this.isFirstGulpPipelinePass&&(0,p.isNotUndefined)(this.sourceFilesCheckingCachedResults.files[t])&&this.relativePathsOfFoundFilesMentionedInCacheFile.add(t),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}areUpToDateCheckingResultsForSpecificFilePresentsInCache(e){return this.sourceFilesCheckingCachedResults.files[g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)]?.modificationDateTime__ISO_8601===e.stat?.mtime.toISOString()}async pickCheckingResultsForSpecificFileFromCache(e){const t=g.ImprovedPath.computeRelativePath({comparedPath:e.path,basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath});return e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=this.sourceFilesCheckingCachedResults.files[t]?.issues,Promise.resolve(l.default.CompletionSignals.PASSING_ON)}static async readVinylFileAndInitializeContentsField(e){return e.contents=c.default.readFileSync(e.path),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async logFileCheckingStartedEventIfMust(e){return p.Logger.logInfo({mustOutputIf:this.logging.checkingStart,title:`${this.TASK_TITLE_FOR_LOGGING}, file checking started...`,description:`Path: ${g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)}`}),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async cacheFileCheckingResult(e){const t=Array.isArray(e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE])?e[m.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]:[];return this.sourceFilesCheckingCachedResults.files[g.ImprovedPath.computeRelativePath({comparedPath:e.path,basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,alwaysForwardSlashSeparators:!0})]={issues:t,modificationDateTime__ISO_8601:e.stat?.mtime.toISOString()??(new Date).toISOString()},Promise.resolve(l.default.CompletionSignals.PASSING_ON)}async logNoIssuesFoundInFileEventIfMust(e){const t=Array.isArray(e.lintingResults)?e.lintingResults:[];return p.Logger.logSuccess({mustOutputIf:this.logging.completionWithoutIssues&&0===t.length,title:`${this.TASK_TITLE_FOR_LOGGING}, no issues found in the file`,description:`Path: ${g.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.relative)}`}),Promise.resolve(l.default.CompletionSignals.PASSING_ON)}reportCheckingIssues(){if(Object.values(this.sourceFilesCheckingCachedResults.files).some(e=>(0,p.isNotUndefined)(e)&&e.issues.length>0)){const e=[];for(const[t,i]of Object.entries(this.sourceFilesCheckingCachedResults.files))(0,p.isUndefined)(i)||0===i.issues.length||e.push(`■ ${t}: ${i.issues.length} issue(s)\n${this.formatIssuesOfSingleFile(i)}`);p.Logger.logErrorLikeMessage({title:`${this.TASK_TITLE_FOR_LOGGING}, issue(s) found`,description:`\n${e.join("\n\n")}`})}}onStreamEnded(){this.isFirstGulpPipelinePass&&(this.sourceFilesCheckingCachedResults.files=this.relativePathsOfFoundFilesMentionedInCacheFile.size>0?Array.from(Object.entries(this.sourceFilesCheckingCachedResults.files)).reduce((e,[t,i])=>(this.relativePathsOfFoundFilesMentionedInCacheFile.has(t)&&(e[t]=i),e),{}):this.sourceFilesCheckingCachedResults.files,this.relativePathsOfFoundFilesMentionedInCacheFile.clear(),this.isFirstGulpPipelinePass=!1),this.reportCheckingIssuesAndOutputCacheToFile()}reportCheckingIssuesAndOutputCacheToFile(){this.reportCheckingIssues(),g.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.ABSOLUTE_PATH_OF_FILE_WITH_CACHED_RESULTS_OF_SOURCE_FILES_CHECKING,content:JSON.stringify(this.sourceFilesCheckingCachedResults,null,2),synchronously:!0})}absolutePathsOfAddedOrUpdatedFiles=new Set;waitingForSubsequentFileWillBeAddedOrUpdatedTimer=null;WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_ADDED_OR_UPDATED_PERIOD__SECONDS=1;onFileHasBeenAddedOrUpdated(e){g.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})&&(clearTimeout((0,p.nullToUndefined)(this.waitingForSubsequentFileWillBeAddedOrUpdatedTimer)),this.absolutePathsOfAddedOrUpdatedFiles.add(e),this.waitingForSubsequentFileWillBeAddedOrUpdatedTimer=setTimeout(()=>{this.checkFiles(Array.from(this.absolutePathsOfAddedOrUpdatedFiles))(),this.absolutePathsOfAddedOrUpdatedFiles.clear()},(0,p.secondsToMilliseconds)(this.WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_ADDED_OR_UPDATED_PERIOD__SECONDS)))}relativePathsOfFilesToDelete=new Set;waitingForSubsequentFileWillBeDeletedTimer=null;static WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_DELETED_PERIOD__SECONDS=1;onFileHasBeenDeleted(e){g.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})&&(clearTimeout((0,p.nullToUndefined)(this.waitingForSubsequentFileWillBeDeletedTimer)),this.relativePathsOfFilesToDelete.add(g.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})),this.waitingForSubsequentFileWillBeDeletedTimer=setTimeout(()=>{for(const e of this.relativePathsOfFilesToDelete)delete this.sourceFilesCheckingCachedResults.files[e];this.reportCheckingIssuesAndOutputCacheToFile()},(0,p.secondsToMilliseconds)(m.WAITING_FOR_SUBSEQUENT_FILE_WILL_BE_DELETED_PERIOD__SECONDS)))}}t.default=m},2289(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(4031)),o=n(i(7818)),a=n(i(7749)),l=i(6272);class d extends s.default{absolutePathOfFilesWaitingForReProcessing=new Set;WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;associatedAssetsProcessingSettingsRepresentative;subsequentFilesStateChangeTimeout=null;logging;constructor(e){super(e),this.associatedAssetsProcessingSettingsRepresentative=e.associatedAssetsProcessingSettingsRepresentative,this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.waitingForSubsequentFilesWillSavedPeriod__seconds,this.logging={pathsOfFilesWillBeProcessed:this.associatedAssetsProcessingSettingsRepresentative.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:this.associatedAssetsProcessingSettingsRepresentative.loggingSettings.filesCount}}async replacePlainVinylFileWithAssetVinylFile(e,t){return t(new r.default({initialPlainVinylFile:e,actualAssetsGroupSettings:this.associatedAssetsProcessingSettingsRepresentative.getAssetsNormalizedSettingsActualForTargetSourceFile(e.path)})),Promise.resolve(o.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async addContentHashPostfixToFileNameIfMust(e){return e.actualAssetsGroupSettings.revisioning.mustExecute&&a.default.appendPostfixIfPossible(e,{contentHashPostfixSeparator:e.actualAssetsGroupSettings.revisioning.contentHashPostfixSeparator}),Promise.resolve(o.default.CompletionSignals.PASSING_ON)}onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,l.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{this.processAssets(Array.from(this.absolutePathOfFilesWaitingForReProcessing))(),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,l.secondsToMilliseconds)(this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}}t.default=d},4031(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8077)),r=n(i(2597)),o=i(5480);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualAssetsGroupSettings;constructor({initialPlainVinylFile:e,actualAssetsGroupSettings:t}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.actualAssetsGroupSettings=t,this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile({targetSourceFileAbsolutePath:this.sourceAbsolutePath,relevantAssetsGroupNormalizedSettings:this.actualAssetsGroupSettings})}}t.default=a},4324(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5317)),r=i(6272),o=i(1496);t.default=class{static launchIfMust(e){if(!e.mustProvideIncrementalBuilding)return o.voidPromiseReturningFunction;const t=e.dockerComposeSettingsRepresentative;if((0,r.isUndefined)(t))return o.voidPromiseReturningFunction;const{composingOptions:i,upOptions:n}=t.dockerComposeSettings;return async()=>new Promise(e=>{s.default.exec(["docker compose",...(0,r.isNotUndefined)(i.absolutePathOfCustomEnvironmentFile)?[`--env-file ${i.absolutePathOfCustomEnvironmentFile}`]:[],...(0,r.isNotUndefined)(i.absolutePathOfCustomDockerComposeFile)?[`--file ${i.absolutePathOfCustomDockerComposeFile}`]:[],...(0,r.isNotUndefined)(i.projectName)?[`--project-name ${i.projectName}`]:[],"up","--detach",...(0,r.isNotUndefined)(n.mustAlwaysBuildImagesBeforeStarting)?["--build"]:[]].join(" "),{encoding:"utf-8"},(t,i,n)=>{(0,r.isNotNull)(t)&&r.Logger.logError({errorType:"CommandExecutionInChildProcessFailureError",title:"Command Execution in Child Process Failure",description:`The error has occurred during the execution of Docker\n ${n}`,occurrenceLocation:"DockerComposeLauncher.launchIfMust(projectBuildingMasterConfigRepresentative)",caughtError:t}),e()})})}}},2550(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);t.default=class{static normalize({dockerComposeSettings__fromFile__rawValid:e,commonSettings__normalized:{dockerSetupID:t,projectRootDirectoryAbsolutePath:i}}){if((0,n.isUndefined)(t))return null;const r=e[t];return(0,n.isUndefined)(r)?null:{composingOptions:{projectName:r.composingOptions.projectName,...(0,n.isNotUndefined)(r.composingOptions.composeFileNameWithExtension)?{absolutePathOfCustomDockerComposeFile:s.ImprovedPath.joinPathSegments([i,r.composingOptions.composeFileNameWithExtension],{alwaysForwardSlashSeparators:!0})}:null,...(0,n.isNotUndefined)(r.composingOptions.environmentFileNameWithExtensions)?{absolutePathOfCustomEnvironmentFile:s.ImprovedPath.joinPathSegments([i,r.composingOptions.environmentFileNameWithExtensions],{alwaysForwardSlashSeparators:!0})}:null},upOptions:{mustAlwaysBuildImagesBeforeStarting:!0===r.upOptions.mustAlwaysBuildImagesBeforeStarting}}}}},1563(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){e.propertiesSpecification={type:n.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{$composingOptions:{newName:"composingOptions",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$projectName:{newName:"projectName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1,allowedCharacters:new Set([...n.lowercaseLatinCharacters,...n.stringifiedDigits,"-","_"])},$composeFileNameWithExtension:{newName:"composeFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$environmentFileNameWithExtensions:{newName:"environmentFileNameWithExtensions",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$upOptions:{newName:"upOptions",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$mustAlwaysBuildImagesBeforeStarting:{newName:"mustAlwaysBuildImagesBeforeStarting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(s||(s={})),t.default=s},4142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{dockerComposeSettings;constructor(e){this.dockerComposeSettings=e}}},6151(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={relativePathsOfExcludeFiles:["package-lock.json","yarn.lock"],relativePathsOfExcludeDirectories:["bin","node_modules","obj"]}},633(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(6272),a=i(5480);class l extends s.default{onAnyEventRelatedWithActualFiles={};onFileAddedEventHandlers={};onFileUpdatedEventHandlers={};onFileDeletedEventHandlers={};TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;LOGGER_BADGE_TEXT;constructor({ID:e,mustLogEvents:t,projectBuildingMasterConfigRepresentative:i,targetFilesNamesExtensionsWithoutLeadingDots:n,outputFilesGlobSelectors:s,targetSourceFilesType__singularForm:r}){super({ID:e,targetFilesGlobSelectors:[a.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:n}),...a.ImprovedGlob.includingGlobSelectorsToExcludingOnes(s)],mustLogEvents:t}),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED=(0,o.toUpperCamelCase)(r),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE=(0,o.toLowerCamelCase)(r),this.LOGGER_BADGE_TEXT=`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Source Files Watcher Report`}notifyAboutRelatedFileStateChange(e,t){for(const t of Object.values(this.onAnyEventRelatedWithActualFiles))t(e);switch(t){case r.default.EventsNames.fileAdded:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} File Added`,description:e});for(const t of Object.values(this.onFileAddedEventHandlers))t(e);break;case r.default.EventsNames.fileUpdated:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Updated`,description:e});for(const t of Object.values(this.onFileUpdatedEventHandlers))t(e);break;case r.default.EventsNames.fileDeleted:o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Deleted`,description:e});for(const t of Object.values(this.onFileDeletedEventHandlers))t(e)}}addOnAnyEventRelatedWithActualFilesHandler({handlerID:e,handler:t}){return this.onAnyEventRelatedWithActualFiles[e]=t,this}addOnFileAddedEventHandler({handlerID:e,handler:t}){return this.onFileAddedEventHandlers[e]=t,this}addFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onFileUpdatedEventHandlers[e]=t,this}addOnFileDeletedEventHandler({handlerID:e,handler:t}){return this.onFileDeletedEventHandlers[e]=t,this}}t.default=l},2909(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(6272),a=i(5480);class l extends s.default{onAnyEventRelatedWithActualFiles={};onAnyRelatedFileAddedEventHandlers={};onAnyRelatedFileUpdatedEventHandlers={};onAnyRelatedFileDeletedEventHandlers={};onEntryPointFileAddedEventHandlers={};onEntryPointFileUpdatedEventHandlers={};onEntryPointFileDeletedEventHandlers={};onNonEntryPointFileAddedEventHandlers={};onNonEntryPointFileUpdatedEventHandlers={};onNonEntryPointFileDeletedEventHandlers={};TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;LOGGER_BADGE_TEXT;constructor({ID:e,mustLogEvents:t,projectBuildingMasterConfigRepresentative:i,targetFilesNamesExtensionsWithoutLeadingDots:n,outputFilesGlobSelectors:s,targetSourceFilesType__singularForm:r}){super({ID:e,targetFilesGlobSelectors:[a.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:i.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:n}),...a.ImprovedGlob.includingGlobSelectorsToExcludingOnes(s)],mustLogEvents:t}),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED=(0,o.toUpperCamelCase)(r),this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE=(0,o.toLowerCamelCase)(r),this.LOGGER_BADGE_TEXT=`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} source files watcher report`}addOnAnyEventRelatedWithActualFilesHandler({handlerID:e,handler:t}){return this.onAnyEventRelatedWithActualFiles[e]=t,this}addOnAnyRelatedFileAddedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileAddedEventHandlers[e]=t,this}addOnAnyRelatedFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileUpdatedEventHandlers[e]=t,this}addOnAnyRelatedFileDeletedEventHandler({handlerID:e,handler:t}){return this.onAnyRelatedFileDeletedEventHandlers[e]=t,this}addOnEntryPointFileAddedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileAddedEventHandlers[e]=t,this}addOnEntryPointFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileUpdatedEventHandlers[e]=t,this}addOnEntryPointFileDeletedEventHandler({handlerID:e,handler:t}){return this.onEntryPointFileDeletedEventHandlers[e]=t,this}addOnNonEntryPointFileAddedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileAddedEventHandlers[e]=t,this}addOnNonEntryPointFileUpdatedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileUpdatedEventHandlers[e]=t,this}addOnNonEntryPointFileDeletedEventHandler({handlerID:e,handler:t}){return this.onNonEntryPointFileDeletedEventHandlers[e]=t,this}notifyAboutRelatedFileStateChange(e,t){const i=this.isFileAbsolutePathOfEntryPoint(e);for(const t of Object.values(this.onAnyEventRelatedWithActualFiles))t(e);switch(t){case r.default.EventsNames.fileAdded:for(const t of Object.values(this.onAnyRelatedFileAddedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Added`,description:e});for(const t of Object.values(this.onEntryPointFileAddedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Added`,description:e});for(const t of Object.values(this.onNonEntryPointFileAddedEventHandlers))t(e)}break;case r.default.EventsNames.fileUpdated:for(const t of Object.values(this.onAnyRelatedFileUpdatedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Updated`,description:e});for(const t of Object.values(this.onEntryPointFileUpdatedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Updated`,description:e});for(const t of Object.values(this.onNonEntryPointFileUpdatedEventHandlers))t(e)}break;case r.default.EventsNames.fileDeleted:for(const t of Object.values(this.onAnyRelatedFileDeletedEventHandlers))t(e);if(i){o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Deleted`,description:e});for(const t of Object.values(this.onEntryPointFileDeletedEventHandlers))t(e)}else{o.Logger.logInfo({mustOutputIf:this.mustLogEvents,badge:{customText:this.LOGGER_BADGE_TEXT},title:`${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Deleted`,description:e});for(const t of Object.values(this.onNonEntryPointFileDeletedEventHandlers))t(e)}}}isFileAbsolutePathOfEntryPoint(e){return this.settingsRepresentative.isEntryPoint(e)}}t.default=l},4871(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1393)),r=n(i(4520)),o=i(5480);class a{static passiveWatchers=new Set;static watchIfMust(e){return e.mustProvideIncrementalBuilding?t=>{r.default.watch([o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.consumingProjectRootDirectoryAbsolutePath}),...o.ImprovedGlob.includingGlobSelectorsToExcludingOnes(Array.from(e.filesWatchingSettings.excludedFilesGlobSelectors)),...o.ImprovedGlob.includingGlobSelectorsToExcludingOnes(Array.from(e.filesWatchingSettings.excludedDirectoriesGlobSelectors))]).on("all",a.onAnyChokidarEvent.bind(this)),t()}:e=>{e()}}static addPassiveWatcher(e){a.passiveWatchers.add(e)}static onAnyChokidarEvent(e,t){let i;switch(e){case s.default.EventsNames.fileAdded:i=a.EventsNames.fileAdded;break;case s.default.EventsNames.fileChanged:i=a.EventsNames.fileUpdated;break;case s.default.EventsNames.fileDeleted:i=a.EventsNames.fileDeleted;break;default:return}const n=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(t);for(const e of a.passiveWatchers)e.isRelatedFileAbsolutePath(n)&&e.notifyAboutRelatedFileStateChange(n,i)}}!function(e){let t;!function(e){e.fileAdded="FILE_ADDED",e.fileUpdated="FILE_UPDATED",e.fileDeleted="FILE_DELETED"}(t=e.EventsNames||(e.EventsNames={}))}(a||(a={})),t.default=a},30(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);t.default=class{ID;mustLogEvents;targetFilesGlobSelectors;constructor({ID:e,targetFilesGlobSelectors:t,mustLogEvents:i}){this.ID=e,this.targetFilesGlobSelectors=t,this.mustLogEvents=i}isRelatedFileAbsolutePath(e){return n.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:e,globSelectors:this.targetFilesGlobSelectors})}}},3476(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2152)),r=i(6272),o=i(5480);t.default=class{static normalizeIfThereAreActualOnes({outputPackageJSON_GeneratingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){if((0,r.isUndefined)(e))return null;if((0,r.isNotUndefined)(t.tasksAndSourceFilesSelection)&&!t.mustGenerateOutputPackageJSON)return null;const i=e.buildingModeDependent[t.projectBuildingMode];if((0,r.isUndefined)(i))return null;const n=o.ObjectDataFilesProcessor.processFile({filePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,"package.json"],{alwaysForwardSlashSeparators:!0}),validDataSpecification:{subtype:r.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"PackageJSON_OfConsumingProject",properties:{scripts:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}},dependencies:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}},devDependencies:{type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,undefinedValueSubstitution:{},isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String}}}},synchronously:!0});return{dependencies:Object.entries(n.dependencies).reduce((t,[i,n])=>(!0===e.inheritedDependencies?.includes(i)&&(t[i]=n),t),{}),developmentDependencies:Object.entries(n.devDependencies).reduce((t,[i,n])=>(!0===e.inheritedDevelopmentDependencies?.includes(i)&&(t[i]=n),t),{}),scripts:Object.entries(n.devDependencies).reduce((t,[i,n])=>(!0===e.inheritedNPM_Scripts?.includes(i)&&(t[i]=n),t),e.newNPM_Scripts??{}),indentString:i.indentString??e.indentString??s.default.indentString,linesSeparator:i.linesSeparator??e.linesSeparator??s.default.linesSeparator,outputFileAbsolutePath:o.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,i.outputDirectoryRelativePath,"package.json"],{alwaysForwardSlashSeparators:!0})}}}},2770(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{outputPackageJSON_GeneratingSettings;constructor(e){this.outputPackageJSON_GeneratingSettings=e}}},2152(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(857)),r=i(6272),o={indentString:" ",linesSeparator:"\n"===s.default.EOL?r.LineSeparators.lineFeed:r.LineSeparators.carriageReturnAndLineFeed};t.default=o},8865(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=i(6272);var o;!function(e){e.propertiesSpecification={$inheritedDependencies:{newName:"inheritedDependencies",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$inheritedDevelopmentDependencies:{newName:"inheritedDevelopmentDependencies",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$inheritedNPM_Scripts:{newName:"inheritedNPM_Scripts",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,minimalElementsCount:1,element:{type:String,minimalCharactersCount:1}},$newNPM_Scripts:{newName:"newNPM_Scripts",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:String,minimalCharactersCount:1}},$indentString:{newName:"indentString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$linesSeparator:{newName:"linesSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(r.LineSeparators.lineFeed)},$buildingModeDependent:{newName:"buildingModeDependent",type:r.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$indentString:{newName:"indentString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$linesSeparator:{newName:"linesSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(r.LineSeparators.lineFeed)}}}}}}(o||(o={})),t.default=o},8066(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9896)),r=i(6272),o=n(i(5553));class a{static generateIfMust(e){if((0,r.isUndefined)(e.outputPackageJSON_GeneratingSettingsRepresentative))return async()=>Promise.resolve();const{outputPackageJSON_GeneratingSettingsRepresentative:t}=e;return async()=>a.generate(t.outputPackageJSON_GeneratingSettings)}static async generate({outputFileAbsolutePath:e,dependencies:t,developmentDependencies:i,scripts:n,indentString:r,linesSeparator:a}){return s.default.writeFileSync(e,(0,o.default)(JSON.stringify({private:!0,dependencies:t,devDependencies:i,scripts:n},null,r),a)),Promise.resolve()}}t.default=a},1569(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(976)),r=n(i(4520)),o=n(i(7818)),a=n(i(2853)),l=i(6272),d=n(i(6928));t.default=class{static providePlainCopierIfMust(e){if((0,l.isUndefined)(e.plainCopyingSettingsRepresentative)||0===Object.entries(e.plainCopyingSettingsRepresentative.filesGroups).length)return(0,a.default)();const t=Array.from(s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.keys());return 0===t.length?(0,a.default)():()=>r.default.src(t).pipe(o.default.modify({async onStreamStartedEventCommonHandler(e){const t=s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get((0,l.replaceDoubleBackslashesWithForwardSlashes)(e.path));return(0,l.isUndefined)(t)?Promise.resolve(o.default.CompletionSignals.REMOVING_FILE_FROM_STREAM):(e.path=t,e.base=d.default.dirname(t),Promise.resolve(o.default.CompletionSignals.PASSING_ON))}})).pipe(r.default.dest(e=>e.base))}}},7366(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9626)),r=n(i(7700)),o=n(i(8820)),a=n(i(976)),l=n(i(6112)),d=n(i(9896)),u=i(6272),c=i(5480);class p{static normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:{tasksAndSourceFilesSelection:t,projectRootDirectoryAbsolutePath:i,projectBuildingMode:n}}){const s=t?.plainCopying??[],r={};for(const[t,o]of Object.entries(e.filesGroups)){if(s.length>0&&!s.includes(t))continue;const e=o.aliasName??t;if("sourceFileRelativePath"in o){const s=o.buildingModeDependent[n];if((0,u.isUndefined)(s))continue;r[t]=p.normalizeFilesSingularGroupSettings({projectRootDirectoryAbsolutePath:i,sourceFileRelativePath:o.sourceFileRelativePath,aliasName:e,filesSingularGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:s})}else{const s=o.buildingModeDependent[n];if((0,u.isUndefined)(s))continue;r[t]=p.normalizeFilesPluralGroupSettings({projectRootDirectoryAbsolutePath:i,sourceTopDirectoryRelativePath:o.sourceTopDirectoryRelativePath,fileNameLastExtensions:o.fileNameLastExtensions,aliasName:e,excludedSubdirectoriesPathsRelativeToAssetsGroupSourceTopDirectory:o.excludeSubdirectoriesRelativePaths,excludedFilesPathsRelativeToAssetsGroupSourceTopDirectory:o.excludeFilesRelativePaths,filesPluralGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:s})}}return{filesGroups:r}}static normalizeFilesSingularGroupSettings({aliasName:e,projectRootDirectoryAbsolutePath:t,sourceFileRelativePath:i,filesSingularGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:n}){const s=c.ImprovedPath.joinPathSegments([t,i],{alwaysForwardSlashSeparators:!0}),r=(0,u.extractFileNameWithAllExtensionsFromPath)({targetPath:s,mustThrowErrorIfLastPathSegmentHasNoDots:!0}),o=p.computeOutputFileNameWithExtensions({initialFileNameWithExtensions:r,sourceFileAbsolutePath:s,revisioningSettings:n.revisioning,...(0,u.isNotUndefined)(n.newFileNameWithExtension)?{fileRenamings:[{pathRelativeToSourceDirectory:r,newFileNameWithExtension:n.newFileNameWithExtension}]}:null}),l=c.ImprovedPath.joinPathSegments([t,n.outputDirectoryRelativePath,o],{alwaysForwardSlashSeparators:!0});return a.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.set(s,l),{aliasName:e,sourceFileAbsolutePath:s,outputFileAbsolutePath:l}}static normalizeFilesPluralGroupSettings({projectRootDirectoryAbsolutePath:e,sourceTopDirectoryRelativePath:t,fileNameLastExtensions:i,excludedSubdirectoriesPathsRelativeToAssetsGroupSourceTopDirectory:n=[],excludedFilesPathsRelativeToAssetsGroupSourceTopDirectory:s=[],aliasName:l,filesPluralGroupSettingsActualForCurrentProjectBuildingMode__rawValid__fromFile:d}){const g=c.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0}),m=c.ImprovedPath.joinPathSegments([e,d.outputTopDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),h=new Map;for(const e of c.ImprovedGlob.getFilesAbsolutePathsSynchronously([c.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:g,fileNamesExtensions:i}),...n.map(e=>c.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(c.ImprovedPath.joinPathSegments([g,e],{alwaysForwardSlashSeparators:!0}))),...s.map(e=>c.ImprovedGlob.includingGlobSelectorToExcludingOne(c.ImprovedPath.joinPathSegments([g,e],{alwaysForwardSlashSeparators:!0})))],{alwaysForwardSlashSeparators:!0})){const t=o.default.transform(c.ImprovedPath.joinPathSegments([m,c.ImprovedPath.computeRelativePath({basePath:g,comparedPath:c.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}})})],{alwaysForwardSlashSeparators:!0}),r.default.normalize(d.outputDirectoryPathTransformations)),i=p.computeOutputFileNameWithExtensions({initialFileNameWithExtensions:(0,u.extractFileNameWithAllExtensionsFromPath)({targetPath:e,mustThrowErrorIfLastPathSegmentHasNoDots:!1}),sourceTopDirectoryAbsolutePath:g,sourceFileAbsolutePath:e,revisioningSettings:d.revisioning,fileRenamings:d.filesRenamings}),n=c.ImprovedPath.joinPathSegments([t,i],{alwaysForwardSlashSeparators:!0});h.set(e,n)}return(0,u.addEntriesToMap)({targetMap:a.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap,newEntries:h,mutably:!0}),{aliasName:l,sourceTopDirectoryAbsolutePath:g,outputTopDirectoryAbsolutePath:m,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:h}}static computeOutputFileNameWithExtensions({initialFileNameWithExtensions:e,sourceTopDirectoryAbsolutePath:t,sourceFileAbsolutePath:i,revisioningSettings:n,fileRenamings:r=[]}){let o=e;for(const e of r)if(e.pathRelativeToSourceDirectory===((0,u.isUndefined)(t)?i:c.ImprovedPath.computeRelativePath({basePath:t,comparedPath:i,alwaysForwardSlashSeparators:!0}))){o=e.newFileNameWithExtension;break}if(!0===n?.enable||s.default.revisioning.mustExecute){const e=d.default.readFileSync(i,"utf-8");o=[(0,u.removeAllFileNameExtensions)(o),n?.contentHashPostfixSeparator??s.default.revisioning.contentHashPostfixSeparator,(0,l.default)(e),`.${(0,u.extractAllFileNameExtensions)({targetPath:o,withLeadingDots:!1}).join(".")}`].join("")}return o}}t.default=p},3136(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(976)),r=i(5480),o=i(6272);t.default=class{singularGroupsMappedByAliases=new Map;pluralGroupsMappedByAliases=new Map;filesGroups;constructor(e){this.filesGroups=e.filesGroups;for(const t of Object.values(e.filesGroups))"sourceFileAbsolutePath"in t?this.singularGroupsMappedByAliases.set(`$${t.aliasName}`,t):this.pluralGroupsMappedByAliases.set(`$${t.aliasName}`,t)}getSourceFileAbsolutePathByAliasedPath(e){if(1===e.length){const t=this.singularGroupsMappedByAliases.get(e[0])?.sourceFileAbsolutePath;return(0,o.isUndefined)(t)?null:s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get(t)??null}const t=this.pluralGroupsMappedByAliases.get(e[0])?.sourceTopDirectoryAbsolutePath;return(0,o.isUndefined)(t)?null:s.default.sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap.get(r.ImprovedPath.joinPathSegments([t,...e.slice(1)],{alwaysForwardSlashSeparators:!0}))??null}}},9626(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={revisioning:{mustExecute:!1,contentHashPostfixSeparator:"--"}}},1991(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(9747)),o=i(6272);var a;!function(e){e.propertiesSpecification={$filesGroups:{newName:"filesGroups",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$aliasName:{newName:"aliasName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$sourceTopDirectoryRelativePath:{newName:"sourceTopDirectoryRelativePath",type:String,undefinedForbiddenIf:{predicate:({rawData__currentObjectDepth:e})=>(0,o.isUndefined)(e.$sourceFileRelativePath),descriptionForLogging:'"$sourceFileRelativePath" not undefined'},isNullForbidden:!0},$fileNameLastExtensions:{newName:"fileNameLastExtensions",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$excludeSubdirectoriesRelativePaths:{newName:"excludeSubdirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$excludeFilesRelativePaths:{newName:"excludeFilesRelativePaths",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$buildingModeDependent:{newName:"buildingModeDependent",type:o.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$contentHashPostfixSeparator:{newName:"contentHashPostfixSeparator",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$outputDirectoryRelativePath:{newName:"outputDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$newFileNameWithExtension:{newName:"newFileNameWithExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$outputTopDirectoryRelativePath:{newName:"outputTopDirectoryRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0},$filesRenamings:{newName:"filesRenamings",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{$pathRelativeToSourceDirectory:{newName:"pathRelativeToSourceDirectory",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$newFileNameWithExtension:{newName:"newFileNameWithExtension",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}},$outputDirectoryPathTransformations:{newName:"outputDirectoryPathTransformations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:r.default.propertiesSpecification}}}}}}}}}(a||(a={})),t.default=a},976(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndRespectiveFilesGroupSettingsCorrespondenceMap=new Map}t.default=i},92(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(9851),r=n(i(2159)),o=n(i(2282)),a=n(i(5685)),l=n(i(843)),d=n(i(2662)),u=n(i(5196)),c=n(i(4602)),p=n(i(4784)),g=n(i(7366)),m=n(i(7927)),h=n(i(2550)),f=n(i(3476)),S=i(6272),F=i(5480);class P{static normalize({consumingProjectRootDirectoryAbsolutePath:e,projectBuildingConfig__fromFile__rawValid:t,projectBuildingConfig__fromConsole:i}){const n=t.commonSettings??{},F=P.determineActualSelectiveExecution({commonSettings__fromFile__rawValid:n,projectBuildingConfig__fromConsole:i}),_=r.default.normalize({commonSettings__fromFile__rawValid:n,consumingProjectRootDirectoryAbsolutePath:e,projectBuildingMode:i.projectBuildingMode,...(0,S.isNotUndefined)(i.selectiveExecutionID)?{actualSelectiveExecutionID:i.selectiveExecutionID}:null,actualSelectiveExecution:F});return{commonSettings:_,...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.markupProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.markupProcessing)?{}:{markupProcessing:o.default.normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.stylesProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.stylesProcessing)?{}:{stylesProcessing:a.default.normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.ECMA_ScriptLogicProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing)?{}:{ECMA_ScriptLogicProcessing:l.default.normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.imagesProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.imagesProcessing)?{}:{imagesProcessing:d.default.normalize({imagesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.fontsProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.fontsProcessing)?{}:{fontsProcessing:u.default.normalize({fontsProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.videosProcessing)?{}:{videosProcessing:c.default.normalize({videosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.videosProcessing];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.audiosProcessing)?{}:{audiosProcessing:p.default.normalize({audiosProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.plainCopying];return(0,S.isUndefined)(e)||(0,S.isNotUndefined)(_.tasksAndSourceFilesSelection)&&(0,S.isUndefined)(_.tasksAndSourceFilesSelection.plainCopying)?{}:{plainCopying:g.default.normalize({plainCopyingSettings__fromFile__rawValid:e,commonSettings__normalized:_})}})(),...(()=>{const e=t[s.ProjectBuildingTasksIDsForConfigFile.browserLiveReloading];if((0,S.isUndefined)(e))return{};const i=F?.browserLiveReloadingSetupID;return{browserLiveReloading:m.default.normalize({browserLiveReloadingSettings__fromFile__rawValid:e,projectBuilderCommonSettings__normalized:_,hasSelectiveExecutionBeenDeclared:(0,S.isNotUndefined)(F),...(0,S.isNotUndefined)(i)?{selectedBrowserLiveReloadingSetupID:i}:{}})}})(),...(()=>{const e=h.default.normalize({dockerComposeSettings__fromFile__rawValid:t[s.ProjectBuildingTasksIDsForConfigFile.dockerLaunching],commonSettings__normalized:_});return(0,S.isNotNull)(e)?{dockerCompose:e}:{}})(),...(()=>{const e=f.default.normalizeIfThereAreActualOnes({outputPackageJSON_GeneratingSettings__fromFile__rawValid:t[s.ProjectBuildingTasksIDsForConfigFile.outputPackageJSON_Generating],commonSettings__normalized:_});return(0,S.isNotNull)(e)?{outputPackageJSON_Generating:e}:{}})()}}static determineActualSelectiveExecution({commonSettings__fromFile__rawValid:e,projectBuildingConfig__fromConsole:t}){const i=e.selectiveExecutions;let n;return(0,S.isNotUndefined)(t.selectiveExecutionID)&&((0,S.isUndefined)(i)&&S.Logger.throwErrorWithFormattedMessage({errorInstance:new F.InvalidConsoleCommandError({customMessage:`The selective execution "${t.selectiveExecutionID}" has been demanded by the console command while no selective executions has been defined in configuration file.`}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecution(parametersObject)",title:S.InvalidParameterValueError.localization.defaultTitle}),n=i[t.selectiveExecutionID],(0,S.isUndefined)(n)&&S.Logger.throwErrorWithFormattedMessage({errorInstance:new F.InvalidConsoleCommandError({customMessage:`The selective execution "${t.selectiveExecutionID}" is undefined. Please check which selective executions you have defined in configuration file.`}),occurrenceLocation:"ProjectBuilderRawConfigNormalizer.determineActualSelectiveExecution(parametersObject)",title:S.InvalidParameterValueError.localization.defaultTitle})),n}}t.default=P},3382(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4433)),r=n(i(554)),o=n(i(6394)),a=n(i(444)),l=n(i(3015)),d=n(i(5609)),u=n(i(7491)),c=n(i(2421)),p=n(i(1991)),g=n(i(6191)),m=n(i(8865)),h=n(i(1563)),f=i(6272);var S;!function(e){e.propertiesSpecification={nameForLogging:"ProjectBuildingConfig__FromFile__RawValid",subtype:f.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,mustExpectOnlySpecifiedProperties:!0,properties:{$projectBuilding:{newName:"projectBuilding",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$commonSettings:{newName:"commonSettings",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:s.default.propertiesSpecification},$markupProcessing:{newName:"markupProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:r.default.propertiesSpecification},$stylesProcessing:{newName:"stylesProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},$ECMA_ScriptLogicProcessing:{newName:"ECMA_ScriptLogicProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},$imagesProcessing:{newName:"imagesProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:l.default.propertiesSpecification},$fontsProcessing:{newName:"fontsProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:d.default.propertiesSpecification},$videosProcessing:{newName:"videosProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:u.default.propertiesSpecification},$audiosProcessing:{newName:"audiosProcessing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:c.default.propertiesSpecification},$plainCopying:{newName:"plainCopying",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:p.default.propertiesSpecification},$browserLiveReloading:{newName:"browserLiveReloading",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:g.default.propertiesSpecification},$outputPackageJSON_Generating:{newName:"outputPackageJSON_Generating",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:m.default.propertiesSpecification},$dockerLaunching:{newName:"dockerLaunching",...h.default.propertiesSpecification,undefinedValueSubstitution:{},mustTransformNullToUndefined:!0}}}}}}(S||(S={})),t.default=S},9271(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(1581)),o=n(i(7741)),a=n(i(4431)),l=n(i(5872)),d=n(i(682)),u=n(i(1846)),c=n(i(1340)),p=n(i(3136)),g=n(i(792)),m=n(i(2770)),h=n(i(4142)),f=i(6272);class S{static hasBeenConstructedAtLeastOnce=!1;markupProcessingSettingsRepresentative;stylesProcessingSettingsRepresentative;ECMA_ScriptLogicProcessingSettingsRepresentative;imagesProcessingSettingsRepresentative;fontsProcessingSettingsRepresentative;audiosProcessingSettingsRepresentative;videosProcessingSettingsRepresentative;plainCopyingSettingsRepresentative;browserLiveReloadingSettingsRepresentative;dockerComposeSettingsRepresentative;outputPackageJSON_GeneratingSettingsRepresentative;commonSettings;constructor(e){S.hasBeenConstructedAtLeastOnce&&f.Logger.throwErrorWithFormattedMessage({errorInstance:new f.ClassRedundantSubsequentInitializationError({className:"ProjectBuildingMasterConfigRepresentative"}),title:f.ClassRedundantSubsequentInitializationError.localization.defaultTitle,occurrenceLocation:"ProjectBuildingMasterConfigRepresentative.constructor(projectBuilderConfig__normalized)"}),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 o.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 d.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 c.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)),(0,f.isNotUndefined)(e.dockerCompose)&&(this.dockerComposeSettingsRepresentative=new h.default(e.dockerCompose)),(0,f.isNotUndefined)(e.outputPackageJSON_Generating)&&(this.outputPackageJSON_GeneratingSettingsRepresentative=new m.default(e.outputPackageJSON_Generating)),S.hasBeenConstructedAtLeastOnce=!0}get consumingProjectRootDirectoryAbsolutePath(){return this.commonSettings.projectRootDirectoryAbsolutePath}get actualPublicDirectoryAbsolutePath(){return this.commonSettings.actualPublicDirectoryAbsolutePath}get selectiveExecutionID(){return this.commonSettings.selectiveExecutionID}get filesWatchingSettings(){return this.commonSettings.filesWatching}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 isProductionLikeBuildingMode(){return[s.default.testing,s.default.staging,s.default.production].includes(this.commonSettings.projectBuildingMode)}get mustProvideIncrementalBuilding(){return this.commonSettings.mustProvideIncrementalBuilding}getECMA_ScriptLogicProcessingSettingsRepresentativeIfMustOrchestrateLocalDevelopmentServer(){return(0,f.isNotUndefined)(this.ECMA_ScriptLogicProcessingSettingsRepresentative?.localDevelopmentServerOrchestrationSettings)&&this.isLocalDevelopmentBuildingMode?this.ECMA_ScriptLogicProcessingSettingsRepresentative:null}getBrowserLiveReloadingSettingsRepresentativeIfMustProvideBrowserLiveReloading(){return this.mustProvideIncrementalBuilding?(0,f.undefinedToNull)(this.browserLiveReloadingSettingsRepresentative):null}get processingOnDemandSettings(){return this.commonSettings.processingOnDemand}get CSS_ClassesMinificationOnFlySettings(){return this.commonSettings.CSS_ClassesMinificationOnFly}}t.default=S},843(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5256));var r=s.default.SupportedECMA_ScriptRuntimesTypes;const o=n(i(8931)),a=n(i(171)),l=n(i(2274)),d=n(i(8527)),u=n(i(4061)),c=n(i(9896)),p=n(i(818)),g=i(6272),m=i(5480);class h extends l.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions=new Map;commonActualPreprocessorVariables;static normalize({ECMA_ScriptLogicProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new h({projectBuildingCommonSettings__normalized:t,...(0,g.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.ECMA_ScriptLogicProcessing}:null,commonPreprocessorVariables:e.common?.preprocessorVariables}),n=i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings.bind(i)),r=e.linting??{};return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots},linting:{mustExecute:e.linting?.enable??a.default.linting.mustExecute,...(0,g.isNotUndefined)(r.presetFileRelativePath)?{presetFileAbsolutePath:m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,r.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:n,...i.normalizeLocalDevelopmentServerOrchestrationSettingsIfAny(n,e.localDevelopmentServerOrchestration),...(0,g.isNotUndefined)(e.electron)?{electron:{hotReloadingForLocalDevelopmentMode:{rootDirectoryAbsolutePath:m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,e.electron.hotReloadingForLocalDevelopmentMode.rootDirectoryRelativePath],{alwaysForwardSlashSeparators:!0}),ignoredFilesAndDirectoriesAbsolutePaths:(e.electron.hotReloadingForLocalDevelopmentMode.ignoredFilesAndDirectoriesRelativePaths??[]).map(e=>m.ImprovedPath.joinPathSegments([i.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}}}:null,logging:{filesPaths:e.logging?.filesPaths??a.default.logging.filesPaths,filesCount:e.logging?.filesCount??a.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:e.logging?.filesWatcherEvents??a.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:e.logging?.filesWatcherEvents??a.default.logging.filesWatcherEvents,linting:{starting:e.logging?.linting.starting??a.default.logging.linting.starting,completionWithoutIssues:e.logging?.linting.completionWithoutIssues??a.default.logging.linting.completionWithoutIssues}}}}constructor({projectBuildingCommonSettings__normalized:e,entryPointsGroupsIDsSelection:t,commonPreprocessorVariables:i={}}){super({projectBuildingCommonSettings__normalized:e,entryPointsGroupsIDsSelection:t}),this.commonActualPreprocessorVariables={...i.forAllProjectBuildingModes??{},...i.buildingModeDependent?.[e.projectBuildingMode]??{}}}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings(e,t){const i=t.distributing,n=m.ImprovedPath.replacePathSeparatorsToForwardSlashes(t.typeScriptConfigurationFileRelativePath??a.default.typeScriptConfigurationFileRelativePath),s=m.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),o=this.cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions.get(n)??this.readAndCacheTypeScriptCompilerOptions({typeScriptConfigurationFileAbsolutePath:s,typeScriptConfigurationFileRelativePath:n});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,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.pug:return{type:r.pug};case r.electronMainProcess:return{type:r.electronMainProcess,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.electronRendererProcess:return{type:r.electronRendererProcess,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}};case r.electronPreload:return{type:r.electronPreload,minimalVersion:{major:t.targetRuntime.minimalVersion.major,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?{minor:t.targetRuntime.minimalVersion.minor}:null}}}})(),...(0,g.isNotUndefined)(t.associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer)?{associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer:t.associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer}:null,typeScriptConfigurationFileAbsolutePath:s,typeScriptCompilerOptions:o,directoriesAliasesAndCorrespondingAbsolutePathsMap:h.createDirectoriesAliasesAndCorrespondingAbsolutePathsMap(s,o),revisioning:d.default.normalize({revisioningSettings__rawValid:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning,revisioningSettings__default:{mustExecute:({consumingProjectBuildingMode:e})=>a.default.revisioning.mustExecute({consumingProjectBuildingMode:e,targetRuntimeType:t.targetRuntime.type}),contentHashPostfixSeparator:a.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode}),...(0,g.isNotUndefined)(i)?{distributing:{exposingOfExportsFromEntryPoints:{mustExpose:i.exposingOfExportsFromEntryPoints?.mustExpose??a.default.distributing.exposingOfExportsFromEntryPoints.mustExpose,namespace:i.exposingOfExportsFromEntryPoints?.namespace,mustAssignToWindowObject:i.exposingOfExportsFromEntryPoints?.mustAssignToWindowObject??a.default.distributing.exposingOfExportsFromEntryPoints.mustAssignToWindowObject},externalizingDependencies:i.externalizingDependencies??[],typeScriptTypesDeclarations:{mustGenerate:i.typeScriptTypesDeclarations?.mustGenerate??a.default.distributing.typeScriptTypesDeclarations.mustGenerate,fileNameWithoutExtension:i.typeScriptTypesDeclarations?.fileNameWithoutExtension??a.default.distributing.typeScriptTypesDeclarations.fileNameWithoutExtension}}}:null,preprocessorVariables:{...this.commonActualPreprocessorVariables,...t.preprocessorVariables??{},...t.buildingModeDependent[this.consumingProjectBuildingMode].preprocessorVariables??{}},dependenciesViaGlobals:t.dependenciesViaGlobals??{}}}normalizeLocalDevelopmentServerOrchestrationSettingsIfAny(e,t){if(this.projectBuildingCommonSettings__normalized.projectBuildingMode!==o.default.localDevelopment||(0,g.isUndefined)(t))return null;const i=e.get(t.targetSingularEntryPointsGroupID);if((0,g.isUndefined)(i)||!i.isSingeEntryPointGroup)return null;let n={};return(0,g.isNotUndefined)(t.environmentVariablesFileRelativePath)&&(n=p.default.parse(c.default.readFileSync(m.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.environmentVariablesFileRelativePath]),"utf-8"))),{localDevelopmentServerOrchestration:{targetSourceFileAbsolutePath:i.sourceFilesGlobSelectors[0],arguments:t.arguments??[],environmentVariables:{...t.environmentVariables??null,...n}}}}readAndCacheTypeScriptCompilerOptions({typeScriptConfigurationFileAbsolutePath:e,typeScriptConfigurationFileRelativePath:t}){const i=u.default.readTypeScriptConfigurationFileAndGetCompilerOptions(e);return this.cachedTypeScriptConfigurationsFilesRelativePathsAndCorrespondingCompilersOptions.set(t,i),i}static createDirectoriesAliasesAndCorrespondingAbsolutePathsMap(e,t){const i=t.baseUrl??m.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0,mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1}});return new Map(Object.entries(t.paths??{}).map(([e,t])=>[e.endsWith("/*")?e.slice(0,-2):e,t.map(e=>m.ImprovedPath.joinPathSegments([i,...e.endsWith("/*")?[e.slice(0,-2)]:[e]],{alwaysForwardSlashSeparators:!0}))]))}}t.default=h},5256(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){let t;e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["js","mjs","ts","mts","jsx","tsx"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set(["jsx","tsx","vue"]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["js"],function(e){e.browser="BROWSER",e.webWorker="WEB_WORKER",e.nodeJS="NODEJS",e.pug="PUG",e.electronMainProcess="ELECTRON_MAIN_PROCESS",e.electronRendererProcess="ELECTRON_RENDERER_PROCESS",e.electronPreload="ELECTRON_PRELOAD"}(t=e.SupportedECMA_ScriptRuntimesTypes||(e.SupportedECMA_ScriptRuntimesTypes={}))}(i||(i={})),t.default=i},4431(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(1239)),o=i(6272);class a extends r.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="ECMAScript Logic";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="ECMAScript Logic";entryPointsGroupsNormalizedSettingsMappedByReferences;relevantEntryPointsGroupsSettings;electronSettings;loggingSettings;localDevelopmentServerOrchestrationSettings;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.sourceCodeProcessingCommonSettings=e.common,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.electronSettings=e.electron,this.loggingSettings=e.logging,this.localDevelopmentServerOrchestrationSettings=e.localDevelopmentServerOrchestration,this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,o.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${s.default}${e.ID}`,e]))}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}}t.default=a},171(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931));var r=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const o={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,mustAssignToWindowObject:!1},typeScriptTypesDeclarations:{mustGenerate:!1,fileNameWithoutExtension:"index.d.ts"}},logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0}}};t.default=o},444(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const r=n(i(8931)),o=n(i(1579)),a=n(i(7534)),l=n(i(523)),d=i(6272);var u;!function(e){e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$forAllProjectBuildingModes:{newName:"forAllProjectBuildingModes",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}},$buildingModeDependent:{newName:"buildingModeDependent",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:r.default.staticPreview,$localDevelopment:r.default.localDevelopment,$testing:r.default.testing,$staging:r.default.staging,$production:r.default.production},value:{type:Object,properties:{}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification},...a.default.generatePropertiesSpecification({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:{$targetRuntime:{newName:"targetRuntime",type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{$type:{newName:"type",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:Object.values(s)},$minimalVersion:{newName:"minimalVersion",type:Object,undefinedForbiddenIf:{predicate:e=>[s.nodeJS,s.electronMainProcess,s.electronRendererProcess,s.electronPreload].includes(e.type),descriptionForLogging:"Target runtime is NodeJS or Electron-like"},isNullForbidden:!0,properties:{$major:{newName:"major",type:Number,isUndefinedForbidden:!0,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},$minor:{newName:"minor",type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumberOrZero,isNaN_Forbidden:!0}}}}},$associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer:{newName:"associatedMarkupEntryPointsGroupID_ForDynamicModulesLoadingWithoutDevelopmentServer",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$preprocessorVariables:{newName:"preprocessorVariables",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}},$dependenciesViaGlobals:{newName:"dependenciesViaGlobals",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:String,minimalCharactersCount:1}},$distributing:{newName:"distributing",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$exposingOfExportsFromEntryPoints:{newName:"exposingOfExportsFromEntryPoints",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$mustExpose:{newName:"mustExpose",type:Boolean,isUndefinedForbidden:!0,isNullForbidden:!0},$namespace:{newName:"namespace",type:String,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({rawData__currentObjectDepth:e,targetPropertyPathSegments:t,rawData__full:i})=>!0!==e.$mustAssignToWindowObject&&(0,d.getObjectPropertySafely)(i,[...t.slice(0,-3),"$targetRuntime","$type"])===s.browser,descriptionForLogging:"`targetRuntime` is browser"},isNullForbidden:!0},$mustAssignToWindowObject:{newName:"mustAssignToWindowObject",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$externalizingDependencies:{newName:"externalizingDependencies",isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,type:Array,element:{type:String,minimalCharactersCount:1}},$typeScriptTypesDeclarations:{newName:"typeScriptTypesDeclarations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$mustGenerate:{newName:"mustGenerate",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$fileNameWithoutExtension:{newName:"fileNameWithoutExtension",type:String,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:l.default.propertiesSpecification},$dynamicallyLoadedFilesSubdirectory:{newName:"dynamicallyLoadedFilesSubdirectory",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$dynamicallyLoadedFilesNamesTemplate:{newName:"dynamicallyLoadedFilesNamesTemplate",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$preprocessorVariables:{newName:"preprocessorVariables",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{}}}}),$localDevelopmentServerOrchestration:{newName:"localDevelopmentServerOrchestration",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$targetSingularEntryPointsGroupID:{newName:"targetSingularEntryPointsGroupID",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$arguments:{newName:"arguments",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$environmentVariables:{newName:"environmentVariables",type:d.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String,minimalCharactersCount:1}},$environmentVariablesFileRelativePath:{newName:"environmentVariablesFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1}}},$electron:{newName:"electron",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$hotReloadingForLocalDevelopmentMode:{newName:"hotReloadingForLocalDevelopmentMode",type:Object,isUndefinedForbidden:!0,mustTransformNullToUndefined:!0,properties:{$rootDirectoryRelativePath:{newName:"rootDirectoryRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$ignoredFilesAndDirectoriesRelativePaths:{newName:"ignoredFilesAndDirectoriesRelativePaths",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}},$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,isNullForbidden:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(u||(u={})),t.default=u},1741(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static sourceFilesAbsolutePathsAndOutputFilesActualPathsMap=new Map}t.default=i},4702(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1741)),r=n(i(5256)),o=n(i(142)),a=n(i(6807)),l=n(i(4714)),d=n(i(1142)),u=n(i(4284)),c=n(i(8661)),p=n(i(703)),g=n(i(919)),m=i(6272),h=i(5480);class f{static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="ECMA_ScriptEntryPointsAndAffiliatedFilesMappingCache.json";projectBuildingMasterConfigRepresentative;ECMAScriptLogicProcessingSettingsRepresentative;webpackConfigurationsForExistingEntryPoints;webpackMultiCompiler;entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper;subsequentFilesStateChangeTimeout=null;static provideLogicProcessingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,m.isUndefined)(t))return e=>{e()};const i=new f(t,e);return e=>{try{i.webpackMultiCompiler.run(i.generateWebpackCallback(e))}catch(t){e(new m.UnexpectedEventError(m.Logger.formatErrorLog({title:m.UnexpectedEventError.localization.defaultTitle,errorType:m.UnexpectedEventError.NAME,description:"The error emitted by Webpack has been caught while no error catching required according the officialdocumentation: https://webpack.js.org/api/node/",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)",caughtError:t})))}}}constructor(e,t){this.ECMAScriptLogicProcessingSettingsRepresentative=e,this.projectBuildingMasterConfigRepresentative=t;const i=[],n=new Map;for(const e of this.ECMAScriptLogicProcessingSettingsRepresentative.relevantEntryPointsGroupsSettings.values()){const t=h.ImprovedGlob.getFilesAbsolutePathsSynchronously(e.sourceFilesGlobSelectors,{alwaysForwardSlashSeparators:!0});0!==t.length?(i.push(l.default.generateWebpackConfigurationForEntryPointsGroupWithExistingFiles({entryPointsSourceFilesAbsolutePaths:t,ECMA_ScriptLogicEntryPointsGroupSettings:e,ECMA_ScriptLogicProcessingConfigRepresentative:this.ECMAScriptLogicProcessingSettingsRepresentative,masterConfigRepresentative:this.projectBuildingMasterConfigRepresentative})),(0,m.addEntriesToMap)({targetMap:n,newEntries:t.map(t=>[t,e.ID]),mutably:!0})):m.Logger.logWarning({title:"ECMAScript Logic Entry Points Not Found",description:`No ECMAScript entry points has been found for group "${e.ID}". Please restart the project building once they will be added.`})}this.webpackConfigurationsForExistingEntryPoints=i;const s=(0,a.default)(this.webpackConfigurationsForExistingEntryPoints);(0,m.isNull)(s)&&m.Logger.throwErrorWithFormattedMessage({errorInstance:new m.UnexpectedEventError(m.PoliteErrorsMessagesBuilder.buildMessage({politeExplanation:"It has occurred some problem with changed functionality of Webpack, the dependency of YDA.",technicalDetails:"The `Webpack` function returned the null. Previously according to TypeScript type definitions, the returned value was always non-nullable. "})),title:m.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"ECMA_ScriptLogicProcessor.constructor(...parameters)"}),this.webpackMultiCompiler=s,this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap=n,this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&(this.sourceCodeSelectiveReprocessingHelper=new p.default({initialEntryPointsSourceFilesAbsolutePaths:this.ECMAScriptLogicProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:o.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:this.ECMAScriptLogicProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,additionalExplicitFileNameExtensionsWithoutLeadingDotsOfChildrenFiles:r.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles},directoriesAliasesAndTheirAbsolutePatsMap:f.generateUnifiedDirectoriesAliasesAndTheirAbsolutePatsMapForSourceCodeSelectiveReprocessingHelper(this.ECMAScriptLogicProcessingSettingsRepresentative),isEntryPoint:this.ECMAScriptLogicProcessingSettingsRepresentative.isEntryPoint.bind(this.ECMAScriptLogicProcessingSettingsRepresentative),logging:{mustEnable:this.ECMAScriptLogicProcessingSettingsRepresentative.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:this.ECMAScriptLogicProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:h.ImprovedPath.joinPathSegments([g.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,f.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),u.default.initializeIfRequiredAndGetInstance({ecmaScriptLogicProcessingSettingsRepresentative:this.ECMAScriptLogicProcessingSettingsRepresentative,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_ECMA_SCRIPT_LOGIC_SOURCE_CODE_FILE--BY_ECMA_SCRIPT_LOGIC_PROCESSOR",handler:this.onSourceFilesWatcherEmittedAnyEvent.bind(this)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",handler:f.onEntryPointFileAdded}))}generateWebpackCallback(e){return(t,i)=>{let n;(0,m.isNotUndefined)(i)&&process.stdout.write(`${i.toString({colors:!0})}\n`);let r=[];i instanceof a.default.Stats?r=i.compilation.errors:(0,m.isNotUndefined)(i)&&(r=i.stats[0]?.compilation.errors),(0,m.isNeitherUndefinedNorNull)(t)?n=t.message:r.length>0&&(n=r.toString()),(0,m.isNotUndefined)(n)&&(m.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:n,occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)"}),c.default.notify({title:"ECMAScript logic processing",message:"Error has occurred. Please check the console."})),!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&(0,m.isNotUndefined)(n)?(m.Logger.logError({errorType:"ECMA_ScriptLogicProcessingError",title:"ECMAScript logic processing error",description:"Unable to production build.",occurrenceLocation:"ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)"}),e?.(new Error(n))):((0,m.addEntriesToMap)({targetMap:s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,newEntries:d.default.generate(this.ECMAScriptLogicProcessingSettingsRepresentative),mutably:!0}),e?.())}}onSourceFilesWatcherEmittedAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,m.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{const e=this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[],t=Array.from((0,m.filterMap)(this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap,t=>e.includes(t)).values());1===t.length?(0,m.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.webpackMultiCompiler.compilers,e=>e.name===t[0],{mustThrowErrorIfElementNotFoundOrMatchesAreMultiple:!0}).run(this.generateWebpackCallback()):t.length>1&&this.webpackMultiCompiler.run(this.generateWebpackCallback()),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,m.secondsToMilliseconds)(1))}static onEntryPointFileAdded(e){m.Logger.logWarning({title:"Restarting is Required",description:["New ECMAScript logic entry point has been added:",e,"We are sorry, but current YDA version does not support the building of ECMAScript logic entry points added after the starting of YDA. Please restart the YDA."].join("\n")})}static generateUnifiedDirectoriesAliasesAndTheirAbsolutePatsMapForSourceCodeSelectiveReprocessingHelper(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values())for(const[e,n]of i.directoriesAliasesAndCorrespondingAbsolutePathsMap){const i=t.get(e);(0,m.isUndefined)(i)?t.set(e,new Set(n)):(0,m.addElementsToSet)({targetSet:i,newElements:n})}return t}}t.default=f},4284(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({ecmaScriptLogicProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"ECMA_SCRIPT_LOGIC_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"ECMAScript Logic"}),this.settingsRepresentative=e}}t.default=a},4533(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8228)),r=n(i(5317)),o=i(1496),a=i(5480),l=i(6272);class d{projectBuildingMasterConfigRepresentative;electronExecutableFileAbsolutePath;activeElectronChildProcess=null;waitingForNextEventWithRelatedFiles=null;static coordinateIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,l.isUndefined)(t?.electronSettings))return o.voidPromiseReturningFunction;const i=new d({projectBuildingMasterConfigRepresentative:e});return s.default.initialize({electronSettings:t.electronSettings,loggingSettings:t.loggingSettings,onAnyEventRelatedWithActualFilesHandler:i.onAnyEventRelatedWithRelatedFiles.bind(i)}),i.createPromisfiedChildProcess.bind(i)}constructor({projectBuildingMasterConfigRepresentative:e}){this.projectBuildingMasterConfigRepresentative=e,this.electronExecutableFileAbsolutePath=a.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,"node_modules","electron","cli.js"],{alwaysForwardSlashSeparators:!0})}async createPromisfiedChildProcess(){return new Promise(e=>{this.activeElectronChildProcess=this.createElectronChildProcess(e)})}createElectronChildProcess(e){const t=r.default.execFile("node",[this.electronExecutableFileAbsolutePath,"."],{encoding:"utf-8"}).on("spawn",()=>{e?.()});return t.stdout?.on("data",e=>{console.log(e)}),t.stderr?.on("data",e=>{console.error(e)}),t}onAnyEventRelatedWithRelatedFiles(){clearTimeout((0,l.nullToUndefined)(this.waitingForNextEventWithRelatedFiles)),l.Logger.logInfo({title:"ElectronCoordinator, Restarting Application",description:"The changes has been detected on or more output files. Restarting the application..."}),this.waitingForNextEventWithRelatedFiles=setTimeout(()=>{const e=this.activeElectronChildProcess;this.activeElectronChildProcess=this.createElectronChildProcess(()=>{e?.kill("SIGKILL")})},(0,l.secondsToMilliseconds)(1))}}t.default=d},363(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4284)),r=n(i(6274)),o=n(i(9227)),a=i(7249),l=n(i(7818)),d=n(i(2853)),u=n(i(2977)),c=i(6272),p=i(5480),g=n(i(4120));class m extends r.default{static localization=g.default;ESLintInstance=new a.ESLint;static provideLintingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,d.default)();const i=new m({ecmaScriptLogicProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e});return e.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({ecmaScriptLogicProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyRelatedFileAddedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_ADDED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenAddedOrUpdated.bind(i)}).addOnAnyRelatedFileUpdatedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_UPDATED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenAddedOrUpdated.bind(i)}).addOnAnyRelatedFileDeletedEventHandler({handlerID:"ON_ANY_ECMA_SCRIPT_LOGIC_FILE_DELETED--BY_ECMA_SCRIPT_SOURCE_CODE_LINTER",handler:i.onFileHasBeenDeleted.bind(i)}),i.checkFiles(i.targetFilesGlobSelectors)}constructor({ecmaScriptLogicProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"ECMAScript Logic Processing / ECMAScript Logic Source Code Linting",sourceFilesCachedCheckingResults:{fileNameWithExtension:"ECMA_ScriptLintingCache.json",contentSpecification:{subtype:c.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CachedMarkupLintingResultsFileContent",properties:{files:{type:c.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{ruleID:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}},location:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{startingLineNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},endingLineNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},startingColumnNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},endingColumnNumber__numerationFrom1:{type:Number,numbersSet:c.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},modificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},emptyValue:{files:{}}},targetFilesGlobSelectors:[p.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots}),p.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(p.ImprovedPath.joinPathSegments([t.consumingProjectRootDirectoryAbsolutePath,"node_modules"])),...o.default.generateExcludingGlobSelectorsOfIgnoredFiles(t.consumingProjectRootDirectoryAbsolutePath)],logging:{pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount,checkingStart:e.loggingSettings.linting.starting,completionWithoutIssues:e.loggingSettings.linting.completionWithoutIssues}}),this.ESLintInstance=new a.ESLint}async checkSingleFile(e){const t=(0,u.default)(e);try{e[r.default.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=(await this.ESLintInstance.lintText(t,{filePath:e.path}))[0].messages.map(e=>this.normalizeLintingIssues(e,t))}catch(e){c.Logger.throwErrorWithFormattedMessage({errorType:"ECMA_ScriptSourceCodeLinter",title:m.localization.lintingFailedErrorLog.title,description:c.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:m.localization.lintingFailedErrorLog.technicalDetails,politeExplanation:m.localization.lintingFailedErrorLog.politeExplanation}),occurrenceLocation:"ecmaScriptSourceCodeLinter.checkSingleFile()",innerError:e})}return Promise.resolve(l.default.CompletionSignals.PASSING_ON)}formatIssuesOfSingleFile(e){return e.issues.map(e=>[`${"-".repeat(r.default.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,e.codeFragment.beforeHighlighting,c.Logger.highlightText(e.codeFragment.highlighted),e.codeFragment.afterHighlighting,`${"-".repeat(r.default.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,`${e.message} (${e.ruleID})\n`,...(0,c.isNeitherUndefinedNorNull)(e.location.startingLineNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.startingColumnNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.endingLineNumber__numerationFrom1)&&(0,c.isNeitherUndefinedNorNull)(e.location.endingColumnNumber__numerationFrom1)?[`at ${e.location.startingLineNumber__numerationFrom1}:${e.location.startingColumnNumber__numerationFrom1}-${e.location.endingLineNumber__numerationFrom1}:${e.location.endingColumnNumber__numerationFrom1}`]:[]].join("")).join("\n\n")}normalizeLintingIssues(e,t){let i="",n="",s="";const r=(0,c.splitString)(t,"\n");if((0,c.isNeitherUndefinedNorNull)(e.line)&&(0,c.isNeitherUndefinedNorNull)(e.endLine)&&(0,c.isNeitherUndefinedNorNull)(e.column)&&(0,c.isNeitherUndefinedNorNull)(e.endColumn)){i=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,index:e.line-1,newElement:e.column>1?(0,c.cropString)({targetString:r[e.line-1],fromStart:!0,endingCharacterNumber__numerationFrom1:e.column-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0}):""}),startingElementNumber__numerationFrom1:(0,c.limitMinimalValue)({targetNumber:e.line-this.DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT,minimalValue:1}),endingElementNumber__numerationFrom1__including:e.line,mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n"),n=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,replacements:[...e.line===e.endLine?[{index:e.line-1,newElement:(0,c.cropString)({targetString:r[e.line-1],startingCharacterNumber__numerationFrom1:e.column,endingCharacterNumber__numerationFrom1:e.column===e.endColumn?e.endColumn:e.endColumn-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}]:[{index:e.line-1,newElement:(0,c.cropString)({targetString:r[e.line-1],startingCharacterNumber__numerationFrom1:e.column,untilEnd:!0,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})},...e.endColumn>1?[{index:e.endLine-1,newElement:(0,c.cropString)({targetString:r[e.endLine-1],fromStart:!0,endingCharacterNumber__numerationFrom1:e.column===e.endColumn?e.endColumn:e.endColumn-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}]:[]]]}),startingElementNumber__numerationFrom1:e.line,endingElementNumber__numerationFrom1__including:e.endLine,mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n");const t=r[e.endLine-1];s=(0,c.cropArray)({fromStart:!0,targetArray:(0,c.replaceArrayElementsByIndexesImmutably)({targetArray:r,index:e.endLine-1,newElement:t.length===e.endColumn?"":(0,c.cropString)({targetString:t,startingCharacterNumber__numerationFrom1:e.endColumn,untilEnd:!0,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!0})}),startingElementNumber__numerationFrom1:e.endLine,endingElementNumber__numerationFrom1__including:(0,c.limitMaximalValue)({targetNumber:e.endLine+this.DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT,maximalValue:r.length}),mutably:!1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}).join("\n")}return{...(0,c.isNotNull)(e.ruleId)?{ruleID:e.ruleId}:null,message:e.message,location:{...(0,c.isNotUndefined)(e.line)?{startingLineNumber__numerationFrom1:e.line}:null,...(0,c.isNotUndefined)(e.endLine)?{endingLineNumber__numerationFrom1:e.endLine}:null,...(0,c.isNotUndefined)(e.column)?{startingColumnNumber__numerationFrom1:e.column}:null,...(0,c.isNotUndefined)(e.endColumn)?{endingColumnNumber__numerationFrom1:e.endColumn}:null},codeFragment:{beforeHighlighting:i,highlighted:n,afterHighlighting:s}}}}t.default=m},4120(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={lintingFailedErrorLog:{title:"ECMAScript logic linting error",technicalDetails:"The error occurred during execution of ESLint.",politeExplanation:"The ECMAScript logic linter has thrown the error under unknown for YDA developers combination of conditions."}}},5379(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1741)),r=n(i(771)),o=i(6272);t.default=class{static orchestrateIfMust(e){const t=e.getECMA_ScriptLogicProcessingSettingsRepresentativeIfMustOrchestrateLocalDevelopmentServer();if((0,o.isNull)(t)||(0,o.isUndefined)(t.localDevelopmentServerOrchestrationSettings))return e=>{e()};const i=t.localDevelopmentServerOrchestrationSettings;return e=>{const t=(0,o.getExpectedToBeNonUndefinedMapValue)(s.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,i.targetSourceFileAbsolutePath);(0,r.default)({script:t,watch:[t],args:[...i.arguments],env:i.environmentVariables,done:e}),e()}}}},7318(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(4284)),r=i(1496),o=n(i(5317)),a=n(i(9896)),l=i(5480),d=i(6272),u=n(i(8661));class c{static WAITING_FOR_NEXT_EVENT_WITH_RELATED_FILES__SECONDS=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;vueTSC_ExecutableFileAbsolutePath;projectBuildingMasterConfigRepresentative;ecmaScriptLogicProcessingSettingsRepresentative;waitingForNextEventWithRelatedFiles=null;static provideCheckingIfMust(e){const t=e.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,d.isUndefined)(t))return r.voidPromiseReturningFunction;const i=new c({projectBuildingMasterConfigRepresentative:e,ecmaScriptLogicProcessingSettingsRepresentative:t});return i.checkTypes.bind(i)}constructor({projectBuildingMasterConfigRepresentative:e,ecmaScriptLogicProcessingSettingsRepresentative:t}){this.projectBuildingMasterConfigRepresentative=e,this.ecmaScriptLogicProcessingSettingsRepresentative=t,this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,ecmaScriptLogicProcessingSettingsRepresentative:this.ecmaScriptLogicProcessingSettingsRepresentative}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_RELATED_WITH_ACTUAL_FILES_HANDLER--BY_TYPE_SCRIPT_TYPES_CHECKER",handler:this.onAnyEventRelatedWithRelatedFiles.bind(this)});const i=c.getAbsolutePathOfExistingVueTSC_ExecutableFile__alwaysForwardSlashesPathSeparators(e.consumingProjectRootDirectoryAbsolutePath);(0,d.isNull)(i)&&d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.UnexpectedEventError('File to "vue-tsc" executable not found'),title:d.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"TypeScriptTypesChecker.constructor(compoundParameter)"}),this.vueTSC_ExecutableFileAbsolutePath=i}onAnyEventRelatedWithRelatedFiles(){clearTimeout((0,d.nullToUndefined)(this.waitingForNextEventWithRelatedFiles)),this.waitingForNextEventWithRelatedFiles=setTimeout(()=>{this.checkTypes().catch(d.Logger.logPromiseError)},(0,d.secondsToMilliseconds)(c.WAITING_FOR_NEXT_EVENT_WITH_RELATED_FILES__SECONDS))}async checkTypes(){return new Promise((e,t)=>{o.default.exec(`node ${this.vueTSC_ExecutableFileAbsolutePath} --noEmit`,{encoding:"utf-8"},(i,n)=>{if((0,d.isNotNull)(i))return i.message.includes("Cannot find module")?(d.Logger.logError({errorType:"TypeScriptTypeCheckingError",title:"TypeScript Types Checking Failed",description:"The reference to unexisting module has terminated the TypeScript types checking",occurrenceLocation:"typeScriptTypesChecker.checkTypes",caughtError:i}),this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?void t(i):void e()):(d.Logger.logErrorLikeMessage({title:"TypeScript Type Checking, Error(s) Detected",description:"The source code is including the TypeScript error(s).\n"+(this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?"Is is unacceptable for production-like modes thus the project building will be terminated.":"")+`${"-".repeat(c.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`+n}),u.default.notify({title:"TypeScript Types Checking, Errors Detected",message:"Please check your terminal for the details."}),this.projectBuildingMasterConfigRepresentative.isProductionLikeBuildingMode?void t(i):void e());d.Logger.logSuccess({title:"TypeScript Type Checking, No Errors Found",description:"The source TypeScript is valid. Keep it up!"}),e()})})}static getAbsolutePathOfExistingVueTSC_ExecutableFile__alwaysForwardSlashesPathSeparators(e){for(const t of[l.ImprovedPath.joinPathSegments([e,"node_modules","vue-tsc","bin","vue-tsc.js"],{alwaysForwardSlashSeparators:!0}),l.ImprovedPath.joinPathSegments([e,"node_modules","@yamato-daiwa","automation","node_modules","vue-tsc","bin","vue-tsc.js"],{alwaysForwardSlashSeparators:!0})])if(a.default.existsSync(t))return t;return null}}t.default=c},1142(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);class r{static generate(e){const t=new Map;for(const i of e.relevantEntryPointsGroupsSettings.values()){const e=s.ImprovedGlob.getFilesAbsolutePathsSynchronously(i.sourceFilesGlobSelectors);for(const n of e)t.set(s.ImprovedPath.replacePathSeparatorsToForwardSlashes(n),r.getEntryPointsOutputFileActualAbsolutePath(n,i))}return t}static getEntryPointsOutputFileActualAbsolutePath(e,t){let i;if(t.revisioning.mustExecute){const r=s.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,s.ImprovedPath.computeRelativePath({basePath:t.sourceFilesTopDirectoryAbsolutePath,comparedPath:s.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})}),`${s.ImprovedPath.extractFileNameWithoutExtensionFromPath({targetPath:e,mustThrowErrorIfLastPathSegmentHasNoDots:!0})}**.js`],{alwaysForwardSlashSeparators:!0}),o=s.ImprovedGlob.getFilesAbsolutePathsSynchronously([r]);0===o.length?n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが見つけられなかった。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:n.AlgorithmMismatchError.localization.defaultTitle}):o.length>1&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.AlgorithmMismatchError(`入点源ファイル:${e}に該当している出力ファイルが複数件が発見された:\n${(0,n.stringifyAndFormatArbitraryValue)(o)}\n前の構成は自動的に削除されなかった場合、再構成する前に手動で削除して下さい。`),occurrenceLocation:"ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPathsMapGenerator.getEntryPointsOutputFileActualAbsolutePath(...parameters)",title:n.AlgorithmMismatchError.localization.defaultTitle}),i=o[0]}else i=s.ImprovedPath.joinPathSegments([t.outputFilesTopDirectoryAbsolutePath,s.ImprovedPath.computeRelativePath({comparedPath:s.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0}),basePath:t.sourceFilesTopDirectoryAbsolutePath}),`${(0,n.extractFileNameWithAllExtensionsFromPath)({targetPath:(0,n.removeLastFileNameExtensionFromPath)(e),mustThrowErrorIfLastPathSegmentHasNoDots:!1})}.js`],{alwaysForwardSlashSeparators:!0});return i}}t.default=r},4714(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(i(5256)).default.SupportedECMA_ScriptRuntimesTypes;const r=n(i(7809)),o=n(i(4061)),a=n(i(6807)),l=i(2728),d=n(i(3523)),u=n(i(3491)),c=n(i(7689)),p=n(i(6928)),g=i(6272),m=i(5480);class h{static cachedTypeScriptConfigurations={};static generateWebpackConfigurationForEntryPointsGroupWithExistingFiles({entryPointsSourceFilesAbsolutePaths:e,ECMA_ScriptLogicEntryPointsGroupSettings:t,ECMA_ScriptLogicProcessingConfigRepresentative:i,masterConfigRepresentative:n}){const f=t.sourceFilesTopDirectoryAbsolutePath,S=h.getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:e,webpackContext:f});let F;const P=h.cachedTypeScriptConfigurations[t.typeScriptConfigurationFileAbsolutePath];(0,g.isUndefined)(P)?(F=o.default.readTypeScriptConfigurationFileAndGetCompilerOptions(t.typeScriptConfigurationFileAbsolutePath),this.cachedTypeScriptConfigurations[t.typeScriptConfigurationFileAbsolutePath]=F):F=P;const _=h.computePublicPath(t,n),b=!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&t.targetRuntime.type===s.browser,E=!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose&&t.targetRuntime.type===s.pug,y=t.distributing,A={loader:"postcss-loader",options:{postcssOptions:{plugins:["postcss-normalize-stylus-compatible-container-query-syntax",u.default,(0,c.default)({preset:["default",{normalizeWhitespace:!n.mustProvideIncrementalBuilding,discardComments:!n.mustProvideIncrementalBuilding}]})]}}};return{name:t.ID,context:p.default.normalize(f),target:(()=>{switch(t.targetRuntime.type){case s.browser:case s.pug:return"web";case s.webWorker:return"webworker";case s.nodeJS:return[`node${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[]].join("");case s.electronMainProcess:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-main"].join("");case s.electronRendererProcess:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-renderer"].join("");case s.electronPreload:return[`electron${t.targetRuntime.minimalVersion.major}`,...(0,g.isNotUndefined)(t.targetRuntime.minimalVersion.minor)?[`.${t.targetRuntime.minimalVersion.minor}`]:[],"-preload"].join("")}})(),entry:S,output:{path:p.default.normalize(t.outputFilesTopDirectoryAbsolutePath),...(0,g.isNotUndefined)(_)?{publicPath:_}:{},filename:t.revisioning.mustExecute?`[name]${t.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[name].js",chunkFilename:t.revisioning.mustExecute?`[id]${t.revisioning.contentHashPostfixSeparator}[contenthash].js`:"[id][contenthash].js",...!0===t.distributing?.exposingOfExportsFromEntryPoints.mustExpose?{library:{type:(()=>{switch(t.targetRuntime.type){case s.browser:case s.electronRendererProcess:case s.electronPreload:return t.distributing.exposingOfExportsFromEntryPoints.mustAssignToWindowObject?"window":"module";case s.nodeJS:case s.electronMainProcess:return"commonjs";case s.pug:return"umd";case s.webWorker:g.Logger.throwErrorWithFormattedMessage({errorInstance:new g.UnexpectedEventError("The web worker could not be the library, while the computing of 'output.library.type' has been requested"),title:g.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"webpackConfigGenerator.generateSingleWebpackConfigurationIfAtLeastOneTargetEntryPointFileExists(entryPointsGroupSettings)"})}})(),name:t.distributing.exposingOfExportsFromEntryPoints.namespace}}:null,...E?{globalObject:"globalThis"}:null},...(0,g.isNotUndefined)(y)&&y.externalizingDependencies.length>0?{externals:y.externalizingDependencies.reduce((e,t)=>(e[t]=t,e),{})}:null,...b?{experiments:{outputModule:!0}}:null,mode:n.mustProvideIncrementalBuilding?"development":"production",devtool:(()=>{switch(t.targetRuntime.type){case s.browser:case s.electronRendererProcess:case s.electronPreload:return!!n.mustProvideIncrementalBuilding&&"cheap-module-source-map";default:return!1}})(),...t.targetRuntime.type===s.nodeJS?{node:{__dirname:!0,__filename:!0}}:null,module:{rules:[{test:/\.tsx?$/u,loader:"ts-loader",options:{configFile:t.typeScriptConfigurationFileAbsolutePath,transpileOnly:!0,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,loader:"@webdiscus/pug-loader",options:{mode:"html"}},{test:/\.renderer\.pug$/u,loader:"@webdiscus/pug-loader",options:{mode:"compile"}},{test:/\.ydur\.pug$/u,loader:"@yamato-daiwa/universal-reactive-webpack-loader",options:{debug:!1}},{loader:"@webdiscus/pug-loader",options:{mode:"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",A,"stylus-loader"]},{use:["style-loader","css-loader",A,"stylus-loader"]}]}]},resolve:{extensions:Array.from(i.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots).map(e=>`.${e}`),alias:{...r.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:F.paths,typeScriptBasicAbsolutePath:F.baseUrl??m.ImprovedPath.extractDirectoryFromFilePath({targetPath:t.typeScriptConfigurationFileAbsolutePath,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0})}),...t.targetRuntime.type===s.browser?{vue:"vue/dist/vue.esm-bundler.js"}:null}},resolveLoader:r.default.generateLoadersResolvingSettings(n.consumingProjectRootDirectoryAbsolutePath),...t.targetRuntime.type===s.nodeJS?{externals:[(0,d.default)()]}:null,plugins:[new a.default.DefinePlugin({__PROJECT_ROOT_DIRECTORY__ALWAYS_FORWARD_SLASHES_PATH_SEPARATORS__YDA__:JSON.stringify(n.consumingProjectRootDirectoryAbsolutePath),__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:n.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:n.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:n.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:n.isProductionBuildingMode,...t.targetRuntime.type===s.browser?{__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1}:null,...t.preprocessorVariables}),new l.VueLoaderPlugin],optimization:{minimize:!n.mustProvideIncrementalBuilding,emitOnErrors:n.mustProvideIncrementalBuilding},...Object.entries(t.dependenciesViaGlobals).length>0?{externals:t.dependenciesViaGlobals}:null}}static getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:e,webpackContext:t}){const i={};h.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e);for(const n of e){const e=m.ImprovedPath.computeRelativePath({comparedPath:n,basePath:t});i[(0,g.removeLastFileNameExtensionFromPath)(e)]=n}return i}static computePublicPath(e,t){return t.mustProvideIncrementalBuilding?e.ID.replace(e.ID,"/"):"/"}static checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(e){const t=new Set;for(const i of e){const e=(0,g.removeAllFileNameExtensions)(i);t.has(e)?g.Logger.throwErrorWithFormattedMessage({errorType:"IncompatibleFilesError",description:"Incompatible files",title:g.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"WebpackConfigGenerator.checkForFilesWithSameDirectoryAndFileNameButDifferentExtensions(entryPointsSourceFilesAbsolutePaths)"}):t.add(e)}}}t.default=h},8228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(30)),r=n(i(4871)),o=i(5480);class a extends s.default{onAnyEventRelatedWithActualFilesHandler;static initialize(e){r.default.addPassiveWatcher(new a(e))}constructor({electronSettings:e,loggingSettings:t,onAnyEventRelatedWithActualFilesHandler:i}){super({ID:"BROWSER_COORDINATOR_RELATED_FILES_WATCHER",targetFilesGlobSelectors:[o.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:e.hotReloadingForLocalDevelopmentMode.rootDirectoryAbsolutePath}),...e.hotReloadingForLocalDevelopmentMode.ignoredFilesAndDirectoriesAbsolutePaths.map(e=>o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(e))],mustLogEvents:t.filesWatcherEvents}),this.onAnyEventRelatedWithActualFilesHandler=i}notifyAboutRelatedFileStateChange(e,t){this.onAnyEventRelatedWithActualFilesHandler(e,t)}}t.default=a},2228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1581)),r=n(i(7831)),o=n(i(3148)),a=n(i(2597)),l=i(6272),d=i(5480);class u extends a.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualEntryPointsGroupSettings;pageStateDependentVariationData;localizationData;markupProcessingSettingsRepresentative;pageStateDependentVariationsSpecification;constructor({initialPlainVinylFile:e,markupProcessingSettingsRepresentative:t,pageStateDependentVariationData:i,localizationData:n}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=d.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.markupProcessingSettingsRepresentative=t,this.actualEntryPointsGroupSettings=this.markupProcessingSettingsRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path),this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(this.sourceAbsolutePath,this.actualEntryPointsGroupSettings),this.pageStateDependentVariationsSpecification=this.markupProcessingSettingsRepresentative.getStateDependentVariationsForEntryPointWithAbsolutePath(e.path),(0,l.isNotUndefined)(this.pageStateDependentVariationsSpecification)?this.pageStateDependentVariationData={[this.pageStateDependentVariationsSpecification.stateVariableName]:{}}:(0,l.isNotUndefined)(i)&&(this.pageStateDependentVariationData=i),(0,l.isNotUndefined)(n)&&(this.localizationData=n)}manageVariations(){const e=(0,l.getExpectedToBeNonUndefinedMapValue)(r.default.pagesVariationsMetadata,this.sourceAbsolutePath);if(e.mustInitialFileBeKept&&1===e.absoluteSourcePathsOfAllVariations.size&&e.absoluteSourcePathsOfAllVariations.has(this.sourceAbsolutePath))return{newFiles:[],mustInitialFileBeDeleted:!1};const t=[];for(const[i,n]of e.dataForPugBySourceFilesAbsolutePaths.entries())this.sourceAbsolutePath!==i&&t.push(new u({initialPlainVinylFile:new o.default({base:this.base,path:i,contents:this.contents}),markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative,pageStateDependentVariationData:{...n.localizationData??null,...n.pageStateDependentVariationData??null}}));return{newFiles:t,mustInitialFileBeDeleted:!e.mustInitialFileBeKept}}}t.default=u},8398(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);var s;!function(e){let t,i;e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["pug"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set([]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["html"],function(e){e.HTML="HTML",e.handlebars="handlebars",e.razor="razor"}(t=e.OutputFormats||(e.OutputFormats={})),function(e){e.WCAG2A="WCAG2A",e.WCAG2AA="WCAG2AA",e.WCAG2AAA="WCAG2AAA"}(i=e.SupportedAccessibilityStandards||(e.SupportedAccessibilityStandards={})),e.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile=function({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:t}){return(0,n.addPenultimateFileNameExtension)({targetPath:e,targetFileNamePenultimateExtensionWithOrWithoutLeadingDot:t,mustAppendDuplicateEvenIfTargetPenultimateFileNameExtensionAlreadyExist:!0,mustAppendLastFileNameExtensionInsteadIfThereIsNoOne:!0})},e.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint=function({sourceFileNameWithoutLastExtension:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:t,outputFileNameWithLastExtensionWithLeadingDot:i}){return[e,t,i].join(".")}}(s||(s={})),t.default=s},1581(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(6300)),o=n(i(4912)),a=i(6272),l=i(5480);class d extends o.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Markup";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Markup";WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;sourceCodeLintingCommonSettings;importingFromTypeScriptSettings;importingFromJavaScriptSettings;staticPreviewSettings;routingSettings;relevantEntryPointsGroupsSettings;loggingSettings;mustValidateHTML;mustInspectAccessibility;TASK_NAME_FOR_LOGGING="Markup Processing";entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,a.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.common.secondsBetweenFileUpdatingAndStartingOfRebuilding,this.sourceCodeLintingCommonSettings=e.linting,this.importingFromTypeScriptSettings=e.importingFromTypeScript,this.importingFromJavaScriptSettings=e.importingFromJavaScript,this.staticPreviewSettings=e.staticPreview,this.routingSettings=e.routing,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.loggingSettings=e.logging,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${r.default}${e.ID}`,e])),this.mustValidateHTML=Array.from(this.relevantEntryPointsGroupsSettings.values()).some(e=>e.HTML_Validation.mustExecute),this.mustInspectAccessibility=Array.from(this.relevantEntryPointsGroupsSettings.values()).some(e=>e.accessibilityInspection.mustExecute),this.sourceCodeProcessingCommonSettings=e.common}computeOutputFileNameExtension(e){let t;switch(("entryPointsGroupSettingsActualForTargetFile"in e?e.entryPointsGroupSettingsActualForTargetFile:this.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.targetFilePath)).outputFormat){case s.default.OutputFormats.HTML:t="html";break;case s.default.OutputFormats.handlebars:t=this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode?"html":"hbs";break;case s.default.OutputFormats.razor:t="razor"}return(0,a.insertSubstringIf)(".",e.mustPrependDotToFileNameExtension)+t}getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e){let t;for(const i of this.relevantEntryPointsGroupsSettings.values()){let n;if(i.localization.locales.size>0){const t=new Set(Array.from(i.localization.locales.values()).map(({outputFileInterimNameExtensionWithoutDot:e})=>e));n=(0,a.removeSpecifiedFileNameExtensionsFromPath)({filePath:e,mustIgnoreLastOrSingleFileNameExtension:!0,filesNamesExtensions:t,pathsSeparatorMustBeUsedInOutputPathWhen2_KindsMixedInInitialPaths:"/"})}else n=e;if(l.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({filePath:n,globSelectors:i.sourceFilesGlobSelectors})){t=i;break}}return(0,a.isUndefined)(t)&&a.Logger.throwErrorWithFormattedMessage({errorInstance:new a.UnexpectedEventError(`No output entry points group has been fond for file of the path:\n${e}`),title:a.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamBasedSourceCodeProcessingConfigRepresentative(Inheritor).getEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(targetSourceFileAbsolutePath)"}),t}getStateDependentVariationsForEntryPointWithAbsolutePath(e){return this.staticPreviewSettings.pagesVariations.stateDependent.get((0,a.replaceDoubleBackslashesWithForwardSlashes)(e))}get staticDataForStaticPreview(){return this.staticPreviewSettings.importsFromStaticDataFiles}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}createPagesVariationsMetadata(e){return new Map(e.map(e=>[e,this.createPageVariationsMetadata(e)]))}createPageVariationsMetadata(e){const t=new Map,i=new Set,n=new Map,r=this.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e),{localizedStringResourcesConstantName:o,localeConstantName:u,locales:c,excludedFilesAbsolutePaths:p,nameOfConstantForInterpolationToLangHTML_Attribute:g}=r.localization,m=c.size>0&&!p.includes(e),h=this.computeOutputFileNameExtension({entryPointsGroupSettingsActualForTargetFile:r,mustPrependDotToFileNameExtension:!1}),f=d.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,r),S=this.getStateDependentVariationsForEntryPointWithAbsolutePath(e);if(m)for(const{outputFileInterimNameExtensionWithoutDot:r,localeConstantValue:d,stringResources:p,valueOfConstantForInterpolationToLangHTML_Attribute:m}of c.values()){const c=s.default.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r});t.set(c,l.ImprovedPath.joinPathSegments([f,s.default.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint({sourceFileNameWithoutLastExtension:(0,a.extractFileNameWithoutLastExtension)(e),localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r,outputFileNameWithLastExtensionWithLeadingDot:h})],{alwaysForwardSlashSeparators:!0})),i.add(c),n.set(c,{localizationData:{...(0,a.isNotUndefined)(u)&&(0,a.isNotUndefined)(d)?{[u]:d}:null,...(0,a.isNotUndefined)(o)&&(0,a.isNotUndefined)(p)?{[o]:p}:null,...(0,a.isNotUndefined)(g)&&(0,a.isNotUndefined)(m)?{[g]:m}:null},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:{}}}:null})}else t.set(e,l.ImprovedPath.joinPathSegments([f,`${(0,a.extractFileNameWithoutLastExtension)(e)}.`+h],{alwaysForwardSlashSeparators:!0})),i.add(e);for(const e of(S?.derivedPagesAndStatesMap??new Map).keys())if(m)for(const{outputFileInterimNameExtensionWithoutDot:r,localeConstantValue:d,stringResources:p,valueOfConstantForInterpolationToLangHTML_Attribute:m}of c.values()){const c=s.default.addLocaleIdentifyingPenultimateFileNameToAbsolutePathOfMarkupEntryPointSourceFile({initialAbsolutePathOfMarkupEntryPointSourceFile:e,localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r});t.set(c,l.ImprovedPath.joinPathSegments([f,s.default.computeOutputFileNameWithAllExtensionsForLocalizedMarkupEntryPoint({sourceFileNameWithoutLastExtension:(0,a.extractFileNameWithoutLastExtension)(e),localeIdentifyingPenultimateFileNameExtensionWithoutLeadingDot:r,outputFileNameWithLastExtensionWithLeadingDot:h})],{alwaysForwardSlashSeparators:!0})),i.add(c),n.set(c,{localizationData:{...(0,a.isNotUndefined)(u)&&(0,a.isNotUndefined)(d)?{[u]:d}:null,...(0,a.isNotUndefined)(o)&&(0,a.isNotUndefined)(p)?{[o]:p}:null,...(0,a.isNotUndefined)(g)&&(0,a.isNotUndefined)(m)?{[g]:m}:null},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:(0,a.getExpectedToBeNonUndefinedMapValue)(S.derivedPagesAndStatesMap,e)}}:null})}else t.set(e,l.ImprovedPath.joinPathSegments([f,`${(0,a.extractFileNameWithoutLastExtension)(e)}.`+h],{alwaysForwardSlashSeparators:!0})),i.add(e),n.set(e,{localizationData:{},...(0,a.isNotUndefined)(S)?{pageStateDependentVariationData:{[S.stateVariableName]:(0,a.getExpectedToBeNonUndefinedMapValue)(S.derivedPagesAndStatesMap,e)}}:null});return{mustInitialFileBeKept:!m,initialSourceFileAbsolutePath:e,sourceAndOutputAbsolutePathsOfAllVariations:t,absoluteSourcePathsOfAllVariations:i,dataForPugBySourceFilesAbsolutePaths:n}}}t.default=d},3021(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,staticPreview:{typeScriptConfigurationFileRelativePath:"tsconfig.json"},outputCodeFormatting:{mustExecute:({outputFormat:e})=>e===s.default.OutputFormats.razor,indentationString:" ",lineSeparators:i(6272).LineSeparators.lineFeed,mustGuaranteeTrailingEmptyLine:!0,mustIndentHeadAndBodyTags:!0},outputCodeMinifying:{mustExecute:({outputFormat:e})=>e===s.default.OutputFormats.HTML||e===s.default.OutputFormats.handlebars,attributesExtraWhitespacesCollapsing:!0,attributesValuesDeduplication:!0,commentsRemoving:!0},linting:{mustExecute:!0},HTML_Validation:{mustExecute:!0},accessibilityInspection:{mustExecute:!0,standard:s.default.SupportedAccessibilityStandards.WCAG2AAA},outputFormat:s.default.OutputFormats.HTML,logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0},HTML_Validation:{starting:!0,completionWithoutIssues:!0},accessibilityChecking:{starting:!0,completionWithoutIssues:!0}}};t.default=r},554(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(8931)),o=n(i(7534)),a=n(i(1579)),l=i(6272);var d;!function(e){function t({forEntryPointsGroups:e}){return{newName:"localization",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$stringResourcesFileRelativePath:{newName:"stringResourcesFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$localizedStringResourcesConstantName:{newName:"localizedStringResourcesConstantName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$localeConstantName:{newName:"localeConstantName",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$nameOfConstantForInterpolationToLangHTML_Attribute:{newName:"nameOfConstantForInterpolationToLangHTML_Attribute",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$locales:{newName:"locales",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,value:{type:Object,properties:{$outputFileInterimNameExtensionWithoutDot:{newName:"outputFileInterimNameExtensionWithoutDot",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$localeConstantValue:{newName:"localeConstantValue",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$localeConstantName"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$localeConstantName` is defined"},isNullForbidden:!0,minimalCharactersCount:1},$keyInLocalizedStringResourcesObject:{newName:"keyInLocalizedStringResourcesObject",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$stringResourcesFileRelativePath"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$stringResourcesFileRelativePath` is defined"},isNullForbidden:!0,minimalCharactersCount:1},$valueOfConstantForInterpolationToLangHTML_Attribute:{newName:"valueOfConstantForInterpolationToLangHTML_Attribute",type:String,undefinedForbiddenIf:{predicate:({targetPropertyDotSeparatedPath:e,rawData__full:t})=>(0,l.isNotUndefined)((0,l.getObjectPropertySafely)(t,[...(0,l.splitString)(e,".").slice(0,-3),"$nameOfConstantForInterpolationToLangHTML_Attribute"])),descriptionForLogging:"`$projectBuilding.$markupProcessing."+(e?"$entryPointsGroups.NNN":"$common")+".$localization.$nameOfConstantForInterpolationToLangHTML_Attribute` is defined"},isNullForbidden:!0,minimalCharactersCount:1}}}},...e?{$excludedFilesPathsRelativeToSourcesFilesTopDirectory:{newName:"excludedFilesPathsRelativeToSourcesFilesTopDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}:{$excludedFilesPathsRelativeRelativeToProjectRootDirectory:{newName:"excludedFilesPathsRelativeRelativeToProjectRootDirectory",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}e.generateLocalizationPropertiesSpecification=t,e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$localization:t({forEntryPointsGroups:!1}),$buildingModeDependent:{newName:"buildingModeDependent",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:r.default.staticPreview,$localDevelopment:r.default.localDevelopment,$testing:r.default.testing,$staging:r.default.staging,$production:r.default.production},value:{type:Object,properties:{$secondsBetweenFileUpdatingAndStartingOfRebuilding:{newName:"secondsBetweenFileUpdatingAndStartingOfRebuilding",type:Number,numbersSet:l.RawObjectDataProcessor.NumbersSets.positiveRealNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},$mustResolveResourcesPointersToRelativePaths:{newName:"mustResolveResourcesPointersToRelativePaths",type:Boolean,isUndefinedForbidden:!1,mustBeUndefinedIf:{predicate:({targetPropertyPathSegments:e})=>"$staticPreview"===e[e.length-2],descriptionForLogging:'project building mode is "$staticPreview"'},isNullForbidden:!0}}}}}},$staticPreview:{newName:"staticPreview",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$stateDependentPagesVariations:{newName:"stateDependentPagesVariations",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$specificationFileRelativePath:{newName:"specificationFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$importsFromStaticDataFiles:{newName:"importsFromStaticDataFiles",type:Array,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{$importedVariableName:{newName:"importedVariableName",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$fileRelativePath:{newName:"fileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},$importingFromTypeScript:{newName:"importingFromTypeScript",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$typeScriptConfigurationFileRelativePath:{newName:"typeScriptConfigurationFileRelativePath",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,minimalCharactersCount:1},$importedNamespace:{newName:"importedNamespace",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$importingFromJavaScript:{newName:"importingFromJavaScript",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$sourceFileRelativePath:{newName:"sourceFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$nameOfGlobalConstantForStoringOfImports:{newName:"nameOfGlobalConstantForStoringOfImports",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}},$routing:{newName:"routing",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$specificationFileRelativePath:{newName:"specificationFileRelativePath",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$variable:{newName:"variable",type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},$localizations:{newName:"localizations",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:String,minimalCharactersCount:1}}}},...o.default.generatePropertiesSpecification({entryPointsGroupBuildingModeIndependentSpecificSettingsLocalizedPropertiesSpecification:{$outputFormat:{newName:"outputFormat",type:String,allowedAlternatives:Object.values(s.default.OutputFormats),isUndefinedForbidden:!1,isNullForbidden:!0},$localization:t({forEntryPointsGroups:!0}),$HTML_Validation:{newName:"HTML_Validation",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoring:{newName:"ignoring",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$files:{newName:"files",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$directories:{newName:"directories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}},$accessibilityInspection:{newName:"accessibilityInspection",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$standard:{newName:"standard",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(s.default.SupportedAccessibilityStandards)},$disable:{newName:"disable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$ignoring:{newName:"ignoring",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$files:{newName:"files",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}},$directories:{newName:"directories",type:Array,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String,minimalCharactersCount:1}}}}}}},entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$outputCodeFormatting:{newName:"outputCodeFormatting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$indentationString:{newName:"indentationString",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,validValueRegularExpression:/^\s+$/u},$lineSeparators:{newName:"lineSeparators",type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:Object.values(l.LineSeparators)},$mustGuaranteeTrailingEmptyLine:{newName:"mustGuaranteeTrailingEmptyLine",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$mustIndentHeadAndBodyTags:{newName:"mustIndentHeadAndBodyTags",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$outputCodeMinifying:{newName:"outputCodeMinifying",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$enable:{newName:"enable",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$attributesExtraWhitespacesCollapsing:{newName:"attributesExtraWhitespacesCollapsing",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$attributesValuesDeduplication:{newName:"attributesValuesDeduplication",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$commentsRemoving:{newName:"commentsRemoving",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}),$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$HTML_Validation:{newName:"HTML_Validation",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting4:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$accessibilityChecking:{newName:"accessibilityChecking",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(d||(d={})),t.default=d},7831(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static importsFromTypeScript;static importsFromJavaScript;static pagesVariationsMetadata=new Map;static get entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap__includingFictiveOnes(){return Array.from(s.pagesVariationsMetadata.values()).reduce((e,{sourceAndOutputAbsolutePathsOfAllVariations:t})=>(0,n.addEntriesToMap)({targetMap:e,mutably:!0,newEntries:t}),new Map)}static get outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap(){return Array.from(s.pagesVariationsMetadata.values()).reduce((e,{initialSourceFileAbsolutePath:t,sourceAndOutputAbsolutePathsOfAllVariations:i})=>(0,n.addEntriesToMap)({targetMap:e,mutably:!0,newEntries:Array.from(i.values()).map(e=>[e,t])}),new Map)}}t.default=s},2556(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(2858)),o=n(i(1815)),a=n(i(7831)),l=n(i(4520)),d=n(i(6751)),u=n(i(1713)),c=n(i(8033)),p=n(i(7818)),g=n(i(2853)),m=n(i(2228)),h=n(i(703)),f=n(i(919)),S=n(i(6112)),F=n(i(7006)),P=n(i(3748)),_=n(i(1180)),b=n(i(7885)),E=n(i(8079)),y=n(i(6847)),A=i(4167),I=n(i(9399)),v=n(i(2215)),N=n(i(8363)),R=i(6272),T=i(5480),O=i(2006),C=n(i(6457));class D extends o.default{static CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_NAME="AccessibilityInspection";static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="MarkupEntryPointsAndAffiliatedFilesMappingCache.json";logging;CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH;markupProcessingSettingsRepresentative;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper=null;subsequentFilesStateChangeTimeout=null;static provideMarkupProcessingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,R.isUndefined)(t))return(0,g.default)();const i=new D(t,e);return a.default.pagesVariationsMetadata=t.createPagesVariationsMetadata(T.ImprovedGlob.getFilesAbsolutePathsSynchronously(t.initialRelevantEntryPointsSourceFilesAbsolutePaths,{alwaysForwardSlashSeparators:!0})),t.mustValidateHTML&&F.default.initialize({temporaryFilesDirectoryAbsolutePath:f.default.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH,projectBuildingMasterConfigRepresentative:e,logging:{validationStart:t.loggingSettings.HTML_Validation.starting,validationCompletionWithoutIssues:t.loggingSettings.HTML_Validation.completionWithoutIssues}}),t.mustInspectAccessibility&&_.default.beginInitialization({cachedInspectionsResultsFileParentDirectoryAbsolutePath:i.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH,consumingProjectBuildingMode:e.consumingProjectBuildingMode,projectBuildingSelectiveExecutionID:e.selectiveExecutionID,logging:{inspectionStart:t.loggingSettings.HTML_Validation.starting,inspectionCompletionWithoutIssues:t.loggingSettings.HTML_Validation.completionWithoutIssues}}),e.mustProvideIncrementalBuilding&&(i.sourceCodeSelectiveReprocessingHelper=new h.default({initialEntryPointsSourceFilesAbsolutePaths:t.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:c.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:c.default.implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials},isEntryPoint:t.isEntryPoint.bind(t),logging:{mustEnable:t.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:e.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:T.ImprovedPath.joinPathSegments([f.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,D.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),r.default.initializeIfRequiredAndGetInstance({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_MARKUP_SOURCE_CODE_FILE--BY_MARKUP_PROCESSOR",handler:i.onSourceFilesWatcherEmitsAnyEvent.bind(i)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",handler:i.onEntryPointFileAdded.bind(i)}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_MARKUP_PROCESSOR",handler:D.onEntryPointFileDeleted}),e.processingOnDemandSettings.enabled&&(C.default.addOnNewPageOpenedEventHandler({handlerID:"ON_PAGE_CHANGE_EVENT_HANDLER--BY_MARKUP_PROCESSOR",handler:async({relatedSourcePugFileAbsolutePath__forwardSlashSeparators:e})=>(i.processEntryPoints([e])(),Promise.resolve())}),!e.processingOnDemandSettings.fullInitialBuilding))?(0,g.default)():i.processEntryPoints(t.initialRelevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:e.TASK_NAME_FOR_LOGGING}),this.logging={pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount},this.markupProcessingSettingsRepresentative=e,this.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_ABSOLUTE_PATH=T.ImprovedPath.joinPathSegments([f.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,D.CACHED_ACCESSIBILITY_INSPECTION_RESULTS_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0})}processEntryPoints(e){return 0===e.length?(0,g.default)():()=>l.default.src(e).pipe(this.handleErrorIfItWillOccur()).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.replacePlainVinylFileWithMarkupEntryPointVinylFile.bind(this)})).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:D.managePageVariations})).pipe(super.logInputFilesIfMust()).pipe((0,d.default)(e=>({...e.pageStateDependentVariationData??null,...e.localizationData??null,...this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode?this.markupProcessingSettingsRepresentative.staticDataForStaticPreview:null,...a.default.importsFromTypeScript,...a.default.importsFromJavaScript}))).pipe((0,u.default)({locals:{__IS_STATIC_PREVIEW_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode,__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:this.projectBuildingMasterConfigRepresentative.isProductionBuildingMode,...(0,R.isNotUndefined)(this.markupProcessingSettingsRepresentative.routingSettings)?{[this.markupProcessingSettingsRepresentative.routingSettings.variable]:this.markupProcessingSettingsRepresentative.routingSettings.routes}:null},filters:{html_special_characters_to_html_entities:D.convertApplicableCharactersToHTML_Entities,"code_listing--yda":y.default.apply}})).pipe(p.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.postProcessHTML_LikeCode.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(l.default.dest(e=>m.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e))).on("end",this.onStreamEnded.bind(this))}async replacePlainVinylFileWithMarkupEntryPointVinylFile(e,t){return t(new m.default({initialPlainVinylFile:e,markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative})),Promise.resolve(p.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}static async managePageVariations(e,t){const{newFiles:i,mustInitialFileBeDeleted:n}=e.manageVariations();return t(i),Promise.resolve(n?p.default.CompletionSignals.REMOVING_FILE_FROM_STREAM:p.default.CompletionSignals.PASSING_ON)}static convertApplicableCharactersToHTML_Entities(e){return e.replace(/&/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""").replace(/'/gu,"'")}async postProcessHTML_LikeCode(e){let t=(0,O.parse)(e.stringifiedContents);t=P.default.resolve({rootHTML_Element:t,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,markupProcessingSettingsRepresentative:this.markupProcessingSettingsRepresentative,absolutePathOfOutputDirectoryForTargetHTML_File:e.outputDirectoryAbsolutePath}),t=b.default.affix({rootHTML_Element:t,publicPath:this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath,consumingProjectRootDirectoryAbsolutePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,absolutePathOfOutputDirectoryForTargetHTML_File:e.outputDirectoryAbsolutePath}),t=E.default.normalize(t),t=v.default.replaceAllowedCSS_ClassesInMarkupAndSaveCorrespondencesIfMust(t,this.projectBuildingMasterConfigRepresentative),e.setContents(t.toString());let i=null;if(e.actualEntryPointsGroupSettings.outputCodeFormatting.mustExecute)switch(e.actualEntryPointsGroupSettings.outputFormat){case s.default.OutputFormats.HTML:e.setContents(D.formatHTML_Code(e)),i=e.stringifiedContents;break;case s.default.OutputFormats.handlebars:e.setContents(D.formatHandlebarsCode(e));break;case s.default.OutputFormats.razor:N.default.generateAndSetContentForVinylFile(e)}else e.actualEntryPointsGroupSettings.outputCodeMinifying.mustExecute&&e.setContents(await D.minifyHTML_Code(e));if(e.actualEntryPointsGroupSettings.outputFormat===s.default.OutputFormats.razor)return e.basename=(0,R.removeSpecifiedFileNameExtensionsFromPath)({filePath:e.basename,filesNamesExtensions:["razor"],mustIgnoreLastOrSingleFileNameExtension:!0,pathsSeparatorMustBeUsedInOutputPathWhen2_KindsMixedInInitialPaths:"/"}),e.extname=".razor",p.default.CompletionSignals.PASSING_ON;if(e.actualEntryPointsGroupSettings.outputFormat===s.default.OutputFormats.handlebars&&!this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode)return e.extname=".hbs",p.default.CompletionSignals.PASSING_ON;const n=T.ImprovedPath.computeRelativePath({basePath:this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,comparedPath:e.path,alwaysForwardSlashSeparators:!0}),r=(0,S.default)(e.stringifiedContents);return e.actualEntryPointsGroupSettings.HTML_Validation.mustExecute&&(i=i??D.formatHTML_Code(e),F.default.enqueueFileForValidation({formattedHTML_Content:i,HTML_ContentMD5_Hash:r,originalHTML_FilePathRelativeToConsumingProjectRoot__forwardSlashesSeparatorsOnly:n})),e.actualEntryPointsGroupSettings.accessibilityInspection.mustExecute&&(i=i??D.formatHTML_Code(e),this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding?_.default.inspectAtBackgroundAndReportImmediatelyWithoutThrowingOfErrors({HTML_Code:i,HTML_CodeMD5Checksum:r,accessibilityStandard:e.actualEntryPointsGroupSettings.accessibilityInspection.standard,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:n}):_.default.inspectAtBackgroundWithoutReporting({HTML_Code:i,HTML_CodeMD5Checksum:r,accessibilityStandard:e.actualEntryPointsGroupSettings.accessibilityInspection.standard,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:n})),p.default.CompletionSignals.PASSING_ON}onStreamEnded(){if(this.markupProcessingSettingsRepresentative.mustValidateHTML&&F.default.validateQueuedFilesButReportAll(),this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding||this.markupProcessingSettingsRepresentative.mustInspectAccessibility&&_.default.reportCachedValidationsResultsAndFinalize(),this.projectBuildingMasterConfigRepresentative.processingOnDemandSettings.enabled)try{C.default.reload()}catch(e){R.Logger.logError({errorType:R.UnexpectedEventError.NAME,title:R.UnexpectedEventError.localization.defaultTitle,description:"The error has occurred during the attempt browser page reloading. If the browser page reloading functionality has been set up property, we are sorry but it is the bug.",occurrenceLocation:"MarkupProcessor.onStreamEnded",caughtError:e})}}onSourceFilesWatcherEmitsAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,R.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(this.onSubsequentFilesStateChangeTimeoutExpired.bind(this),(0,R.secondsToMilliseconds)(this.markupProcessingSettingsRepresentative.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}onSubsequentFilesStateChangeTimeoutExpired(){if(this.projectBuildingMasterConfigRepresentative.processingOnDemandSettings.enabled){const e=C.default.currentHTML_FileAbsolutePath__forwardSlashesPathSeparators;if((0,R.isNotNull)(e))return this.processEntryPoints([(0,R.getExpectedToBeNonUndefinedMapValue)(a.default.outputHTML_FilesAndSourcePugFilesAbsolutePathsCorrespondenceMap,e)])(),void this.absolutePathOfFilesWaitingForReProcessing.clear()}this.processEntryPoints(this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[])(),this.absolutePathOfFilesWaitingForReProcessing.clear()}onEntryPointFileAdded(e){a.default.pagesVariationsMetadata.set(e,this.markupProcessingSettingsRepresentative.createPageVariationsMetadata(e))}static onEntryPointFileDeleted(e){a.default.pagesVariationsMetadata.delete(e)}static formatHTML_Code(e){const{outputCodeFormatting:t}=e.actualEntryPointsGroupSettings;return(0,A.html)(e.stringifiedContents,{indent_size:2,indent_char:t.indentationString,eol:t.lineSeparators,end_with_newline:t.mustGuaranteeTrailingEmptyLine,indent_body_inner_html:t.mustIndentHeadAndBodyTags})}static formatHandlebarsCode(e){const{outputCodeFormatting:t}=e.actualEntryPointsGroupSettings;return(0,A.html)(e.stringifiedContents,{indent_size:2,indent_char:t.indentationString,eol:t.lineSeparators,end_with_newline:t.mustGuaranteeTrailingEmptyLine,indent_body_inner_html:t.mustIndentHeadAndBodyTags,templating:["handlebars"]})}static async minifyHTML_Code(e){const{outputCodeMinifying:t}=e.actualEntryPointsGroupSettings;return(await I.default.process(e.stringifiedContents,{collapseAttributeWhitespace:t.attributesExtraWhitespacesCollapsing,deduplicateAttributeValues:t.attributesValuesDeduplication,collapseWhitespace:"aggressive",minifyCss:!0,minifyJs:!0,minifySvg:!1})).html}}t.default=D},2858(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({markupProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"MARKUP_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Markup"}),this.settingsRepresentative=e}}t.default=a},1180(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6131)),r=n(i(0)),o=n(i(758)),a=i(6272),l=i(5480),d=n(i(34)),u=n(i(8661)),c=i(2006);class p{webBrowser;relativePathsOfFilesWhichIsBeingInspected=new Set;inspectionsInProgressForProductionLikeModes=[];static selfSoleInstance=null;static hasInitializationStarted=!1;static hasInitializationFailed=!1;static onSelfSoleInstanceReadyEventsHandlers=new Set;CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH;CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH;cachedInspectionsResults;relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution=new Set;static cachedInspectionsResultsFileContentSpecification={nameForLogging:"AccessibilityInspector.CachedInspectionResultsFileContentSpecification",subtype:a.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{contentMD5Checksum:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{ID:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}}};waitingForStaringOfWritingOfCacheFileWithInspectionsResults=null;static WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS=1;logging;static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;static SUBSEQUENT_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS=5;waitingForToastNotificationsWillBePermittedAgain=null;isToastNotificationPermitted=!0;static localization=s.default;static beginInitialization(e){p.hasInitializationStarted=!0;const t=l.ImprovedPath.joinPathSegments([e.cachedInspectionsResultsFileParentDirectoryAbsolutePath,"AccessibilityInspection."+(0,a.insertSubstring)(e.projectBuildingSelectiveExecutionID,{modifier:e=>`${e}.`})+(0,a.toLowerCamelCase)(e.consumingProjectBuildingMode)+".json"]);p.initializeAsynchronousRequirements({cachedInspectionResultsFileAbsolutePath:t,cachedInspectionsResultsDirectoryAbsolutePath:e.cachedInspectionsResultsFileParentDirectoryAbsolutePath}).then(i=>{p.selfSoleInstance=new p({...i,cachedInspectionResultsFileAbsolutePath:t,...e}),p.onSelfSoleInstanceReady(p.selfSoleInstance)}).catch(e=>{p.hasInitializationFailed=!0,a.Logger.logError({errorType:a.AlgorithmMismatchError.NAME,title:a.AlgorithmMismatchError.localization.defaultTitle,description:"The error has occurred during the asynchronous initialization.",occurrenceLocation:"HTML_Validator.beginInitialization(configuration)",caughtError:e})})}static inspectAtBackgroundAndReportImmediatelyWithoutThrowingOfErrors(e){p.getInstanceOnceReady().then(async t=>(clearTimeout((0,a.nullToUndefined)(t.waitingForStaringOfWritingOfCacheFileWithInspectionsResults)),t.inspectSingleFile({...e,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:!0}))).catch(e=>{})}static inspectAtBackgroundWithoutReporting(e){p.getInstanceOnceReady().then(t=>{t.inspectionsInProgressForProductionLikeModes.push(t.inspectSingleFile({...e,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:!1}))}).catch(e=>{})}static reportCachedValidationsResultsAndFinalize(){p.getInstanceOnceReady().then(async e=>(await Promise.all(e.inspectionsInProgressForProductionLikeModes),e)).then(e=>{const t=[];for(const[i,n]of e.cachedInspectionsResults.entries())n.issues.length>0&&t.push((0,a.surroundLabelByOrnament)({label:` ${i} `,ornamentPatten:"─",prependedPartCharactersCount:3,totalCharactersCount:p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG}),p.formatInspectionResultForSingleFile(n.issues));e.writeCacheToFile(),e.cachedInspectionsResults.clear(),e.webBrowser.close().catch(e=>{}),0===t.length&&e.logging.inspectionCompletionWithoutIssues?a.Logger.logSuccess(p.localization.inspectionOfAllFilesHasFinishedWithNoIssuesFoundSuccessLog):(a.Logger.logErrorLikeMessage({title:p.localization.issuesFoundInOneOrMultipleFilesErrorLog.title,description:`\n${t.join("\n")}`}),a.Logger.throwErrorWithFormattedMessage({errorType:"AccessibilityIssuesFoundError",...p.localization.issuesFoundInOneOrMultipleFilesErrorLog,occurrenceLocation:"AccessibilityInspector.reportCachedValidationsResultsAndFinalize"}))}).catch(e=>{if(e instanceof Error&&"AccessibilityIssuesFoundError"===e.name)throw e;a.Logger.logError({errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:"The error occurred during the HTML accessibility inspection.",occurrenceLocation:"AccessibilityInspector.reportCachedValidationsResultsAndFinalize",caughtError:e})})}constructor({cachedInspectionsResults:e,cachedInspectionsResultsFileParentDirectoryAbsolutePath:t,cachedInspectionResultsFileAbsolutePath:i,webBrowser:n,logging:s}){this.cachedInspectionsResults=e??new Map,this.CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH=t,this.CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH=i,this.webBrowser=n,this.logging=s}async inspectSingleFile({HTML_Code:e,HTML_CodeMD5Checksum:t,targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,accessibilityStandard:n,mustLogIssuesImmediatelyAndSaveCacheToFileDuringDowntime:s}){const o=this.cachedInspectionsResults.get(i);if(o?.contentMD5Checksum===t)return this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.add(i),void(s&&(this.logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,normalizedInspectionIssues:o.issues}),0===this.relativePathsOfFilesWhichIsBeingInspected.size&&(this.waitingForStaringOfWritingOfCacheFileWithInspectionsResults=setTimeout(this.writeCacheToFile.bind(this),(0,a.secondsToMilliseconds)(p.WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS)))));if(0===e.trim().length)return void a.Logger.logWarning(p.localization.generateFileIsEmptyWarningLog({targetFileRelativePath:i}));this.logging.inspectionStart&&a.Logger.logInfo(p.localization.generateInspectionStartedInfoLog({targetFileRelativePath:i}));const l=(new d.default).startOrRestart();let u,c;s&&this.relativePathsOfFilesWhichIsBeingInspected.add(i);try{u=await this.webBrowser.newPage()}catch(e){return l.stop(),a.Logger.logError({errorType:"WebBrowserPageCreatingFailedError",title:"Web browser page creating failed",description:`The error has occurred during the asynchronous creating of the "Puppeteer" browser web page for the file "${i}". It makes impossible the accessibility inspection for this file.`,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),void(s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i))}try{await u.setContent(e,{waitUntil:"domcontentloaded"})}catch(e){return l.stop(),a.Logger.logError({errorType:"WebBrowserPageContentUpdatingFailedError",title:"Web browser pade content updating failed",description:`The error has occurred during the changing of the web page content to the content of the file "${i}". It makes impossible the accessibility inspection for this file.`,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),void(s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i))}try{c=await(0,r.default)(u.url(),{standard:n,page:u,browser:this.webBrowser,ignoreUrl:!0,ignore:["WCAG2AAA.Principle1.Guideline1_4.1_4_6.G17.Fail"]})}catch(e){return l.stop(),a.Logger.logError({errorType:a.DataRetrievingFailedError.localization.defaultTitle,...p.localization.inspectionFailedErrorLog,occurrenceLocation:"AccessibilityInspector.inspectSingleFile(singleFileAccessibilityCheckingOrder)",caughtError:e}),s&&this.relativePathsOfFilesWhichIsBeingInspected.delete(i),void u.close().catch(e=>{})}const g=l.stop().seconds,m=p.normalizeInspectionIssues(c.issues,e);this.cachedInspectionsResults.set(i,{contentMD5Checksum:t,issues:m}),this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.add(i),s&&(this.relativePathsOfFilesWhichIsBeingInspected.delete(i),0===this.relativePathsOfFilesWhichIsBeingInspected.size&&(this.waitingForStaringOfWritingOfCacheFileWithInspectionsResults=setTimeout(this.writeCacheToFile.bind(this),(0,a.secondsToMilliseconds)(p.WAITING_FOR_STARING_OF_WRITING_OF_CACHE_FILE_WITH_VALIDATION_RESULTS_PERIOD__SECONDS))),this.logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:i,normalizedInspectionIssues:m,inspectionPeriod__seconds:g}))}static normalizeInspectionIssues(e,t){const i=[],n=(0,c.parse)(t);for(const[t,i]of e.entries()){const e=n.querySelector(i.selector);(0,a.isNull)(e)||e.setAttribute(p.generateAccessibilityIssueAuxiliaryHTML_Attribute(t),"")}const s=(0,a.splitString)(t,"\n"),r=(0,a.splitString)(n.outerHTML,"\n");for(const[t,n]of e.entries()){const e=p.generateAccessibilityIssueAuxiliaryHTML_Attribute(t),o=(0,a.getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(r,t=>t.includes(e));if((0,a.isNull)(o)){i.push({ID:n.code,message:n.message,codeFragment:{beforeHighlighting:"",highlighted:n.context,afterHighlighting:""}});continue}const l=s[o],d=o+1,u=(0,a.limitMinimalValue)({targetNumber:d-p.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING,minimalValue:1}),c=(0,a.limitMaximalValue)({targetNumber:d+p.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING,maximalValue:s.length}),g=n.context;if(-1===l.indexOf(g)){i.push({ID:n.code,message:n.message,codeFragment:{beforeHighlighting:"",highlighted:n.context,afterHighlighting:""}});continue}const m=l.indexOf(g)+1,h=m+g.length,f=`${(0,a.cropArray)({fromStart:!0,targetArray:s,startingElementNumber__numerationFrom1:u,endingElementNumber__numerationFrom1__including:d-1,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}\n`+(0,a.cropString)({targetString:l,startingCharacterNumber__numerationFrom1:1,endingCharacterNumber__numerationFrom1:m-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}),S=`${(0,a.cropString)({targetString:l,startingCharacterNumber__numerationFrom1:h,endingCharacterNumber__numerationFrom1:l.length,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1})}\n`+(0,a.cropArray)({fromStart:!0,targetArray:s,startingElementNumber__numerationFrom1:d+1,endingElementNumber__numerationFrom1__including:c,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n");i.push({ID:n.code,codeFragment:{beforeHighlighting:f,highlighted:g,afterHighlighting:S,location:{lineNumber__numerationFrom1:d,startingColumnNumber__numerationFrom1:m,endingColumnNumber__numerationFrom1:h}},message:n.message})}return i}logInspectionResultsForSingleFile({targetHTML_FilePathRelativeToConsumingProjectRootDirectory:e,normalizedInspectionIssues:t,inspectionPeriod__seconds:i}){t.length>0&&(a.Logger.logErrorLikeMessage(p.localization.generateIssuesFoundErrorLog({targetFileRelativePath:e,formattedErrorsAndWarnings:p.formatInspectionResultForSingleFile(t)})),clearTimeout((0,a.nullToUndefined)(this.waitingForToastNotificationsWillBePermittedAgain)),this.isToastNotificationPermitted&&(u.default.notify(p.localization.issuesFoundNotification),this.isToastNotificationPermitted=!1,this.waitingForToastNotificationsWillBePermittedAgain=setTimeout(()=>{this.isToastNotificationPermitted=!0},(0,a.secondsToMilliseconds)(p.SUBSEQUENT_TOAST_NOTIFICATION_PROHIBITION_PERIOD__SECONDS)))),this.logging.inspectionCompletionWithoutIssues&&a.Logger.logSuccess(p.localization.generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog({targetFileRelativePath:e,secondsElapsed:i}))}static formatInspectionResultForSingleFile(e){const t=[];for(const[i,n]of e.entries())t.push([`${(0,a.surroundLabelByOrnament)({label:p.localization.generateIssueNumberLabel({issueNumber:i+1}),ornamentPatten:"=",prependedPartCharactersCount:3,totalCharactersCount:p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`,...(0,a.isNonEmptyString)(n.codeFragment.beforeHighlighting)?[n.codeFragment.beforeHighlighting]:[],...(0,a.isNonEmptyString)(n.codeFragment.beforeHighlighting)&&(0,a.isNonEmptyString)(n.codeFragment.afterHighlighting)?[a.Logger.highlightText(n.codeFragment.highlighted)]:[n.codeFragment.highlighted],...(0,a.isNonEmptyString)(n.codeFragment.afterHighlighting)?[n.codeFragment.afterHighlighting]:[],"\n",`${"-".repeat(p.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,`${n.message}\n`,...(0,a.isNotUndefined)(n.codeFragment.location)?[p.localization.generateIssueOccurrenceLocationIndication({lineNumber:n.codeFragment.location.lineNumber__numerationFrom1,startingColumnNumber:n.codeFragment.location.startingColumnNumber__numerationFrom1,lastColumnNumber:n.codeFragment.location.endingColumnNumber__numerationFrom1})]:[]].join(""));return t.join("\n\n")}static async retrieveCachedPastInspectionsResultsFromFileIfItExists({cachedInspectionsResultsDirectoryAbsolutePath:e,cachedInspectionResultsFileAbsolutePath:t}){if(!await l.ImprovedFileSystem.isFileOrDirectoryExists({targetPath:e,synchronously:!1}))return null;let i;try{i=await l.ObjectDataFilesProcessor.processFile({filePath:t,validDataSpecification:p.cachedInspectionsResultsFileContentSpecification,synchronously:!1})}catch(e){return l.FileNotFoundError,null}return new Map(Object.entries(i))}writeCacheToFile(){l.ImprovedFileSystem.createDirectory({targetPath:this.CACHED_INSPECTIONS_RESULTS_FILE_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfTargetDirectoryExists:!1,synchronously:!0});const e=Array.from((0,a.filterMap)(this.cachedInspectionsResults,e=>this.relativePathsOfFilesWhichHasBeenInspectedCurrentDuringExecution.has(e)).entries()).reduce((e,[t,i])=>(e[t]=i,e),{});l.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.CACHED_INSPECTIONS_RESULTS_FILE_ABSOLUTE_PATH,content:JSON.stringify(e,null,2),synchronously:!0})}static async initializeAsynchronousRequirements({cachedInspectionsResultsDirectoryAbsolutePath:e,cachedInspectionResultsFileAbsolutePath:t}){const[i,n]=await Promise.all([p.retrieveCachedPastInspectionsResultsFromFileIfItExists({cachedInspectionResultsFileAbsolutePath:t,cachedInspectionsResultsDirectoryAbsolutePath:e}).catch(e=>null),o.default.launch()]);return{...(0,a.isNotNull)(i)?{cachedInspectionsResults:i}:null,webBrowser:n}}static onSelfSoleInstanceReady(e){for(const t of p.onSelfSoleInstanceReadyEventsHandlers)t(e);p.onSelfSoleInstanceReadyEventsHandlers.clear()}static async getInstanceOnceReady(){return p.hasInitializationStarted||a.Logger.throwErrorWithFormattedMessage({errorInstance:new a.ClassRequiredInitializationHasNotBeenExecutedError({className:"AccessibilityInspector",initializingMethodName:"beginInitialization"}),title:a.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"AccessibilityInspector.getInstanceOnceReady()"}),p.hasInitializationFailed&&a.Logger.throwErrorWithFormattedMessage({errorType:"InitializationFailedError",description:"The initialization has failed thus the accessibility checking could not be executed.",title:"Initialization failed",occurrenceLocation:"AccessibilityInspector.getInstanceOnceReady()"}),p.selfSoleInstance??new Promise(e=>{p.onSelfSoleInstanceReadyEventsHandlers.add(e)})}static generateAccessibilityIssueAuxiliaryHTML_Attribute(e){return`data-accessibility_issue-${e}`}}t.default=p},6131(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s={generateFileIsEmptyWarningLog:({targetFileRelativePath:e})=>({title:"HTML Code Accessibility Inspection Terminated because of Empty File",description:`File "${e}" is empty, no HTML to inspect. Please note that at production-like modes the empty HTML files are being considered as invalid.`}),generateInspectionStartedInfoLog:({targetFileRelativePath:e})=>({title:"HTML Code Accessibility Inspection Started",description:`Target file: ${e}`}),inspectionFailedErrorLog:{title:"HTML conde accessibility checking failed",description:"The error occurred during HTML code accessibility checking. It may be caused by the problems with the internet connection. Well, we should not stop the project building because of this. We believe that you will check the HTML accessibility afterwards and fix the issues if they will be."},generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog:({targetFileRelativePath:e,secondsElapsed:t})=>({title:"HTML Code Accessibility Checking of Single File Complete without Issues",description:`The HTML code in file "${e}" has no the accessibility issues.\n`+((0,n.isUndefined)(t)?"(Cached result, no changes in output HTML code since last building)":`${t} seconds taken.`)}),generateIssuesFoundInSingleFileErrorLog:({targetFileRelativePath:e,formattedErrorsAndWarnings:t})=>({title:"HTML accessibility inspection, issue(s) found",description:`File "${e}" is including the following HTML accessibility issues:\n\n${t}\n\n`}),inspectionOfAllFilesHasFinishedWithNoIssuesFoundSuccessLog:{title:"HTML accessibility inspection, no issues found",description:"All files are fully obeying to selected accessibility standard."},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."},generateIssueNumberLabel:({issueNumber:e})=>` Issue No. ${e} `,generateIssueOccurrenceLocationIndication:({lineNumber:e,startingColumnNumber:t,lastColumnNumber:i})=>`At line ${e}, columns ${t}-${i}`,generateIssuesFoundErrorLog:({targetFileRelativePath:e,formattedErrorsAndWarnings:t})=>({badge:{customText:"HTML code accessibility inspection not passed"},title:"HTML code accessibility inspection, issue(s) found",description:`HTML file "${e}" is including the following accessibility issues:\n\n${t}\n\n`}),formattedError:{violatedGuidelineItem:"Violated rule",keyAndValueSeparator:":"},issuesFoundInOneOrMultipleFilesErrorLog:{title:"Accessibility inspection, issue(s) found",description:"The issue(s) has been found in one or more output HTML files. Intended to be used for the high quality development, YDA can not accept the HTML code with accessibility violations on production and production-like modes. Its strongly recommended to fix these issue(s) instead of disabling of the accessibility checking."},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/ ?`})};t.default=s},8079(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES="[\\u3000-\\u303f\\u3040-\\u309f\\u30a0-\\u30ff\\uff00-\\uffef\\u4e00-\\u9fff\\uac00-\\ud7af]";static extraSpaceSurroundedByCharactersDetectingPatterns=[new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})[\\x20|\\n|\\r\\n]+(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu"),new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu"),new RegExp(`(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+(<)`,"gmu"),new RegExp(`(>)\\r?\\n +(${i.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`,"gmu")];static ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS="data-yda-normalize_spaces_in_cjk";static normalize(e){for(const t of Array.from(e.querySelectorAll(`[${i.ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS}]`))){let e=t.innerHTML;for(const t of i.extraSpaceSurroundedByCharactersDetectingPatterns)e=e.replaceAll(t,"$1$2");t.removeAttribute(i.ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS),t.innerHTML=e}return e}}t.default=i},7006(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7857)),r=n(i(9955)),o=n(i(919)),a=n(i(1421)),l=n(i(8661)),d=i(6272),u=i(5480),c=i(6331),p=n(i(34));class g{static selfSingleInstance=null;queuedFilesMetadata=new Set;consumingProjectRootDirectoryAbsolutePath;static validationsResultsSpecification={nameForLogging:"Nu HTML Checker (v.Nu) Output",subtype:d.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:{messages:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{type:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:["info","error","non-document-error","network-error"]},url:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:7},lastLine:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},lastColumn:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},firstColumn:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},subType:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:["warning","fatal","io","schema","internal"]},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},extract:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},hiliteStart:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0},hiliteLength:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0}}}}}};static CACHED_VALIDATIONS_RESULTS_FOLDER_NAME="HTML_Validation";static CACHED_VALIDATIONS_RESULTS_FILE_CONSTANT_NAME_PART="HTML_Validation";absolutePathOfParentDirectoryOfCachedValidationsResultsFile;absolutePathOfCachedValidationsResultsFile;cachedValidationsResults;static cachedValidationsResultsFileContentSpecification={nameForLogging:"HTML_Validator.CachedValidationResultsFileContentSpecification",subtype:d.RawObjectDataProcessor.ObjectSubtypes.associativeArray,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{contentMD5Checksum:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{type:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,allowedAlternatives:["info","error","non-document-error","network-error"]},subType:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0,allowedAlternatives:["warning","fatal","io","schema","internal"]},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},lineNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},startingColumnNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},endingColumnNumber__numerationFrom1:{type:Number,numbersSet:d.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0},codeFragment:{type:Object,isUndefinedForbidden:!0,isNullForbidden:!0,properties:{beforeHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},highlighted:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},afterHighlighting:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0}}}}}}}}};logging;static DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING=2;static DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING=1;static DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG=120;static TEMPORARY_FORMATTED_HTML_FILES_FOLDER_NAME="HTML_Validation";absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files;pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files;static localization=s.default;static initialize(e){(0,d.isNotNull)(g.selfSingleInstance)?d.Logger.logError({errorType:d.ClassRedundantSubsequentInitializationError.NAME,title:d.ClassRedundantSubsequentInitializationError.localization.defaultTitle,description:d.ClassRedundantSubsequentInitializationError.localization.generateDescription({className:"HTML_Validator"}),occurrenceLocation:"HTML_Validator.initialize(configuration)",mustOutputIf:!1}):g.selfSingleInstance=new g(e)}static enqueueFileForValidation(e){g.getExpectedToBeInitializedSelfSingleInstance().queuedFilesMetadata.add(e)}static validateQueuedFilesButReportAll(){g.getExpectedToBeInitializedSelfSingleInstance().validateQueuedFilesButReportAll().catch(d.Logger.logPromiseError)}constructor({temporaryFilesDirectoryAbsolutePath:e,projectBuildingMasterConfigRepresentative:t,logging:i}){let n;this.consumingProjectRootDirectoryAbsolutePath=t.consumingProjectRootDirectoryAbsolutePath,this.absolutePathOfParentDirectoryOfCachedValidationsResultsFile=u.ImprovedPath.joinPathSegments([o.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,g.CACHED_VALIDATIONS_RESULTS_FOLDER_NAME],{alwaysForwardSlashSeparators:!0}),this.absolutePathOfCachedValidationsResultsFile=g.computeAbsolutePathOfCachedValidationsResultsFileActualForCurrentProjectBuildingMode({parentDirectoryAbsolutePath:this.absolutePathOfParentDirectoryOfCachedValidationsResultsFile,projectBuildingSelectiveExecutionID:t.selectiveExecutionID,consumingProjectBuildingMode:t.consumingProjectBuildingMode});try{n=u.ObjectDataFilesProcessor.processFile({filePath:this.absolutePathOfCachedValidationsResultsFile,validDataSpecification:g.cachedValidationsResultsFileContentSpecification,synchronously:!0})}catch(e){e instanceof u.FileNotFoundError||d.Logger.logError({errorType:"CachedDataRetrievingFailure",...g.localization.cachedPreviousValidationsResultsDataRetrievingErrorLog({cachedValidationsResultsFileAbsolutePath:this.absolutePathOfCachedValidationsResultsFile}),occurrenceLocation:"HTML_Validator.retrieveCachedPastValidationsResultsFromFileIfItExists(cachedValidationsResultsFileAbsolutePath)",caughtError:e,mustOutputIf:!1})}this.cachedValidationsResults=new Map(Object.entries(n??{})),this.logging=i,this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files=u.ImprovedPath.joinPathSegments([e,g.TEMPORARY_FORMATTED_HTML_FILES_FOLDER_NAME]),this.pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files=u.ImprovedPath.computeRelativePath({basePath:t.consumingProjectRootDirectoryAbsolutePath,comparedPath:this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files,alwaysForwardSlashSeparators:!0})}async validateQueuedFilesButReportAll(){const e=[],t=new Map,i=new Set,n=new Map,s=new Map;for(const{originalHTML_FilePathRelativeToConsumingProjectRoot__forwardSlashesSeparatorsOnly:r,formattedHTML_Content:o,HTML_ContentMD5_Hash:a}of this.queuedFilesMetadata){i.add(r),n.set(r,a);const l=this.cachedValidationsResults.get(r);if(l?.contentMD5Checksum===a)continue;this.cachedValidationsResults.delete(r),s.set(r,(0,d.splitString)(o,"\n"));const p=u.ImprovedPath.joinPathSegments([this.pathRelativeToConsumingProjectRootOfParentDirectoryOfTemporaryFormattedHTML_Files,`${(0,c.nanoid)()}.html`],{alwaysForwardSlashSeparators:!0});e.push(p);const g=u.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,p],{alwaysForwardSlashSeparators:!0});t.set(`file:/${encodeURI(g)}`,r),u.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:g,content:o,synchronously:!0})}if(this.logging.validationStart&&d.Logger.logInfo(g.localization.validationStartedInfoLog),0===e.length)return void g.reportValidationsResults({validationsResults:this.cachedValidationsResults,validationPeriod__seconds:0});const r=(new p.default).startOrRestart(),o=await g.getRawValidationsResultsFromNuHTML_Checker(e);u.ImprovedFileSystem.removeFilesFromDirectory({directoryPath__absoluteOrRelative:this.absolutePathOfParentDirectoryOfTemporaryFormattedHTML_Files,synchronously:!0});const a=d.RawObjectDataProcessor.process(o,g.validationsResultsSpecification);if(a.isRawDataInvalid)return r.stop(),void d.Logger.logError({errorType:d.UnexpectedEventError.NAME,title:d.UnexpectedEventError.localization.defaultTitle,description:"The Nu HTML Checker does not much with expected one.\n"+d.RawObjectDataProcessor.formatValidationErrorsList(a.validationErrorsMessages),occurrenceLocation:"HTML_Validator.validateQueuedFilesButReportAll()",mustOutputIf:!1});for(const e of a.processedData.messages){const r=(0,d.getExpectedToBeNonUndefinedMapValue)(t,e.url);i.delete(r);const o=this.cachedValidationsResults.get(r)?.issues;(0,d.isUndefined)(o)?this.cachedValidationsResults.set(r,{contentMD5Checksum:(0,d.getExpectedToBeNonUndefinedMapValue)(n,r),issues:[g.normalizeRawValidationIssue(e,(0,d.getExpectedToBeNonUndefinedMapValue)(s,r))]}):o.push(g.normalizeRawValidationIssue(e,(0,d.getExpectedToBeNonUndefinedMapValue)(s,r)))}for(const e of i)this.cachedValidationsResults.set(e,{issues:[],contentMD5Checksum:(0,d.getExpectedToBeNonUndefinedMapValue)(n,e)});const{seconds:l}=r.stop();g.reportValidationsResults({validationsResults:this.cachedValidationsResults,validationPeriod__seconds:l}),this.writeCacheToFile(),this.queuedFilesMetadata.clear()}static async getRawValidationsResultsFromNuHTML_Checker(e){return new Promise((t,i)=>{a.default.execFile("java",["-jar",`"${r.default}"`,"--format","json",...e],{shell:!0},(e,n,s)=>{const r=Buffer.isBuffer(s)?s.toString("utf8"):s;try{t(JSON.parse(r))}catch(e){i(e)}})})}static normalizeRawValidationIssue({type:e,subType:t,message:i,lastLine:n,firstColumn:s,lastColumn:r},o){if((0,d.isUndefined)(n)||(0,d.isUndefined)(r))return{type:e,subType:t,message:i};const a=o[n-1],l=(0,d.limitMinimalValue)({targetNumber:n-g.DISPLAYING_LINES_COUNT_BEFORE_ISSUE_IN_CODE_LISTING,minimalValue:1}),u=(0,d.limitMaximalValue)({targetNumber:n+g.DISPLAYING_LINES_COUNT_AFTER_ISSUE_IN_CODE_LISTING,maximalValue:o.length}),c=s??r;return{type:e,subType:t,message:i,lineNumber__numerationFrom1:n,startingColumnNumber__numerationFrom1:c,endingColumnNumber__numerationFrom1:r,codeFragment:{beforeHighlighting:`${(0,d.cropArray)({fromStart:!0,targetArray:o,startingElementNumber__numerationFrom1:l,endingElementNumber__numerationFrom1__including:(0,d.limitMinimalValue)({targetNumber:n-1,minimalValue:1}),mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}\n`+(c>1?(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:1,endingCharacterNumber__numerationFrom1:c-1,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}):""),highlighted:(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:c,endingCharacterNumber__numerationFrom1:r,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1}),afterHighlighting:`${(0,d.cropString)({targetString:a,startingCharacterNumber__numerationFrom1:r+1,endingCharacterNumber__numerationFrom1:a.length,mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1})}\n`+(0,d.cropArray)({fromStart:!0,targetArray:o,startingElementNumber__numerationFrom1:n+1,endingElementNumber__numerationFrom1__including:u,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!1,mutably:!1}).join("\n")}}}static reportValidationsResults({validationsResults:e,validationPeriod__seconds:t}){const i=Array.from(e.keys()).sort();let n=!1;const s=new Map,r=new Map;for(const[t,{issues:i}]of e.entries()){const e=i.length>0;s.set(t,e),e&&(n=!0,r.set(t,g.formatValidationResultForSingleFile(i)))}const o=`${(0,d.surroundLabelByOrnament)({label:g.localization.validityIssuesDetectedErrorLog.headings.summary,ornamentPatten:"━",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+i.map(e=>((0,d.getExpectedToBeNonUndefinedMapValue)(s,e)?"❌":"✅")+" "+e).join("\n"),a=`${(0,d.surroundLabelByOrnament)({label:g.localization.validityIssuesDetectedErrorLog.headings.details,ornamentPatten:"━",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+i.filter(e=>r.has(e)).map(e=>`${(0,d.surroundLabelByOrnament)({label:e,characterForIndentationAroundLabel:" ",ornamentPatten:"─",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`+(0,d.getExpectedToBeNonUndefinedMapValue)(r,e)).join("\n");if(n)return d.Logger.logErrorLikeMessage({title:g.localization.validityIssuesDetectedErrorLog.title,description:`${o}\n\n${a}\n`+g.localization.validityIssuesDetectedErrorLog.generateSecondsElapsedSentence({validationPeriod__seconds:t})}),void l.default.notify(g.localization.validityIssuesDetectedToastNotification);d.Logger.logSuccess({title:g.localization.validationFinishedWithoutIssuesSuccessLog.title,description:g.localization.validationFinishedWithoutIssuesSuccessLog.generateDescription({validationPeriod__seconds:t,preFormattedErrorsMessages:Array.from(e.keys()).map(e=>`● ${e}`).join("\n")})})}static formatValidationResultForSingleFile(e){const t=[];for(const[i,n]of e.entries())t.push([`${(0,d.surroundLabelByOrnament)({label:g.localization.generateIssueNumberLabel({issueNumber:i+1}),ornamentPatten:"┄",characterForIndentationAroundLabel:" ",prependedPartCharactersCount:3,totalCharactersCount:g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG})}\n`,...(0,d.isNotUndefined)(n.codeFragment)?[n.codeFragment.beforeHighlighting,d.Logger.highlightText(n.codeFragment.highlighted),`${n.codeFragment.afterHighlighting}\n`]:[],`${"-".repeat(g.DISPLAYING_MAXIMAL_COLUMNS_COUNT_IN_LOG)}\n`,n.message,` (${(()=>{switch(n.type){case g.NormalizedValidationsResults.Issue.Types.error:return g.localization.issuesTypesTitles.grossViolation;case g.NormalizedValidationsResults.Issue.Types.info:return g.localization.issuesTypesTitles.recommendationDisregard}})()})\n`,...(0,d.isNotUndefined)(n.lineNumber__numerationFrom1)&&(0,d.isNotUndefined)(n.startingColumnNumber__numerationFrom1)&&(0,d.isNotUndefined)(n.endingColumnNumber__numerationFrom1)?[g.localization.generateIssueOccurrenceLocationIndication({lineNumber:n.lineNumber__numerationFrom1,startingColumnNumber:n.startingColumnNumber__numerationFrom1,lastColumnNumber:n.endingColumnNumber__numerationFrom1})]:[]].join(""));return t.join("\n\n")}static computeAbsolutePathOfCachedValidationsResultsFileActualForCurrentProjectBuildingMode({parentDirectoryAbsolutePath:e,projectBuildingSelectiveExecutionID:t,consumingProjectBuildingMode:i}){return u.ImprovedPath.joinPathSegments([e,[g.CACHED_VALIDATIONS_RESULTS_FILE_CONSTANT_NAME_PART,...(0,d.isUndefined)(t)?[]:[t],`${(0,d.toLowerCamelCase)(i)}.json`].join(".")])}writeCacheToFile(){const e=Array.from(this.cachedValidationsResults.entries()).reduce((e,[t,i])=>(e[t]=i,e),{});u.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.absolutePathOfCachedValidationsResultsFile,content:JSON.stringify(e,null,2),synchronously:!0})}static getExpectedToBeInitializedSelfSingleInstance(){return g.selfSingleInstance??d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.ClassRequiredInitializationHasNotBeenExecutedError({className:"HTML_Validator",initializingMethodName:"initialize"}),title:d.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"HTML_Validator.getExpectedToBeInitializedSelfSingleInstance()"})}}!function(e){let t;!function(e){let t;!function(e){let t,i;!function(e){e.info="info",e.error="error"}(t=e.Types||(e.Types={})),function(e){e.warning="warning",e.fatal="fatal",e.io="io",e.schema="schema",e.internal="internal"}(i=e.SubTypes||(e.SubTypes={}))}(t=e.Issue||(e.Issue={}))}(t=e.NormalizedValidationsResults||(e.NormalizedValidationsResults={}))}(g||(g={})),t.default=g},7857(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={cachedPreviousValidationsResultsDataRetrievingErrorLog:({cachedValidationsResultsFileAbsolutePath:e})=>({title:"Cached Previous Validations Data Retrieving Failure",description:`Unable to read and/or parse the existing HTML validation cache file "${e}".`}),validationStartedInfoLog:{title:"HTML Code Validation Started",description:"Validating the output HTML files..."},validityIssuesDetectedErrorLog:{title:"HTML Validation, Issue(s) Detected",headings:{summary:"Summary",details:"Details"},generateSecondsElapsedSentence:({validationPeriod__seconds:e})=>`Seconds elapsed: ${e}`},validityIssuesDetectedToastNotification:{title:"HTML Validation, Issue(s) Detected",message:"W3C rules violations and / or recommendations neglect detected. Check the console for the details."},validationFinishedWithoutIssuesSuccessLog:{title:"HTML Validation, All Valid",generateDescription:({validationPeriod__seconds:e,preFormattedErrorsMessages:t})=>`All HTML files (except excluded ones if any) contains valid HTML. The following files has been checked:\n${t}\nSeconds elapsed: ${e}`},generateIssueNumberLabel:({issueNumber:e})=>`Issue No. ${e}`,generateIssueOccurrenceLocationIndication:({lineNumber:e,startingColumnNumber:t,lastColumnNumber:i})=>`At line ${e}, columns ${t}-${i}`,issuesTypesTitles:{grossViolation:"Gross violation",recommendationDisregard:"Recommendation disregard",other:"Other issue"}}},7885(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=n(i(9896)),o=n(i(7196)),a=i(6272),l=i(5480);class d{static TARGET_ELEMENTS_ATTRIBUTE_NAME="data-yda-auto_aspect_ratio";static imagesCachedMetadata=new Map;static affix({rootHTML_Element:e,publicPath:t,absolutePathOfOutputDirectoryForTargetHTML_File:i,consumingProjectRootDirectoryAbsolutePath:n}){for(const u of e.querySelectorAll(`[${d.TARGET_ELEMENTS_ATTRIBUTE_NAME}]`)){const e="IMG"===u.tagName?u.getAttribute("src")??null:d.tryToExtractBackgroundImagePathFromElement(u);if((0,a.isNull)(e)||e.startsWith("http"))continue;let c,p;if(s.default.isAbsolute(e)){if((0,a.isUndefined)(t)){a.Logger.logError({mustOutputIf:!1,errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:'The image has the shortened absolute path while "publicPath" has not been passed. ',occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)"});continue}c=l.ImprovedPath.joinPathSegments([t,e],{alwaysForwardSlashSeparators:!0})}else c=l.ImprovedPath.joinPathSegments([i,e],{alwaysForwardSlashSeparators:!0});try{p=r.default.statSync(c).ctime.getTime()}catch(t){a.Logger.logError({mustOutputIf:!1,errorType:a.UnexpectedEventError.NAME,title:a.UnexpectedEventError.localization.defaultTitle,description:`No image with path "${e}" specified in output HTML code has been found. It must be investigated.`,occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:t});continue}const g=l.ImprovedPath.computeRelativePath({comparedPath:c,basePath:n,alwaysForwardSlashSeparators:!0});let m,h;const f=d.imagesCachedMetadata.get(g);if((0,a.isNotUndefined)(f)&&f.modificationDateTime__UNIX_milliseconds===p)m=f.width__pixels,h=f.height__pixels;else{let e,t;try{e=r.default.readFileSync(c)}catch(e){a.Logger.logError({mustOutputIf:!1,errorType:a.FileReadingFailedError.NAME,title:a.FileReadingFailedError.localization.defaultTitle,description:a.FileReadingFailedError.localization.generateDescription({filePath:i}),occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:e});continue}try{t=o.default.sync(e)}catch(e){a.Logger.logError({mustOutputIf:!1,errorType:"ImageAnalyzingFailure",title:"Image analyzing failed",description:"Fail to get the image dimensions.",occurrenceLocation:"ImagesAspectRatioAffixer.affix(compoundParameter)",caughtError:e});continue}if((0,a.isNull)(t))continue;m=t.width,h=t.height,d.imagesCachedMetadata.set(g,{modificationDateTime__UNIX_milliseconds:p,width__pixels:m,height__pixels:h})}const S=u.getAttribute("style")??"";u.setAttribute("style",`${S}aspect-ratio: ${m}/${h};`),u.removeAttribute(d.TARGET_ELEMENTS_ATTRIBUTE_NAME)}return e}static tryToExtractBackgroundImagePathFromElement(e){const t=e.getAttribute("style");if((0,a.isUndefined)(t))return null;const i=/background(?:-image)?\s*:\s*url\(["'](?<URI>[^"']+)["']/gu.exec(t);return(0,a.isNotNull)(i)?i[1]:null}}t.default=d},7143(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.`})}},3748(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(3704)),o=n(i(7831)),a=n(i(5687)),l=n(i(1741)),d=n(i(4640)),u=n(i(2404)),c=n(i(9706)),p=n(i(7143)),g=i(6272),m=i(5480);class h{static localization=p.default;static aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap=new Map;static markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap=new Map;static stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap=new Map;static scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap=new Map;static imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap=new Map;static videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;static aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap=new Map;static audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=new Map;rootHTML_Element;projectBuildingMasterConfigRepresentative;markupProcessingSettingsRepresentative;contextHTML_FileOutputDirectoryAbsolutePath;publicDirectoryAbsolutePath;plainCopyingSettingsRepresentative;static resolve(e){return new h(e).resolveInternalLinks().resolveStylesheetsAliasedPaths().resolveScriptsPathsAliases().resolveImagesAliasedPaths().resolveVideosAliasedPaths().resolveAudiosAliasedPaths().rootHTML_Element}constructor({rootHTML_Element:e,projectBuildingMasterConfigRepresentative:t,markupProcessingSettingsRepresentative:i,absolutePathOfOutputDirectoryForTargetHTML_File:n}){this.rootHTML_Element=e,this.projectBuildingMasterConfigRepresentative=t,this.markupProcessingSettingsRepresentative=i,this.contextHTML_FileOutputDirectoryAbsolutePath=n,(0,g.isNotNull)(this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath)&&(this.publicDirectoryAbsolutePath=this.projectBuildingMasterConfigRepresentative.actualPublicDirectoryAbsolutePath),this.plainCopyingSettingsRepresentative=t.plainCopyingSettingsRepresentative,0===h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(this.markupProcessingSettingsRepresentative.entryPointsGroupsNormalizedSettingsMappedByReferences,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.stylesProcessingSettingsRepresentative?.entryPointsGroupsNormalizedSettingsMappedByReferences??new Map,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.ECMA_ScriptLogicProcessingSettingsRepresentative?.entryPointsGroupsNormalizedSettingsMappedByReferences??new Map,(e,t)=>[e,t.isSingeEntryPointGroup?t.sourceFilesGlobSelectors[0]:t.sourceFilesTopDirectoryAbsolutePath])),0===h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.imagesProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),0===h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.fontsProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath])),0===h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.size&&(h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap=(0,g.createMapBasedOnOtherMap)(t.audiosProcessingSettingsRepresentative?.relevantAssetsGroupsSettingsMappedBySourceFilesTopDirectoryAliasName??new Map,(e,t)=>[e,t.sourceFilesTopDirectoryAbsolutePath]))}resolveInternalLinks(){for(const e of this.rootHTML_Element.querySelectorAll("a"))this.resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:"href"});for(const e of this.rootHTML_Element.querySelectorAll("iframe"))this.resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:"src"});return this}resolveInternalLink({targetHTML_Element:e,targetHTML_ElementAttributeName:t}){const i=e.getAttribute(t);if(!(0,g.isNonEmptyString)(i))return;let n=h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n))return void e.setAttribute(t,this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),a=s[0];if((0,g.isNonEmptyString)(a)){if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&a.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))return;return h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.set(i,n),void e.setAttribute(t,this.buildResourceFileFinalPath(n))}n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.markupSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:this.markupProcessingSettingsRepresentative.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:o.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap__includingFictiveOnes,fileTypeForLogging__singularForm:this.markupProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:this.markupProcessingSettingsRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputMarkupFilesAbsolutePathsCorrespondenceMap.set(i,n),e.setAttribute(t,this.buildResourceFileFinalPath(n)))}}resolveStylesheetsAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.stylesProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("link[rel='stylesheet']")){const i=t.getAttribute("href");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("href",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("href",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.stylesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputStylesFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("href",this.buildResourceFileFinalPath(n))))}return this}resolveScriptsPathsAliases(){const e=this.projectBuildingMasterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("script")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("src",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.scriptsSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:l.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputScriptsFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveImagesAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.imagesProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const e of this.rootHTML_Element.querySelectorAll("img"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"src"});for(const e of this.rootHTML_Element.querySelectorAll("picture > source"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"srcset"});for(const e of this.rootHTML_Element.querySelectorAll("link[type='image/x-icon']"))this.resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:"href"});for(const t of this.rootHTML_Element.querySelectorAll('[style*="background: url("]').concat(this.rootHTML_Element.querySelectorAll('[style*="background:url("]')).concat(this.rootHTML_Element.querySelectorAll('[style*="background-image: url("]')).concat(this.rootHTML_Element.querySelectorAll('[style*="background-image:url("]'))){const i=(0,g.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:t.getAttribute("style")??"",regularExpressionWithCapturingGroups:/url\(["']?(?<possiblyAliasedPath>.+?)["']?\);?/gu,replacer:t=>{const i=t.namedCapturingGroups.possiblyAliasedPath;let n=h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n))return`url("${this.buildResourceFileFinalPath(n)}");`;const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];return(0,g.isNonEmptyString)(o)?(0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)?(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n)?null:(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),`url("${this.buildResourceFileFinalPath(n)}");`)):(0,g.isUndefined)(e)?null:(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:d.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)?null:(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),`url("${this.buildResourceFileFinalPath(n)}");`)):null}});t.setAttribute("style",i)}return this}resoleAliasedPathForImageLikeElement({targetHTML_Element:e,targetHTML_ElementAttributeName:t}){const i=e.getAttribute(t);if(!(0,g.isNonEmptyString)(i))return;let n=h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.get(t)??null;if((0,g.isNotNull)(n))return void e.setAttribute(t,this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if(!(0,g.isNonEmptyString)(o))return;if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))return;return h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),void e.setAttribute(t,this.buildResourceFileFinalPath(n))}const a=this.projectBuildingMasterConfigRepresentative.imagesProcessingSettingsRepresentative;(0,g.isUndefined)(a)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.imagesSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:a.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:d.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:a.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:a.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.set(i,n),e.setAttribute(t,this.buildResourceFileFinalPath(n))))}resolveVideosAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.videosProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("video > source")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.get(i)??null;if((0,g.isNotNull)(n)){t.setAttribute("src",this.buildResourceFileFinalPath(n));continue}const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.videosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:u.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputVideosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveAudiosAliasedPaths(){const e=this.projectBuildingMasterConfigRepresentative.audiosProcessingSettingsRepresentative;if((0,g.isUndefined)(this.plainCopyingSettingsRepresentative)&&(0,g.isUndefined)(e))return this;for(const t of this.rootHTML_Element.querySelectorAll("audio > source")){const i=t.getAttribute("src");if(!(0,g.isNonEmptyString)(i))continue;let n=h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.get(i)??null;(0,g.isNotNull)(n)&&t.setAttribute("src",this.buildResourceFileFinalPath(n));const s=(0,g.explodeURI_PathToSegments)(i),o=s[0];if((0,g.isNonEmptyString)(o))if((0,g.isNotUndefined)(this.plainCopyingSettingsRepresentative)&&o.startsWith(r.default)){if(n=this.plainCopyingSettingsRepresentative.getSourceFileAbsolutePathByAliasedPath(s),(0,g.isNull)(n))continue;h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))}else(0,g.isUndefined)(e)||(n=this.resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:i,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:h.audiosSourceFilesGroupsTopDirectoriesAliasesAndRespectiveAbsolutePathsMap,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:e.supportedSourceFilesNamesExtensionsWithoutLeadingDots,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:c.default.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,fileTypeForLogging__singularForm:e.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM,fileTypeForLogging__pluralForm:e.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM}),(0,g.isNull)(n)||(h.aliasedURIsAndOutputAudiosFilesAbsolutePathsCorrespondenceMap.set(i,n),t.setAttribute("src",this.buildResourceFileFinalPath(n))))}return this}resolveOutputResourceFileAbsolutePathIfPossible({pickedPathOfTargetResourceFile:e,sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:t,supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots:i,sourceAndOutputFilesAbsolutePathsCorrespondenceMap:n,fileTypeForLogging__pluralForm:r}){const o=(0,g.explodeURI_PathToSegments)(e),a=o[0];if((0,g.isUndefined)(a))return null;if(a.startsWith(s.default)){const s=t.get(a);if((0,g.isUndefined)(s))return g.Logger.logWarning(h.localization.generateUnknownResourceGroupReferenceWarningLog({fileType__pluralForm:r,firstPathSegment:a,pickedPathOfTargetResourceFile:e,formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap:(0,g.stringifyAndFormatArbitraryValue)(Array.from(t.entries()))})),null;const l=m.ImprovedPath.joinPathSegments([s,...o.slice(1)],{alwaysForwardSlashSeparators:!0}),d=(0,g.extractLastExtensionOfFileName)({targetPath:l,withLeadingDot:!1});if((0,g.isNull)(d)||!i.has(d)){const t=Array.from(i).map(e=>(0,g.getURI_PartWithoutFragment)((0,g.appendLastFileNameExtension)({targetPath:l,targetFileNameExtensionWithOrWithoutLeadingDot:e,mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}))),s=(0,g.filterMap)(n,e=>t.includes(e));return 0===s.size?(g.Logger.logWarning(h.localization.generateNoMatchingsForAliasedFilePathWithoutFilenameExtensionWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r,checkedAbsolutePaths__formatted:(0,g.stringifyAndFormatArbitraryValue)(t)})),null):(0,g.appendFragmentToURI)({targetURI:Array.from(s.values())[0],targetFragmentWithOrWithoutLeadingHash:(0,g.getURI_Fragment)({targetURI:l,withLeadingHash:!1}),mustReplaceFragmentIfThereIsOneAlready:!1})}const u=n.get(l);return(0,g.isUndefined)(u)?(g.Logger.logWarning(h.localization.generateNoOutputFileExistingForSpecifiedSourceFilePathWarningLog({pickedPathOfTargetResourceFile:e,fileType__singularForm:r})),null):u}return null}buildResourceFileFinalPath(e){return(0,g.isNotUndefined)(this.publicDirectoryAbsolutePath)?`/${m.ImprovedPath.computeRelativePath({basePath:this.publicDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})}`:m.ImprovedPath.computeRelativePath({basePath:this.contextHTML_FileOutputDirectoryAbsolutePath,comparedPath:e,alwaysForwardSlashSeparators:!0})}}t.default=h},8363(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8627));class r{static generateAndSetContentForVinylFile(e){const t=e.stringifiedContents,i=r.convertInitialCodeToXML_Compatible(t),n=s.default.normalize(i);e.setContents(n)}static convertInitialCodeToXML_Compatible(e){let t=e;return t=t.replaceAll(/@ref=/gu,"at-ref="),t}}t.default=r},6847(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static optionsSpecification={subtype:n.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CodeListingPugFilerOptions",properties:{mustAppendEmptyLine:{type:Boolean,undefinedValueSubstitution:!1,isNullForbidden:!0},indentationMultiplier:{preValidationModifications:n.convertPotentialStringToIntegerIfPossible,type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:n.RawObjectDataProcessor.NumbersSets.naturalNumber,isNaN_Forbidden:!0},indentationString:{type:String,undefinedForbiddenIf:{predicate:e=>(0,n.isNotUndefined)(e.indentationMultiplier),descriptionForLogging:'"indentationMultiplier" has been specified'},isNullForbidden:!0,minimalCharactersCount:1}}};static apply(e,t){const i=n.RawObjectDataProcessor.process(t,s.optionsSpecification);i.isRawDataInvalid&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:'One or more invalid options found for "CodeListing" pug filer.\n'+n.RawObjectDataProcessor.formatValidationErrorsList(i.validationErrorsMessages)}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"CodeListingPugFilter.apply(sourcePugCode, rawOptions)"});const{mustAppendEmptyLine:r,indentationString:o,indentationMultiplier:a}=i.processedData,l=(0,n.getLineSeparatorType)(e);let d=e;return(0,n.isNotUndefined)(o)&&(0,n.isNotUndefined)(a)&&(d=(0,n.explodeStringToLines)({targetString:d,mustIgnoreCarriageReturn:!0}).map(e=>`${o.repeat(a-1)}${e}`).join(l)),[...r?[l]:[],d.replace(/&(?!#?[a-z0-9]+;)/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""").replace(/'/gu,"'")].join("")}}t.default=s},2282(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8398)),r=n(i(8931)),o=n(i(3021)),a=n(i(2274)),l=n(i(5347)),d=i(6272),u=n(i(518)),c=i(5480),p=n(i(1429));class g extends a.default{static localization=p.default;supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;markupProcessingSettings__fromFile__rawValid;unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths;commonStringResources;static normalize({markupProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new g({projectBuildingCommonSettings__normalized:t,...(0,d.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.markupProcessing}:null,markupProcessingSettings__fromFile__rawValid:e});return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,mustResolveResourcesReferencesToAbsolutePath:i.computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(),secondsBetweenFileUpdatingAndStartingOfRebuilding:i.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[i.consumingProjectBuildingMode]?.secondsBetweenFileUpdatingAndStartingOfRebuilding??o.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:i.normalizeLintingSettings(),...(0,d.isNotUndefined)(e.importingFromTypeScript)?{importingFromTypeScript:i.normalizeImportingFromTypeScriptSettings(e.importingFromTypeScript)}:null,...(0,d.isNotUndefined)(e.importingFromJavaScript)?{importingFromJavaScript:i.normalizeImportingFromJavaScriptSettings(e.importingFromJavaScript)}:null,staticPreview:{pagesVariations:i.normalizeStaticPreviewPagesVariationsSettings(),importsFromStaticDataFiles:i.normalizeImportsFromStaticDataFiles()},...(0,d.isNotUndefined)(e.routing)?{routing:{variable:e.routing.variable,routes:l.default.normalize({routingSettings__fromFile__rawValid:e.routing,projectRootDirectoryAbsolutePath:t.projectRootDirectoryAbsolutePath,absolutePathsOfSectioningToCache:new Set})}}:null,relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings.bind(i)),logging:i.normalizeLoggingSettings()}}constructor(e){super(e),this.markupProcessingSettings__fromFile__rawValid=e.markupProcessingSettings__fromFile__rawValid,this.unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths=new Set((this.markupProcessingSettings__fromFile__rawValid.common?.localization?.excludedFilesPathsRelativeRelativeToProjectRootDirectory??[]).map(t=>c.ImprovedPath.joinPathSegments([e.projectBuildingCommonSettings__normalized.projectRootDirectoryAbsolutePath,t],{alwaysForwardSlashSeparators:!0})))}computeMustResolveResourcesReferencesToAbsolutePathPropertyValue(){const e=this.markupProcessingSettings__fromFile__rawValid.common?.buildingModeDependent?.[this.consumingProjectBuildingMode]?.mustResolveResourcesPointersToRelativePaths;return this.consumingProjectBuildingMode===r.default.staticPreview?(!1===e&&d.Logger.logWarning(g.localization.noNeedToSetResourcesReferencesResolvingToRelativePathsOnStaticPreviewModeLog),!1):(0,d.isUndefined)(e)?!(0,d.isUndefined)(this.actualPublicDirectoryAbsolutePath)||(d.Logger.logWarning(g.localization.generateUnableToResolveResourcesReferencesToAbsolutePathLog({consumingProjectBuildingMode:this.consumingProjectBuildingMode})),!1):!e}normalizeLintingSettings(){return(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting)?{mustExecute:this.markupProcessingSettings__fromFile__rawValid.linting.enable??o.default.linting.mustExecute,...(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath)?{presetFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,this.markupProcessingSettings__fromFile__rawValid.linting.presetFileRelativePath],{alwaysForwardSlashSeparators:!0})}:null}:{mustExecute:o.default.linting.mustExecute}}normalizeImportingFromTypeScriptSettings(e){const t=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0});return{typeScriptConfigurationFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,(0,d.isNotUndefined)(e.typeScriptConfigurationFileRelativePath)?(0,d.appendLastFileNameExtension)({targetPath:e.typeScriptConfigurationFileRelativePath,targetFileNameExtensionWithOrWithoutLeadingDot:"json",mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1}):o.default.staticPreview.typeScriptConfigurationFileRelativePath],{alwaysForwardSlashSeparators:!0}),sourceFileAbsolutePath:t,importedNamespace:e.importedNamespace}}normalizeImportingFromJavaScriptSettings(e){return{sourceFileAbsolutePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.sourceFileRelativePath],{alwaysForwardSlashSeparators:!0}),nameOfGlobalConstantForStoringOfImports:e.nameOfGlobalConstantForStoringOfImports}}normalizeStaticPreviewPagesVariationsSettings(){const e=this.markupProcessingSettings__fromFile__rawValid.staticPreview?.stateDependentPagesVariations,t=new Map;if((0,d.isUndefined)(e)||this.consumingProjectBuildingMode!==r.default.staticPreview)return{stateDependent:t};const i=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e.specificationFileRelativePath],{alwaysForwardSlashSeparators:!0});let n;try{n=c.ObjectDataFilesProcessor.processFile({filePath:i,schema:c.ObjectDataFilesProcessor.SupportedSchemas.YAML,synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({customMessage:g.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationFileReadingFailedMessage({staticPreviewStateDependentPagesVariationsSpecificationFileAbsolutePath:i})}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()",innerError:e})}if(!(0,d.isArbitraryObject)(n))return d.Logger.logError({errorType:d.InvalidExternalDataError.NAME,title:d.InvalidExternalDataError.localization.defaultTitle,description:d.PoliteErrorsMessagesBuilder.buildMessage(g.localization.generateStaticPreviewStateDependentPagesVariationsSpecificationIsNotTheObjectErrorLog({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:i,stringifiedRawData:(0,d.stringifyAndFormatArbitraryValue)(n),rawDataActualType:typeof n})),occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),{stateDependent:t};for(const[i,s]of Object.entries(n)){const n=(0,d.appendLastFileNameExtension)({targetPath:i,targetFileNameExtensionWithOrWithoutLeadingDot:"pug",mustAppendDuplicateEvenIfTargetLastFileNameExtensionAlreadyPresentsAtSpecifiedPath:!1});(0,d.isArbitraryObject)(s)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidValueOfStaticPreviewStateDependentPagesVariationsSpecificationAssociativeArrayMessage({staticPreviewStateDependentPagesVariationsSpecificationFileRelativePath:e.specificationFileRelativePath,invalidEntryKey:n,invalidEntryValueType:typeof s,invalidEntryStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(s)})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),(0,d.isNonEmptyString)(s.$stateObjectTypeVariableName)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateVariableNameMessage({targetMarkupFileRelativePath:n,stringifiedValueOfSpecifiedVariableNameProperty:(0,d.stringifyAndFormatArbitraryValue)(s.$stateObjectTypeVariableName),specifiedTypeOfVariableNameProperty:typeof s.$stateObjectTypeVariableName})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),(0,d.isArbitraryObject)(s.$stateDependentVariations)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateDependentVariationsSpecificationMessage({targetMarkupFileRelativePath:n,actualType:typeof s.$stateDependentVariations,actualStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(s.$stateDependentVariations)})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"});const r=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),o=new Map;for(const[e,t]of Object.entries(s.$stateDependentVariations)){const i=`${(0,d.removeAllFileNameExtensions)(r)}${e}.pug`;(0,d.isArbitraryObject)(t)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:g.localization.generateInvalidPageStateVariableMessage({targetMarkupFileRelativePath:n,actualStringifiedValue:(0,d.stringifyAndFormatArbitraryValue)(t),actualType:typeof t})}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"MarkupProcessingRawSettingsNormalizer.normalizeStaticPreviewPagesVariationsSettings()"}),o.set(i,t)}t.set(c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,n],{alwaysForwardSlashSeparators:!0}),{stateVariableName:s.$stateObjectTypeVariableName,derivedPagesAndStatesMap:o})}return{stateDependent:t}}normalizeImportsFromStaticDataFiles(){const e={};for(const t of this.markupProcessingSettings__fromFile__rawValid.staticPreview?.importsFromStaticDataFiles??[]){let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,t.fileRelativePath]),synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({filePath:t.fileRelativePath}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.normalizeImportsFromStaticDataFiles()",innerError:e})}e[t.importedVariableName]=i}return e}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilMarkupEntryPointsGroupNormalizedSettings(e,t){const i=t.buildingModeDependent[this.consumingProjectBuildingMode],n=t.outputFormat??o.default.outputFormat;return{...e,outputFormat:n,localization:this.normalizeEntryPointsGroupLocalizationsSettings(e.sourceFilesTopDirectoryAbsolutePath,t.localization),HTML_Validation:{mustExecute:n===s.default.OutputFormats.HTML&&!0!==t.HTML_Validation?.disable&&o.default.HTML_Validation.mustExecute,ignoring:{filesAbsolutePaths:(t.HTML_Validation?.ignoring?.files??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),directoriesAbsolutePaths:(t.HTML_Validation?.ignoring?.directories??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}},accessibilityInspection:{mustExecute:n===s.default.OutputFormats.HTML&&!0!==t.accessibilityInspection?.disable&&o.default.accessibilityInspection.mustExecute,standard:t.accessibilityInspection?.standard??o.default.accessibilityInspection.standard,ignoring:{filesAbsolutePaths:(t.HTML_Validation?.ignoring?.files??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0})),directoriesAbsolutePaths:(t.HTML_Validation?.ignoring?.directories??[]).map(e=>c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0}))}},outputCodeFormatting:{mustExecute:!0===i.outputCodeFormatting?.enable||o.default.outputCodeFormatting.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,outputFormat:n}),indentationString:i.outputCodeFormatting?.indentationString??o.default.outputCodeFormatting.indentationString,lineSeparators:i.outputCodeFormatting?.lineSeparators??o.default.outputCodeFormatting.lineSeparators,mustGuaranteeTrailingEmptyLine:i.outputCodeFormatting?.mustGuaranteeTrailingEmptyLine??o.default.outputCodeFormatting.mustGuaranteeTrailingEmptyLine,mustIndentHeadAndBodyTags:i.outputCodeFormatting?.mustIndentHeadAndBodyTags??o.default.outputCodeFormatting.mustIndentHeadAndBodyTags},outputCodeMinifying:{mustExecute:!0===i.outputCodeMinifying?.enable||o.default.outputCodeMinifying.mustExecute({consumingProjectBuildingMode:this.consumingProjectBuildingMode,outputFormat:n}),attributesExtraWhitespacesCollapsing:i.outputCodeMinifying?.attributesExtraWhitespacesCollapsing??o.default.outputCodeMinifying.attributesExtraWhitespacesCollapsing,attributesValuesDeduplication:i.outputCodeMinifying?.attributesValuesDeduplication??o.default.outputCodeMinifying.attributesValuesDeduplication,commentsRemoving:i.outputCodeMinifying?.commentsRemoving??o.default.outputCodeMinifying.commentsRemoving}}}normalizeEntryPointsGroupLocalizationsSettings(e,t){const i=t?.localizedStringResourcesConstantName??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localizedStringResourcesConstantName,n=t?.localeConstantName??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localeConstantName,s=t?.nameOfConstantForInterpolationToLangHTML_Attribute??this.markupProcessingSettings__fromFile__rawValid.common?.localization?.nameOfConstantForInterpolationToLangHTML_Attribute;(0,d.isUndefined)(this.commonStringResources)&&(0,d.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.stringResourcesFileRelativePath)&&(this.commonStringResources=this.getStringResourcesFromFile(this.markupProcessingSettings__fromFile__rawValid.common.localization.stringResourcesFileRelativePath));const r=(0,d.isNotUndefined)(t?.stringResourcesFileRelativePath)?this.getStringResourcesFromFile(t.stringResourcesFileRelativePath):this.commonStringResources,o=new Map;for(const[e,{outputFileInterimNameExtensionWithoutDot:t,localeConstantValue:i,keyInLocalizedStringResourcesObject:n,valueOfConstantForInterpolationToLangHTML_Attribute:s}]of Object.entries(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.locales??{}))o.set(e,{outputFileInterimNameExtensionWithoutDot:t,...(0,d.isNotUndefined)(r)&&(0,d.isNotUndefined)(n)?{stringResources:r[n]}:null,...(0,d.isNotUndefined)(i)?{localeConstantValue:i}:null,...(0,d.isNotUndefined)(s)?{valueOfConstantForInterpolationToLangHTML_Attribute:s}:null});for(const[e,{outputFileInterimNameExtensionWithoutDot:i,localeConstantValue:n,keyInLocalizedStringResourcesObject:s,valueOfConstantForInterpolationToLangHTML_Attribute:a}]of Object.entries(t?.locales??{})){const t=o.get(e);o.set(e,{...t??null,outputFileInterimNameExtensionWithoutDot:i,...(0,d.isNotUndefined)(r)&&(0,d.isNotUndefined)(s)?{stringResources:r[s]}:null,...(0,d.isNotUndefined)(n)?{localeConstantValue:n}:null,...(0,d.isNotUndefined)(a)?{valueOfConstantForInterpolationToLangHTML_Attribute:a}:null})}return{...(0,d.isNotUndefined)(i)?{localizedStringResourcesConstantName:i}:null,...(0,d.isNotUndefined)(n)?{localeConstantName:n}:null,...(0,d.isNotUndefined)(s)?{nameOfConstantForInterpolationToLangHTML_Attribute:s}:null,locales:o,excludedFilesAbsolutePaths:(t?.excludedFilesPathsRelativeToSourcesFilesTopDirectory?.map(t=>c.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0}))??[]).concat(Array.from((0,d.removeSetElementsByPredicates)({targetSet:this.unusedCommonlyExcludedFromLocalizationEntryPointsSourceFilesAbsolutePaths,predicate:t=>(0,u.default)({whichPath:t,ofWhichPath:e})}).removedElements))}}getStringResourcesFromFile(e){const t=c.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath,e],{alwaysForwardSlashSeparators:!0});let i;try{i=c.ObjectDataFilesProcessor.processFile({filePath:t,synchronously:!0})}catch(e){d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.FileReadingFailedError({customMessage:`Unable to read the file with string resources at "${t}".`}),title:d.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)",innerError:e})}return(0,d.isArbitraryObject)(i)||d.Logger.throwErrorWithFormattedMessage({errorInstance:new d.InvalidExternalDataError({customMessage:`The content of string resources files "${t}" is not an object.`}),title:d.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"markupProcessingRawSettingsNormalizer.getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)"}),i}normalizeLoggingSettings(){return{filesPaths:this.markupProcessingSettings__fromFile__rawValid.logging?.filesPaths??o.default.logging.filesPaths,filesCount:this.markupProcessingSettings__fromFile__rawValid.logging?.filesCount??o.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:this.markupProcessingSettings__fromFile__rawValid.logging?.partialFilesAndParentEntryPointsCorrespondence??o.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:this.markupProcessingSettings__fromFile__rawValid.logging?.filesWatcherEvents??o.default.logging.filesWatcherEvents,linting:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.linting.starting??o.default.logging.linting.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.linting.completionWithoutIssues??o.default.logging.linting.completionWithoutIssues},HTML_Validation:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.HTML_Validation?.starting??o.default.logging.HTML_Validation.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.HTML_Validation?.completionWithoutIssues??o.default.logging.HTML_Validation.completionWithoutIssues},accessibilityChecking:{starting:this.markupProcessingSettings__fromFile__rawValid.logging?.accessibilityChecking?.starting??o.default.logging.accessibilityChecking.starting,completionWithoutIssues:this.markupProcessingSettings__fromFile__rawValid.logging?.accessibilityChecking?.completionWithoutIssues??o.default.logging.accessibilityChecking.completionWithoutIssues}}}}t.default=g},1429(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.$mustResolveResourcesPointersToRelativePaths" 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].$mustResolveResourcesPointersToRelativePaths" 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}`}},5347(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272),s=i(5480);class r{static routingPathSegments=[];static projectRootDirectoryAbsolutePath;static cachedAbsolutePathsOfSectioning=new Set;static normalize({routingSettings__fromFile__rawValid:e,projectRootDirectoryAbsolutePath:t,absolutePathsOfSectioningToCache:i}){r.cachedAbsolutePathsOfSectioning=i,r.projectRootDirectoryAbsolutePath=t;const o=s.ObjectDataFilesProcessor.processFile({filePath:s.ImprovedPath.joinPathSegments([t,e.specificationFileRelativePath]),synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML}),a={};for(const[i,r]of Object.entries(e.localizations??{})){const e=s.ImprovedPath.joinPathSegments([t,r],{alwaysForwardSlashSeparators:!0}),o=s.ObjectDataFilesProcessor.processFile({filePath:e,synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML});(0,n.isArbitraryObject)(o)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing localization at "${e}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalize(compoundParameter)"}),a[i]=o}if(0===Object.entries(a).length)return r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:o,outputWorkpiece:{}});const l={};for(const e of Object.keys(a))l[e]={},r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:o,outputWorkpiece:l[e],localization:{locale:e,strings:a[e]}});return r.cachedAbsolutePathsOfSectioning=new Set,l}static normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:e,outputWorkpiece:t,localization:i}){let s,o;(0,n.isArbitraryObject)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:["Malformed routing",r.routingPathSegments.length>0?[` at "${r.routingPathSegments.join(".")}"`]:[],". ",`Must be an object while ${typeof e} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(...parameters)"}),r.routingPathSegments.length>0?(s=2,o=r.routingPathSegments.push("$children","")-1):(s=1,o=r.routingPathSegments.push("")-1);for(const[s,a]of Object.entries(e)){r.routingPathSegments[o]=s,(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}". Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(...parameters)"});const e=r.normalizeURI_IfExists(a.$URI,i);t[s]={$heading:r.normalizeHeading(a.$heading,i),...(0,n.isNotNull)(e)?{$URI:e}:null,...(0,n.isArbitraryObject)(a.$children)?{$children:r.normalizeDepthLevelWiseRecursively({rawRoutingOfSpecificDepthLevel:a.$children,outputWorkpiece:{},localization:i})}:null,...(0,n.isArbitraryObject)(a.$sectioning)?{$sectioning:r.normalizeSectioning(a.$sectioning,e,i)}:null}}return(0,n.cropArray)({targetArray:r.routingPathSegments,mutably:!0,fromEnd:!0,fromRightmostElement:!0,elementsCount:s,mustThrowErrorIfSpecifiedElementsNumbersAreOutOfRange:!0}),t}static normalizeURI_IfExists(e,t){if((0,n.isEitherUndefinedOrNull)(e))return null;(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"});let i=e;if(i.startsWith("`")&&((0,n.isUndefined)(t)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". The specified URI has been wrapped to backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromFirstPosition:!0}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromLastPosition:!0}),i.includes("${")&&(i=(0,n.replaceMatchesWithRegularExpressionToDynamicValue)({targetString:i,regularExpressionWithCapturingGroups:/(?<interpolation>\$\{\s*(?<variable>(?:\w|\.)+)\s*\})/gmu,replacer(e){const i=(0,n.getObjectPropertySafely)(t.strings,e.namedCapturingGroups.variable);return(0,n.isString)(i)||(0,n.isNumber)(i,{mustConsiderNaN_AsNumber:!1})?String(i):null}})),i.includes("$"))){const e=(0,n.getObjectPropertySafely)(t.strings,i);return(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$URI". The specified URI is including backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeURI_IfExists(rawURI, localization?)"}),e}return i}static normalizeHeading(e,t){(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:[`Malformed routing at "${r.routingPathSegments.join(".")}.$heading".`,`Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"});let i=e;if(i.startsWith("`")){(0,n.isEitherUndefinedOrNull)(t)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$heading".The specified URI is including backticks while no localization specified.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromFirstPosition:!0}),i=(0,n.removeSpecificCharacterFromCertainPosition)({targetString:i,targetCharacter:"`",fromLastPosition:!0});const e=(0,n.getObjectPropertySafely)(t.strings,i);return(0,n.isString)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:[`Malformed localized heading at "${r.routingPathSegments.join(".")}.$heading".`,`Must be a string while ${typeof(0,n.nullToUndefined)(e)} found.`].join(" ")}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeHeading(specification, localization?)"}),e}return i}static normalizeSectioning(e,t,i){r.routingPathSegments.push("$sectioning"),(0,n.isString)(t)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The sectioning at "${r.routingPathSegments.join(".")}" has been defined while the $URI of the parent route has not been. It must be defined to compute the URI for each section.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"}),(0,n.isNonEmptyString)(e.$specificationFileRelativePath)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}.$specificationFileRelativePath".The "$sectioning.$specificationFileRelativePath" must be defined with the valid file path relative to project top directory.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const o=s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,e.$specificationFileRelativePath],{alwaysForwardSlashSeparators:!0});let a;try{a=s.ObjectDataFilesProcessor.processFile({filePath:s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,e.$specificationFileRelativePath]),synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML})}catch(t){n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The error has occurred during the reading of sectioning file at "${e.$specificationFileRelativePath}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)",innerError:t})}if(r.cachedAbsolutePathsOfSectioning.add(o),(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${e.$specificationFileRelativePath}". Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"}),(0,n.isArbitraryObject)(e.$localizations)){(0,n.isUndefined)(i)&&n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`The $localizations has been specified for sectioning "${r.routingPathSegments.join(".")}", but common localizations for routing has not been. Specify the $localizations property also in routing configuration.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const o=e.$localizations[i.locale];r.routingPathSegments.push("$localizations",i.locale),(0,n.isString)(o)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Invalid path to sectioning localization at "${r.routingPathSegments.join(".")}". Must be the string with file path relative to project root directory, `+typeof(0,n.nullToUndefined)(o)+" found."}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const l=s.ImprovedPath.joinPathSegments([r.projectRootDirectoryAbsolutePath,o],{alwaysForwardSlashSeparators:!0});let d;try{d=s.ObjectDataFilesProcessor.processFile({filePath:l,synchronously:!0,schema:s.ObjectDataFilesProcessor.SupportedSchemas.YAML})}catch(e){n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.FileReadingFailedError({filePath:l}),title:n.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)",innerError:e})}r.cachedAbsolutePathsOfSectioning.add(l),(0,n.isArbitraryObject)(d)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning localization at "${l}".`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeSectioning(...parameters)"});const u=r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a,outputWorkpiece:{},localization:{locale:i.locale,strings:d},parentRouteURI:t});return r.routingPathSegments.splice(-2),u}return r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a,outputWorkpiece:{},parentRouteURI:t})}static normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:e,outputWorkpiece:t,localization:i,parentRouteURI:s}){(0,n.isArbitraryObject)(e)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed routing at "${r.routingPathSegments.join(".")}". Must be an object while ${typeof(0,n.nullToUndefined)(e)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),r.routingPathSegments.push(..."$sectioning"===r.routingPathSegments[r.routingPathSegments.length-3]?[""]:["$children",""]),r.routingPathSegments.push("");for(const[o,a]of Object.entries(e))r.routingPathSegments[r.routingPathSegments.length-1]=o,(0,n.isArbitraryObject)(a)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${r.routingPathSegments.join(".")}".Must be an object while ${typeof(0,n.nullToUndefined)(a)} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),(0,n.isString)(a.$anchor)||n.Logger.throwErrorWithFormattedMessage({errorInstance:new n.InvalidExternalDataError({customMessage:`Malformed sectioning at "${r.routingPathSegments.join(".")}". The property "$anchor" must be defined with string while ${typeof a} found.`}),title:n.InvalidExternalDataError.localization.defaultTitle,occurrenceLocation:"RoutingSettingsNormalizer.normalizeDepthLevelWiseRecursively(compoundParameter)"}),t[o]={$heading:r.normalizeHeading(a.$heading,i),$anchor:a.$anchor,$URI:`${s}#${a.$anchor}`,...(0,n.isArbitraryObject)(a.$children)?{$children:r.normalizeSectioningDepthLevelRecursively({rawSectioningOfSpecificDepthLevel:a.$children,outputWorkpiece:{},localization:i,parentRouteURI:s})}:null};return r.routingPathSegments.pop(),t}}t.default=r},7102(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(7831)),o=n(i(2853)),a=n(i(4520)),l=n(i(2977)),d=n(i(7818)),u=n(i(6807)),c=n(i(9202)),p=n(i(4714)),g=n(i(7809)),m=n(i(4061)),h=n(i(9896)),f=i(6272),S=i(5480),F=n(i(4696));class P extends s.default{logging={pathsOfFilesWillBeProcessed:!1,quantityOfFilesWillBeProcessed:!1};webpackConfiguration;typeScriptSourceFileAbsolutePath;importedNamespaceName;static provideTypeScriptImportsForMarkupIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,f.isUndefined)(t))return(0,o.default)();const i=t.importingFromTypeScriptSettings;if((0,f.isUndefined)(i))return(0,o.default)();const n=new P(e,i);return e=>n.provideTypeScriptImports(e)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:e,taskTitleForLogging:"Exporting of TypeScript to Pug"});const i=m.default.readTypeScriptConfigurationFileAndGetCompilerOptions(t.typeScriptConfigurationFileAbsolutePath),n=g.default.convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptPathsSettings:i.paths,typeScriptBasicAbsolutePath:i.baseUrl??S.ImprovedPath.extractDirectoryFromFilePath({targetPath:t.typeScriptConfigurationFileAbsolutePath,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!1}})});h.default.existsSync(t.sourceFileAbsolutePath)||f.Logger.throwErrorWithFormattedMessage({errorInstance:new S.FileNotFoundError({customMessage:`The TypeScript file "${t.sourceFileAbsolutePath}" for the exporting to Pug was found. Please create this file and provide some exports from it.`}),title:S.FileNotFoundError.localization.defaultTitle,occurrenceLocation:"compiledInlineTypeScriptImporterForPug.constructor(...parameters)"});const s=p.default.getWebpackEntryObjectRespectiveToExistingEntryPoints({entryPointsSourceFilesAbsolutePaths:[t.sourceFileAbsolutePath],webpackContext:e.consumingProjectRootDirectoryAbsolutePath});this.webpackConfiguration=P.getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({webpackEntryPointDefinition:s,compiledTypeScriptImportingSettings:t,projectBuildingMasterConfigRepresentative:e,webpackAliasesConfiguration:n}),this.typeScriptSourceFileAbsolutePath=t.sourceFileAbsolutePath,this.importedNamespaceName=t.importedNamespace}provideTypeScriptImports(e){return a.default.src(this.typeScriptSourceFileAbsolutePath).pipe(super.handleErrorIfItWillOccur()).pipe(super.logInputFilesIfMust()).pipe((0,c.default)(this.webpackConfiguration,null,this.onBuildHasCompleted.bind(this))).pipe(super.logOutputFilesIfMust()).pipe(d.default.modify({onStreamStartedEventCommonHandler:async t=>{const i=(0,l.default)(t),n=(0,F.default)(i);return(0,f.isArbitraryObject)(n)&&(0,f.isArbitraryObject)(n.default)?(r.default.importsFromTypeScript={[this.importedNamespaceName]:n.default},e(),Promise.resolve(d.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)):(e(),Promise.resolve(d.default.CompletionSignals.REMOVING_FILE_FROM_STREAM))}}))}onBuildHasCompleted(e,t){(0,f.isNeitherUndefinedNorNull)(e)||(0,f.isNotUndefined)(t)&&(f.Logger.logSuccess({title:"Injection of transpiled TypeScript to Pug successful",description:`The TypeScript file has been transpiled and injected to Pug. The exported entity stored to "${this.importedNamespaceName}" variable.`}),process.stdout.write(`${t.toString({colors:!0})}\n`))}static getWebpackEntryObjectRespectiveToSpecifiedEntryPointsGroupSettings({webpackEntryPointDefinition:e,compiledTypeScriptImportingSettings:t,projectBuildingMasterConfigRepresentative:i,webpackAliasesConfiguration:n}){return{entry:e,output:{library:{type:"umd",name:t.importedNamespace},globalObject:"globalThis"},watch:i.mustProvideIncrementalBuilding,mode:"production",optimization:{minimize:!0},module:{rules:[{test:/\.ts$/u,loader:"ts-loader",options:{transpileOnly:!0}}]},resolve:{extensions:[".ts",".js"],alias:n},resolveLoader:g.default.generateLoadersResolvingSettings(i.consumingProjectRootDirectoryAbsolutePath),plugins:[new u.default.DefinePlugin({__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__YDA__:i.isLocalDevelopmentBuildingMode,__IS_TESTING_BUILDING_MODE__YDA__:i.isTestingBuildingMode,__IS_STAGING_BUILDING_MODE__YDA__:i.isStagingBuildingMode,__IS_PRODUCTION_BUILDING_MODE__YDA__:i.isProductionBuildingMode})]}}}t.default=P},5217(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(1815)),r=n(i(7831)),o=i(6272),a=n(i(4696)),l=n(i(9896));class d extends s.default{logging={pathsOfFilesWillBeProcessed:!1,quantityOfFilesWillBeProcessed:!1};static provideJavaScriptImportsForMarkupIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,o.isUndefined)(t))return e=>{e()};const i=t.importingFromJavaScriptSettings;if((0,o.isUndefined)(i))return e=>{e()};const n=(0,a.default)(l.default.readFileSync(i.sourceFileAbsolutePath,"utf-8"));return r.default.importsFromJavaScript={[i.nameOfGlobalConstantForStoringOfImports]:n},e=>{e()}}}t.default=d},3011(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2858)),r=n(i(6274)),o=n(i(8033)),a=n(i(8510)),l=n(i(3330)),d=n(i(7818)),u=n(i(2853)),c=i(6272),p=i(5480),g=n(i(8880));class m extends r.default{static localization=g.default;pugLintInstance=new a.default;pugLintConfig;static provideLintingIfMust(e){const t=e.markupProcessingSettingsRepresentative;if((0,c.isUndefined)(t))return(0,u.default)();let i;try{i=l.default.load()}catch(e){c.Logger.throwErrorWithFormattedMessage({errorInstance:new c.InvalidConfigError({customMessage:"Invalid puglint config."}),title:c.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative)",innerError:e})}if((0,c.isUndefined)(i))return c.Logger.logError({errorType:c.ConfigFileNotFoundError.NAME,title:m.localization.pugLintFileNotFoundErrorLog.title,description:c.ConfigFileNotFoundError.localization.generateDescription({targetTechnologyName:"pug-lint",configFilePathOrMultipleOfThem:o.default.linterConfigurationFilesNamesWithExtensions,messageSpecificPart:m.localization.pugLintFileNotFoundErrorLog.pugLintConfigurationFileRequirementExplanation}),occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative)"}),(0,u.default)();const n=new m({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e,pugLintConfig:i});return e.mustProvideIncrementalBuilding&&s.default.initializeIfRequiredAndGetInstance({markupProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyRelatedFileAddedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_ADDED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenAddedOrUpdated.bind(n)}).addOnAnyRelatedFileUpdatedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_UPDATED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenAddedOrUpdated.bind(n)}).addOnAnyRelatedFileDeletedEventHandler({handlerID:"ON_ANY_MARKUP_FILE_DELETED--BY_MARKUP_SOURCE_CODE_LINTER",handler:n.onFileHasBeenDeleted.bind(n)}),n.checkFiles(n.targetFilesGlobSelectors)}constructor({markupProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t,pugLintConfig:i}){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"Markup Processing / Markup Source Code Linting",sourceFilesCachedCheckingResults:{fileNameWithExtension:"MarkupLintingCache.json",contentSpecification:{subtype:c.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,nameForLogging:"CachedMarkupLintingResultsFileContent",properties:{files:{type:c.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{issues:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:Object,properties:{code:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},message:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1},sourceListing:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},lineNumber:{type:Number,isUndefinedForbidden:!0,isNullForbidden:!0,numbersSet:c.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0},columnNumber:{type:Number,isUndefinedForbidden:!1,isNullForbidden:!0,numbersSet:c.RawObjectDataProcessor.NumbersSets.positiveIntegerOrZero,isNaN_Forbidden:!0}}}},modificationDateTime__ISO_8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0,minimalCharactersCount:1}}}}}},emptyValue:{files:{}}},targetFilesGlobSelectors:[p.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,fileNamesExtensions:["pug"]}),p.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(p.ImprovedPath.joinPathSegments([t.consumingProjectRootDirectoryAbsolutePath,"node_modules"])),...(0,c.isNonEmptyArray)(i.excludeFiles)?i.excludeFiles.map(e=>p.ImprovedGlob.buildAbsolutePathBasedGlob({basicDirectoryPath:t.consumingProjectRootDirectoryAbsolutePath,relativePathBasedGlob:e,isExclusive:!0})):[]],logging:{pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount,checkingStart:e.loggingSettings.linting.starting,completionWithoutIssues:e.loggingSettings.linting.completionWithoutIssues}}),this.pugLintConfig=i;try{this.pugLintInstance.configure(this.pugLintConfig)}catch(e){c.Logger.throwErrorWithFormattedMessage({errorInstance:new c.InvalidConfigError({customMessage:m.localization.pugLintConfigurationIsInvalid.description}),title:m.localization.pugLintConfigurationIsInvalid.title,occurrenceLocation:"MarkupSourceCodeLinter.provideLintingIfMust(projectBuildingMasterConfigRepresentative) ->constructor(compoundParameter)",innerError:e})}}async checkSingleFile(e){try{e[r.default.CHECKING_ISSUES_MESSAGES_PROPERTY_NAME_AT_VINYL_FILE_INSTANCE]=this.pugLintInstance.checkFile(e.path).map(e=>({code:e.code,message:e.msg,sourceListing:e.src,lineNumber:e.line,columnNumber:e.column}))}catch(e){c.Logger.throwErrorWithFormattedMessage({errorType:"MarkupLintingError",title:m.localization.lintingFailedErrorLog.title,description:c.PoliteErrorsMessagesBuilder.buildMessage({technicalDetails:m.localization.lintingFailedErrorLog.technicalDetails,politeExplanation:m.localization.lintingFailedErrorLog.politeExplanation}),occurrenceLocation:"markupSourceCodeLinter.checkSingleFile()",innerError:e})}return Promise.resolve(d.default.CompletionSignals.PASSING_ON)}formatIssuesOfSingleFile(e){return e.issues.map(e=>`------------------------------------------------------------------------------------------------------\n${this.createExtractionFromCodeListingWithHighlightedIssueLine(e)}\n------------------------------------------------------------------------------------------------------\n${e.message} (${e.code})\nat line ${e.lineNumber}`+(0,c.insertSubstring)(e.columnNumber,{modifier:e=>`, column ${e}`})).join("\n\n")}createExtractionFromCodeListingWithHighlightedIssueLine(e){const t=e.sourceListing.split("\n");if((0,c.isUndefined)(e.columnNumber))t[e.lineNumber-1]=c.Logger.highlightText(t[e.lineNumber-1]);else{const i=t[e.lineNumber-1],n=(0,c.cropString)({targetString:i,startingCharacterNumber__numerationFrom1:e.columnNumber,endingCharacterNumber__numerationFrom0:(0,c.limitMinimalValue)({targetNumber:i.length-1,minimalValue:0}),mustThrowErrorIfSpecifiedCharactersNumbersIsOutOfRange:!1});t[e.lineNumber-1]=i.replace(n,c.Logger.highlightText(n))}let i=e.lineNumber-1-this.DISPLAYING_LINES_COUNT_BEFORE_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT;i<0&&(i=0);let n=e.lineNumber+this.DISPLAYING_LINES_COUNT_AFTER_ISSUED_LINE_IN_CODE_LISTING_OF_REPORT;return n>t.length&&(n=t.length),t.slice(i,n).join("\n")}}t.default=m},8880(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."},pugLintConfigurationIsInvalid:{title:"'pug-lint' configuration is invalid",description:"The 'pug-lint' utility has not accepted the specified configuration."},lintingFailedErrorLog:{title:"Markup linting error",technicalDetails:'The error occurred during execution of "pug-lint".',politeExplanation:"The Pug linter has thrown the error under unknown for YDA developers combination of conditions."}}},2215(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(5364)),r=n(i(8817)),o=n(i(5987)),a=i(6272);class l{static replaceAllowedCSS_ClassesInStylesheetAndSaveCorrespondencesIfMust(e,t){if(!t.CSS_ClassesMinificationOnFlySettings.enabled)return;const{CSS_ClassesRegularExpressions:i,ignoredCSS_Classes:n,forbiddenMinifiedCSS_ClassesNames:s}=t.CSS_ClassesMinificationOnFlySettings,a=r.default.parse(e.stringifiedContents),d=(0,o.default)(e=>{e.walkClasses(e=>{l.processPostCSS_ClassNode({classNode:e,ignoredCSS_Classes:n,CSS_ClassesRegularExpressions:i,forbiddenMinifiedCSS_ClassesNames:s})})});a.walkRules(e=>{e.selector=d.processSync(e.selector)}),e.setContents(a.toString())}static replaceAllowedCSS_ClassesInMarkupAndSaveCorrespondencesIfMust(e,t){if(!t.CSS_ClassesMinificationOnFlySettings.enabled||0===s.default.initialAndShortenedCSS_ClassesCorrespondence.size)return e;const{generatingInMarkupOfShortCSS_ClassesNotMentionedInStylesheets:i,forbiddenMinifiedCSS_ClassesNames:n}=t.CSS_ClassesMinificationOnFlySettings;for(const t of e.querySelectorAll("[class]")){const e=t.getAttribute("class");(0,a.isUndefined)(e)||t.setAttribute("class",e.split(/\s+/u).map(e=>{const t=s.default.initialAndShortenedCSS_ClassesCorrespondence.get(e);if((0,a.isNotUndefined)(t))return t;if(!i.enabled||i.ignoredInitialCSS_Classes.has(e))return e;const r=l.issueAndNewAvailableCSS_ClassName(n);return s.default.initialAndShortenedCSS_ClassesCorrespondence.set(e,r),r}).join(" "))}return e}static processPostCSS_ClassNode({classNode:e,ignoredCSS_Classes:t,CSS_ClassesRegularExpressions:i,forbiddenMinifiedCSS_ClassesNames:n}){const r=e.value;if(t.has(r)||!Array.from(i).some(e=>e.test(r)))return;const o=s.default.initialAndShortenedCSS_ClassesCorrespondence.get(r);if((0,a.isUndefined)(o)){const t=l.issueAndNewAvailableCSS_ClassName(n);s.default.initialAndShortenedCSS_ClassesCorrespondence.set(r,t),e.value=t}else e.value=o}static indexesOfCharacters=[0,0];static issueAndNewAvailableCSS_ClassName(e){let t;do{t=l.indexesOfCharacters.map((e,t)=>(t===l.indexesOfCharacters.length-1?a.stringifiedDigits:a.lowercaseLatinCharacters)[e]).join(""),l.increment()}while(e.has(t));return t}static increment(){const e=l.indexesOfCharacters.length;for(let t=e-1;t>=0;t--){const i=t===e-1?a.stringifiedDigits:a.lowercaseLatinCharacters,n=l.indexesOfCharacters[t],s=n===i.length-1?0:n+1;if(l.indexesOfCharacters[t]=s,0!==s)return}l.indexesOfCharacters.unshift(0)}}t.default=l},4644(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7741)),r=n(i(2597)),o=i(5480);class a extends r.default{sourceAbsolutePath;outputDirectoryAbsolutePath;actualEntryPointsGroupSettings;constructor({initialPlainVinylFile:e,actualEntryPointsGroupSettings:t}){super({explicitlySpecifiedPathPart:e.base,path:e.path,contents:Buffer.isBuffer(e.contents)?e.contents:Buffer.from("")}),this.sourceAbsolutePath=o.ImprovedPath.replacePathSeparatorsToForwardSlashes(e.path),this.actualEntryPointsGroupSettings=t,this.outputDirectoryAbsolutePath=s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(this.sourceAbsolutePath,this.actualEntryPointsGroupSettings)}}t.default=a},5685(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(62)),r=n(i(7197)),o=n(i(3746)),a=n(i(2274)),l=n(i(8527)),d=i(6272),u=i(5480);class c extends a.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots;static normalize({stylesProcessingSettings__fromFile__rawValid:e,commonSettings__normalized:t}){const i=new c({projectBuildingCommonSettings__normalized:t,...(0,d.isNotUndefined)(t.tasksAndSourceFilesSelection)?{entryPointsGroupsIDsSelection:t.tasksAndSourceFilesSelection.stylesProcessing}:{}});return{common:{supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots:s.default.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:s.default.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,supportedOutputFileNameExtensionsWithoutLeadingDots:s.default.supportedOutputFilesNamesExtensionsWithoutLeadingDots,secondsBetweenFileUpdatingAndStartingOfRebuilding:e.common?.buildingModeDependent?.[i.consumingProjectBuildingMode]?.secondsBetweenFileUpdatingAndStartingOfRebuilding??r.default.periodBetweenFileUpdatingAndRebuildingStarting__seconds},linting:(0,d.isUndefined)(e.linting)?{mustExecute:r.default.linting.mustExecute}:{mustExecute:e.linting.enable??r.default.linting.mustExecute,...(0,d.isNotUndefined)(e.linting.presetFileRelativePath)?{presetFileAbsolutePath:u.ImprovedPath.joinPathSegments([t.projectRootDirectoryAbsolutePath,o.default.DEFAULT_CONFIG_FILE_NAME_WITH_EXTENSION],{alwaysForwardSlashSeparators:!0})}:null},relevantEntryPointsGroups:i.createNormalizedEntryPointsGroupsSettings(e.entryPointsGroups,i.completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings.bind(i)),logging:{filesPaths:e.logging?.filesPaths??r.default.logging.filesPaths,filesCount:e.logging?.filesCount??r.default.logging.filesCount,partialFilesAndParentEntryPointsCorrespondence:e.logging?.partialFilesAndParentEntryPointsCorrespondence??r.default.logging.partialFilesAndParentEntryPointsCorrespondence,filesWatcherEvents:e.logging?.filesWatcherEvents??r.default.logging.filesWatcherEvents,linting:{starting:e.logging?.linting.starting??r.default.logging.linting.starting,completionWithoutIssues:e.logging?.linting.completionWithoutIssues??r.default.logging.linting.completionWithoutIssues}}}}constructor(e){super(e)}completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilStylesEntryPointsGroupNormalizedSettings(e,t){return{...e,mustGenerateSourcemaps:t.buildingModeDependent[this.consumingProjectBuildingMode].mustGenerateSourcemaps??r.default.sourcemaps.mustGenerate({consumingProjectBuildingMode:this.consumingProjectBuildingMode}),revisioning:l.default.normalize({revisioningSettings__rawValid:t.buildingModeDependent[this.consumingProjectBuildingMode].revisioning,revisioningSettings__default:{mustExecute:r.default.revisioning.mustExecute,contentHashPostfixSeparator:r.default.revisioning.contentHashPostfixSeparator},consumingProjectBuildingMode:this.consumingProjectBuildingMode})}}}t.default=c},62(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots=new Set(["styl","stylus"]),e.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles=new Set([]),e.supportedOutputFilesNamesExtensionsWithoutLeadingDots=["css"]}(i||(i={})),t.default=i},7741(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6300)),r=n(i(4912)),o=i(6272);class a extends r.default{supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots;actualFileNameExtensionsWithoutLeadingDots;TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM="Stylesheet";TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM="Stylesheets";WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS;entryPointsGroupsNormalizedSettingsMappedByReferences;sourceCodeLintingCommonSettings;relevantEntryPointsGroupsSettings;loggingSettings;sourceCodeProcessingCommonSettings;constructor(e,t){super(t),this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots=e.common.supportedEntryPointsSourceFilesNamesExtensionsWithoutLeadingDots,this.actualFileNameExtensionsWithoutLeadingDots=(0,o.mergeSets)(this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots,e.common.supportedAdditionalFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles),this.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS=e.common.secondsBetweenFileUpdatingAndStartingOfRebuilding,this.relevantEntryPointsGroupsSettings=e.relevantEntryPointsGroups,this.entryPointsGroupsNormalizedSettingsMappedByReferences=new Map(Array.from(this.relevantEntryPointsGroupsSettings.values()).map(e=>[`${s.default}${e.ID}`,e])),this.sourceCodeLintingCommonSettings=e.linting,this.loggingSettings=e.logging,this.sourceCodeProcessingCommonSettings=e.common}get mustLogSourceFilesWatcherEvents(){return this.loggingSettings.filesWatcherEvents}}t.default=a},7197(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r={periodBetweenFileUpdatingAndRebuildingStarting__seconds:1,sourcemaps:{mustGenerate:e=>e.consumingProjectBuildingMode===s.default.staticPreview||e.consumingProjectBuildingMode===s.default.localDevelopment},revisioning:{mustExecute:e=>e.consumingProjectBuildingMode!==s.default.staticPreview&&e.consumingProjectBuildingMode!==s.default.localDevelopment,contentHashPostfixSeparator:"--"},linting:{mustExecute:!0},logging:{filesPaths:!0,filesCount:!1,partialFilesAndParentEntryPointsCorrespondence:!1,filesWatcherEvents:!0,linting:{starting:!0,completionWithoutIssues:!0}}};t.default=r},6394(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(8931)),r=n(i(7534)),o=n(i(523)),a=n(i(1579)),l=i(6272);var d;!function(e){e.propertiesSpecification={$common:{newName:"common",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$buildingModeDependent:{newName:"buildingModeDependent",type:l.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!1,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,minimalEntriesCount:1,allowedKeys:["$staticPreview","$localDevelopment","$testing","$staging","$production"],keysRenamings:{$staticPreview:s.default.staticPreview,$localDevelopment:s.default.localDevelopment,$testing:s.default.testing,$staging:s.default.staging,$production:s.default.production},value:{type:Object,properties:{$secondsBetweenFileUpdatingAndStartingOfRebuilding:{newName:"secondsBetweenFileUpdatingAndStartingOfRebuilding",type:Number,numbersSet:l.RawObjectDataProcessor.NumbersSets.positiveRealNumber,isNaN_Forbidden:!0,isUndefinedForbidden:!1,isNullForbidden:!0},$mustResolveResourceReferencesToRelativePaths:{newName:"mustResolveResourceReferencesToRelativePaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:a.default.propertiesSpecification},...r.default.generatePropertiesSpecification({entryPointsGroupBuildingModeDependentSpecificSettingsLocalizedPropertiesSpecification:{$sourcemaps:{newName:"mustGenerateSourcemaps",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$revisioning:{newName:"revisioning",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:o.default.propertiesSpecification}}}),$logging:{newName:"logging",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$filesPaths:{newName:"filesPaths",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesCount:{newName:"filesCount",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$partialFilesAndParentEntryPointsCorrespondence:{newName:"partialFilesAndParentEntryPointsCorrespondence",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$filesWatcherEvents:{newName:"filesWatcherEvents",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$linting:{newName:"linting",type:Object,isUndefinedForbidden:!1,mustTransformNullToUndefined:!0,properties:{$starting:{newName:"starting",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0},$completionWithoutIssues:{newName:"completionWithoutIssues",type:Boolean,isUndefinedForbidden:!1,isNullForbidden:!0}}}}}}}(d||(d={})),t.default=d},5687(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap=new Map}t.default=i},5228(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(7741)),r=n(i(8250)),o=n(i(1815)),a=n(i(5687)),l=n(i(4520)),d=n(i(4724)),u=n(i(1805)),c=n(i(3813)),p=n(i(2872)),g=n(i(3491)),m=n(i(7689)),h=n(i(9986)),f=n(i(1391)),S=n(i(7818)),F=n(i(2853)),P=n(i(703)),_=n(i(919)),b=n(i(4644)),E=n(i(7749)),y=n(i(2215)),A=n(i(9269)),I=i(6272),v=i(5480);class N extends o.default{static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION="StylusEntryPointsAndAffiliatedFilesMappingCache.json";logging;stylesProcessingConfigRepresentative;absolutePathOfFilesWaitingForReProcessing=new Set;sourceCodeSelectiveReprocessingHelper=null;subsequentFilesStateChangeTimeout=null;static provideStylesProcessingIfMust(e){const t=e.stylesProcessingSettingsRepresentative;if((0,I.isUndefined)(t))return(0,F.default)();const i=new N(t,e);return e.mustProvideIncrementalBuilding&&(i.sourceCodeSelectiveReprocessingHelper=new P.default({initialEntryPointsSourceFilesAbsolutePaths:t.initialRelevantEntryPointsSourceFilesAbsolutePaths,childrenFilesResolutionRules:{childrenFilesIncludingDeclarationsPatterns:f.default.partialFilesIncludingDeclarationPatterns,implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles:f.default.implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials},isEntryPoint:t.isEntryPoint.bind(t),logging:{mustEnable:t.loggingSettings.partialFilesAndParentEntryPointsCorrespondence,targetFilesTypeInSingularForm:t.TARGET_FILES_KIND_FOR_LOGGING__SINGULAR_FORM},consumingProjectRootDirectoryAbsolutePath:e.consumingProjectRootDirectoryAbsolutePath,cacheFileAbsolutePath:v.ImprovedPath.joinPathSegments([_.default.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH,N.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION])}),r.default.initializeIfRequiredAndGetInstance({stylesProcessingSettingsRepresentative:t,projectBuildingMasterConfigRepresentative:e}).addOnAnyEventRelatedWithActualFilesHandler({handlerID:"ON_ANY_EVENT_WITH_STYLES_SOURCE_CODE_FILE--BY_STYLED_PROCESSOR",handler:i.onSourceFilesWatcherEmitsAnyEvent.bind(i)}).addOnEntryPointFileAddedEventHandler({handlerID:"ON_STYLES_ENTRY_POINT_FILE_ADDED--BY_STYLES_PROCESSOR",handler:i.onEntryPointFileAdded.bind(i)}).addOnEntryPointFileDeletedEventHandler({handlerID:"ON_STYLES_ENTRY_POINT_FILE_DELETED--BY_STYLES_PROCESSOR",handler:N.onEntryPointFileDeleted})),i.processEntryPoints(t.initialRelevantEntryPointsSourceFilesAbsolutePaths)}constructor(e,t){super({projectBuildingMasterConfigRepresentative:t,taskTitleForLogging:"Styles Processing"}),this.logging={pathsOfFilesWillBeProcessed:e.loggingSettings.filesPaths,quantityOfFilesWillBeProcessed:e.loggingSettings.filesCount},this.stylesProcessingConfigRepresentative=e}processEntryPoints(e){return 0===e.length?(0,F.default)():()=>l.default.src(e).pipe(super.handleErrorIfItWillOccur()).pipe(S.default.modify({onStreamStartedEventCommonHandler:this.replacePlainVinylFileWithStylesEntryPointVinylFile.bind(this)})).pipe((0,d.default)(e=>e.actualEntryPointsGroupSettings.mustGenerateSourcemaps,u.default.init())).pipe(this.logInputFilesIfMust()).pipe((0,c.default)({"include css":!0})).pipe(S.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:async e=>(y.default.replaceAllowedCSS_ClassesInStylesheetAndSaveCorrespondencesIfMust(e,this.projectBuildingMasterConfigRepresentative),Promise.resolve(S.default.CompletionSignals.PASSING_ON))})).pipe((0,p.default)(()=>({plugins:[h.default,g.default,(0,m.default)({preset:["default",{normalizeWhitespace:!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding,discardComments:!this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding}]})]}))).pipe((0,d.default)(e=>e.actualEntryPointsGroupSettings.mustGenerateSourcemaps,u.default.write())).pipe(S.default.modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:this.onOutputCSS_FileReady.bind(this)})).pipe(super.logOutputFilesIfMust()).pipe(l.default.dest(e=>b.default.getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e)))}onSourceFilesWatcherEmitsAnyEvent(e){this.absolutePathOfFilesWaitingForReProcessing.add(e),(0,I.isNotNull)(this.subsequentFilesStateChangeTimeout)&&clearTimeout(this.subsequentFilesStateChangeTimeout),this.subsequentFilesStateChangeTimeout=setTimeout(()=>{this.processEntryPoints(this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing)??[])(),this.absolutePathOfFilesWaitingForReProcessing.clear()},(0,I.secondsToMilliseconds)(this.stylesProcessingConfigRepresentative.WAITING_FOR_SUBSEQUENT_FILES_WILL_SAVED_PERIOD__SECONDS))}onEntryPointFileAdded(e){const t=this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e);a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e,v.ImprovedPath.joinPathSegments([s.default.computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(e,t),`${(0,I.extractFileNameWithoutLastExtension)(e)}.css`],{alwaysForwardSlashSeparators:!0}))}static onEntryPointFileDeleted(e){a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.delete(e)}async replacePlainVinylFileWithStylesEntryPointVinylFile(e,t){return t(new b.default({initialPlainVinylFile:e,actualEntryPointsGroupSettings:this.stylesProcessingConfigRepresentative.getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(e.path)})),Promise.resolve(S.default.CompletionSignals.REMOVING_FILE_FROM_STREAM)}async onOutputCSS_FileReady(e){e.actualEntryPointsGroupSettings.revisioning.mustExecute&&E.default.appendPostfixIfPossible(e,{contentHashPostfixSeparator:e.actualEntryPointsGroupSettings.revisioning.contentHashPostfixSeparator}),a.default.entryPointsSourceAndOutputFilesAbsolutePathsCorrespondenceMap.set(e.sourceAbsolutePath,v.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0}));let t=e.stringifiedContents;return t=A.default.resolve({CSS_Code:t,absolutePathOfOutputDirectoryForParentFile:e.outputDirectoryAbsolutePath,projectBuildingMasterConfigRepresentative:this.projectBuildingMasterConfigRepresentative,logging:{parentFileAbsolutePath:v.ImprovedPath.joinPathSegments([e.outputDirectoryAbsolutePath,e.basename],{alwaysForwardSlashSeparators:!0})}}),e.setContents(t),Promise.resolve(S.default.CompletionSignals.PASSING_ON)}}t.default=N},8250(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2909)),r=n(i(4871)),o=i(6272);class a extends s.default{static selfSoleInstance=null;settingsRepresentative;static initializeIfRequiredAndGetInstance(e){return(0,o.isNull)(a.selfSoleInstance)&&(a.selfSoleInstance=new a(e),r.default.addPassiveWatcher(a.selfSoleInstance)),a.selfSoleInstance}constructor({stylesProcessingSettingsRepresentative:e,projectBuildingMasterConfigRepresentative:t}){super({ID:"STYLES_SOURCE_FILES_WATCHER",mustLogEvents:e.mustLogSourceFilesWatcherEvents,projectBuildingMasterConfigRepresentative:t,targetFilesNamesExtensionsWithoutLeadingDots:e.actualFileNameExtensionsWithoutLeadingDots,outputFilesGlobSelectors:e.actualOutputFilesGlobSelectors,targetSourceFilesType__singularForm:"Stylesheet"}),this.settingsRepresentative=e}}t.default=a},1393(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static getEventNameInterpretation(e){switch(e){case i.EventsNames.fileAdded:return"File has been added";case i.EventsNames.fileChanged:return"File has changed";case i.EventsNames.fileDeleted:return"File has been deleted";case i.EventsNames.directoryAdded:return"Directory has been added";case i.EventsNames.directoryDeleted:return"Directory has been deleted";case i.EventsNames.errorOccurred:return"Error has occurred";case i.EventsNames.initialScanComplete:return"Initial scan complete";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={}))}(i||(i={})),t.default=i},142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static partialFilesIncludingDeclarationPatterns=[/from\s+["']((?:\w|-|\.|\/|:|@|~)+)["']/gmu]}},9227(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(6928)),r=n(i(9896)),o=i(5480),a=i(6272);class l{static SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS=["eslint.config.js","eslint.config.mjs","eslint.config.cjs","eslint.config.ts","eslint.config.mts","eslint.config.cts"];static generateExcludingGlobSelectorsOfIgnoredFiles(e){let t;for(const i of l.SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS)try{t=r.default.readFileSync(o.ImprovedPath.joinPathSegments([e,i],{alwaysForwardSlashSeparators:!0}),"utf-8");break}catch(e){if((0,o.isErrnoException)(e)&&"ENOENT"===e.code)continue;a.Logger.logError({mustOutputIf:!1,errorType:"FileReadingFailedError",title:"File Reading Failed",description:`Unable to read the file ${i} while this file seems to be exist`,occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)",caughtError:e})}if((0,a.isUndefined)(t))return a.Logger.logWarning({title:"No Files Will be Ignored by ESLint",description:"ESLint configuration file not found thus unable to decide which files must be ignored.",occurrenceLocation:"className.methodName(compoundParameter)"}),[];const i=(0,a.getMatchingWithFirstRegularExpressionCapturingGroup)(t,/ignores:\s*(?<array>\[(?:.|\s)+?\])/gu);if((0,a.isNull)(i))return[];let n;try{n=JSON.parse(i.replace("'",'"'))}catch(e){return a.Logger.logError({errorType:a.InvalidExternalDataError.NAME,title:a.InvalidExternalDataError.localization.defaultTitle,description:"Invalid ignoring patters in ESLint configuration.",occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)",caughtError:e}),[]}const d=a.RawObjectDataProcessor.process(n,{subtype:a.RawObjectDataProcessor.ObjectSubtypes.indexedArray,nameForLogging:"ESLint ignoring patterns",areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}});return d.isRawDataInvalid?(a.Logger.logError({errorType:a.InvalidExternalDataError.NAME,title:a.InvalidExternalDataError.localization.defaultTitle,description:"Invalid ignoring patters in ESLint configuration.\n"+a.RawObjectDataProcessor.formatValidationErrorsList(d.validationErrorsMessages),occurrenceLocation:"ESLintLinterSpecialist.getGlobSelectorsOfExcludedFiles(compoundParameter)"}),[]):d.processedData.filter(e=>!e.includes("node_module")).flatMap(t=>{if(t.startsWith("**/"))return[o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/^\*\*\//gu,"")))];const i=(0,a.explodeURI_PathToSegments)(t),n=(0,a.getLastElementOfArray)(i);if((0,a.isNotNull)(n)&&n.includes(".")){const i=o.ImprovedPath.joinPathSegments([e,t],{alwaysForwardSlashSeparators:!0});return[o.ImprovedGlob.includingGlobSelectorToExcludingOne(i),o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/\*/gu,"")))]}return[o.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(s.default.join(e,t.replace(/\*/gu,"")))]})}}t.default=l},8033(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(6272);class s{static partialFilesIncludingDeclarationPatterns=[/^ *(?:include|extends) +((?:\w|-|\.|\/)+) *$/gmu];static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials=new Set(["pug"]);static linterConfigurationFilesNamesWithExtensions=[".pug-lintrc",".pug-lintrc.js",".pug-lintrc.json","package.json"];static defineIndentString(e){for(const t of(0,n.explodeStringToLines)({targetString:e,mustIgnoreCarriageReturn:!0})){const e=(0,n.getMatchingWithFirstRegularExpressionCapturingGroup)(t,/^(?<indent> +|\t)\S/gmu);if((0,n.isNotNull)(e))return e}return" "}static isSourceCodeIncludingExtendingDeclaration(e){return/^extends/gmu.test(e)}static isSourceCodeLineIncludingExtendingDeclaration(e){return e.startsWith("extends")}static isSourceCodeLineIncludingSpecificBlockModifyingDeclaration({sourceCodeLine:e,blockName:t}){return new RegExp(`^(?: +|\\t)?block (?:append|prepend)? ${t}`,"u").test(e)}static extractBlock({startLineIndex:e,sourceCodeLines:t}){let i,n=e+1;for(const e of t.slice(n)){if(/^(?: +|\t)?block/u.test(e)){i=n;break}n++}return i=i??t.length-1,{startLineIndex:e,endLineIndex:i,codeLines:t.slice(e,i)}}static appendCodeToBlock({sourceCodeLinesOfTargetBlock:e,newCode:t,lineSeparator:i}){return`${e.join(i)}${i}${t}`}}t.default=s},3746(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},1391(e,t){Object.defineProperty(t,"__esModule",{value:!0});class i{static partialFilesIncludingDeclarationPatterns=[/^ *@(?:import|require) +['"]((?:\w|-|\.|\/)+?)['"] *;? *$/gmu];static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials=new Set(["styl","stylus","css"])}t.default=i},4061(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9899)),r=i(6272),o=i(5480);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.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:t})}(0,r.isNotUndefined)(t.error)&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:(0,r.isNonEmptyString)(t.error.messageText)?t.error.messageText:t.error.messageText.messageText}),(0,r.isArbitraryObject)(t.config)&&"compilerOptions"in t.config||r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.InvalidConfigError({mentionToConfig:`TypeScript (${e})`}),title:r.InvalidConfigError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)"});try{i=s.default.convertCompilerOptionsFromJson(t.config.compilerOptions,o.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,alwaysForwardSlashSeparators:!0,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0}}))}catch(t){r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:t})}return i.errors.length>0&&r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.FileReadingFailedError({filePath:e}),title:r.FileReadingFailedError.localization.defaultTitle,occurrenceLocation:"TypeScriptSpecialist.readTypeScriptConfigurationFileAndGetCompilerOptions(typeScriptConfigurationFileAbsolutePath)",innerError:i.errors.map(e=>(0,r.isNonEmptyString)(e.messageText)?e.messageText:e.messageText.messageText).join("\n")}),i.options}}},7809(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);class s{static convertPathsAliasesFromTypeScriptFormatToWebpackFormat({typeScriptBasicAbsolutePath:e,typeScriptPathsSettings:t}){const i={};for(const[s,r]of Object.entries(t??{}))i[s.endsWith("/*")?s.slice(0,-2):s]=r.map(t=>n.ImprovedPath.joinPathSegments([e,...t.endsWith("/*")?[t.slice(0,-2)]:[t]],{alwaysForwardSlashSeparators:!0}));return i}static generateLoadersResolvingSettings(e){return{modules:[n.ImprovedPath.joinPathSegments([e,"node_modules"],{alwaysForwardSlashSeparators:!0}),n.ImprovedPath.joinPathSegments([__dirname,"node_modules"],{alwaysForwardSlashSeparators:!0})]}}}!function(e){let t,i,n;!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"}(n=e.BuildingTargets||(e.BuildingTargets={}))}(s||(s={})),t.default=s},919(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(9510)),r=n(i(9896)),o=i(6272),a=i(5480);class l{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 DOT_VERSION_FILE_NAME=".version";static CURRENT_YDA_VERSION=s.default.version;static selfSoleInstance=null;DOT_YDA_DIRECTORY_ABSOLUTE_PATH;TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH;OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH;GIT_IGNORE_FILE_ABSOLUTE_PATH;DOT_VERSION_FILE_ABSOLUTE_PATH;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;static unrollDotYDA_Directory(e){let t,i;if((0,o.isNull)(l.selfSoleInstance)?(t=new l(e),l.selfSoleInstance=t):(o.Logger.logError({errorType:o.ClassRedundantSubsequentInitializationError.NAME,title:o.ClassRedundantSubsequentInitializationError.localization.defaultTitle,description:o.ClassRedundantSubsequentInitializationError.localization.generateDescription({className:"DotYDA_DirectoryManager"}),occurrenceLocation:"DotYDA_DirectoryManager.unrollDotYDA_Directory(consumingProjectRootDirectoryAbsolutePath)"}),t=l.selfSoleInstance),r.default.existsSync(t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH)){try{i=r.default.readFileSync(t.DOT_VERSION_FILE_ABSOLUTE_PATH,"utf-8").trim()}catch{return a.ImprovedFileSystem.removeDirectoryWithFiles({targetPath:t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfOneOrMoreFilesCouldNotBeDeleted:!1}),void t.unrollDotYDA_DirectoryScratch()}i!==l.CURRENT_YDA_VERSION&&(a.ImprovedFileSystem.removeDirectoryWithFiles({targetPath:t.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,mustThrowErrorIfOneOrMoreFilesCouldNotBeDeleted:!1}),t.unrollDotYDA_DirectoryScratch())}else t.unrollDotYDA_DirectoryScratch()}constructor(e){this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e,this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,l.DOT_YDA_DIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.TEMPORARY_FILES_SUBDIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.OPTIMIZATION_FILES_SUBDIRECTORY_NAME],{alwaysForwardSlashSeparators:!0}),this.GIT_IGNORE_FILE_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.GIT_IGNORE_FILE_NAME],{alwaysForwardSlashSeparators:!0}),this.DOT_VERSION_FILE_ABSOLUTE_PATH=a.ImprovedPath.joinPathSegments([this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH,l.DOT_VERSION_FILE_NAME],{alwaysForwardSlashSeparators:!0})}static get DOT_YDA_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().DOT_YDA_DIRECTORY_ABSOLUTE_PATH}static get TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH}static get OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH(){return l.getExpectedToBeInitializedSelfSoleInstance().OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH}unrollDotYDA_DirectoryScratch(){r.default.mkdirSync(this.DOT_YDA_DIRECTORY_ABSOLUTE_PATH),r.default.mkdirSync(this.TEMPORARY_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.mkdirSync(this.OPTIMIZATION_FILES_DIRECTORY_ABSOLUTE_PATH),r.default.writeFileSync(this.GIT_IGNORE_FILE_ABSOLUTE_PATH,`/${l.TEMPORARY_FILES_SUBDIRECTORY_NAME}/`),r.default.writeFileSync(this.DOT_VERSION_FILE_ABSOLUTE_PATH,l.CURRENT_YDA_VERSION)}static getExpectedToBeInitializedSelfSoleInstance(){return(0,o.isNull)(l.selfSoleInstance)&&o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.ClassRequiredInitializationHasNotBeenExecutedError({className:"DotYDA_DirectoryManager",initializingMethodName:"unrollDotYDA_Directory"}),title:o.ClassRequiredInitializationHasNotBeenExecutedError.localization.defaultTitle,occurrenceLocation:"DotYDA_DirectoryManager.getExpectedToBeInitializedSelfSoleInstance()"}),l.selfSoleInstance}}t.default=l},7749(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(6272),r=n(i(6112));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.throwErrorWithFormattedMessage({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))}}},7818(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(2203)),r=n(i(3148)),o=i(6272);class a{static modifyForSingleVinylFileSubtype({onStreamStartedEventHandler:e,onStreamEndedEventHandler:t}){return new s.default.Transform({objectMode:!0,transform(t,i,n){r.default.isVinyl(t)||o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.UnexpectedEventError(o.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:o.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modifyForSingleVinylFileSubtype(compoundParameter)",additionalData:{chunk:t}});const s=t;e(s,e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)}).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,s);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)})},flush(e){(0,o.isUndefined)(t)?e():t(e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)}).then(()=>{e()}).catch(t=>{e(t)})}})}static modify(e){return new s.default.Transform({objectMode:!0,transform(t,i,n){r.default.isVinyl(t)||o.Logger.throwErrorWithFormattedMessage({errorInstance:new o.UnexpectedEventError(o.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:o.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"GulpStreamModifier.modify(compoundParameter)",additionalData:{chunk:t}});const s=e=>{for(const t of Array.isArray(e)?e:[e])this.push(t)},l=t;let d=!1;for(const[t,i]of e.onStreamStartedEventHandlersForSpecificFileTypes??new Map)l instanceof t&&(d=!0,i(l,s).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)}));if(!d){if((0,o.isUndefined)(e.onStreamStartedEventCommonHandler))return void n(null,l);e.onStreamStartedEventCommonHandler(l,s).then(e=>{switch(e){case a.CompletionSignals.PASSING_ON:n(null,l);break;case a.CompletionSignals.REMOVING_FILE_FROM_STREAM:n()}}).catch(e=>{n(e)})}},flush(t){(0,o.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},6979(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});const n=i(5480);class s{static ASSETS_DIRECTORY_ROOT_ABSOLUTE_PATH=n.ImprovedPath.joinPathSegments([__dirname,"Assets"],{alwaysForwardSlashSeparators:!0});static LOADING_SCREEN_HTML_FILE_FOR_PROCESSING_ON_DEMAND_MODE_ABSOLUTE_PATH=n.ImprovedPath.joinPathSegments([s.ASSETS_DIRECTORY_ROOT_ABSOLUTE_PATH,"LoadingScreenForProcessingOnDemandMode.html"],{alwaysForwardSlashSeparators:!0})}t.default=s},703(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(6272),r=i(5480),o=n(i(9896)),a=n(i(6928));class l{static debugging={enabled:!1,onlyForFilesTypeInSingularForm:"ECMAScript Logic",onlyForEntryPointsWhichPathIncludes:"RendererProcessEntryPoint"};static MUST_OUTPUT_ERRORS_FOR_DEVELOPERS=!0;static cachedMetadataFileContentSpecification={nameForLogging:"SourceCodeSelectiveReprocessingHelper.CachedRawMetadata",subtype:s.RawObjectDataProcessor.ObjectSubtypes.fixedSchema,properties:{entryPoints:{type:s.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{modificationDate__ISO8601:{type:String,isUndefinedForbidden:!1,isNullForbidden:!0},directChildrenFilesRelativePaths:{type:Array,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,isUndefinedForbidden:!0,isNullForbidden:!0,element:{type:String}}}}},childrenFiles:{type:s.RawObjectDataProcessor.ValuesTypesIDs.associativeArray,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedTypeValuesForbidden:!0,areNullTypeValuesForbidden:!0,value:{type:Object,properties:{modificationDate__ISO8601:{type:String,isUndefinedForbidden:!0,isNullForbidden:!0},directChildrenFilesRelativePaths:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}},parentEntryPointsRelativePaths:{type:Array,isUndefinedForbidden:!0,isNullForbidden:!0,areUndefinedElementsForbidden:!0,areNullElementsForbidden:!0,element:{type:String}}}}}}};entryPointsMetadata=new Map;isEntryPoint;childrenFilesMetadata=new Map;resolvedAliasedPaths=new Map;childrenFilesResolutionRules;absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass=new Set;directoriesAliasesAndTheirAbsolutePatsMap;CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;CACHED_METADATA_FILE_ABSOLUTE_PATH;TARGET_FILES_TYPE_IN_SINGULAR_FORM;currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators;currentChainOfRelativePathsInFilesTree=[];constructor(e){this.isEntryPoint=e.isEntryPoint,this.childrenFilesResolutionRules=e.childrenFilesResolutionRules,this.directoriesAliasesAndTheirAbsolutePatsMap=e.directoriesAliasesAndTheirAbsolutePatsMap??new Map,this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH=e.consumingProjectRootDirectoryAbsolutePath,this.CACHED_METADATA_FILE_ABSOLUTE_PATH=e.cacheFileAbsolutePath,this.TARGET_FILES_TYPE_IN_SINGULAR_FORM=e.logging.targetFilesTypeInSingularForm,this.retrieveCacheFromFileAndApplyIfItExists(),this.scanFilesHierarchyTreeForEntryPoints(new Set(e.initialEntryPointsSourceFilesAbsolutePaths.map(e=>r.ImprovedPath.replacePathSeparatorsToForwardSlashes(e)))),e.logging.mustEnable&&this.logChildrenFilesAndEntryPointsRelationships(),this.saveCachedFilesMetadataMapsToFile()}getAbsolutePathsOfEntryPointsWhichMustBeProcessed(e){const t=new Set,i=new Set;for(const n of e){const e=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:n,alwaysForwardSlashSeparators:!0});o.default.existsSync(n)?this.isEntryPoint(n)?t.add(n):i.add(n):this.clearFileMetadataPathFromCache(e)}this.scanFilesHierarchyTreeForEntryPoints(t),this.saveCachedFilesMetadataMapsToFile();for(const e of i){const i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});(0,s.addElementsToSet)({targetSet:t,newElements:this.childrenFilesMetadata.get(i)?.parentEntryPointsAbsolutePaths??new Set})}return Array.from(t)}retrieveCacheFromFileAndApplyIfItExists(){let e;try{e=r.ObjectDataFilesProcessor.processFile({filePath:this.CACHED_METADATA_FILE_ABSOLUTE_PATH,validDataSpecification:l.cachedMetadataFileContentSpecification,synchronously:!0})}catch(e){return void(e instanceof r.FileNotFoundError||s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:"CachedDataRetrievingFailedError",title:"Cached Data Retrieving Failed",description:`Unable to read the existing cache file at "${this.CACHED_METADATA_FILE_ABSOLUTE_PATH}".`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.retrieveCacheFromFileAndApplyIfItExists()",caughtError:e}))}for(const[t,i]of Object.entries(e.entryPoints))this.entryPointsMetadata.set(t,{modificationDate__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:new Set(i.directChildrenFilesRelativePaths)});for(const[t,i]of Object.entries(e.childrenFiles))this.childrenFilesMetadata.set(t,{modificationDateTime__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:new Set(i.directChildrenFilesRelativePaths),parentEntryPointsAbsolutePaths:new Set(i.parentEntryPointsRelativePaths.map(e=>r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0})))})}scanFilesHierarchyTreeForEntryPoints(e){for(const t of e){this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators=t;const e=r.ImprovedPath.extractDirectoryFromFilePath({targetPath:t,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0}),i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:t,alwaysForwardSlashSeparators:!0});let n;s.Logger.logDebug({mustOutputIf:this.mustOutputDebug,title:"SourceCodeSelectiveReprocessingHelper, Scan Files Hierarchy Tree for Entry Point - 1",description:t,additionalData:{entryPointDirectoryAbsolutePath__forwardSlashSeparators:e,entryPointPathRelativeToConsumingProjectRootDirectory__forwardSlashSeparators:i}});try{n=o.default.statSync(t).mtime.toISOString()}catch(e){if((0,r.isErrnoException)(e)&&"ENOENT"===e.code){this.entryPointsMetadata.delete(i);continue}s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:"FileStatisticsRetrievingFailedError",title:"File Statistics Retrieving Failed Error",description:`Unable to retrieve the statistics of file "${i}". This file will not be mapped.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.scanFilesHierarchyTreeForEntryPoints(targetEntryPointsAbsolutePaths__forwardSlashSeparators)",caughtError:e});continue}let a=this.entryPointsMetadata.get(i),d=new Set;if(s.Logger.logDebug({mustOutputIf:this.mustOutputDebug,title:"SourceCodeSelectiveReprocessingHelper, Scan Files Hierarchy Tree for Entry Point - 2",description:(0,s.isUndefined)(a)?"No cached metadata for this entry point has been previously stored":"Has cached metadata for this entry point",additionalData:{...(0,s.isNotUndefined)(a)?{cachedMetadataOfCurrentEntryPoint:a,hasMetadataOutdated:a.modificationDate__ISO8601!==n}:null}}),a?.modificationDate__ISO8601===n)for(const e of a.directChildrenFilesRelativePaths){const t=r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0});o.default.existsSync(t)||this.clearFileMetadataPathFromCache(e),d=new Set(Array.from(a.directChildrenFilesRelativePaths))}else d=this.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:t,preComputedTargetFileDirectoryAbsolutePath__forwardSlashSeparators:e}),a={modificationDate__ISO8601:n,directChildrenFilesRelativePaths:(0,s.createSetBasedOnOtherSet)(d,e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))},this.entryPointsMetadata.set(i,a);for(const e of d){const i=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=i,this.updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:i,parentEntryPointAbsolutePath__forwardSlashSeparators:t}),this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.add(e)}}this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.clear()}getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:e,preComputedTargetFileDirectoryAbsolutePath__forwardSlashSeparators:t}){const i=new Set;let n;try{n=o.default.readFileSync(e,"utf-8")}catch(t){return(0,r.isErrnoException)(t)&&"ENOENT"===t.code?(s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:s.UnexpectedEventError.NAME,title:s.UnexpectedEventError.localization.defaultTitle,description:`Contrary to expectations, "${e}" file does not exist. Skipping this file.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators(compoundParameter)",caughtError:t}),i):(s.Logger.logError({mustOutputIf:l.MUST_OUTPUT_ERRORS_FOR_DEVELOPERS,errorType:s.FileReadingFailedError.NAME,title:s.FileReadingFailedError.localization.defaultTitle,description:s.FileReadingFailedError.localization.generateDescription({filePath:e}),occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators(compoundParameter)",caughtError:t}),i)}for(const o of this.childrenFilesResolutionRules.childrenFilesIncludingDeclarationsPatterns){const a=new Set(Array.from(n.matchAll(o)).map(e=>e[1]).filter(e=>(0,s.isNonEmptyString)(e))),l=t??r.ImprovedPath.extractDirectoryFromFilePath({targetPath:e,ambiguitiesResolution:{mustConsiderLastSegmentStartingWithDotAsDirectory:!1,mustConsiderLastSegmentWithNonLeadingDotAsDirectory:!1,mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension:!0},alwaysForwardSlashSeparators:!0});for(const e of a){const t=this.computeAbsolutePathOfChildFileIfItExists({childFileRawPath:e,parentFileDirectoryAbsolutePath__forwardSlashSeparators:l});(0,s.isNotNull)(t)&&i.add(t)}}return i}computeAbsolutePathOfChildFileIfItExists({childFileRawPath:e,parentFileDirectoryAbsolutePath__forwardSlashSeparators:t}){let i=new Set;const n=r.ImprovedPath.explodePathToSegments(e),l=n[0];let d;if((0,s.isNonEmptyString)(l)&&(i=(0,s.createSetBasedOnOtherSet)(this.directoriesAliasesAndTheirAbsolutePatsMap.get(l)??new Set,e=>r.ImprovedPath.joinPathSegments((0,s.replaceArrayElementsByIndexesImmutably)({targetArray:n,index:0,newElement:e}),{alwaysForwardSlashSeparators:!0}))),i.size>0){const t=this.resolvedAliasedPaths.get(e);if((0,s.isString)(t)){try{if(o.default.existsSync(t))return t}catch(e){}this.resolvedAliasedPaths.delete(e)}d=!0}else d=!1,i=new Set([e]);const u=new Set,c=(0,s.extractLastExtensionOfFileName)({targetPath:e,withLeadingDot:!1});if((0,s.isNull)(c)||!(0,s.mergeSets)(this.childrenFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles,this.childrenFilesResolutionRules.additionalExplicitFileNameExtensionsWithoutLeadingDotsOfChildrenFiles??new Set).has(c))for(const e of i)(0,s.addElementsToSet)({targetSet:u,newElements:Array.from(this.childrenFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfChildrenFiles).map(i=>r.ImprovedPath.joinPathSegments([...a.default.isAbsolute(e)?[]:[t],`${e}.${i}`],{alwaysForwardSlashSeparators:!0}))});else for(const e of i)u.add(r.ImprovedPath.joinPathSegments([...a.default.isAbsolute(e)?[]:[t],e],{alwaysForwardSlashSeparators:!0}));for(const t of u)try{if(o.default.existsSync(t))return d&&this.resolvedAliasedPaths.set(e,t),t}catch(e){return null}return null}updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:t,parentEntryPointAbsolutePath__forwardSlashSeparators:i}){const n=this.childrenFilesMetadata.get(t);if(this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.has(e)&&(0,s.isNotUndefined)(n))return n.parentEntryPointsAbsolutePaths.add(i),void this.registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:n,parentEntryPointAbsolutePath__forwardSlashSeparators:i});let a,l;try{a=o.default.statSync(e).mtime.toISOString()}catch(t){return void s.Logger.logError({errorType:"FileStatisticsRetrievingFailedError",title:"File Statistics Retrieving Failed Error",description:`Unable to retrieve the statistics of file "${e}". This file will not be mapped.`,occurrenceLocation:"sourceCodeSelectiveReprocessingHelper.updateMetadataForExistingChildFile(compoundParameter)",caughtError:t})}if(n?.modificationDateTime__ISO8601===a){l=new Set;for(const e of n.directChildrenFilesRelativePaths){const t=r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e],{alwaysForwardSlashSeparators:!0});o.default.existsSync(t)||n.directChildrenFilesRelativePaths.delete(e),l=new Set(Array.from(n.directChildrenFilesRelativePaths).map(e=>r.ImprovedPath.joinPathSegments([this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,e])))}n.parentEntryPointsAbsolutePaths.add(i)}else l=this.getAbsolutePathsOfExistingChildrenFilesOfExistingTargetFile__forwardSlashSeparators({targetFileAbsolutePath__forwardSlashSeparators:e}),this.childrenFilesMetadata.set(t,{parentEntryPointsAbsolutePaths:new Set([i]),modificationDateTime__ISO8601:a,directChildrenFilesRelativePaths:(0,s.createSetBasedOnOtherSet)(l,e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))});this.absolutePathsOfChildrenFilesWhichHasBeenScannedDuringCurrentPass.add(e);for(const e of l){const t=r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0});this.currentChainOfRelativePathsInFilesTree.includes(t)||(this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=t,this.updateMetadataForExistingChildFile({targetChildFileAbsolutePath__forwardSlashSeparators:e,targetChildFileRelativePath__forwardSlashSeparators:t,parentEntryPointAbsolutePath__forwardSlashSeparators:i}))}this.currentChainOfRelativePathsInFilesTree.pop()}registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:e,parentEntryPointAbsolutePath__forwardSlashSeparators:t}){for(const i of e.directChildrenFilesRelativePaths){if(this.currentChainOfRelativePathsInFilesTree.includes(i))continue;this.currentChainOfRelativePathsInFilesTree[this.currentChainOfRelativePathsInFilesTree.length]=i;const e=this.childrenFilesMetadata.get(i);(0,s.isUndefined)(e)||(e.parentEntryPointsAbsolutePaths.add(t),this.registerEntryPointAsParentTo({cachedMetadataOfTargetChildFile:e,parentEntryPointAbsolutePath__forwardSlashSeparators:t}))}this.currentChainOfRelativePathsInFilesTree.pop()}clearFileMetadataPathFromCache(e){this.entryPointsMetadata.delete(e);for(const t of this.entryPointsMetadata.values())t.directChildrenFilesRelativePaths.delete(e);this.childrenFilesMetadata.delete(e);for(const t of this.childrenFilesMetadata.values())t.directChildrenFilesRelativePaths.delete(e),t.parentEntryPointsAbsolutePaths.delete(e)}saveCachedFilesMetadataMapsToFile(){const e={entryPoints:Array.from(this.entryPointsMetadata.entries()).reduce((e,[t,i])=>(e[t]={modificationDate__ISO8601:i.modificationDate__ISO8601,directChildrenFilesRelativePaths:Array.from(i.directChildrenFilesRelativePaths)},e),{}),childrenFiles:Array.from(this.childrenFilesMetadata.entries()).reduce((e,[t,i])=>(e[t]={modificationDate__ISO8601:i.modificationDateTime__ISO8601,directChildrenFilesRelativePaths:Array.from(i.directChildrenFilesRelativePaths),parentEntryPointsRelativePaths:Array.from(i.parentEntryPointsAbsolutePaths).map(e=>r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:e,alwaysForwardSlashSeparators:!0}))},e),{})};r.ImprovedFileSystem.writeFileToPossiblyNotExistingDirectory({filePath:this.CACHED_METADATA_FILE_ABSOLUTE_PATH,content:JSON.stringify(e,null,2),synchronously:!0})}logChildrenFilesAndEntryPointsRelationships(){let e="";for(const[t,i]of this.childrenFilesMetadata.entries()){e=`${e}File: "${t}" has parents:\n`;for(const t of i.parentEntryPointsAbsolutePaths)e=`${e} ● ${r.ImprovedPath.computeRelativePath({basePath:this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,comparedPath:t,alwaysForwardSlashSeparators:!0})}\n`}s.Logger.logInfo({title:`${this.TARGET_FILES_TYPE_IN_SINGULAR_FORM} Children Files and Respective Parent Entry Points Relationships`,description:e.length>0?e:"No existing children files has been found."})}get mustOutputDebug(){return!(!l.debugging.enabled||(0,s.isNonEmptyString)(l.debugging.onlyForFilesTypeInSingularForm)&&l.debugging.onlyForFilesTypeInSingularForm!==this.TARGET_FILES_TYPE_IN_SINGULAR_FORM||(0,s.isNonEmptyString)(l.debugging.onlyForEntryPointsWhichPathIncludes)&&(0,s.isString)(this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators)&&!this.currentlyScannedEntryPointAbsolutePath__forwardSlashSeparators.includes(l.debugging.onlyForEntryPointsWhichPathIncludes))}}t.default=l},2597(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i(3148)),r=i(6272);class o extends s.default{static getOutputDirectoryAbsolutePathOfExpectedToBeSelfInstance(e){return e instanceof o||r.Logger.throwErrorWithFormattedMessage({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,...(0,r.isNotUndefined)(e.stem)?{stem:e.stem}:null,...(0,r.isNotUndefined)(e.extname)?{extname:e.extname}:null})}setContents(e){this.contents=Buffer.from(e)}setBufferedContent(e){this.contents=e}get stringifiedContents(){return(0,r.isNull)(this.contents)||(0,r.isArbitraryObject)(this.contents)&&!(this.contents instanceof Buffer)?"":this.contents.toString()}getContentsExpectedToBeBuffer(){return(0,r.isArbitraryObject)(this.contents)&&this.contents instanceof Buffer?this.contents:void r.Logger.throwErrorWithFormattedMessage({errorInstance:new r.UnexpectedEventError("Contrary to expectations, the `contents` field is not an instance of Buffer"),title:r.UnexpectedEventError.localization.defaultTitle,occurrenceLocation:"VinylFileClass.getContentsExpectedToBeBuffer(targetVinylFile"})}}t.default=o},1496(e,t){t.voidPromiseReturningFunction=void 0,t.voidPromiseReturningFunction=async()=>Promise.resolve()},2853(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return()=>(new n.PassThrough).end()};const n=i(2203)},2977(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e.contents?"":e.contents instanceof Buffer?e.contents.toString():""}},6272(e){e.exports=require("@yamato-daiwa/es-extensions")},5480(e){e.exports=require("@yamato-daiwa/es-extensions-nodejs")},3491(e){e.exports=require("autoprefixer")},7396(e){e.exports=require("browser-sync")},7689(e){e.exports=require("cssnano")},818(e){e.exports=require("dotenv")},7249(e){e.exports=require("eslint")},4520(e){e.exports=require("gulp")},6751(e){e.exports=require("gulp-data")},4724(e){e.exports=require("gulp-if")},2652(e){e.exports=require("gulp-imagemin")},771(e){e.exports=require("gulp-nodemon")},9610(e){e.exports=require("gulp-plumber")},2872(e){e.exports=require("gulp-postcss")},1713(e){e.exports=require("gulp-pug")},1805(e){e.exports=require("gulp-sourcemaps")},3813(e){e.exports=require("gulp-stylus")},9399(e){e.exports=require("htmlnano")},1416(e){e.exports=require("imagemin-pngquant")},4167(e){e.exports=require("js-beautify")},6331(e){e.exports=require("nanoid")},2006(e){e.exports=require("node-html-parser")},8661(e){e.exports=require("node-notifier")},0(e){e.exports=require("pa11y")},8817(e){e.exports=require("postcss")},9986(e){e.exports=require("postcss-normalize-stylus-compatible-container-query-syntax")},5987(e){e.exports=require("postcss-selector-parser")},7196(e){e.exports=require("probe-image-size")},8510(e){e.exports=require("pug-lint")},3330(e){e.exports=require("pug-lint/lib/config-file")},758(e){e.exports=require("puppeteer")},8627(e){e.exports=require("razor-by-pug")},4696(e){e.exports=require("require-from-string")},3284(e){e.exports=require("stream-combiner2")},9899(e){e.exports=require("typescript")},3148(e){e.exports=require("vinyl")},9955(e){e.exports=require("vnu-jar")},2728(e){e.exports=require("vue-loader")},6807(e){e.exports=require("webpack")},3523(e){e.exports=require("webpack-node-externals")},9202(e){e.exports=require("webpack-stream")},5317(e){e.exports=require("child_process")},9896(e){e.exports=require("fs")},1943(e){e.exports=require("fs/promises")},1421(e){e.exports=require("node:child_process")},1455(e){e.exports=require("node:fs/promises")},857(e){e.exports=require("os")},6928(e){e.exports=require("path")},2203(e){e.exports=require("stream")},6112(e,t,i){i.r(t),i.d(t,{default:()=>r});const n=require("node:crypto"),s=require("node:util");function r(e){if("string"!=typeof e&&!s.types.isUint8Array(e))throw new TypeError("Expected a Uint8Array or string");return n.createHash("md5").update(e).digest("hex").slice(0,10)}},9510(e){e.exports=JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.9.4","description":"The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.","keywords":["build","pug","stylus","tool","typescript"],"engines":{"node":">=24.0.0"},"bin":{"yda":"Executable"},"files":["EntryPoint.js","Assets"],"dependencies":{"@eslint-community/eslint-plugin-eslint-comments":"4.8.1","@stylistic/eslint-plugin":"5.10.0","@typescript-eslint/eslint-plugin":"8.71.1","@typescript-eslint/parser":"8.71.1","@vue/compiler-sfc":"3.5.43","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.10.0-alpha.0","@yamato-daiwa/es-extensions-nodejs":"1.10.0-alpha.0","@yamato-daiwa/style_guides":"0.15.0","@yamato-daiwa/universal-reactive-webpack-loader":"0.1.0","autoprefixer":"10.6.1","browser-sync":"3.0.4","css-loader":"7.1.5","cssnano":"8.0.8","dotenv":"17.4.2","eslint":"9.39.4","eslint-plugin-import":"2.32.0","eslint-plugin-n":"18.4.1","eslint-plugin-react":"7.37.5","eslint-plugin-vue":"10.11.1","eslint-plugin-vue-pug":"1.0.0-alpha.6","gulp":"4.0.2","gulp-data":"1.3.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","htmlnano":"3.4.0","imagemin-pngquant":"9.0.2","js-beautify":"1.15.4","json5-loader":"4.0.1","nanoid":"6.0.1","node-html-parser":"7.1.0","node-notifier":"10.0.1","pa11y":"9.1.1","postcss":"8.5.28","postcss-loader":"8.2.1","postcss-normalize-stylus-compatible-container-query-syntax":"1.1.2","postcss-selector-parser":"7.1.6","probe-image-size":"7.4.0","pug-lint":"2.7.0","puppeteer":"24.43.0","razor-by-pug":"0.1.0","require-from-string":"2.0.2","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.3","ts-loader":"9.6.2","vinyl":"2.2.1","vnu-jar":"26.3.10","vue-loader":"17.4.2","vue-style-loader":"4.1.3","vue-tsc":"3.2.8","webpack":"5.109.2","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.9.0"},"devDependencies":{"@types/browser-sync":"2.29.1","@types/cssnano":"5.0.0","@types/gulp":"4.0.18","@types/gulp-if":"3.0.5","@types/gulp-imagemin":"7.0.3","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.37","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.38","@types/gulp-stylus":"2.7.8","@types/js-beautify":"1.14.3","@types/node":"22.20.3","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/require-from-string":"1.2.3","@types/vnu-jar":"17.11.2","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.16","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"6.0.3","webpack-cli":"6.0.1"},"scripts":{"Incremental Development Building":"webpack --mode development","Production Building":"webpack --mode production","Linting":"eslint Source","Build Distributable for Documentation":"webpack --config webpack.config.documentation.ts --mode production","Project Structure Visualizing":"wsl tree -I \\".git|.idea|node_modules\\" || tree -I \\".git|.idea|node_modules\\""},"license":"MIT","homepage":"https://automation.yamato-daiwa.com/","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"},"funding":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation?sponsor=1","allowScripts":{"core-js@2.6.12":true,"es5-ext@0.10.64":true,"gifsicle@5.3.0":true,"husky@4.3.8":true,"mozjpeg@6.0.1":true,"optipng-bin@6.0.0":true,"pngquant-bin@6.0.1":true,"puppeteer@24.43.0":true,"vnu-jar@26.3.10":true}}')}};const t={};function i(n){const s=t[n];if(void 0!==s)return s.exports;const r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++];i.o(e,s)?0===r&&n++:0===r?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.hasOwn(e,t),i.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(3875)})();
|