{"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","7981","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","511999999980","512000000000","10240000000000","baseUnitCache","initValue","scalar","baseScalar","signature","_conversionCache","numerator","denominator","constructor","String","trim","parse","call","length","join","indexOf","QtyError","compareArray","updateBaseScalar","isTemperature","value","e","swiftConverter","srcUnits","dstUnits","srcQty","dstQty","eq","identity","mul","to","formatter","units","isBase","unitSignature","base","toBase","vector","unitSignatureVector","i","reduce","previous","current","r","n","Array","j","k","val","result","exec","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","replace","parseUnits","throwIncompatibleUnits","prototype","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","kind","toString","_isBase","isDegrees","match","concat","forEach","item","qty","q","toTempK","cached","unit","num","den","PREFIX_VALUES","mulSafe","UNIT_VALUES","push","a","b","toBaseUnits","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","compareTo","lt","lte","gt","gte","toPrec","precQuantity","round","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","arguments","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","map","PREFIX_MAP","UNIT_MAP","filter","NestedMap","get","keys","apply","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","hasOwnProperty","unitDef","definition","UNIT_MATCH","Object","sort","err","create","Error","name","message","stack"],"mappings":"CAYC,SAAUA,EAAMC,GACb,aAEuB,iBAAZC,QAIPC,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAE9CD,OAAOH,GAGPD,EAAKM,IAAML,IAbnB,CAeEM,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,MAAM,OAAQ,KAAM,UACvCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,QAAS,IAAK,UACxCC,WAA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