{"version":3,"sources":["jsdelivr-header.js","/npm/jquery-i18n-loader@0.0.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,KAAO,QAAQ,QAEnB,OAAO,QAAU,SAAS,GACtB,IAAI,EAAQ,EAEZ,KAAK,WAAa,KAAK,YAEvB,IAEI,EAAS,KAAK,MAAM,EACxB,CAAE,MAAM,GACJ,MAAM,IAAI,MAAM,iCAAmC,KAAK,aAAe,IAC3E,CAMA,OAHA,EAAO,KAAK,SAAS,KAAK,aAAc,SAGjC,iBAAmB,KAAK,UAAU,GAAU,MAAQ,EAAO,KACtE","file":"/npm/jquery-i18n-loader@0.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/jquery-i18n-loader@0.0.2/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","var Path = require(\"path\");\r\n\r\nmodule.exports = function(content) {\r\n    var locale, name;\r\n    \r\n    this.cacheable && this.cacheable();\r\n\r\n    try {\r\n        // Attempt to parse it to ensure it's valid JSON.\r\n        locale = JSON.parse(content);\r\n    } catch(e) {\r\n        throw new Error(\"Failed to parse locale file. (\" + this.resourcePath + \")\");\r\n    }\r\n\r\n    // Parse the resourcePath to determine the locale name.\r\n    name = Path.basename(this.resourcePath, \".json\");\r\n\r\n    // Assuming jQuery and the i18n library has already been attached to the window, we pass the JSON inline.\r\n    return \"$.i18n().load(\" + JSON.stringify(locale) + \", '\" + name + \"');\";\r\n};\r\n"]}