{"version":3,"sources":["../node_modules/es-to-primitive/helpers/isPrimitive.js","../node_modules/es-to-primitive/es5.js","../node_modules/es-to-primitive/es2015.js"],"names":["module","exports","value","toStr","Object","prototype","toString","isPrimitive","require","isCallable","ES5internalSlots","O","actualHint","arguments","length","call","String","Number","i","methods","TypeError","input","hasSymbols","Symbol","iterator","isDate","isSymbol","ordinaryToPrimitive","hint","method","result","methodNames","GetMethod","P","func","exoticToPrim","toPrimitive","valueOf"],"mappings":"wGAEAA,EAAOC,QAAU,SAAqBC,GACrC,OAAiB,OAAVA,GAAoC,oBAAVA,GAAyC,kBAAVA,I,iCCDjE,IAAIC,EAAQC,OAAOC,UAAUC,SAEzBC,EAAcC,EAAQ,KAEtBC,EAAaD,EAAQ,KAGrBE,EACiB,SAAUC,GAC7B,IAAIC,EAOJ,IALCA,EADGC,UAAUC,OAAS,EACTD,UAAU,GAEQ,kBAAlBV,EAAMY,KAAKJ,GAAyBK,OAASC,UAGxCD,QAAUJ,IAAeK,OAAQ,CACnD,IACIf,EAAOgB,EADPC,EAAUP,IAAeI,OAAS,CAAC,WAAY,WAAa,CAAC,UAAW,YAE5E,IAAKE,EAAI,EAAGA,EAAIC,EAAQL,SAAUI,EACjC,GAAIT,EAAWE,EAAEQ,EAAQD,OACxBhB,EAAQS,EAAEQ,EAAQD,MACdX,EAAYL,IACf,OAAOA,EAIV,MAAM,IAAIkB,UAAU,oBAErB,MAAM,IAAIA,UAAU,2CAKtBpB,EAAOC,QAAU,SAAqBoB,GACrC,OAAId,EAAYc,GACRA,EAEJR,UAAUC,OAAS,EACfJ,EAAqCW,EAAOR,UAAU,IAEvDH,EAAqCW,K,iCCzC7C,IAAIC,EAA+B,oBAAXC,QAAoD,kBAApBA,OAAOC,SAE3DjB,EAAcC,EAAQ,KACtBC,EAAaD,EAAQ,KACrBiB,EAASjB,EAAQ,KACjBkB,EAAWlB,EAAQ,KAEnBmB,EAAsB,SAA6BhB,EAAGiB,GACzD,GAAiB,qBAANjB,GAA2B,OAANA,EAC/B,MAAM,IAAIS,UAAU,yBAA2BT,GAEhD,GAAoB,kBAATiB,GAA+B,WAATA,GAA8B,WAATA,EACrD,MAAM,IAAIR,UAAU,qCAErB,IACIS,EAAQC,EAAQZ,EADhBa,EAAuB,WAATH,EAAoB,CAAC,WAAY,WAAa,CAAC,UAAW,YAE5E,IAAKV,EAAI,EAAGA,EAAIa,EAAYjB,SAAUI,EAErC,GADAW,EAASlB,EAAEoB,EAAYb,IACnBT,EAAWoB,KACdC,EAASD,EAAOd,KAAKJ,GACjBJ,EAAYuB,IACf,OAAOA,EAIV,MAAM,IAAIV,UAAU,qBAGjBY,EAAY,SAAmBrB,EAAGsB,GACrC,IAAIC,EAAOvB,EAAEsB,GACb,GAAa,OAATC,GAAiC,qBAATA,EAAsB,CACjD,IAAKzB,EAAWyB,GACf,MAAM,IAAId,UAAUc,EAAO,0BAA4BD,EAAI,cAAgBtB,EAAI,sBAEhF,OAAOuB,IAMTlC,EAAOC,QAAU,SAAqBoB,GACrC,GAAId,EAAYc,GACf,OAAOA,EAER,IASIc,EATAP,EAAO,UAiBX,GAhBIf,UAAUC,OAAS,IAClBD,UAAU,KAAOG,OACpBY,EAAO,SACGf,UAAU,KAAOI,SAC3BW,EAAO,WAKLN,IACCC,OAAOa,YACVD,EAAeH,EAAUX,EAAOE,OAAOa,aAC7BV,EAASL,KACnBc,EAAeZ,OAAOlB,UAAUgC,UAGN,qBAAjBF,EAA8B,CACxC,IAAIL,EAASK,EAAapB,KAAKM,EAAOO,GACtC,GAAIrB,EAAYuB,GACf,OAAOA,EAER,MAAM,IAAIV,UAAU,gDAKrB,MAHa,YAATQ,IAAuBH,EAAOJ,IAAUK,EAASL,MACpDO,EAAO,UAEDD,EAAoBN,EAAgB,YAATO,EAAqB,SAAWA","file":"static/js/es-to-primitive.306dc54c.chunk.js","sourcesContent":["'use strict';\n\nmodule.exports = function isPrimitive(value) {\n\treturn value === null || (typeof value !== 'function' && typeof value !== 'object');\n};\n","'use strict';\n\nvar toStr = Object.prototype.toString;\n\nvar isPrimitive = require('./helpers/isPrimitive');\n\nvar isCallable = require('is-callable');\n\n// http://ecma-international.org/ecma-262/5.1/#sec-8.12.8\nvar ES5internalSlots = {\n\t'[[DefaultValue]]': function (O) {\n\t\tvar actualHint;\n\t\tif (arguments.length > 1) {\n\t\t\tactualHint = arguments[1];\n\t\t} else {\n\t\t\tactualHint = toStr.call(O) === '[object Date]' ? String : Number;\n\t\t}\n\n\t\tif (actualHint === String || actualHint === Number) {\n\t\t\tvar methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString'];\n\t\t\tvar value, i;\n\t\t\tfor (i = 0; i < methods.length; ++i) {\n\t\t\t\tif (isCallable(O[methods[i]])) {\n\t\t\t\t\tvalue = O[methods[i]]();\n\t\t\t\t\tif (isPrimitive(value)) {\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow new TypeError('No default value');\n\t\t}\n\t\tthrow new TypeError('invalid [[DefaultValue]] hint supplied');\n\t}\n};\n\n// http://ecma-international.org/ecma-262/5.1/#sec-9.1\nmodule.exports = function ToPrimitive(input) {\n\tif (isPrimitive(input)) {\n\t\treturn input;\n\t}\n\tif (arguments.length > 1) {\n\t\treturn ES5internalSlots['[[DefaultValue]]'](input, arguments[1]);\n\t}\n\treturn ES5internalSlots['[[DefaultValue]]'](input);\n};\n","'use strict';\n\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';\n\nvar isPrimitive = require('./helpers/isPrimitive');\nvar isCallable = require('is-callable');\nvar isDate = require('is-date-object');\nvar isSymbol = require('is-symbol');\n\nvar ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) {\n\tif (typeof O === 'undefined' || O === null) {\n\t\tthrow new TypeError('Cannot call method on ' + O);\n\t}\n\tif (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {\n\t\tthrow new TypeError('hint must be \"string\" or \"number\"');\n\t}\n\tvar methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];\n\tvar method, result, i;\n\tfor (i = 0; i < methodNames.length; ++i) {\n\t\tmethod = O[methodNames[i]];\n\t\tif (isCallable(method)) {\n\t\t\tresult = method.call(O);\n\t\t\tif (isPrimitive(result)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}\n\tthrow new TypeError('No default value');\n};\n\nvar GetMethod = function GetMethod(O, P) {\n\tvar func = O[P];\n\tif (func !== null && typeof func !== 'undefined') {\n\t\tif (!isCallable(func)) {\n\t\t\tthrow new TypeError(func + ' returned for property ' + P + ' of object ' + O + ' is not a function');\n\t\t}\n\t\treturn func;\n\t}\n\treturn void 0;\n};\n\n// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive\nmodule.exports = function ToPrimitive(input) {\n\tif (isPrimitive(input)) {\n\t\treturn input;\n\t}\n\tvar hint = 'default';\n\tif (arguments.length > 1) {\n\t\tif (arguments[1] === String) {\n\t\t\thint = 'string';\n\t\t} else if (arguments[1] === Number) {\n\t\t\thint = 'number';\n\t\t}\n\t}\n\n\tvar exoticToPrim;\n\tif (hasSymbols) {\n\t\tif (Symbol.toPrimitive) {\n\t\t\texoticToPrim = GetMethod(input, Symbol.toPrimitive);\n\t\t} else if (isSymbol(input)) {\n\t\t\texoticToPrim = Symbol.prototype.valueOf;\n\t\t}\n\t}\n\tif (typeof exoticToPrim !== 'undefined') {\n\t\tvar result = exoticToPrim.call(input, hint);\n\t\tif (isPrimitive(result)) {\n\t\t\treturn result;\n\t\t}\n\t\tthrow new TypeError('unable to convert exotic object to primitive');\n\t}\n\tif (hint === 'default' && (isDate(input) || isSymbol(input))) {\n\t\thint = 'string';\n\t}\n\treturn ordinaryToPrimitive(input, hint === 'default' ? 'number' : hint);\n};\n"],"sourceRoot":""}