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ACvB,EAEA,OAAO,QAAQ,QAAU,SAAkB,GAEzC,GADK,IAAG,EAAI,KAAK,QAAQ,UAAW,IAChC,EAAQ,GAAI,OAAO,GAAG,aAAa,GACvC,MAAM,MAAM,mBAAqB,GAAG,aAAa,GACnD,CACF","file":"/npm/full-icu@1.5.0/full-icu.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/full-icu@1.5.0/full-icu.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Copyright (C) 2015 IBM Corporation and Others. All Rights Reserved.\n\n// var process = require('process');\n// console.dir(process.env);\n\nconst fs = require('fs')\nconst path = require('path')\n\nif (!process || !process.versions || !process.versions.node) {\n  throw Error('Sorry- don’t know what version of Node you are on.')\n}\n\nconst nodever = module.exports.nodever = process.versions.node\n\nconst nodesplit = nodever.split('.')\n\nconst major = module.exports.node_maj = nodesplit[0]\nconst minor = module.exports.node_min = nodesplit[1]\n\nif ((major === 0) && (minor < 12)) {\n  module.exports.oldNode = true\n} else if (process.config.variables.v8_enable_i18n_support === 0) {\n  module.exports.noi18n = true\n} else {\n  /*\n  Commented until https://github.com/nodejs/node/issues/3460 is fixed.\n\n  if( major >= 7 ) {\n    if( nodever === '7.0.0-pre' ) {\n    module.exports.nodeDetectIcu = 'maybe';\n    } else {\n    module.exports.nodeDetectIcu = true;\n    }\n  }\n  */\n\n  if (!process.config.variables.icu_small) {\n    module.exports.icu_small = false\n    // not going to work..\n    if (process.config.variables.icu_gyp_path === 'tools/icu/icu-system.gyp') {\n      // this will be the case under homebrew, redhat/fedora, others..\n      module.exports.icu_system = true\n    }\n  } else {\n    module.exports.icu_small = true\n  }\n\n  let icuver\n  let icuend = 'l'\n\n  if (process.versions.icu) {\n    icuver = process.versions.icu // Thanks https://github.com/nodejs/node/issues/3089\n  } else {\n    icuver = process.config.variables.icu_ver_major // only get the major\n  }\n\n  if (!icuver) {\n    throw Error('Cannot determine Node’s ICU version!')\n  } else {\n    module.exports.icuver = icuver\n  }\n\n  // get 'major' number\n  const icumaj = module.exports.icumaj = icuver.split('.')[0]\n\n  if (process.config.variables.icu_endianness) {\n    icuend = process.config.variables.icu_endianness.toLowerCase()\n  }\n\n  if ((icuend.length !== 1) || ('lbe'.indexOf(icuend) === -1)) {\n    throw Error('Don’t know what to make of endianness “' + icuend + '” - expected l, b, or e')\n  } else {\n    module.exports.icuend = icuend\n  }\n\n  module.exports.icupkg = 'icu4c-data@' + icumaj + icuend\n\n  const icudat = module.exports.icudat = 'icudt' + icumaj + icuend + '.dat'\n\n  const haveDat = module.exports.haveDat = function haveDat (d) {\n    if (!d) d = path.resolve(__dirname, icudat)\n    return fs.existsSync(d)\n  }\n\n  module.exports.datPath = function datPath (d) {\n    if (!d) d = path.resolve(__dirname, icudat)\n    if (haveDat(d)) return fs.realpathSync(d)\n    throw Error('Does not exist: ' + fs.realpathSync(d))\n  }\n}\n"]}