{"version":3,"sources":["quantities.js"],"names":["root","factory","exports","module","define","amd","Qty","this","UNITS","","","Math","pow","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","BASE_UNITS","UNITY","UNITY_ARRAY","QTY_STRING_REGEX","RegExp","POWER_OP","TOP_REGEX","BOTTOM_REGEX","SIGNATURE_VECTOR","KINDS","-312058","-312038","-152040","-152038","-152058","-39","-38","-20","-19","-18","0","1","2","3","20","400","7942","7959","7962","7979","7961","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","25599999980","511999999980","512000000000","10240000000000","baseUnitCache","initValue","initUnits","value","units","isNumber","isString","QtyError","isQty","isDefinitionObject","apply","arguments","scalar","baseScalar","signature","_conversionCache","numerator","denominator","length","parse","call","join","indexOf","compareArray","updateBaseScalar","isTemperature","e","swiftConverter","srcUnits","dstUnits","convert","srcQty","dstQty","eq","identity","mul","to","i","result","Array","isArray","push","getKinds","strings","Object","keys","map","knownSignature","seen","filter","item","hasOwnProperty","getUnits","kind","unitKeys","substr","sort","a","b","toLowerCase","getAliases","unitName","UNIT_MAP","formatter","trim","isBase","unitSignature","base","toBase","vector","unitSignatureVector","reduce","previous","current","r","n","j","k","val","toString","exec","scalarMatch","replace","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","parseUnits","throwIncompatibleUnits","prototype","constructor","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","_isBase","isDegrees","match","concat","forEach","qty","q","toTempK","cached","unit","num","den","PREFIX_VALUES","mulSafe","UNIT_VALUES","toBaseUnits","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","compareTo","lt","lte","gt","gte","toPrec","precQuantity","round","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","targetQty","same","target","src","dst","dstScalar","toTemp","srcDegK","toDegK","toDegrees","divSafe","add","addTempDegrees","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","getDegreeUnits","temp","tempDegrees","op1","op2","numden","cleanTerms","div","parsedUnitsCache","unitMatch","normalizedUnits","UNIT_MATCH_REGEX","slice","PREFIX_MAP","NestedMap","get","key","index","childMap","data","set","stringifiedUnitsCache","stringified","token","tokenNext","unitNames","OUTPUT_MAP","getOutputNames","acc","unitCounter","unitCount","array1","array2","decimals","deg","arg","getFractional","factor","isFinite","count","combined","prop","String","Number","window","validateUnitDefinition","unitDef","definition","UNIT_MATCH","err","create","Error","name","message","stack","version"],"mappings":"CAsBC,SAASA,EAAMC,GACZ,aAEuB,iBAAZC,QAIPC,OAAOD,QAAUD,IAEM,mBAAXG,QAAyBA,OAAOC,IAE5CD,OAAOH,GAIPD,EAAKM,IAAML,IAfnB,CAiBEM,KAAM,WACN,aAEA,IAAIC,GAEFC,aAAe,UAAW,MAAO,UACjCC,WAAe,KAAK,OAAO,QAASC,KAAKC,IAAI,EAAE,IAAK,UACpDC,WAAe,KAAK,OAAO,QAASF,KAAKC,IAAI,EAAE,IAAK,UACpDE,WAAe,KAAK,OAAO,QAASH,KAAKC,IAAI,EAAE,IAAK,UACpDG,WAAe,KAAK,OAAO,QAASJ,KAAKC,IAAI,EAAE,IAAK,UACpDI,WAAe,KAAK,OAAO,QAASL,KAAKC,IAAI,EAAE,IAAK,UACpDK,UAAe,KAAK,MAAM,OAAQN,KAAKC,IAAI,EAAE,IAAK,UAClDM,WAAe,KAAK,OAAO,QAASP,KAAKC,IAAI,EAAE,IAAK,UACpDO,WAAe,KAAK,OAAO,QAASR,KAAKC,IAAI,EAAE,IAAK,UACpDQ,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,UAAe,IAAI,MA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