text: function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}import{RegistryWithDefaultKey,OverwritePolicy}from"@superset-ui/core";import createD3NumberFormatter from"./factories/createD3NumberFormatter";import createSmartNumberFormatter from"./factories/createSmartNumberFormatter";import NumberFormats from"./NumberFormats";var NumberFormatterRegistry=/*#__PURE__*/function(a){function b(){var b;return b=a.call(this,{name:"NumberFormatter",overwritePolicy:OverwritePolicy.WARN})||this,b.registerValue(NumberFormats.SMART_NUMBER,createSmartNumberFormatter()),b.registerValue(NumberFormats.SMART_NUMBER_SIGNED,createSmartNumberFormatter({signed:!0})),b.setDefaultKey(NumberFormats.SMART_NUMBER),b}_inheritsLoose(b,a);var c=b.prototype;return c.get=function get(b){var c=(""+(b||this.defaultKey)).trim();if(this.has(c))return a.prototype.get.call(this,c);// Create new formatter if does not exist
  var d=createD3NumberFormatter({formatString:c});return this.registerValue(c,d),d},c.format=function format(a,b){return this.get(a)(b)},b}(RegistryWithDefaultKey);export{NumberFormatterRegistry as default};