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AM,aAE/B,IAAI,EAAS,EAAW,2BAA2B,EAAS,QAAU,CAAC,EAAG,kBAAkB,GAAa,KAAK,QAAQ,GAAmB,EAAiB,KAAK,SAAS,IACxK,EAAY,EAAO,IACnB,EAAkB,EAAO,IACrB,EAAO,QACP,aAAa,EAAO,OAAQ,EAAY,CAAC,QAE7C,EAAkB,EAAO,QACzB,EAAoB,EAAO,iBAC/B,CACJ,CAGA,OAFA,yBAAyB,EAAiB,GAC1B,SAAS,aAAa,EAAkB,EAAkB,EAAW,EAAiB,EAAiB,EAAmB,EAE9I,EAKA,EAAQ,OAHR,YAAmB,GACf,MAAM,UAAU,4BAA6B,uCAAwC,kLACzF,CAEH,CAzDD,CAyDG,UAAY,QAAU,CAAC,IAS1B,OAAO,QAAU","file":"/npm/@beisen/gulp-typescript@0.0.2/release/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@beisen/gulp-typescript@0.0.2/release/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n            t[p[i]] = s[p[i]];\n    return t;\n};\nconst path = require(\"path\");\nconst _project = require(\"./project\");\nconst utils = require(\"./utils\");\nconst _reporter = require(\"./reporter\");\nfunction compile(param, theReporter) {\n    if (arguments.length >= 3) {\n        utils.deprecate(\"Reporter are now passed as the second argument\", \"remove the second argument\", \"Filters have been removed as of gulp-typescript 3.0.\\nThe reporter is now passed as the second argument instead of the third argument.\");\n    }\n    let proj;\n    if (typeof param === \"function\") {\n        proj = param;\n        if (arguments.length >= 2) {\n            utils.deprecate(\"ts(tsProject, ...) has been deprecated\", \"use .pipe(tsProject(reporter)) instead\", \"As of gulp-typescript 3.0, .pipe(ts(tsProject, ...)) should be written as .pipe(tsProject(reporter)).\");\n        }\n        else {\n            utils.deprecate(\"ts(tsProject) has been deprecated\", \"use .pipe(tsProject()) instead\", \"As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject()).\");\n        }\n    }\n    else {\n        proj = compile.createProject(param || {});\n    }\n    return proj(theReporter);\n}\nfunction getTypeScript(typescript) {\n    if (typescript)\n        return typescript;\n    try {\n        return require('typescript');\n    }\n    catch (e) {\n        utils.deprecate(\"TypeScript not installed\", \"install with `npm install typescript --save-dev`\", \"As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\\nInstall the latest stable version with `npm install typescript --save-dev`\\nor a nightly with `npm install typescript@next --save-dev`\");\n        throw new Error(\"TypeScript not installed\");\n    }\n}\nfunction checkAndNormalizeSettings(settings) {\n    const { declarationFiles, noExternalResolve, sortOutput, typescript } = settings, standardSettings = __rest(settings, [\"declarationFiles\", \"noExternalResolve\", \"sortOutput\", \"typescript\"]);\n    if (settings.sourceRoot !== undefined) {\n        console.warn('gulp-typescript: sourceRoot isn\\'t supported any more. Use sourceRoot option of gulp-sourcemaps instead.');\n    }\n    if (noExternalResolve !== undefined) {\n        utils.deprecate(\"noExternalResolve is deprecated\", \"use noResolve instead\", \"The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.\\nUse noResolve instead.\");\n    }\n    if (sortOutput !== undefined) {\n        utils.deprecate(\"sortOutput is deprecated\", \"your project might work without it\", \"The non-standard option sortOutput has been removed as of gulp-typescript 3.0.\\nYour project will probably compile without this option.\\nOtherwise, if you're using gulp-concat, you should remove gulp-concat and use the outFile option instead.\");\n    }\n    if (declarationFiles) {\n        standardSettings.declaration = settings.declarationFiles;\n    }\n    return standardSettings;\n}\nfunction normalizeCompilerOptions(options, typescript) {\n    options.sourceMap = true;\n    options.suppressOutputPathCheck = true;\n    options.inlineSourceMap = false;\n    options.sourceRoot = undefined;\n    options.inlineSources = false;\n    // For TS >=2.9, we set `declarationMap` to true, if `declaration` is set.\n    // We check for this version by checking whether `createFileLevelUniqueName` exists.\n    if (\"createFileLevelUniqueName\" in typescript && options.declaration && !options.isolatedModules) {\n        options.declarationMap = true;\n    }\n}\nfunction reportErrors(errors, typescript, ignore = []) {\n    const reporter = _reporter.defaultReporter();\n    for (const error of errors) {\n        if (ignore.indexOf(error.code) !== -1)\n            continue;\n        reporter.error(utils.getError(error, typescript), typescript);\n    }\n}\n(function (compile) {\n    compile.reporter = _reporter;\n    function createProject(fileNameOrSettings, settings, options) {\n        let tsConfigFileName = undefined;\n        let tsConfigContent = undefined;\n        let projectDirectory = process.cwd();\n        let typescript;\n        let compilerOptions;\n        let projectReferences;\n        let fileName;\n        let rawConfig;\n        if (fileNameOrSettings !== undefined) {\n            if (typeof fileNameOrSettings === 'string') {\n                fileName = fileNameOrSettings;\n                tsConfigFileName = path.resolve(process.cwd(), fileName);\n                // 调整项目的根目录地址\n                // 如果开发者使用的tsconfig不再命令执行的文件路径下，可以配置context属性，控制组件根目录地址\n                // 用于实现封装 tsconfig.json 配置文件\n                let context = (options || {}).context\n                projectDirectory = context || path.dirname(tsConfigFileName);\n                if (settings === undefined)\n                    settings = {};\n            }\n            else {\n                settings = fileNameOrSettings || {};\n            }\n            typescript = getTypeScript(settings.typescript);\n            settings = checkAndNormalizeSettings(settings);\n            const settingsResult = typescript.convertCompilerOptionsFromJson(settings, projectDirectory);\n            if (settingsResult.errors) {\n                reportErrors(settingsResult.errors, typescript);\n            }\n            compilerOptions = settingsResult.options;\n            if (fileName !== undefined) {\n                let tsConfig = typescript.readConfigFile(tsConfigFileName, typescript.sys.readFile);\n                if (tsConfig.error) {\n                    console.log(tsConfig.error.messageText);\n                }\n                let parsed = typescript.parseJsonConfigFileContent(tsConfig.config || {}, getTsconfigSystem(typescript), path.resolve(projectDirectory), compilerOptions, path.basename(tsConfigFileName));\n                rawConfig = parsed.raw;\n                tsConfigContent = parsed.raw;\n                if (parsed.errors) {\n                    reportErrors(parsed.errors, typescript, [18003]);\n                }\n                compilerOptions = parsed.options;\n                projectReferences = parsed.projectReferences;\n            }\n        }\n        normalizeCompilerOptions(compilerOptions, typescript);\n        const project = _project.setupProject(projectDirectory, tsConfigFileName, rawConfig, tsConfigContent, compilerOptions, projectReferences, typescript);\n        return project;\n    }\n    compile.createProject = createProject;\n    function filter(...args) {\n        utils.deprecate('ts.filter() is deprecated', 'soon you can use tsProject.resolve()', 'Filters have been removed as of gulp-typescript 3.0.\\nSoon tsProject.resolve() will be available as an alternative.\\nSee https://github.com/ivogabe/gulp-typescript/issues/190.');\n    }\n    compile.filter = filter;\n})(compile || (compile = {}));\nfunction getTsconfigSystem(typescript) {\n    return {\n        useCaseSensitiveFileNames: typescript.sys.useCaseSensitiveFileNames,\n        readDirectory: () => [],\n        fileExists: typescript.sys.fileExists,\n        readFile: typescript.sys.readFile\n    };\n}\nmodule.exports = compile;\n"]}