{"version":3,"sources":["jsdelivr-header.js","/npm/ydoc-plugin-import-asset@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,SAAS,aAAa,GACpB,OAAO,SAAS,EAAO,GACjB,IACgB,iBAAV,IAAoB,EAAQ,CAAC,IACpC,MAAM,QAAQ,IACf,EAAM,SAAQ,SAAS,GACrB,EAAG,EAAM,EACX,IAEJ,CACF,CAEA,OAAO,QAAU,CACf,KAAM,WACJ,GAAI,KAAK,SAAmC,iBAAjB,KAAK,QAAhC,CAGA,IAAI,EAAc,aAAa,KAAK,UACpC,EAAY,KAAK,QAAQ,GAAI,MAC7B,EAAY,KAAK,QAAQ,IAAK,MAH9B,CAIF","file":"/npm/ydoc-plugin-import-asset@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ydoc-plugin-import-asset@1.0.1/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","function _importAsset(fn){\n  return function(items, type){\n    if(!items) return;\n    if(typeof items === 'string') items = [items];\n    if(Array.isArray(items)){\n      items.forEach(function(item){\n        fn(item, type)\n      })\n    }\n  }\n}\n\nmodule.exports = {\n  init: function(){\n    if(!this.options || typeof this.options !== 'object'){\n      return;\n    }\n    var importAsset = _importAsset(this.addAsset);\n    importAsset(this.options.js, 'js');\n    importAsset(this.options.css, 'css')\n  }\n}\n"]}