{"version":3,"sources":["jsdelivr-header.js","/npm/stc-css-autoprefixer@1.0.0/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,opBCNA,WAAA,QAAA,c,+CACA,SAAA,QAAA,W,2CACA,cAAA,QAAA,gB,iIAKqB,mB,8LAKb,K,8EACE,EACA,EAEA,EAEF,E,mGALkB,KAAK,WAAW,S,cAAhC,E,OACA,EAAS,KAAK,QAEd,GAAW,EAAA,UAAA,SAAQ,EAAC,EAAA,eAAA,SAAa,KAEnC,EAAS,K,kBAGI,EAAS,QAAQ,G,OAAhC,E,yDAEA,KAAK,MAAL,IAAe,EAAA,GAAE,OAAjB,KAA4B,EAAA,GAAE,QAAW,EAAA,GAAE,KAAM,EAAA,GAAE,Q,iCAG9C,CAAC,QAAS,EAAO,M,kHAQ1B,O,YAAkB,IAAV,EAAU,EAAV,QACN,KAAK,WAAW,EACjB,E,EAMM,Q,WACL,OAAO,CACR,E,EAMM,M,WACL,OAAO,CACR,E,EAMM,Q,WACL,MAAO,QACR,E,wCArDkB","file":"/npm/stc-css-autoprefixer@1.0.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/stc-css-autoprefixer@1.0.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import Plugin from 'stc-plugin';\nimport postcss from 'postcss';\nimport autoprefixer from 'autoprefixer';\n\n/**\n * AutoprefixerPlugin Class\n */\nexport default class AutoprefixerPlugin extends Plugin {\n  /**\n   * run\n   * @return {Object} content object\n   */\n  async run() {\n    const content = await this.getContent('utf-8');\n    const option = this.options;\n\n    const prefixer = postcss([autoprefixer(option)]);\n\n    let result = null;\n\n    try {\n      result = await prefixer.process(content);\n    } catch (e) {\n      this.fatal(`[${e.status}] ${e.message}`, e.line, e.column);\n    }\n\n    return {content: result.css};\n  }\n\n  /**\n   * update\n   * @param  {Object} options.content options\n   * @return {undefined}\n   */\n  update({content}) {\n    this.setContent(content);\n  }\n\n  /**\n   * use cluster\n   * @return {Boolean} use cluster\n   */\n  static cluster() {\n    return true;\n  }\n\n  /**\n   * use cache\n   * @return {Boolean} use cache\n   */\n  static cache() {\n    return true;\n  }\n\n  /**\n   * return default include files\n   * @return {RegExp} extname regexp\n   */\n  static include() {\n    return /\\.css$/;\n  }\n}\n"]}