{"version":3,"sources":["jsdelivr-header.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/add.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/allocate.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/compare.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/convert.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/equal.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/greaterThan.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/greaterThanOrEqual.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/hasSubUnits.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/haveSameAmount.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/haveSameCurrency.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/isNegative.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/isPositive.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/isZero.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/lessThan.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/lessThanOrEqual.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/maximum.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/minimum.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/multiply.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/normalizeScale.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/subtract.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/toDecimal.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/toSnapshot.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/toUnits.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/transformScale.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/api/trimScale.js","/npm/dinero.js@2.0.0-alpha.14/dist/esm/dinero.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AAC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AAK,CAAI,EAAI,UAAU,CAAI,EAE7B,IAAI,EAAe,EAAK,CAAC,EACrB,EAAa,EAAa,WAC1B,EAAc,EAAc,CAAU,EAC1C,OAAO,EAAY,CAAY,CACjC,CCHU,IAAC,GAAS,EAAa,CAC/B,WAAY,EACZ,SAAU,SAAkB,EAAM,CAChC,IAAI,EAAS,EAAK,OAChB,EAAQ,EAAK,MACf,EAAO,OAAO,UAAU,CAAM,EAAG,CAAsB,EACvD,EAAO,OAAO,UAAU,CAAK,EAAG,CAAqB,CACvD,CACF,CAAC","file":"/npm/dinero.js@2.0.0-alpha.14/dist/esm/index.js/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.\n * Original file: /npm/dinero.js@2.0.0-alpha.14/dist/esm/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 { safeAdd } from '@dinero.js/core';\n/**\n * Add up the passed Dinero objects.\n *\n * @param augend - The Dinero object to add to.\n * @param addend - The Dinero object to add.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function add() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var augend = _ref[0],\n    addend = _ref[1];\n  var calculator = augend.calculator;\n  var addFn = safeAdd(calculator);\n  return addFn(augend, addend);\n}","import { safeAllocate } from '@dinero.js/core';\n/**\n * Distribute the amount of a Dinero object across a list of ratios.\n *\n * @param dineroObject - The Dinero object to allocate from.\n * @param ratios - The ratios to allocate the amount to.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function allocate() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    ratios = _ref[1];\n  var calculator = dineroObject.calculator;\n  var allocateFn = safeAllocate(calculator);\n  return allocateFn(dineroObject, ratios);\n}","import { safeCompare } from '@dinero.js/core';\n/**\n * Compare the value of a Dinero object relative to another.\n *\n * @param dineroObject - The Dinero object to compare.\n * @param comparator - The Dinero object to compare to.\n *\n * @returns One of -1, 0, or 1 depending on whether the first Dinero object is less than, equal to, or greater than the other.\n *\n * @public\n */\nexport function compare() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var compareFn = safeCompare(calculator);\n  return compareFn(dineroObject, comparator);\n}","import { convert as coreConvert } from '@dinero.js/core';\n/**\n * Convert a Dinero object to another currency.\n *\n * @param dineroObject - The Dinero object to format.\n * @param newCurrency - The currency to convert to.\n * @param rates - The rates to convert with.\n *\n * @returns A converted Dinero object.\n *\n * @public\n */\nexport function convert() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    newCurrency = _ref[1],\n    rates = _ref[2];\n  var calculator = dineroObject.calculator;\n  var converter = coreConvert(calculator);\n  return converter(dineroObject, newCurrency, rates);\n}","import { equal as coreEqual } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is equal to another.\n *\n * @param dineroObject - The first Dinero object to compare.\n * @param comparator - The second Dinero object to compare.\n *\n * @returns Whether the Dinero objects are equal.\n *\n * @public\n */\nexport function equal() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var equalFn = coreEqual(calculator);\n  return equalFn(dineroObject, comparator);\n}","import { safeGreaterThan } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is greater than another.\n *\n * @param dineroObject - The Dinero object to compare.\n * @param comparator - The Dinero object to compare to.\n *\n * @returns Whether the Dinero to compare is greater than the other.\n *\n * @public\n */\nexport function greaterThan() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var greaterThanFn = safeGreaterThan(calculator);\n  return greaterThanFn(dineroObject, comparator);\n}","import { safeGreaterThanOrEqual } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is greater than or equal another.\n *\n * @param dineroObject - The Dinero object to compare.\n * @param comparator - The Dinero object to compare to.\n *\n * @returns Whether the Dinero to compare is greater than or equal the other.\n *\n * @public\n */\nexport function greaterThanOrEqual() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var greaterThanOrEqualFn = safeGreaterThanOrEqual(calculator);\n  return greaterThanOrEqualFn(dineroObject, comparator);\n}","import { hasSubUnits as coreHasSubUnits } from '@dinero.js/core';\n/**\n * Check whether a Dinero object has minor currency units.\n *\n * @param dineroObject - The Dinero object to check.\n *\n * @returns Whether the Dinero object has minor currency units.\n *\n * @public\n */\nexport function hasSubUnits() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0];\n  var calculator = dineroObject.calculator;\n  var hasSubUnitsFn = coreHasSubUnits(calculator);\n  return hasSubUnitsFn(dineroObject);\n}","import { haveSameAmount as coreHaveSameAmount } from '@dinero.js/core';\n/**\n * Check whether a set of Dinero objects have the same amount.\n *\n * @param dineroObjects - The Dinero objects to compare.\n *\n * @returns Whether the Dinero objects have the same amount.\n *\n * @public\n */\nexport function haveSameAmount() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObjects = _ref[0];\n  var calculator = dineroObjects[0].calculator;\n  var haveSameAmountFn = coreHaveSameAmount(calculator);\n  return haveSameAmountFn(dineroObjects);\n}","import { haveSameCurrency as coreHaveSameCurrency } from '@dinero.js/core';\n\n/**\n * Check whether a set of Dinero objects have the same currency.\n *\n * @param dineroObjects - The Dinero objects to compare.\n *\n * @returns Whether the Dinero objects have the same currency.\n *\n * @public\n */\nexport var haveSameCurrency = coreHaveSameCurrency;","import { isNegative as coreIsNegative } from '@dinero.js/core';\n/**\n * Check whether a Dinero object is negative.\n *\n * @param dineroObject - The Dinero object to check.\n *\n * @returns Whether the Dinero object is negative.\n *\n * @public\n */\nexport function isNegative() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0];\n  var calculator = dineroObject.calculator;\n  var isNegativeFn = coreIsNegative(calculator);\n  return isNegativeFn(dineroObject);\n}","import { isPositive as coreIsPositive } from '@dinero.js/core';\n/**\n * Check whether a Dinero object is positive.\n *\n * @param dineroObject - The Dinero object to check.\n *\n * @returns Whether the Dinero object is positive.\n *\n * @public\n */\nexport function isPositive() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0];\n  var calculator = dineroObject.calculator;\n  var isPositiveFn = coreIsPositive(calculator);\n  return isPositiveFn(dineroObject);\n}","import { isZero as coreIsZero } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is zero.\n *\n * @param dineroObject - The Dinero object to check.\n *\n * @returns Whether the value of a Dinero object is zero.\n *\n * @public\n */\nexport function isZero() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0];\n  var calculator = dineroObject.calculator;\n  var isZeroFn = coreIsZero(calculator);\n  return isZeroFn(dineroObject);\n}","import { safeLessThan } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is lesser than another.\n *\n * @param dineroObject - The Dinero object to compare.\n * @param comparator - The Dinero object to compare to.\n *\n * @returns Whether the Dinero to compare is lesser than the other.\n *\n * @public\n */\nexport function lessThan() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var lessThanFn = safeLessThan(calculator);\n  return lessThanFn(dineroObject, comparator);\n}","import { safeLessThanOrEqual } from '@dinero.js/core';\n/**\n * Check whether the value of a Dinero object is lesser than or equal to another.\n *\n * @param dineroObject - The Dinero object to compare.\n * @param comparator - The Dinero object to compare to.\n *\n * @returns Whether the Dinero to compare is lesser than or equal to the other.\n *\n * @public\n */\nexport function lessThanOrEqual() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    comparator = _ref[1];\n  var calculator = dineroObject.calculator;\n  var lessThanOrEqualFn = safeLessThanOrEqual(calculator);\n  return lessThanOrEqualFn(dineroObject, comparator);\n}","import { safeMaximum } from '@dinero.js/core';\n/**\n * Get the greatest of the passed Dinero objects.\n *\n * @param dineroObjects - The Dinero objects to maximum.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function maximum() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObjects = _ref[0];\n  var calculator = dineroObjects[0].calculator;\n  var maximumFn = safeMaximum(calculator);\n  return maximumFn(dineroObjects);\n}","import { safeMinimum } from '@dinero.js/core';\n/**\n * Get the lowest of the passed Dinero objects.\n *\n * @param dineroObjects - The Dinero objects to minimum.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function minimum() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObjects = _ref[0];\n  var calculator = dineroObjects[0].calculator;\n  var minimumFn = safeMinimum(calculator);\n  return minimumFn(dineroObjects);\n}","import { multiply as coreMultiply } from '@dinero.js/core';\n/**\n * Multiply the passed Dinero object.\n *\n * @param multiplicand - The Dinero object to multiply.\n * @param multiplier - The number to multiply with.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function multiply() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var multiplicand = _ref[0],\n    multiplier = _ref[1];\n  var calculator = multiplicand.calculator;\n  var multiplyFn = coreMultiply(calculator);\n  return multiplyFn(multiplicand, multiplier);\n}","import { normalizeScale as coreNormalizeScale } from '@dinero.js/core';\n/**\n * Normalize a set of Dinero objects to the highest scale of the set.\n *\n * @param dineroObjects - The Dinero objects to normalize.\n *\n * @returns A new set of Dinero objects.\n *\n * @public\n */\nexport function normalizeScale() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObjects = _ref[0];\n  var calculator = dineroObjects[0].calculator;\n  var normalizeScaleFn = coreNormalizeScale(calculator);\n  return normalizeScaleFn(dineroObjects);\n}","import { safeSubtract } from '@dinero.js/core';\n/**\n * Subtract the passed Dinero objects.\n *\n * @param minuend - The Dinero object to subtract from.\n * @param subtrahend - The Dinero object to subtract.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function subtract() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var minuend = _ref[0],\n    subtrahend = _ref[1];\n  var calculator = minuend.calculator;\n  var subtractFn = safeSubtract(calculator);\n  return subtractFn(minuend, subtrahend);\n}","import { toDecimal as coreToDecimal } from '@dinero.js/core';\n/**\n * Get the amount of a Dinero object in decimal form.\n *\n * @param dineroObject - The Dinero object to format.\n * @param transformer - A transformer function.\n *\n * @returns The amount in decimal form.\n *\n * @public\n */\nexport function toDecimal() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    transformer = _ref[1];\n  var calculator = dineroObject.calculator;\n  var toDecimalFn = coreToDecimal(calculator);\n  return toDecimalFn(dineroObject, transformer);\n}","import { toSnapshot as coreToSnapshot } from '@dinero.js/core';\n\n/**\n * Get a snapshot of a Dinero object.\n *\n * @param dineroObject - The Dinero object to format.\n * @param transformer - A transformer function.\n *\n * @returns A snapshot of the object.\n *\n * @public\n */\nexport var toSnapshot = coreToSnapshot;","import { toUnits as coreToUnits } from '@dinero.js/core';\n/**\n * Get the amount of a Dinero object in units.\n *\n * @param dineroObject - The Dinero object to format.\n * @param transformer - A transformer function.\n *\n * @returns The amount in units.\n *\n * @public\n */\nexport function toUnits() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    transformer = _ref[1];\n  var calculator = dineroObject.calculator;\n  var toUnitsFn = coreToUnits(calculator);\n  return toUnitsFn(dineroObject, transformer);\n}","import { transformScale as coreTransformScale } from '@dinero.js/core';\n/**\n * Transform a Dinero object to a new scale.\n *\n * @param dineroObject - The Dinero object to transform.\n * @param newScale - The new scale.\n * @param divide - A custom divide function.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function transformScale() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0],\n    newScale = _ref[1],\n    divide = _ref[2];\n  var calculator = dineroObject.calculator;\n  var transformScaleFn = coreTransformScale(calculator);\n  return transformScaleFn(dineroObject, newScale, divide);\n}","import { trimScale as coreTrimScale } from '@dinero.js/core';\n/**\n * Trim a Dinero object's scale as much as possible, down to the currency exponent.\n *\n * @param dineroObject - The Dinero object which scale to trim.\n *\n * @returns A new Dinero object.\n *\n * @public\n */\nexport function trimScale() {\n  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {\n    _ref[_key] = arguments[_key];\n  }\n  var dineroObject = _ref[0];\n  var calculator = dineroObject.calculator;\n  var trimScaleFn = coreTrimScale(calculator);\n  return trimScaleFn(dineroObject);\n}","/* eslint-disable functional/no-expression-statement */\nimport { calculator } from '@dinero.js/calculator-number';\nimport { createDinero, assert, INVALID_AMOUNT_MESSAGE, INVALID_SCALE_MESSAGE } from '@dinero.js/core';\n\n/**\n * Create a Dinero object.\n *\n * @param options.amount - The amount in minor currency units.\n * @param options.currency - The currency.\n * @param options.scale - The number of decimal places to represent.\n *\n * @returns The created Dinero object.\n *\n * @public\n */\nexport var dinero = createDinero({\n  calculator: calculator,\n  onCreate: function onCreate(_ref) {\n    var amount = _ref.amount,\n      scale = _ref.scale;\n    assert(Number.isInteger(amount), INVALID_AMOUNT_MESSAGE);\n    assert(Number.isInteger(scale), INVALID_SCALE_MESSAGE);\n  }\n});"]}