{"version":3,"sources":["jsdelivr-header.js","/npm/grunt-contrib-compass@1.1.1/tasks/compass.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACEA,aACA,IAAI,gBAAkB,QAAQ,qBAE9B,OAAO,QAAU,SAAU,GACzB,IAAI,EAAU,QAAQ,iBAAiB,KAAK,GAgC5C,EAAM,kBAAkB,UAAW,qCAAqC,WACtE,IAAI,EAAU,KAAK,UACf,EAAK,KAAK,QAGT,EAAQ,QACX,EAAQ,MAAO,GAKjB,IAAI,EAAiB,EAAQ,oBAAoB,EAAO,GAGpD,EAAgB,EAAQ,mBAAmB,GAE3C,EAAO,EAAQ,eAAe,GAElC,GAAc,SAAU,EAAK,GAK3B,GAJI,GACF,EAAM,KAAK,GAGT,EAAM,CAGR,IAAI,EAAgB,EAAK,QAAQ,MACjC,EAAK,QAA0B,IAAnB,EAAuB,EAAK,OAAS,EAAe,EAAG,WAAY,EACjF,CAEA,gBAAgB,EAAK,GAAI,YAAY,SAAU,GACzC,GACF,EAAM,KAAK,GA9DnB,SAAiB,EAAM,GACrB,EAAM,IAAI,QAAQ,QAAQ,oBAAsB,EAAK,KAAK,MAC1D,IAAI,EAAQ,EAAM,KAAK,MAAM,CAC3B,IAAK,EAAK,QACV,KAAM,IACL,SAAU,EAAK,EAAQ,GACX,MAAT,GACF,EAAM,KACJ,0JAUS,IAAT,GAAe,mEAAmE,KAAK,EAAO,SAChG,EAAM,KAAK,KAGb,GACF,IACI,IACF,EAAM,OAAO,KAAK,QAAQ,QAC1B,EAAM,OAAO,KAAK,QAAQ,QAE9B,CAqCM,CAAQ,GAAM,WACZ,IACA,GACF,GACF,GACF,GACF,GACF","file":"/npm/grunt-contrib-compass@1.1.1/tasks/compass.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/grunt-contrib-compass@1.1.1/tasks/compass.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * grunt-contrib-compass\n * http://gruntjs.com/\n *\n * Copyright (c) 2016 Sindre Sorhus, contributors\n * Licensed under the MIT license.\n */\n\n'use strict';\nvar binVersionCheck = require('bin-version-check');\n\nmodule.exports = function (grunt) {\n  var compass = require('./lib/compass').init(grunt);\n\n  function compile(args, cb) {\n    grunt.log.verbose.writeln('Running command: ' + args.join(' '));\n    var child = grunt.util.spawn({\n      cmd: args.shift(),\n      args: args\n    }, function (err, result, code) {\n      if (code === 127) {\n        grunt.warn(\n          'You need to have Ruby and Compass installed ' +\n          'and in your system PATH for this task to work. ' +\n          'More info: https://github.com/gruntjs/grunt-contrib-compass'\n        );\n      }\n\n      // `compass compile` exits with 1 and outputs \"Nothing to compile\"\n      // on stderr when it has nothing to compile.\n      // https://github.com/chriseppstein/compass/issues/993\n      // Don't fail the task in this situation.\n      if (code === 1 && !/Nothing to compile|Compass can't find any Sass files to compile/g.test(result.stderr)) {\n        grunt.warn('↑');\n      }\n\n      cb();\n    });\n    if (child) {\n      child.stdout.pipe(process.stdout);\n      child.stderr.pipe(process.stderr);\n    }\n  }\n\n  grunt.registerMultiTask('compass', 'Compile Sass to CSS using Compass', function () {\n    var options = this.options();\n    var cb = this.async();\n\n    // display compilation time\n    if (!options.clean) {\n      options.time = true;\n    }\n\n    // create a function to retroactively add a banner to the top of the\n    // generated files, if specified\n    var bannerCallback = compass.buildBannerCallback(grunt, options);\n    // create a temporary config file if there are 'raw' options or\n    // settings not supported as CLI arguments\n    var configContext = compass.buildConfigContext(options);\n    // get the array of arguments for the compass command\n    var args = compass.buildArgsArray(options);\n\n    configContext(function (err, path) {\n      if (err) {\n        grunt.warn(err);\n      }\n\n      if (path) {\n        // add `--config` path arguments before `--` option-argument separator if one exists,\n        // otherwise add to the end\n        var doubleDashIdx = args.indexOf('--');\n        args.splice(doubleDashIdx === -1 ? args.length : doubleDashIdx, 0, '--config', path);\n      }\n\n      binVersionCheck(args[0], '>=0.12.2', function (err) {\n        if (err) {\n          grunt.warn(err);\n        }\n\n        compile(args, function () {\n          bannerCallback();\n          cb();\n        });\n      });\n    });\n  });\n};\n"]}