made with requirebin
Last active
April 26, 2017 13:12
-
-
Save craiggoldstone/492af54ce9e9f5220f40c376fa9060c1 to your computer and use it in GitHub Desktop.
requirebin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var JSONAPIDeserializer = require('jsonapi-serializer').Deserializer; | |
var jsonapi = { | |
"meta": { | |
"status": 200, | |
"message": "Farm data successfully deleted" | |
} | |
}; | |
try { | |
new JSONAPIDeserializer().deserialize(jsonapi, function(err, json) { | |
setOutput(JSON.stringify(json, null, 2)); | |
}) | |
} catch (err) { | |
setOutput(err.message); | |
} | |
function setOutput(str) { | |
document.getElementById('output').innerHTML = str; | |
console.log(str); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function(){require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;len=queue.length}currentQueue=null;draining=false;runClearTimeout(timeout)}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item(fun,array){this.fun=fun;this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=true;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},{}],2:[function(require,module,exports){"use strict";var isPlainObject=require("lodash/isPlainObject");var isFunction=require("lodash/isFunction");var _find=require("lodash/find");var _extend=require("lodash/extend");var _transform=require("lodash/transform");var Inflector=require("./inflector");module.exports=function(jsonapi,data,opts){var alreadyIncluded=[];function isComplexType(obj){return Array.isArray(obj)||isPlainObject(obj)}function getValueForRelationship(relationshipData,included){if(opts&&relationshipData&&opts[relationshipData.type]){var valueForRelationshipFct=opts[relationshipData.type].valueForRelationship;return valueForRelationshipFct(relationshipData,included)}else{return included}}function findIncluded(relationshipData){return new Promise(function(resolve){if(!jsonapi.included||!relationshipData){resolve(null)}var included=_find(jsonapi.included,{id:relationshipData.id,type:relationshipData.type});if(alreadyIncluded.indexOf(included)>-1){return resolve(null)}else{alreadyIncluded.push(included)}if(included){return Promise.all([extractAttributes(included),extractRelationships(included)]).then(function(results){var attributes=results[0];var relationships=results[1];resolve(_extend(attributes,relationships))})}else{return resolve(null)}})}function keyForAttribute(attribute){if(isPlainObject(attribute)){return _transform(attribute,function(result,value,key){if(isComplexType(value)){result[keyForAttribute(key)]=keyForAttribute(value)}else{result[keyForAttribute(key)]=value}})}else if(Array.isArray(attribute)){return attribute.map(function(attr){if(isComplexType(attr)){return keyForAttribute(attr)}else{return attr}})}else{if(isFunction(opts.keyForAttribute)){return opts.keyForAttribute(attribute)}else{return Inflector.caserize(attribute,opts)}}}function extractAttributes(from){var dest=keyForAttribute(from.attributes||{});if("id"in from){dest.id=from.id}if(opts.typeAsAttribute){if("type"in from){dest.type=from.type}}if("meta"in from){dest.meta=keyForAttribute(from.meta||{})}return dest}function extractRelationships(from){if(!from.relationships){return}var dest={};return Promise.all(Object.keys(from.relationships).map(function(key){var relationship=from.relationships[key];if(relationship.data===null){dest[keyForAttribute(key)]=null}else if(Array.isArray(relationship.data)){return Promise.all(relationship.data.map(function(relationshipData){return extractIncludes(relationshipData)})).then(function(includes){if(includes){dest[keyForAttribute(key)]=includes}})}else{return extractIncludes(relationship.data).then(function(include){if(include){dest[keyForAttribute(key)]=include}})}})).then(function(){return dest})}function extractIncludes(relationshipData){return findIncluded(relationshipData).then(function(included){var valueForRelationship=getValueForRelationship(relationshipData,included);if(valueForRelationship&&isFunction(valueForRelationship.then)){return valueForRelationship.then(function(value){return value})}else{return valueForRelationship}})}this.perform=function(){return Promise.all([extractAttributes(data),extractRelationships(data)]).then(function(results){var attributes=results[0];var relationships=results[1];var record=_extend(attributes,relationships);if(jsonapi.links){record.links=jsonapi.links}if(opts&&opts.transform){record=opts.transform(record)}return record})}}},{"./inflector":6,"lodash/extend":148,"lodash/find":149,"lodash/isFunction":160,"lodash/isPlainObject":164,"lodash/transform":180}],3:[function(require,module,exports){"use strict";var isFunction=require("lodash/isFunction");var DeserializerUtils=require("./deserializer-utils");module.exports=function(opts){if(!opts){opts={}}this.deserialize=function(jsonapi,callback){function collection(){return Promise.all(jsonapi.data.map(function(d){return new DeserializerUtils(jsonapi,d,opts).perform()})).then(function(result){if(isFunction(callback)){callback(null,result)}return result})}function resource(){return new DeserializerUtils(jsonapi,jsonapi.data,opts).perform().then(function(result){if(isFunction(callback)){callback(null,result)}return result})}if(Array.isArray(jsonapi.data)){return collection()}else{return resource()}}}},{"./deserializer-utils":2,"lodash/isFunction":160}],4:[function(require,module,exports){"use strict";module.exports=function(errors){var jsonapi={errors:[]};errors.forEach(function(error){var opts={};if(error.id){opts.id=error.id}if(error.status){opts.status=error.status}if(error.code){opts.code=error.code}if(error.title){opts.title=error.title}if(error.detail){opts.detail=error.detail}if(error.source){opts.source={};if(error.source.pointer){opts.source.pointer=error.source.pointer}if(error.source.parameter){opts.source.parameter=error.source.parameter}}if(error.links){opts.links={about:error.links.about}}if(error.meta){opts.meta=error.meta}jsonapi.errors.push(opts)});return jsonapi}},{}],5:[function(require,module,exports){"use strict";var ErrorUtils=require("./error-utils");module.exports=function(opts){if(!opts){opts=[]}if(Array.isArray(opts)){return new ErrorUtils(opts)}else{return new ErrorUtils([opts])}}},{"./error-utils":4}],6:[function(require,module,exports){"use strict";var Inflector=require("inflected");module.exports={caserize:function(attribute,opts){attribute=Inflector.underscore(attribute);switch(opts.keyForAttribute){case"dash-case":case"lisp-case":case"spinal-case":case"kebab-case":return Inflector.dasherize(attribute);case"underscore_case":case"snake_case":return attribute;case"CamelCase":return Inflector.camelize(attribute);case"camelCase":return Inflector.camelize(attribute,false);default:return Inflector.dasherize(attribute)}},pluralize:function(type){return Inflector.pluralize(type)}}},{inflected:9}],7:[function(require,module,exports){"use strict";var isPlainObject=require("lodash/isPlainObject");var isFunction=require("lodash/isFunction");var _find=require("lodash/find");var _extend=require("lodash/extend");var _transform=require("lodash/transform");var _mapValues=require("lodash/mapValues");var _mapKeys=require("lodash/mapKeys");var _pick=require("lodash/pick");var _keys=require("lodash/keys");var _each=require("lodash/each");var Inflector=require("./inflector");module.exports=function(collectionName,record,payload,opts){function isComplexType(obj){return Array.isArray(obj)||isPlainObject(obj)}function keyForAttribute(attribute){if(isPlainObject(attribute)){return _transform(attribute,function(result,value,key){if(isComplexType(value)){result[keyForAttribute(key)]=keyForAttribute(value)}else{result[keyForAttribute(key)]=value}})}else if(Array.isArray(attribute)){return attribute.map(function(attr){if(isComplexType(attr)){return keyForAttribute(attr)}else{return attr}})}else{if(isFunction(opts.keyForAttribute)){return opts.keyForAttribute(attribute)}else{return Inflector.caserize(attribute,opts)}}}function getId(){return opts.id||"id"}function getRef(current,item,opts){if(isFunction(opts.ref)){return opts.ref(current,item)}else if(opts.ref===true){if(Array.isArray(item)){return item.map(function(val){return String(val)})}else if(item){return String(item)}}else if(item&&item[opts.ref]){return String(item[opts.ref])}}function getType(str,attrVal){var type;attrVal=attrVal||{};if(isFunction(opts.typeForAttribute)){type=opts.typeForAttribute(str,attrVal)}if((opts.pluralizeType===undefined||opts.pluralizeType)&&type===undefined){type=Inflector.pluralize(str)}if(type===undefined){type=str}return type}function getLinks(current,links,dest){return _mapValues(links,function(value){if(isFunction(value)){return value(record,current,dest)}else{return value}})}function getMeta(current,meta){return _mapValues(meta,function(value){if(isFunction(value)){return value(record,current)}else{return value}})}function pick(obj,attributes){return _mapKeys(_pick(obj,attributes),function(value,key){return keyForAttribute(key)})}function isCompoundDocumentIncluded(included,item){return _find(payload.included,{id:item.id,type:item.type})}function pushToIncluded(dest,include){if(!isCompoundDocumentIncluded(dest,include)){if(!dest.included){dest.included=[]}dest.included.push(include)}}this.serialize=function(dest,current,attribute,opts){var that=this;var data=null;if(opts&&opts.ref){if(!dest.relationships){dest.relationships={}}if(Array.isArray(current[attribute])){data=current[attribute].map(function(item){return that.serializeRef(item,current,attribute,opts)})}else{data=that.serializeRef(current[attribute],current,attribute,opts)}dest.relationships[keyForAttribute(attribute)]={};if(!opts.ignoreRelationshipData){dest.relationships[keyForAttribute(attribute)].data=data}if(opts.relationshipLinks){dest.relationships[keyForAttribute(attribute)].links=getLinks(current[attribute],opts.relationshipLinks,dest)}if(opts.relationshipMeta){dest.relationships[keyForAttribute(attribute)].meta=getMeta(current[attribute],opts.relationshipMeta)}}else{if(Array.isArray(current[attribute])){if(current[attribute].length&&isPlainObject(current[attribute][0])){data=current[attribute].map(function(item){return that.serializeNested(item,current,attribute,opts)})}else{data=current[attribute]}dest.attributes[keyForAttribute(attribute)]=data}else if(isPlainObject(current[attribute])){data=that.serializeNested(current[attribute],current,attribute,opts);dest.attributes[keyForAttribute(attribute)]=data}else{dest.attributes[keyForAttribute(attribute)]=current[attribute]}}};this.serializeRef=function(dest,current,attribute,opts){var that=this;var id=getRef(current,dest,opts);var type=getType(attribute,dest);var relationships=[];var includedAttrs=[];if(opts.attributes){relationships=opts.attributes.filter(function(attr){return opts[attr]});includedAttrs=opts.attributes.filter(function(attr){return!opts[attr]})}var included={type:type,id:id};if(includedAttrs){included.attributes=pick(dest,includedAttrs)}relationships.forEach(function(relationship){if(dest&&isComplexType(dest[relationship])){that.serialize(included,dest,relationship,opts[relationship])}});if(includedAttrs.length&&(opts.included===undefined||opts.included)){if(opts.includedLinks){included.links=getLinks(dest,opts.includedLinks)}if(typeof id!=="undefined"){pushToIncluded(payload,included)}}return typeof id!=="undefined"?{type:type,id:id}:null};this.serializeNested=function(dest,current,attribute,opts){var that=this;var embeds=[];var attributes=[];if(opts&&opts.attributes){embeds=opts.attributes.filter(function(attr){return opts[attr]});attributes=opts.attributes.filter(function(attr){return!opts[attr]})}else{attributes=_keys(dest)}var ret={};if(attributes){ret.attributes=pick(dest,attributes)}embeds.forEach(function(embed){if(isComplexType(dest[embed])){that.serialize(ret,dest,embed,opts[embed])}});return ret.attributes};this.perform=function(){var that=this;if(record===null){return null}if(opts&&opts.transform){record=opts.transform(record)}var data={type:getType(collectionName,record),id:String(record[getId()])};if(opts.dataLinks){data.links=getLinks(record,opts.dataLinks)}if(opts.dataMeta){data.meta=getMeta(record,opts.dataMeta)}_each(opts.attributes,function(attribute){var splittedAttributes=attribute.split(":");if(opts[attribute]&&!record[attribute]&&opts[attribute].nullIfMissing){record[attribute]=null}if(splittedAttributes[0]in record){if(!data.attributes){data.attributes={}}var attributeMap=attribute;if(splittedAttributes.length>1){attribute=splittedAttributes[0];attributeMap=splittedAttributes[1]}that.serialize(data,record,attribute,opts[attributeMap])}});return data}}},{"./inflector":6,"lodash/each":146,"lodash/extend":148,"lodash/find":149,"lodash/isFunction":160,"lodash/isPlainObject":164,"lodash/keys":167,"lodash/mapKeys":169,"lodash/mapValues":170,"lodash/pick":172,"lodash/transform":180}],8:[function(require,module,exports){"use strict";var isFunction=require("lodash/isFunction");var _mapValues=require("lodash/mapValues");var SerializerUtils=require("./serializer-utils");module.exports=function(collectionName,records,opts){this.serialize=function(records){var that=this;var payload={};function getLinks(links){return _mapValues(links,function(value){if(isFunction(value)){return value(records)}else{return value}})}function collection(){payload.data=[];records.forEach(function(record){var serializerUtils=new SerializerUtils(that.collectionName,record,payload,that.opts);payload.data.push(serializerUtils.perform())});return payload}function resource(){payload.data=new SerializerUtils(that.collectionName,records,payload,that.opts).perform(records);return payload}if(that.opts.topLevelLinks){payload.links=getLinks(that.opts.topLevelLinks)}if(that.opts.meta){payload.meta=_mapValues(that.opts.meta,function(value){if(isFunction(value)){return value(records)}else{return value}})}if(Array.isArray(records)){return collection(records)}else{return resource(records)}};if(arguments.length===3){this.collectionName=collectionName;this.opts=opts;return this.serialize(records)}else{this.collectionName=collectionName;this.opts=records}}},{"./serializer-utils":7,"lodash/isFunction":160,"lodash/mapValues":170}],9:[function(require,module,exports){"use strict";module.exports=require("./lib/Inflector")},{"./lib/Inflector":11}],10:[function(require,module,exports){(function(process,global){"use strict";var hasProp=require("./hasProp");var remove=require("./remove");var icPart=require("./icPart");function Inflections(){this.plurals=[];this.singulars=[];this.uncountables=[];this.humans=[];this.acronyms={};this.acronymRegex=/(?=a)b/}Inflections.getInstance=function(locale){var storage=typeof process!=="undefined"?process:global;storage.__Inflector_Inflections=storage.__Inflector_Inflections||{};storage.__Inflector_Inflections[locale]=storage.__Inflector_Inflections[locale]||new Inflections;return storage.__Inflector_Inflections[locale]};Inflections.prototype.acronym=function(word){this.acronyms[word.toLowerCase()]=word;var values=[];for(var key in this.acronyms){if(hasProp(this.acronyms,key)){values.push(this.acronyms[key])}}this.acronymRegex=new RegExp(values.join("|"))};Inflections.prototype.plural=function(rule,replacement){if(typeof rule==="string"){remove(this.uncountables,rule)}remove(this.uncountables,replacement);this.plurals.unshift([rule,replacement])};Inflections.prototype.singular=function(rule,replacement){if(typeof rule==="string"){remove(this.uncountables,rule)}remove(this.uncountables,replacement);this.singulars.unshift([rule,replacement])};Inflections.prototype.irregular=function(singular,plural){remove(this.uncountables,singular);remove(this.uncountables,plural);var s0=singular[0];var sRest=singular.substr(1);var p0=plural[0];var pRest=plural.substr(1);if(s0.toUpperCase()===p0.toUpperCase()){this.plural(new RegExp("("+s0+")"+sRest+"$","i"),"$1"+pRest);this.plural(new RegExp("("+p0+")"+pRest+"$","i"),"$1"+pRest);this.singular(new RegExp("("+s0+")"+sRest+"$","i"),"$1"+sRest);this.singular(new RegExp("("+p0+")"+pRest+"$","i"),"$1"+sRest)}else{var sRestIC=icPart(sRest);var pRestIC=icPart(pRest);this.plural(new RegExp(s0.toUpperCase()+sRestIC+"$"),p0.toUpperCase()+pRest);this.plural(new RegExp(s0.toLowerCase()+sRestIC+"$"),p0.toLowerCase()+pRest);this.plural(new RegExp(p0.toUpperCase()+pRestIC+"$"),p0.toUpperCase()+pRest);this.plural(new RegExp(p0.toLowerCase()+pRestIC+"$"),p0.toLowerCase()+pRest);this.singular(new RegExp(s0.toUpperCase()+sRestIC+"$"),s0.toUpperCase()+sRest);this.singular(new RegExp(s0.toLowerCase()+sRestIC+"$"),s0.toLowerCase()+sRest);this.singular(new RegExp(p0.toUpperCase()+pRestIC+"$"),s0.toUpperCase()+sRest);this.singular(new RegExp(p0.toLowerCase()+pRestIC+"$"),s0.toLowerCase()+sRest)}};Inflections.prototype.uncountable=function(){var words=Array.prototype.slice.call(arguments,0);this.uncountables=this.uncountables.concat(words)};Inflections.prototype.human=function(rule,replacement){this.humans.unshift([rule,replacement])};Inflections.prototype.clear=function(scope){scope=scope||"all";if(scope==="all"){this.plurals=[];this.singulars=[];this.uncountables=[];this.humans=[]}else{this[scope]=[]}};module.exports=Inflections}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./hasProp":15,"./icPart":16,"./remove":18,_process:1}],11:[function(require,module,exports){"use strict";var Inflections=require("./Inflections");var Transliterator=require("./Transliterator");var Methods=require("./Methods");var defaults=require("./defaults");var isFunc=require("./isFunc");var Inflector=Methods;Inflector.inflections=function(locale,fn){if(isFunc(locale)){fn=locale;locale=null}locale=locale||"en";if(fn){fn(Inflections.getInstance(locale))}else{return Inflections.getInstance(locale)}};Inflector.transliterations=function(locale,fn){if(isFunc(locale)){fn=locale;locale=null}locale=locale||"en";if(fn){fn(Transliterator.getInstance(locale))}else{return Transliterator.getInstance(locale)}};for(var locale in defaults){Inflector.inflections(locale,defaults[locale])}module.exports=Inflector},{"./Inflections":10,"./Methods":12,"./Transliterator":13,"./defaults":14,"./isFunc":17}],12:[function(require,module,exports){"use strict";var Methods={pluralize:function(word,locale){locale=locale||"en";return this._applyInflections(word,this.inflections(locale).plurals)},singularize:function(word,locale){locale=locale||"en";return this._applyInflections(word,this.inflections(locale).singulars)},camelize:function(term,uppercaseFirstLetter){if(uppercaseFirstLetter===null||uppercaseFirstLetter===undefined){uppercaseFirstLetter=true}var result=""+term,self=this;if(uppercaseFirstLetter){result=result.replace(/^[a-z\d]*/,function(a){return self.inflections().acronyms[a]||self.capitalize(a)})}else{result=result.replace(new RegExp("^(?:"+this.inflections().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(a){return a.toLowerCase()})}result=result.replace(/(?:_|(\/))([a-z\d]*)/gi,function(match,a,b,idx,string){a||(a="");return""+a+(self.inflections().acronyms[b]||self.capitalize(b))});return result},underscore:function(camelCasedWord){var result=""+camelCasedWord;result=result.replace(new RegExp("(?:([A-Za-z\\d])|^)("+this.inflections().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(match,$1,$2){return""+($1||"")+($1?"_":"")+$2.toLowerCase()});result=result.replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2");result=result.replace(/([a-z\d])([A-Z])/g,"$1_$2");result=result.replace(/-/g,"_");return result.toLowerCase()},humanize:function(lowerCaseAndUnderscoredWord,options){var result=""+lowerCaseAndUnderscoredWord;var humans=this.inflections().humans;var human,rule,replacement;var self=this;options=options||{};if(options.capitalize===null||options.capitalize===undefined){options.capitalize=true}for(var i=0,ii=humans.length;i<ii;i++){human=humans[i];rule=human[0];replacement=human[1];if(rule.test&&rule.test(result)||result.indexOf(rule)>-1){result=result.replace(rule,replacement);break}}result=result.replace(/_id$/,"");result=result.replace(/_/g," ");result=result.replace(/([a-z\d]*)/gi,function(match){return self.inflections().acronyms[match]||match.toLowerCase()});if(options.capitalize){result=result.replace(/^\w/,function(match){return match.toUpperCase()})}return result},capitalize:function(str){var result=str===null||str===undefined?"":String(str);return result.charAt(0).toUpperCase()+result.slice(1)},titleize:function(word){return this.humanize(this.underscore(word)).replace(/(^|[\s¿\/]+)([a-z])/g,function(match,boundary,letter,idx,string){return match.replace(letter,letter.toUpperCase())})},tableize:function(className){return this.pluralize(this.underscore(className))},classify:function(tableName){return this.camelize(this.singularize(tableName.replace(/.*\./g,"")))},dasherize:function(underscoredWord){return underscoredWord.replace(/_/g,"-")},foreignKey:function(className,separateWithUnderscore){if(separateWithUnderscore===null||separateWithUnderscore===undefined){separateWithUnderscore=true}return this.underscore(className)+(separateWithUnderscore?"_id":"id")},ordinal:function(number){var absNumber=Math.abs(Number(number));var mod100=absNumber%100;if(mod100===11||mod100===12||mod100===13){return"th"}else{switch(absNumber%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}},ordinalize:function(number){return""+number+this.ordinal(number)},transliterate:function(string,options){options=options||{};var locale=options.locale||"en";var replacement=options.replacement||"?";return this.transliterations(locale).transliterate(string,replacement)},parameterize:function(string,options){options=options||{};if(options.separator===undefined){options.separator="-"}if(options.separator===null){options.separator=""}var result=this.transliterate(string,options);result=result.replace(/[^a-z0-9\-_]+/gi,options.separator);if(options.separator.length){var separatorRegex=new RegExp(options.separator);result=result.replace(new RegExp(separatorRegex.source+"{2,}"),options.separator);result=result.replace(new RegExp("^"+separatorRegex.source+"|"+separatorRegex.source+"$","i"),"")}return result.toLowerCase()},_applyInflections:function(word,rules){var result=""+word,rule,regex,replacement;if(result.length===0){return result}else{var match=result.toLowerCase().match(/\b\w+$/);if(match&&this.inflections().uncountables.indexOf(match[0])>-1){return result}else{for(var i=0,ii=rules.length;i<ii;i++){rule=rules[i];regex=rule[0];replacement=rule[1];if(result.match(regex)){result=result.replace(regex,replacement);break}}return result}}}};module.exports=Methods},{}],13:[function(require,module,exports){(function(process,global){"use strict";var DEFAULT_APPROXIMATIONS={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","×":"x","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"Th","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"'n","Ŋ":"NG","ŋ":"ng","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z"};var DEFAULT_REPLACEMENT_CHAR="?";function Transliterator(){this.approximations={};for(var c in DEFAULT_APPROXIMATIONS){this.approximate(c,DEFAULT_APPROXIMATIONS[c])}}Transliterator.getInstance=function(locale){var storage=typeof process!=="undefined"?process:global;storage.__Inflector_Transliterator=storage.__Inflector_Transliterator||{};storage.__Inflector_Transliterator[locale]=storage.__Inflector_Transliterator[locale]||new Transliterator;return storage.__Inflector_Transliterator[locale]};Transliterator.prototype.approximate=function(string,replacement){this.approximations[string]=replacement};Transliterator.prototype.transliterate=function(string,replacement){var self=this;return string.replace(/[^\u0000-\u007f]/g,function(c){return self.approximations[c]||replacement||DEFAULT_REPLACEMENT_CHAR})};module.exports=Transliterator}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:1}],14:[function(require,module,exports){"use strict";function enDefaults(inflect){inflect.plural(/$/,"s");inflect.plural(/s$/i,"s");inflect.plural(/^(ax|test)is$/i,"$1es");inflect.plural(/(octop|vir)us$/i,"$1i");inflect.plural(/(octop|vir)i$/i,"$1i");inflect.plural(/(alias|status)$/i,"$1es");inflect.plural(/(bu)s$/i,"$1ses");inflect.plural(/(buffal|tomat)o$/i,"$1oes");inflect.plural(/([ti])um$/i,"$1a");inflect.plural(/([ti])a$/i,"$1a");inflect.plural(/sis$/i,"ses");inflect.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves");inflect.plural(/(hive)$/i,"$1s");inflect.plural(/([^aeiouy]|qu)y$/i,"$1ies");inflect.plural(/(x|ch|ss|sh)$/i,"$1es");inflect.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices");inflect.plural(/^(m|l)ouse$/i,"$1ice");inflect.plural(/^(m|l)ice$/i,"$1ice");inflect.plural(/^(ox)$/i,"$1en");inflect.plural(/^(oxen)$/i,"$1");inflect.plural(/(quiz)$/i,"$1zes");inflect.singular(/s$/i,"");inflect.singular(/(ss)$/i,"$1");inflect.singular(/(n)ews$/i,"$1ews");inflect.singular(/([ti])a$/i,"$1um");inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis");inflect.singular(/(^analy)(sis|ses)$/i,"$1sis");inflect.singular(/([^f])ves$/i,"$1fe");inflect.singular(/(hive)s$/i,"$1");inflect.singular(/(tive)s$/i,"$1");inflect.singular(/([lr])ves$/i,"$1f");inflect.singular(/([^aeiouy]|qu)ies$/i,"$1y");inflect.singular(/(s)eries$/i,"$1eries");inflect.singular(/(m)ovies$/i,"$1ovie");inflect.singular(/(x|ch|ss|sh)es$/i,"$1");inflect.singular(/^(m|l)ice$/i,"$1ouse");inflect.singular(/(bus)(es)?$/i,"$1");inflect.singular(/(o)es$/i,"$1");inflect.singular(/(shoe)s$/i,"$1");inflect.singular(/(cris|test)(is|es)$/i,"$1is");inflect.singular(/^(a)x[ie]s$/i,"$1xis");inflect.singular(/(octop|vir)(us|i)$/i,"$1us");inflect.singular(/(alias|status)(es)?$/i,"$1");inflect.singular(/^(ox)en/i,"$1");inflect.singular(/(vert|ind)ices$/i,"$1ex");inflect.singular(/(matr)ices$/i,"$1ix");inflect.singular(/(quiz)zes$/i,"$1");inflect.singular(/(database)s$/i,"$1");inflect.irregular("person","people");inflect.irregular("man","men");inflect.irregular("child","children");inflect.irregular("sex","sexes");inflect.irregular("move","moves");inflect.irregular("zombie","zombies");inflect.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}module.exports={en:enDefaults}},{}],15:[function(require,module,exports){"use strict";var hasOwnProp=Object.prototype.hasOwnProperty;function hasProp(obj,key){return hasOwnProp.call(obj,key)}module.exports=hasProp},{}],16:[function(require,module,exports){"use strict";function icPart(str){return str.split("").map(function(c){return"(?:"+[c.toUpperCase(),c.toLowerCase()].join("|")+")"}).join("")}module.exports=icPart},{}],17:[function(require,module,exports){"use strict";var toString=Object.prototype.toString;function isFunc(obj){return toString.call(obj)==="[object Function]"}module.exports=isFunc},{}],18:[function(require,module,exports){"use strict";var splice=Array.prototype.splice;function remove(arr,elem){for(var i=arr.length-1;i>=0;i--){if(arr[i]===elem){splice.call(arr,i,1)}}}module.exports=remove},{}],19:[function(require,module,exports){var getNative=require("./_getNative"),root=require("./_root");var DataView=getNative(root,"DataView");module.exports=DataView},{"./_getNative":90,"./_root":130}],20:[function(require,module,exports){var hashClear=require("./_hashClear"),hashDelete=require("./_hashDelete"),hashGet=require("./_hashGet"),hashHas=require("./_hashHas"),hashSet=require("./_hashSet");function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;module.exports=Hash},{"./_hashClear":97,"./_hashDelete":98,"./_hashGet":99,"./_hashHas":100,"./_hashSet":101}],21:[function(require,module,exports){var listCacheClear=require("./_listCacheClear"),listCacheDelete=require("./_listCacheDelete"),listCacheGet=require("./_listCacheGet"),listCacheHas=require("./_listCacheHas"),listCacheSet=require("./_listCacheSet");function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet; | |
module.exports=ListCache},{"./_listCacheClear":110,"./_listCacheDelete":111,"./_listCacheGet":112,"./_listCacheHas":113,"./_listCacheSet":114}],22:[function(require,module,exports){var getNative=require("./_getNative"),root=require("./_root");var Map=getNative(root,"Map");module.exports=Map},{"./_getNative":90,"./_root":130}],23:[function(require,module,exports){var mapCacheClear=require("./_mapCacheClear"),mapCacheDelete=require("./_mapCacheDelete"),mapCacheGet=require("./_mapCacheGet"),mapCacheHas=require("./_mapCacheHas"),mapCacheSet=require("./_mapCacheSet");function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;module.exports=MapCache},{"./_mapCacheClear":115,"./_mapCacheDelete":116,"./_mapCacheGet":117,"./_mapCacheHas":118,"./_mapCacheSet":119}],24:[function(require,module,exports){var getNative=require("./_getNative"),root=require("./_root");var Promise=getNative(root,"Promise");module.exports=Promise},{"./_getNative":90,"./_root":130}],25:[function(require,module,exports){var getNative=require("./_getNative"),root=require("./_root");var Set=getNative(root,"Set");module.exports=Set},{"./_getNative":90,"./_root":130}],26:[function(require,module,exports){var MapCache=require("./_MapCache"),setCacheAdd=require("./_setCacheAdd"),setCacheHas=require("./_setCacheHas");function SetCache(values){var index=-1,length=values==null?0:values.length;this.__data__=new MapCache;while(++index<length){this.add(values[index])}}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;module.exports=SetCache},{"./_MapCache":23,"./_setCacheAdd":131,"./_setCacheHas":132}],27:[function(require,module,exports){var ListCache=require("./_ListCache"),stackClear=require("./_stackClear"),stackDelete=require("./_stackDelete"),stackGet=require("./_stackGet"),stackHas=require("./_stackHas"),stackSet=require("./_stackSet");function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;module.exports=Stack},{"./_ListCache":21,"./_stackClear":136,"./_stackDelete":137,"./_stackGet":138,"./_stackHas":139,"./_stackSet":140}],28:[function(require,module,exports){var root=require("./_root");var Symbol=root.Symbol;module.exports=Symbol},{"./_root":130}],29:[function(require,module,exports){var root=require("./_root");var Uint8Array=root.Uint8Array;module.exports=Uint8Array},{"./_root":130}],30:[function(require,module,exports){var getNative=require("./_getNative"),root=require("./_root");var WeakMap=getNative(root,"WeakMap");module.exports=WeakMap},{"./_getNative":90,"./_root":130}],31:[function(require,module,exports){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}module.exports=apply},{}],32:[function(require,module,exports){function arrayEach(array,iteratee){var index=-1,length=array==null?0:array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break}}return array}module.exports=arrayEach},{}],33:[function(require,module,exports){function arrayFilter(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value}}return result}module.exports=arrayFilter},{}],34:[function(require,module,exports){var baseTimes=require("./_baseTimes"),isArguments=require("./isArguments"),isArray=require("./isArray"),isBuffer=require("./isBuffer"),isIndex=require("./_isIndex"),isTypedArray=require("./isTypedArray");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex(key,length)))){result.push(key)}}return result}module.exports=arrayLikeKeys},{"./_baseTimes":69,"./_isIndex":103,"./isArguments":156,"./isArray":157,"./isBuffer":159,"./isTypedArray":166}],35:[function(require,module,exports){function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array)}return result}module.exports=arrayMap},{}],36:[function(require,module,exports){function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index]}return array}module.exports=arrayPush},{}],37:[function(require,module,exports){function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(predicate(array[index],index,array)){return true}}return false}module.exports=arraySome},{}],38:[function(require,module,exports){var baseAssignValue=require("./_baseAssignValue"),eq=require("./eq");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value)}}module.exports=assignValue},{"./_baseAssignValue":40,"./eq":147}],39:[function(require,module,exports){var eq=require("./eq");function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length}}return-1}module.exports=assocIndexOf},{"./eq":147}],40:[function(require,module,exports){var defineProperty=require("./_defineProperty");function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{configurable:true,enumerable:true,value:value,writable:true})}else{object[key]=value}}module.exports=baseAssignValue},{"./_defineProperty":81}],41:[function(require,module,exports){var isObject=require("./isObject");var objectCreate=Object.create;var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return{}}if(objectCreate){return objectCreate(proto)}object.prototype=proto;var result=new object;object.prototype=undefined;return result}}();module.exports=baseCreate},{"./isObject":162}],42:[function(require,module,exports){var baseForOwn=require("./_baseForOwn"),createBaseEach=require("./_createBaseEach");var baseEach=createBaseEach(baseForOwn);module.exports=baseEach},{"./_baseForOwn":46,"./_createBaseEach":78}],43:[function(require,module,exports){function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length,index=fromIndex+(fromRight?1:-1);while(fromRight?index--:++index<length){if(predicate(array[index],index,array)){return index}}return-1}module.exports=baseFindIndex},{}],44:[function(require,module,exports){var arrayPush=require("./_arrayPush"),isFlattenable=require("./_isFlattenable");function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);result||(result=[]);while(++index<length){var value=array[index];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result)}else{arrayPush(result,value)}}else if(!isStrict){result[result.length]=value}}return result}module.exports=baseFlatten},{"./_arrayPush":36,"./_isFlattenable":102}],45:[function(require,module,exports){var createBaseFor=require("./_createBaseFor");var baseFor=createBaseFor();module.exports=baseFor},{"./_createBaseFor":79}],46:[function(require,module,exports){var baseFor=require("./_baseFor"),keys=require("./keys");function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}module.exports=baseForOwn},{"./_baseFor":45,"./keys":167}],47:[function(require,module,exports){var castPath=require("./_castPath"),toKey=require("./_toKey");function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])]}return index&&index==length?object:undefined}module.exports=baseGet},{"./_castPath":74,"./_toKey":142}],48:[function(require,module,exports){var arrayPush=require("./_arrayPush"),isArray=require("./isArray");function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}module.exports=baseGetAllKeys},{"./_arrayPush":36,"./isArray":157}],49:[function(require,module,exports){var Symbol=require("./_Symbol"),getRawTag=require("./_getRawTag"),objectToString=require("./_objectToString");var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}module.exports=baseGetTag},{"./_Symbol":28,"./_getRawTag":92,"./_objectToString":127}],50:[function(require,module,exports){function baseHasIn(object,key){return object!=null&&key in Object(object)}module.exports=baseHasIn},{}],51:[function(require,module,exports){var baseGetTag=require("./_baseGetTag"),isObjectLike=require("./isObjectLike");var argsTag="[object Arguments]";function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}module.exports=baseIsArguments},{"./_baseGetTag":49,"./isObjectLike":163}],52:[function(require,module,exports){var baseIsEqualDeep=require("./_baseIsEqualDeep"),isObjectLike=require("./isObjectLike");function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true}if(value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)){return value!==value&&other!==other}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack)}module.exports=baseIsEqual},{"./_baseIsEqualDeep":53,"./isObjectLike":163}],53:[function(require,module,exports){var Stack=require("./_Stack"),equalArrays=require("./_equalArrays"),equalByTag=require("./_equalByTag"),equalObjects=require("./_equalObjects"),getTag=require("./_getTag"),isArray=require("./isArray"),isBuffer=require("./isBuffer"),isTypedArray=require("./isTypedArray");var COMPARE_PARTIAL_FLAG=1;var argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag;othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other)){return false}objIsArr=true;objIsObj=false}if(isSameTag&&!objIsObj){stack||(stack=new Stack);return objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack)}if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack);return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}if(!isSameTag){return false}stack||(stack=new Stack);return equalObjects(object,other,bitmask,customizer,equalFunc,stack)}module.exports=baseIsEqualDeep},{"./_Stack":27,"./_equalArrays":82,"./_equalByTag":83,"./_equalObjects":84,"./_getTag":94,"./isArray":157,"./isBuffer":159,"./isTypedArray":166}],54:[function(require,module,exports){var Stack=require("./_Stack"),baseIsEqual=require("./_baseIsEqual");var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return!length}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object)){return false}}else{var stack=new Stack;if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack)}if(!(result===undefined?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false}}}return true}module.exports=baseIsMatch},{"./_Stack":27,"./_baseIsEqual":52}],55:[function(require,module,exports){var isFunction=require("./isFunction"),isMasked=require("./_isMasked"),isObject=require("./isObject"),toSource=require("./_toSource");var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}module.exports=baseIsNative},{"./_isMasked":107,"./_toSource":143,"./isFunction":160,"./isObject":162}],56:[function(require,module,exports){var baseGetTag=require("./_baseGetTag"),isLength=require("./isLength"),isObjectLike=require("./isObjectLike");var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}module.exports=baseIsTypedArray},{"./_baseGetTag":49,"./isLength":161,"./isObjectLike":163}],57:[function(require,module,exports){var baseMatches=require("./_baseMatches"),baseMatchesProperty=require("./_baseMatchesProperty"),identity=require("./identity"),isArray=require("./isArray"),property=require("./property");function baseIteratee(value){if(typeof value=="function"){return value}if(value==null){return identity}if(typeof value=="object"){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value)}return property(value)}module.exports=baseIteratee},{"./_baseMatches":60,"./_baseMatchesProperty":61,"./identity":155,"./isArray":157,"./property":173}],58:[function(require,module,exports){var isPrototype=require("./_isPrototype"),nativeKeys=require("./_nativeKeys");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object)}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!="constructor"){result.push(key)}}return result}module.exports=baseKeys},{"./_isPrototype":108,"./_nativeKeys":124}],59:[function(require,module,exports){var isObject=require("./isObject"),isPrototype=require("./_isPrototype"),nativeKeysIn=require("./_nativeKeysIn");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn(object){if(!isObject(object)){return nativeKeysIn(object)}var isProto=isPrototype(object),result=[];for(var key in object){if(!(key=="constructor"&&(isProto||!hasOwnProperty.call(object,key)))){result.push(key)}}return result}module.exports=baseKeysIn},{"./_isPrototype":108,"./_nativeKeysIn":125,"./isObject":162}],60:[function(require,module,exports){var baseIsMatch=require("./_baseIsMatch"),getMatchData=require("./_getMatchData"),matchesStrictComparable=require("./_matchesStrictComparable");function baseMatches(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable(matchData[0][0],matchData[0][1])}return function(object){return object===source||baseIsMatch(object,source,matchData)}}module.exports=baseMatches},{"./_baseIsMatch":54,"./_getMatchData":89,"./_matchesStrictComparable":121}],61:[function(require,module,exports){var baseIsEqual=require("./_baseIsEqual"),get=require("./get"),hasIn=require("./hasIn"),isKey=require("./_isKey"),isStrictComparable=require("./_isStrictComparable"),matchesStrictComparable=require("./_matchesStrictComparable"),toKey=require("./_toKey");var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue)}return function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}module.exports=baseMatchesProperty},{"./_baseIsEqual":52,"./_isKey":105,"./_isStrictComparable":109,"./_matchesStrictComparable":121,"./_toKey":142,"./get":153,"./hasIn":154}],62:[function(require,module,exports){var basePickBy=require("./_basePickBy"),hasIn=require("./hasIn");function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path)})}module.exports=basePick},{"./_basePickBy":63,"./hasIn":154}],63:[function(require,module,exports){var baseGet=require("./_baseGet"),baseSet=require("./_baseSet"),castPath=require("./_castPath");function basePickBy(object,paths,predicate){var index=-1,length=paths.length,result={};while(++index<length){var path=paths[index],value=baseGet(object,path);if(predicate(value,path)){baseSet(result,castPath(path,object),value)}}return result}module.exports=basePickBy},{"./_baseGet":47,"./_baseSet":67,"./_castPath":74}],64:[function(require,module,exports){function baseProperty(key){return function(object){return object==null?undefined:object[key]}}module.exports=baseProperty},{}],65:[function(require,module,exports){var baseGet=require("./_baseGet");function basePropertyDeep(path){return function(object){return baseGet(object,path)}}module.exports=basePropertyDeep},{"./_baseGet":47}],66:[function(require,module,exports){var identity=require("./identity"),overRest=require("./_overRest"),setToString=require("./_setToString");function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}module.exports=baseRest},{"./_overRest":129,"./_setToString":134,"./identity":155}],67:[function(require,module,exports){var assignValue=require("./_assignValue"),castPath=require("./_castPath"),isIndex=require("./_isIndex"),isObject=require("./isObject"),toKey=require("./_toKey");function baseSet(object,path,value,customizer){if(!isObject(object)){return object}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++index<length){var key=toKey(path[index]),newValue=value;if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined;if(newValue===undefined){newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{}}}assignValue(nested,key,newValue);nested=nested[key]}return object}module.exports=baseSet},{"./_assignValue":38,"./_castPath":74,"./_isIndex":103,"./_toKey":142,"./isObject":162}],68:[function(require,module,exports){var constant=require("./constant"),defineProperty=require("./_defineProperty"),identity=require("./identity");var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{configurable:true,enumerable:false,value:constant(string),writable:true})};module.exports=baseSetToString},{"./_defineProperty":81,"./constant":145,"./identity":155}],69:[function(require,module,exports){function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index)}return result}module.exports=baseTimes},{}],70:[function(require,module,exports){var Symbol=require("./_Symbol"),arrayMap=require("./_arrayMap"),isArray=require("./isArray"),isSymbol=require("./isSymbol");var INFINITY=1/0;var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(value){if(typeof value=="string"){return value}if(isArray(value)){return arrayMap(value,baseToString)+""}if(isSymbol(value)){return symbolToString?symbolToString.call(value):""}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}module.exports=baseToString},{"./_Symbol":28,"./_arrayMap":35,"./isArray":157,"./isSymbol":165}],71:[function(require,module,exports){function baseUnary(func){return function(value){return func(value)}}module.exports=baseUnary},{}],72:[function(require,module,exports){function cacheHas(cache,key){return cache.has(key)}module.exports=cacheHas},{}],73:[function(require,module,exports){var identity=require("./identity");function castFunction(value){return typeof value=="function"?value:identity}module.exports=castFunction},{"./identity":155}],74:[function(require,module,exports){var isArray=require("./isArray"),isKey=require("./_isKey"),stringToPath=require("./_stringToPath"),toString=require("./toString");function castPath(value,object){if(isArray(value)){return value}return isKey(value,object)?[value]:stringToPath(toString(value))}module.exports=castPath},{"./_isKey":105,"./_stringToPath":141,"./isArray":157,"./toString":179}],75:[function(require,module,exports){var assignValue=require("./_assignValue"),baseAssignValue=require("./_baseAssignValue");function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key]}if(isNew){baseAssignValue(object,key,newValue)}else{assignValue(object,key,newValue)}}return object}module.exports=copyObject},{"./_assignValue":38,"./_baseAssignValue":40}],76:[function(require,module,exports){var root=require("./_root");var coreJsData=root["__core-js_shared__"];module.exports=coreJsData},{"./_root":130}],77:[function(require,module,exports){var baseRest=require("./_baseRest"),isIterateeCall=require("./_isIterateeCall");function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=="function"?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer)}}return object})}module.exports=createAssigner},{"./_baseRest":66,"./_isIterateeCall":104}],78:[function(require,module,exports){var isArrayLike=require("./isArrayLike");function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection}if(!isArrayLike(collection)){return eachFunc(collection,iteratee)}var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);while(fromRight?index--:++index<length){if(iteratee(iterable[index],index,iterable)===false){break}}return collection}}module.exports=createBaseEach},{"./isArrayLike":158}],79:[function(require,module,exports){function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break}}return object}}module.exports=createBaseFor},{}],80:[function(require,module,exports){var baseIteratee=require("./_baseIteratee"),isArrayLike=require("./isArrayLike"),keys=require("./keys");function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=baseIteratee(predicate,3);collection=keys(collection);predicate=function(key){return iteratee(iterable[key],key,iterable)}}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:undefined}}module.exports=createFind},{"./_baseIteratee":57,"./isArrayLike":158,"./keys":167}],81:[function(require,module,exports){var getNative=require("./_getNative");var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();module.exports=defineProperty},{"./_getNative":90}],82:[function(require,module,exports){var SetCache=require("./_SetCache"),arraySome=require("./_arraySome"),cacheHas=require("./_cacheHas");var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false}var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack)}if(compared!==undefined){if(compared){continue}result=false;break}if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex)}})){result=false;break}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break}}stack["delete"](array);stack["delete"](other);return result}module.exports=equalArrays},{"./_SetCache":26,"./_arraySome":37,"./_cacheHas":72}],83:[function(require,module,exports){var Symbol=require("./_Symbol"),Uint8Array=require("./_Uint8Array"),eq=require("./eq"),equalArrays=require("./_equalArrays"),mapToArray=require("./_mapToArray"),setToArray=require("./_setToArray");var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;var boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]";var symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other))){return false}return true;case boolTag:case dateTag:case numberTag:return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:return object==other+"";case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false}var stacked=stack.get(object);if(stacked){return stacked==other}bitmask|=COMPARE_UNORDERED_FLAG;stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other)}}return false}module.exports=equalByTag},{"./_Symbol":28,"./_Uint8Array":29,"./_equalArrays":82,"./_mapToArray":120,"./_setToArray":133,"./eq":147}],84:[function(require,module,exports){var getAllKeys=require("./_getAllKeys");var COMPARE_PARTIAL_FLAG=1;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key))){return false}}var stacked=stack.get(object);if(stacked&&stack.get(other)){return stacked==other}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack)}if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break}skipCtor||(skipCtor=key=="constructor")}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&("constructor"in object&&"constructor"in other)&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result=false}}stack["delete"](object);stack["delete"](other);return result}module.exports=equalObjects},{"./_getAllKeys":87}],85:[function(require,module,exports){var flatten=require("./flatten"),overRest=require("./_overRest"),setToString=require("./_setToString");function flatRest(func){return setToString(overRest(func,undefined,flatten),func+"")}module.exports=flatRest},{"./_overRest":129,"./_setToString":134,"./flatten":151}],86:[function(require,module,exports){(function(global){var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;module.exports=freeGlobal}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{}); | |
},{}],87:[function(require,module,exports){var baseGetAllKeys=require("./_baseGetAllKeys"),getSymbols=require("./_getSymbols"),keys=require("./keys");function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}module.exports=getAllKeys},{"./_baseGetAllKeys":48,"./_getSymbols":93,"./keys":167}],88:[function(require,module,exports){var isKeyable=require("./_isKeyable");function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map}module.exports=getMapData},{"./_isKeyable":106}],89:[function(require,module,exports){var isStrictComparable=require("./_isStrictComparable"),keys=require("./keys");function getMatchData(object){var result=keys(object),length=result.length;while(length--){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)]}return result}module.exports=getMatchData},{"./_isStrictComparable":109,"./keys":167}],90:[function(require,module,exports){var baseIsNative=require("./_baseIsNative"),getValue=require("./_getValue");function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}module.exports=getNative},{"./_baseIsNative":55,"./_getValue":95}],91:[function(require,module,exports){var overArg=require("./_overArg");var getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype},{"./_overArg":128}],92:[function(require,module,exports){var Symbol=require("./_Symbol");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag}else{delete value[symToStringTag]}}return result}module.exports=getRawTag},{"./_Symbol":28}],93:[function(require,module,exports){var arrayFilter=require("./_arrayFilter"),stubArray=require("./stubArray");var objectProto=Object.prototype;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[]}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)})};module.exports=getSymbols},{"./_arrayFilter":33,"./stubArray":174}],94:[function(require,module,exports){var DataView=require("./_DataView"),Map=require("./_Map"),Promise=require("./_Promise"),Set=require("./_Set"),WeakMap=require("./_WeakMap"),baseGetTag=require("./_baseGetTag"),toSource=require("./_toSource");var mapTag="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);var getTag=baseGetTag;if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map)!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag||WeakMap&&getTag(new WeakMap)!=weakMapTag){getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}}return result}}module.exports=getTag},{"./_DataView":19,"./_Map":22,"./_Promise":24,"./_Set":25,"./_WeakMap":30,"./_baseGetTag":49,"./_toSource":143}],95:[function(require,module,exports){function getValue(object,key){return object==null?undefined:object[key]}module.exports=getValue},{}],96:[function(require,module,exports){var castPath=require("./_castPath"),isArguments=require("./isArguments"),isArray=require("./isArray"),isIndex=require("./_isIndex"),isLength=require("./isLength"),toKey=require("./_toKey");function hasPath(object,path,hasFunc){path=castPath(path,object);var index=-1,length=path.length,result=false;while(++index<length){var key=toKey(path[index]);if(!(result=object!=null&&hasFunc(object,key))){break}object=object[key]}if(result||++index!=length){return result}length=object==null?0:object.length;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object))}module.exports=hasPath},{"./_castPath":74,"./_isIndex":103,"./_toKey":142,"./isArguments":156,"./isArray":157,"./isLength":161}],97:[function(require,module,exports){var nativeCreate=require("./_nativeCreate");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0}module.exports=hashClear},{"./_nativeCreate":123}],98:[function(require,module,exports){function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result}module.exports=hashDelete},{}],99:[function(require,module,exports){var nativeCreate=require("./_nativeCreate");var HASH_UNDEFINED="__lodash_hash_undefined__";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result}return hasOwnProperty.call(data,key)?data[key]:undefined}module.exports=hashGet},{"./_nativeCreate":123}],100:[function(require,module,exports){var nativeCreate=require("./_nativeCreate");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key)}module.exports=hashHas},{"./_nativeCreate":123}],101:[function(require,module,exports){var nativeCreate=require("./_nativeCreate");var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this}module.exports=hashSet},{"./_nativeCreate":123}],102:[function(require,module,exports){var Symbol=require("./_Symbol"),isArguments=require("./isArguments"),isArray=require("./isArray");var spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined;function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}module.exports=isFlattenable},{"./_Symbol":28,"./isArguments":156,"./isArray":157}],103:[function(require,module,exports){var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(value,length){length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(typeof value=="number"||reIsUint.test(value))&&(value>-1&&value%1==0&&value<length)}module.exports=isIndex},{}],104:[function(require,module,exports){var eq=require("./eq"),isArrayLike=require("./isArrayLike"),isIndex=require("./_isIndex"),isObject=require("./isObject");function isIterateeCall(value,index,object){if(!isObject(object)){return false}var type=typeof index;if(type=="number"?isArrayLike(object)&&isIndex(index,object.length):type=="string"&&index in object){return eq(object[index],value)}return false}module.exports=isIterateeCall},{"./_isIndex":103,"./eq":147,"./isArrayLike":158,"./isObject":162}],105:[function(require,module,exports){var isArray=require("./isArray"),isSymbol=require("./isSymbol");var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(value,object){if(isArray(value)){return false}var type=typeof value;if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol(value)){return true}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object)}module.exports=isKey},{"./isArray":157,"./isSymbol":165}],106:[function(require,module,exports){function isKeyable(value){var type=typeof value;return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null}module.exports=isKeyable},{}],107:[function(require,module,exports){var coreJsData=require("./_coreJsData");var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}module.exports=isMasked},{"./_coreJsData":76}],108:[function(require,module,exports){var objectProto=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto;return value===proto}module.exports=isPrototype},{}],109:[function(require,module,exports){var isObject=require("./isObject");function isStrictComparable(value){return value===value&&!isObject(value)}module.exports=isStrictComparable},{"./isObject":162}],110:[function(require,module,exports){function listCacheClear(){this.__data__=[];this.size=0}module.exports=listCacheClear},{}],111:[function(require,module,exports){var assocIndexOf=require("./_assocIndexOf");var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false}var lastIndex=data.length-1;if(index==lastIndex){data.pop()}else{splice.call(data,index,1)}--this.size;return true}module.exports=listCacheDelete},{"./_assocIndexOf":39}],112:[function(require,module,exports){var assocIndexOf=require("./_assocIndexOf");function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1]}module.exports=listCacheGet},{"./_assocIndexOf":39}],113:[function(require,module,exports){var assocIndexOf=require("./_assocIndexOf");function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1}module.exports=listCacheHas},{"./_assocIndexOf":39}],114:[function(require,module,exports){var assocIndexOf=require("./_assocIndexOf");function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value])}else{data[index][1]=value}return this}module.exports=listCacheSet},{"./_assocIndexOf":39}],115:[function(require,module,exports){var Hash=require("./_Hash"),ListCache=require("./_ListCache"),Map=require("./_Map");function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}module.exports=mapCacheClear},{"./_Hash":20,"./_ListCache":21,"./_Map":22}],116:[function(require,module,exports){var getMapData=require("./_getMapData");function mapCacheDelete(key){var result=getMapData(this,key)["delete"](key);this.size-=result?1:0;return result}module.exports=mapCacheDelete},{"./_getMapData":88}],117:[function(require,module,exports){var getMapData=require("./_getMapData");function mapCacheGet(key){return getMapData(this,key).get(key)}module.exports=mapCacheGet},{"./_getMapData":88}],118:[function(require,module,exports){var getMapData=require("./_getMapData");function mapCacheHas(key){return getMapData(this,key).has(key)}module.exports=mapCacheHas},{"./_getMapData":88}],119:[function(require,module,exports){var getMapData=require("./_getMapData");function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this}module.exports=mapCacheSet},{"./_getMapData":88}],120:[function(require,module,exports){function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});return result}module.exports=mapToArray},{}],121:[function(require,module,exports){function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object))}}module.exports=matchesStrictComparable},{}],122:[function(require,module,exports){var memoize=require("./memoize");var MAX_MEMOIZE_SIZE=500;function memoizeCapped(func){var result=memoize(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear()}return key});var cache=result.cache;return result}module.exports=memoizeCapped},{"./memoize":171}],123:[function(require,module,exports){var getNative=require("./_getNative");var nativeCreate=getNative(Object,"create");module.exports=nativeCreate},{"./_getNative":90}],124:[function(require,module,exports){var overArg=require("./_overArg");var nativeKeys=overArg(Object.keys,Object);module.exports=nativeKeys},{"./_overArg":128}],125:[function(require,module,exports){function nativeKeysIn(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key)}}return result}module.exports=nativeKeysIn},{}],126:[function(require,module,exports){var freeGlobal=require("./_freeGlobal");var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil},{"./_freeGlobal":86}],127:[function(require,module,exports){var objectProto=Object.prototype;var nativeObjectToString=objectProto.toString;function objectToString(value){return nativeObjectToString.call(value)}module.exports=objectToString},{}],128:[function(require,module,exports){function overArg(func,transform){return function(arg){return func(transform(arg))}}module.exports=overArg},{}],129:[function(require,module,exports){var apply=require("./_apply");var nativeMax=Math.max;function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index]}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index]}otherArgs[start]=transform(array);return apply(func,this,otherArgs)}}module.exports=overRest},{"./_apply":31}],130:[function(require,module,exports){var freeGlobal=require("./_freeGlobal");var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();module.exports=root},{"./_freeGlobal":86}],131:[function(require,module,exports){var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(value){this.__data__.set(value,HASH_UNDEFINED);return this}module.exports=setCacheAdd},{}],132:[function(require,module,exports){function setCacheHas(value){return this.__data__.has(value)}module.exports=setCacheHas},{}],133:[function(require,module,exports){function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}module.exports=setToArray},{}],134:[function(require,module,exports){var baseSetToString=require("./_baseSetToString"),shortOut=require("./_shortOut");var setToString=shortOut(baseSetToString);module.exports=setToString},{"./_baseSetToString":68,"./_shortOut":135}],135:[function(require,module,exports){var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}module.exports=shortOut},{}],136:[function(require,module,exports){var ListCache=require("./_ListCache");function stackClear(){this.__data__=new ListCache;this.size=0}module.exports=stackClear},{"./_ListCache":21}],137:[function(require,module,exports){function stackDelete(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result}module.exports=stackDelete},{}],138:[function(require,module,exports){function stackGet(key){return this.__data__.get(key)}module.exports=stackGet},{}],139:[function(require,module,exports){function stackHas(key){return this.__data__.has(key)}module.exports=stackHas},{}],140:[function(require,module,exports){var ListCache=require("./_ListCache"),Map=require("./_Map"),MapCache=require("./_MapCache");var LARGE_ARRAY_SIZE=200;function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this}data=this.__data__=new MapCache(pairs)}data.set(key,value);this.size=data.size;return this}module.exports=stackSet},{"./_ListCache":21,"./_Map":22,"./_MapCache":23}],141:[function(require,module,exports){var memoizeCapped=require("./_memoizeCapped");var reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=memoizeCapped(function(string){var result=[];if(reLeadingDot.test(string)){result.push("")}string.replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)});return result});module.exports=stringToPath},{"./_memoizeCapped":122}],142:[function(require,module,exports){var isSymbol=require("./isSymbol");var INFINITY=1/0;function toKey(value){if(typeof value=="string"||isSymbol(value)){return value}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}module.exports=toKey},{"./isSymbol":165}],143:[function(require,module,exports){var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}module.exports=toSource},{}],144:[function(require,module,exports){var copyObject=require("./_copyObject"),createAssigner=require("./_createAssigner"),keysIn=require("./keysIn");var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object)});module.exports=assignIn},{"./_copyObject":75,"./_createAssigner":77,"./keysIn":168}],145:[function(require,module,exports){function constant(value){return function(){return value}}module.exports=constant},{}],146:[function(require,module,exports){module.exports=require("./forEach")},{"./forEach":152}],147:[function(require,module,exports){function eq(value,other){return value===other||value!==value&&other!==other}module.exports=eq},{}],148:[function(require,module,exports){module.exports=require("./assignIn")},{"./assignIn":144}],149:[function(require,module,exports){var createFind=require("./_createFind"),findIndex=require("./findIndex");var find=createFind(findIndex);module.exports=find},{"./_createFind":80,"./findIndex":150}],150:[function(require,module,exports){var baseFindIndex=require("./_baseFindIndex"),baseIteratee=require("./_baseIteratee"),toInteger=require("./toInteger");var nativeMax=Math.max;function findIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return-1}var index=fromIndex==null?0:toInteger(fromIndex);if(index<0){index=nativeMax(length+index,0)}return baseFindIndex(array,baseIteratee(predicate,3),index)}module.exports=findIndex},{"./_baseFindIndex":43,"./_baseIteratee":57,"./toInteger":177}],151:[function(require,module,exports){var baseFlatten=require("./_baseFlatten");function flatten(array){var length=array==null?0:array.length;return length?baseFlatten(array,1):[]}module.exports=flatten},{"./_baseFlatten":44}],152:[function(require,module,exports){var arrayEach=require("./_arrayEach"),baseEach=require("./_baseEach"),castFunction=require("./_castFunction"),isArray=require("./isArray");function forEach(collection,iteratee){var func=isArray(collection)?arrayEach:baseEach;return func(collection,castFunction(iteratee))}module.exports=forEach},{"./_arrayEach":32,"./_baseEach":42,"./_castFunction":73,"./isArray":157}],153:[function(require,module,exports){var baseGet=require("./_baseGet");function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result}module.exports=get},{"./_baseGet":47}],154:[function(require,module,exports){var baseHasIn=require("./_baseHasIn"),hasPath=require("./_hasPath");function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn)}module.exports=hasIn},{"./_baseHasIn":50,"./_hasPath":96}],155:[function(require,module,exports){function identity(value){return value}module.exports=identity},{}],156:[function(require,module,exports){var baseIsArguments=require("./_baseIsArguments"),isObjectLike=require("./isObjectLike");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},{"./_baseIsArguments":51,"./isObjectLike":163}],157:[function(require,module,exports){var isArray=Array.isArray;module.exports=isArray},{}],158:[function(require,module,exports){var isFunction=require("./isFunction"),isLength=require("./isLength");function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}module.exports=isArrayLike},{"./isFunction":160,"./isLength":161}],159:[function(require,module,exports){var root=require("./_root"),stubFalse=require("./stubFalse");var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Buffer:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer},{"./_root":130,"./stubFalse":175}],160:[function(require,module,exports){var baseGetTag=require("./_baseGetTag"),isObject=require("./isObject");var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}module.exports=isFunction},{"./_baseGetTag":49,"./isObject":162}],161:[function(require,module,exports){var MAX_SAFE_INTEGER=9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}module.exports=isLength},{}],162:[function(require,module,exports){function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}module.exports=isObject},{}],163:[function(require,module,exports){function isObjectLike(value){return value!=null&&typeof value=="object"}module.exports=isObjectLike},{}],164:[function(require,module,exports){var baseGetTag=require("./_baseGetTag"),getPrototype=require("./_getPrototype"),isObjectLike=require("./isObjectLike");var objectTag="[object Object]";var funcProto=Function.prototype,objectProto=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var objectCtorString=funcToString.call(Object);function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false}var proto=getPrototype(value);if(proto===null){return true}var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}module.exports=isPlainObject},{"./_baseGetTag":49,"./_getPrototype":91,"./isObjectLike":163}],165:[function(require,module,exports){var baseGetTag=require("./_baseGetTag"),isObjectLike=require("./isObjectLike");var symbolTag="[object Symbol]";function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag}module.exports=isSymbol},{"./_baseGetTag":49,"./isObjectLike":163}],166:[function(require,module,exports){var baseIsTypedArray=require("./_baseIsTypedArray"),baseUnary=require("./_baseUnary"),nodeUtil=require("./_nodeUtil");var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},{"./_baseIsTypedArray":56,"./_baseUnary":71,"./_nodeUtil":126}],167:[function(require,module,exports){var arrayLikeKeys=require("./_arrayLikeKeys"),baseKeys=require("./_baseKeys"),isArrayLike=require("./isArrayLike");function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}module.exports=keys},{"./_arrayLikeKeys":34,"./_baseKeys":58,"./isArrayLike":158}],168:[function(require,module,exports){var arrayLikeKeys=require("./_arrayLikeKeys"),baseKeysIn=require("./_baseKeysIn"),isArrayLike=require("./isArrayLike");function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object)}module.exports=keysIn},{"./_arrayLikeKeys":34,"./_baseKeysIn":59,"./isArrayLike":158}],169:[function(require,module,exports){var baseAssignValue=require("./_baseAssignValue"),baseForOwn=require("./_baseForOwn"),baseIteratee=require("./_baseIteratee");function mapKeys(object,iteratee){var result={};iteratee=baseIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value)});return result}module.exports=mapKeys},{"./_baseAssignValue":40,"./_baseForOwn":46,"./_baseIteratee":57}],170:[function(require,module,exports){var baseAssignValue=require("./_baseAssignValue"),baseForOwn=require("./_baseForOwn"),baseIteratee=require("./_baseIteratee");function mapValues(object,iteratee){var result={};iteratee=baseIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))});return result}module.exports=mapValues},{"./_baseAssignValue":40,"./_baseForOwn":46,"./_baseIteratee":57}],171:[function(require,module,exports){var MapCache=require("./_MapCache");var FUNC_ERROR_TEXT="Expected a function";function memoize(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT)}var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key)}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;module.exports=memoize},{"./_MapCache":23}],172:[function(require,module,exports){var basePick=require("./_basePick"),flatRest=require("./_flatRest");var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths)});module.exports=pick},{"./_basePick":62,"./_flatRest":85}],173:[function(require,module,exports){var baseProperty=require("./_baseProperty"),basePropertyDeep=require("./_basePropertyDeep"),isKey=require("./_isKey"),toKey=require("./_toKey");function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}module.exports=property},{"./_baseProperty":64,"./_basePropertyDeep":65,"./_isKey":105,"./_toKey":142}],174:[function(require,module,exports){function stubArray(){return[]}module.exports=stubArray},{}],175:[function(require,module,exports){function stubFalse(){return false}module.exports=stubFalse},{}],176:[function(require,module,exports){var toNumber=require("./toNumber");var INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308;function toFinite(value){if(!value){return value===0?value:0}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}return value===value?value:0}module.exports=toFinite},{"./toNumber":178}],177:[function(require,module,exports){var toFinite=require("./toFinite");function toInteger(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0}module.exports=toInteger},{"./toFinite":176}],178:[function(require,module,exports){var isObject=require("./isObject"),isSymbol=require("./isSymbol");var NAN=0/0;var reTrim=/^\s+|\s+$/g;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber(value){if(typeof value=="number"){return value}if(isSymbol(value)){return NAN}if(isObject(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject(other)?other+"":other}if(typeof value!="string"){return value===0?value:+value}value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}module.exports=toNumber},{"./isObject":162,"./isSymbol":165}],179:[function(require,module,exports){var baseToString=require("./_baseToString");function toString(value){return value==null?"":baseToString(value)}module.exports=toString},{"./_baseToString":70}],180:[function(require,module,exports){var arrayEach=require("./_arrayEach"),baseCreate=require("./_baseCreate"),baseForOwn=require("./_baseForOwn"),baseIteratee=require("./_baseIteratee"),getPrototype=require("./_getPrototype"),isArray=require("./isArray"),isBuffer=require("./isBuffer"),isFunction=require("./isFunction"),isObject=require("./isObject"),isTypedArray=require("./isTypedArray");function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee=baseIteratee(iteratee,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor:[]}else if(isObject(object)){accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{}}else{accumulator={}}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator}module.exports=transform},{"./_arrayEach":32,"./_baseCreate":41,"./_baseForOwn":46,"./_baseIteratee":57,"./_getPrototype":91,"./isArray":157,"./isBuffer":159,"./isFunction":160,"./isObject":162,"./isTypedArray":166}],"jsonapi-serializer":[function(require,module,exports){module.exports={Serializer:require("./lib/serializer"),Deserializer:require("./lib/deserializer"),Error:require("./lib/error")}},{"./lib/deserializer":3,"./lib/error":5,"./lib/serializer":8}]},{},[]);var JSONAPIDeserializer=require("jsonapi-serializer").Deserializer;var jsonapi={meta:{status:200,message:"Farm data successfully deleted"}};try{(new JSONAPIDeserializer).deserialize(jsonapi,function(err,json){setOutput(JSON.stringify(json,null,2))})}catch(err){setOutput(err.message)}function setOutput(str){document.getElementById("output").innerHTML=str;console.log(str)}},0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "requirebin-sketch", | |
"version": "1.0.0", | |
"dependencies": { | |
"jsonapi-serializer": "3.5.3" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- contents of this file will be placed inside the <body> --> | |
<h1>Output:</h1> | |
<pre id="output"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- contents of this file will be placed inside the <head> --> | |
<style> | |
pre { | |
margin: 32px; | |
border: 1px solid #dfdfdf; | |
padding: 32px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment