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ACT,CAGA,IAAI,EAAM,IAAI,eAGd,EAAI,mBAAqB,WACvB,GAAuB,IAAnB,EAAI,WAAkB,CACxB,IAAI,EAAmB,EAAE,MAAM,EAAS,kBAGxC,EAAiB,UAAY,EAG7B,EAAS,GAAQ,EAAE,SAAS,EAAI,aAAc,GAG9C,EAAK,EAAS,GAChB,CACF,EAGA,EAAI,KAAK,MAAO,GAAK,GACrB,EAAI,KAAK,KACX,EAKA,EAAQ,MAAQ,SAAS,EAAY,EAAY,GAI/C,EAAM,EAAU,EAAY,EAHb,EAAS,GAAY,QAItC,EAGA,EAAQ,QAAU,SAAS,EAAY,EAAY,EAAK,EAAI,GAC1D,EAAU,GAGV,EAAG,KAAK,GAER,SAAe,GAEb,EAAG,MAAM,EAAU,EAAY,EAAY,GAC7C,GAL2B,EAAG,MAMhC,CAmCF,GAEC,CAzJD,CAyJqB,iBAAX,QAAsB","file":"/npm/lodash-template-loader@2.0.0/loader.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/lodash-template-loader@2.0.0/loader.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* Lo-Dash Template Loader v1.0.1\n * Copyright 2015, Tim Branyen (@tbranyen).\n * loader.js may be freely distributed under the MIT license.\n */\n(function(global) {\n\"use strict\";\n\n// Cache used to map configuration options between load and write.\nvar buildMap = {};\n\n// Alias the correct `nodeRequire` method.\nvar nodeRequire = typeof requirejs === \"function\" && requirejs.nodeRequire;\n\n// Strips trailing `/` from url fragments.\nvar stripTrailing = function(prop) {\n  return prop.replace(/(\\/$)/, '');\n};\n\n// Define the plugin using the CommonJS syntax.\ndefine(function(require, exports) {\n  var _ = require(\"lodash\");\n\n  exports.version = \"1.0.1\";\n\n  // Invoked by the AMD builder, passed the path to resolve, the require\n  // function, done callback, and the configuration options.\n  exports.load = function(name, req, load, config) {\n    var isDojo;\n\n    // Dojo provides access to the config object through the req function.\n    if (!config) {\n      config = require.rawConfig;\n      isDojo = true;\n    }\n\n    var contents = \"\";\n    var settings = configure(config);\n\n    // If the baseUrl and root are the same, just null out the root.\n    if (stripTrailing(config.baseUrl) === stripTrailing(settings.root)) {\n      settings.root = '';\n    }\n\n    var url = require.toUrl(settings.root + name + settings.ext);\n\n    if (isDojo && url.indexOf(config.baseUrl) !== 0) {\n      url = stripTrailing(config.baseUrl) + url;\n    }\n\n    // Builds with r.js require Node.js to be installed.\n    if (config.isBuild) {\n      // If in Node, get access to the filesystem.\n      var fs = nodeRequire(\"fs\");\n\n      try {\n        // First try reading the filepath as-is.\n        contents = String(fs.readFileSync(url));\n      } catch(ex) {\n        // If it failed, it's most likely because of a leading `/` and not an\n        // absolute path.  Remove the leading slash and try again.\n        if (url.slice(0, 1) === \"/\") {\n          url = url.slice(1);\n        }\n\n        // Try reading again with the leading `/`.\n        contents = String(fs.readFileSync(url));\n      }\n\n      // Read in the file synchronously, as RequireJS expects, and return the\n      // contents.  Process as a Lo-Dash template.\n      buildMap[name] = _.template(contents);\n\n      return load();\n    }\n\n    // Create a basic XHR.\n    var xhr = new XMLHttpRequest();\n\n    // Wait for it to load.\n    xhr.onreadystatechange = function() {\n      if (xhr.readyState === 4) {\n        var templateSettings = _.clone(settings.templateSettings);\n\n        // Attach the sourceURL.\n        templateSettings.sourceURL = url;\n\n        // Process as a Lo-Dash template and cache.\n        buildMap[name] = _.template(xhr.responseText, templateSettings);\n\n        // Return the compiled template.\n        load(buildMap[name]);\n      }\n    };\n\n    // Initiate the fetch.\n    xhr.open(\"GET\", url, true);\n    xhr.send(null);\n  };\n\n  // Also invoked by the AMD builder, this writes out a compatible define\n  // call that will work with loaders such as almond.js that cannot read\n  // the configuration data.\n  exports.write = function(pluginName, moduleName, write) {\n    var template = buildMap[moduleName].source;\n\n    // Write out the actual definition\n    write(strDefine(pluginName, moduleName, template));\n  };\n\n  // This is for curl.js/cram.js build-time support.\n  exports.compile = function(pluginName, moduleName, req, io, config) {\n    configure(config);\n\n    // Ask cram to fetch the template file (resId) and pass it to `write`.\n    io.read(moduleName, write, io.error);\n\n    function write(template) {\n      // Write-out define(id,function(){return{/* template */}});\n      io.write(strDefine(pluginName, moduleName, template));\n    }\n  };\n\n  // Crafts the written definition form of the module during a build.\n  function strDefine(pluginName, moduleName, template) {\n    return [\n      \"define('\", pluginName, \"!\", moduleName, \"', \", \"['lodash'], \",\n        [\n          \"function(_) {\",\n            \"return \", template, \";\",\n          \"}\"\n        ].join(\"\"),\n      \");\\n\"\n    ].join(\"\");\n  }\n\n  function configure(config) {\n    // Default settings point to the project root and using html files.\n    var settings = _.extend({\n      ext: \".html\",\n      root: config.baseUrl,\n      templateSettings: {}\n    }, config.lodashLoader);\n\n    // Ensure the root has been properly configured with a trailing slash,\n    // unless it's an empty string or undefined, in which case work off the\n    // baseUrl.\n    if (settings.root && settings.root.slice(-1) !== \"/\") {\n      settings.root += \"/\";\n    }\n\n    // Set the custom passed in template settings.\n    _.extend(_.templateSettings, settings.templateSettings);\n\n    return settings;\n  }\n});\n\n})(typeof global === \"object\" ? global : this);\n"]}