{"version":3,"sources":["/source-files/jsondiffpatch/node_modules/fiberglass/node_modules/browserify/node_modules/browser-pack/_prelude.js","/source-files/jsondiffpatch/src/main-formatters.js","/source-files/jsondiffpatch/src/formatters/index.js","/source-files/jsondiffpatch/src/environment.js","/source-files/jsondiffpatch/src/formatters/base.js","/source-files/jsondiffpatch/src/formatters/annotated.js","/source-files/jsondiffpatch/src/formatters/jsonpatch.js","/source-files/jsondiffpatch/src/formatters/html.js"],"names":["module","exports","require","environment","base","html","annotated","jsonpatch","isBrowser","consoleModuleName","console","window","isArray","Array","a","getObjectKeys","Object","keys","obj","names","property","prototype","hasOwnProperty","call","push","trimUnderscore","str","substr","slice","arrayKeyToSortNumber","key","parseInt","arrayKeyComparer","key1","key2","BaseFormatter","format","delta","left","context","this","prepareContext","recurse","finalize","buffer","out","apply","arguments","typeFormattterNotFound","deltaType","Error","typeFormattterErrorFormatter","err","toString","join","leftKey","movedFrom","isLast","useMoveOriginHere","leftValue","value","type","getDeltaType","nodeType","_t","nodeBegin","rootBegin","typeFormattter","error","stack","nodeEnd","rootEnd","formatDeltaChildren","self","forEachDeltaKey","undefined","fn","name","arrayKeys","moveDestinations","includeMoveDestinations","sort","index","length","parseTextDiff","output","lines","split","i","l","line","lineOutput","pieces","location","exec","chr","pieceIndex","piecesLength","piece","pieceOutput","text","AnnotatedFormatter","indent","levels","indentLevel","indentPad","row","json","htmlNote","formatTextDiffString","format_unchanged","format_movedestination","format_node","wrapPropertyName","deltaAnnotations","added","formatLegend","modified","deleted","moved","textdiff","formatAnyChange","annotator","JSON","stringify","format_added","format_modified","format_deleted","format_moved","format_textdiff","defaultInstance","JSONFormatter","last","arr","sortBy","pred","opsByDescendingOrder","removeOps","b","splitA","path","splitB","compareByIndexDesc","partition","right","forEach","el","coll","reorderOps","jsonFormattedDiff","removeOpsOtherOps","operation","op","otherOps","removeOpsReverse","concat","named","movedestination","unchanged","textDiffLine","result","pushCurrentOp","val","currentPath","pop","indexA","indexB","lastA","lastB","isNaN","log","htmlEscape","replacements","replace","HtmlFormatter","formatValue","unescape","adjustArrows","node","document","getElementText","textContent","innerText","eachByQuery","query","elems","querySelectorAll","eachChildren","children","arrow","arrowParent","parentNode","svg","style","display","destinationElem","destination","querySelector","container","child","getAttribute","distance","offsetTop","setAttribute","Math","abs","top","curve","round","nodeClass","hasArrows","showUnchanged","show","delay","body","prefix","classes","showing","hiding","visible","hidden","list","classList","remove","add","setTimeout","intervalId","setInterval","clearInterval","hideUnchanged"],"mappings":"AAAA;ACCAA,OAAOC,QAAUC,QAAQ;;AEAzBD,QAAQO,UAA8B,mBAAXG;;AED3B,GAAIP,MAAOF,QAAQ,UACfiC,cAAgB/B,KAAK+B,cAErBkE,mBAAqB,WACvB7D,KAAKwC,yBAA0B,EAGjCqB,oBAAmBhF,UAAY,GAAIc,eAEnCkE,mBAAmBhF,UAAUoB,eAAiB,SAASF,GACrDJ,cAAcd,UAAUoB,eAAelB,KAAKiB,KAAMD,GAClDA,EAAQ+D,OAAS,SAASC,GACxB/D,KAAKgE,aAAehE,KAAKgE,aAAe,IACnB,mBAAXD,GAAyB,EAAIA,GACvC/D,KAAKiE,UAAY,GAAI5F,OAAM2B,KAAKgE,YAAc,GAAGlD,KAAK,iBAExDf,EAAQmE,IAAM,SAASC,EAAMC,GAC3BrE,EAAQM,IAAI,mHAEZN,EAAQM,IAAIN,EAAQkE,WACpBlE,EAAQM,IAAI,6CACZN,EAAQM,IAAI8D,GACZpE,EAAQM,IAAI,yDACZN,EAAQM,IAAI+D,GACZrE,EAAQM,IAAI,sBAIhBwD,mBAAmBhF,UAAU8B,6BAA+B,SAASZ,EAASa,GAC5Eb,EAAQmE,IAAI,GAAI,oCAAsCtD,EAAM,WAG9DiD,mBAAmBhF,UAAUwF,qBAAuB,SAAStE,EAASqB,GACpE,GAAI0B,GAAQ9C,KAAK4C,cAAcxB,EAC/BrB,GAAQM,IAAI,sCACZ,KAAK,GAAI2C,GAAI,EAAGC,EAAIH,EAAMH,OAAYM,EAAJ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Ac9G,UAAU2G,aAAe,SAAUzF,EAASF,GACxDE,EAAQ0H,cAAcL,EAAMrC,MAAOlF,EAAM,KAG3C8F,EAAc9G,UAAU4G,gBAAkB,WACxC,KAAM,mBAGRE,EAAc9G,UAAUe,OAAS,SAAUC,EAAOC,GAChD,GAAIC,KAGJ,OAFAC,MAAKC,eAAeF,GACpBC,KAAKE,QAAQH,EAASF,EAAOC,GACtBC,EAAQyH,QAIjB/J,QAAQkI,cAAgBA,CAExB,IAAID,GAWAY,EAAqB,SAAUuB,EAAQC,GACzC,GAAIC,GAAQxI,SAASsI,EAAQ,IACzBG,EAAQzI,SAASuI,EAAQ,GAC7B,OAAMG,OAAMF,IAAUE,MAAMD,GAGnB,EAFAA,EAAQD,GAyCfnI,EAAS,SAAUC,EAAOC,GAI5B,MAHK4F,KACHA,EAAkB,GAAIC,IAEjBiB,EAAWlB,EAAgB9F,OAAOC,EAAOC,IAGlDrC,SAAQyK,IAAM,SAAUrI,EAAOC,GAC7B5B,QAAQgK,IAAItI,EAAOC,EAAOC,KAG5BrC,QAAQmC,OAASA","file":"bundle.js","sourcesContent":["(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' +\n '
');\n    context.out(context.indentPad);\n    context.out('
');\n    context.out(json);\n    context.out('
');\n context.out(htmlNote);\n context.out('
');\n };\n};\n\nAnnotatedFormatter.prototype.typeFormattterErrorFormatter = function(context, err) {\n context.row('', '
' + err + '
');\n};\n\nAnnotatedFormatter.prototype.formatTextDiffString = function(context, value) {\n var lines = this.parseTextDiff(value);\n context.out('');\n};\n\nAnnotatedFormatter.prototype.rootBegin = function(context, type, nodeType) {\n context.out('');\n if (type === 'node') {\n context.row('{');\n context.indent();\n }\n if (nodeType === 'array') {\n context.row('\"_t\": \"a\",', 'Array delta (member names indicate array indices)');\n }\n};\n\nAnnotatedFormatter.prototype.rootEnd = function(context, type) {\n if (type === 'node') {\n context.indent(-1);\n context.row('}');\n }\n context.out('
');\n};\n\nAnnotatedFormatter.prototype.nodeBegin = function(context, key, leftKey, type, nodeType) {\n context.row('"' + key + '": {');\n if (type === 'node') {\n context.indent();\n }\n if (nodeType === 'array') {\n context.row('\"_t\": \"a\",', 'Array delta (member names indicate array indices)');\n }\n};\n\nAnnotatedFormatter.prototype.nodeEnd = function(context, key, leftKey, type, nodeType, isLast) {\n if (type === 'node') {\n context.indent(-1);\n }\n context.row('}' + (isLast ? '' : ','));\n};\n\n/* jshint camelcase: false */\n\nAnnotatedFormatter.prototype.format_unchanged = function() {\n return;\n};\n\nAnnotatedFormatter.prototype.format_movedestination = function() {\n return;\n};\n\n\nAnnotatedFormatter.prototype.format_node = function(context, delta, left) {\n // recurse\n this.formatDeltaChildren(context, delta, left);\n};\n\nvar wrapPropertyName = function(name) {\n return '
"' + name + '"
';\n};\n\nvar deltaAnnotations = {\n added: function(delta, left, key, leftKey) {\n var formatLegend = '
([newValue])
';\n if (typeof leftKey === 'undefined') {\n return 'new value' + formatLegend;\n }\n if (typeof leftKey === 'number') {\n return 'insert at index ' + leftKey + formatLegend;\n }\n return 'add property ' + wrapPropertyName(leftKey) + formatLegend;\n },\n modified: function(delta, left, key, leftKey) {\n var formatLegend = '
([previousValue, newValue])
';\n if (typeof leftKey === 'undefined') {\n return 'modify value' + formatLegend;\n }\n if (typeof leftKey === 'number') {\n return 'modify at index ' + leftKey + formatLegend;\n }\n return 'modify property ' + wrapPropertyName(leftKey) + formatLegend;\n },\n deleted: function(delta, left, key, leftKey) {\n var formatLegend = '
([previousValue, 0, 0])
';\n if (typeof leftKey === 'undefined') {\n return 'delete value' + formatLegend;\n }\n if (typeof leftKey === 'number') {\n return 'remove index ' + leftKey + formatLegend;\n }\n return 'delete property ' + wrapPropertyName(leftKey) + formatLegend;\n },\n moved: function(delta, left, key, leftKey) {\n return 'move from index ' +\n leftKey + ' to ' +\n 'index ' +\n delta[1] + '';\n },\n textdiff: function(delta, left, key, leftKey) {\n var location = (typeof leftKey === 'undefined') ?\n '' : (\n (typeof leftKey === 'number') ?\n ' at index ' + leftKey :\n ' at property ' + wrapPropertyName(leftKey)\n );\n return 'text diff' + location + ', format is ' +\n '' +\n 'a variation of Unidiff';\n }\n};\n\nvar formatAnyChange = function(context, delta) {\n var deltaType = this.getDeltaType(delta);\n var annotator = deltaAnnotations[deltaType];\n var htmlNote = annotator && annotator.apply(annotator,\n Array.prototype.slice.call(arguments, 1));\n var json = JSON.stringify(delta, null, 2);\n if (deltaType === 'textdiff') {\n // split text diffs lines\n json = json.split('\\\\n').join('\\\\n\"+\\n \"');\n }\n context.indent();\n context.row(json, htmlNote);\n context.indent(-1);\n};\n\nAnnotatedFormatter.prototype.format_added = formatAnyChange;\nAnnotatedFormatter.prototype.format_modified = formatAnyChange;\nAnnotatedFormatter.prototype.format_deleted = formatAnyChange;\nAnnotatedFormatter.prototype.format_moved = formatAnyChange;\nAnnotatedFormatter.prototype.format_textdiff = formatAnyChange;\n\n/* jshint camelcase: true */\n\nexports.AnnotatedFormatter = AnnotatedFormatter;\n\nvar defaultInstance;\n\nexports.format = function(delta, left) {\n if (!defaultInstance) {\n defaultInstance = new AnnotatedFormatter();\n }\n return defaultInstance.format(delta, left);\n};\n","(function () {\n var base = require('./base');\n var BaseFormatter = base.BaseFormatter;\n\n var named = {\n added: 'add',\n deleted: 'remove',\n modified: 'replace',\n moved: 'moved',\n movedestination: 'movedestination',\n unchanged: 'unchanged',\n error: 'error',\n textDiffLine: 'textDiffLine'\n };\n\n function JSONFormatter() {\n this.includeMoveDestinations = false;\n }\n\n JSONFormatter.prototype = new BaseFormatter();\n\n JSONFormatter.prototype.prepareContext = function (context) {\n BaseFormatter.prototype.prepareContext.call(this, context);\n context.result = [];\n context.path = [];\n context.pushCurrentOp = function (op, value) {\n var val = {\n op: op,\n path: this.currentPath()\n };\n if (typeof value !== 'undefined') {\n val.value = value;\n }\n this.result.push(val);\n };\n\n context.currentPath = function () {\n return '/' + this.path.join('/');\n };\n };\n\n JSONFormatter.prototype.typeFormattterErrorFormatter = function (context, err) {\n context.out('[ERROR]' + err);\n };\n\n JSONFormatter.prototype.rootBegin = function () {\n };\n\n JSONFormatter.prototype.rootEnd = function () {\n };\n\n JSONFormatter.prototype.nodeBegin = function (context, key, leftKey) {\n context.path.push(leftKey);\n };\n\n JSONFormatter.prototype.nodeEnd = function (context) {\n context.path.pop();\n };\n\n /* jshint camelcase: false */\n\n JSONFormatter.prototype.format_unchanged = function (context, delta, left) {\n if (typeof left === 'undefined') {\n return;\n }\n context.pushCurrentOp(named.unchanged, left);\n };\n\n JSONFormatter.prototype.format_movedestination = function (context, delta, left) {\n if (typeof left === 'undefined') {\n return;\n }\n context.pushCurrentOp(named.movedestination, left);\n };\n\n JSONFormatter.prototype.format_node = function (context, delta, left) {\n this.formatDeltaChildren(context, delta, left);\n };\n\n JSONFormatter.prototype.format_added = function (context, delta) {\n context.pushCurrentOp(named.added, delta[0]);\n };\n\n JSONFormatter.prototype.format_modified = function (context, delta) {\n context.pushCurrentOp(named.modified, delta[1]);\n };\n\n JSONFormatter.prototype.format_deleted = function (context) {\n context.pushCurrentOp(named.deleted);\n };\n\n JSONFormatter.prototype.format_moved = function (context, delta) {\n context.pushCurrentOp(named.moved, delta[1]);\n };\n\n JSONFormatter.prototype.format_textdiff = function () {\n throw 'not implimented';\n };\n\n JSONFormatter.prototype.format = function (delta, left) {\n var context = {};\n this.prepareContext(context);\n this.recurse(context, delta, left);\n return context.result;\n };\n /* jshint camelcase: true */\n\n exports.JSONFormatter = JSONFormatter;\n\n var defaultInstance;\n\n function last(arr) {\n return arr[arr.length - 1];\n }\n\n function sortBy(arr, pred) {\n arr.sort(pred);\n return arr;\n }\n\n var compareByIndexDesc = function (indexA, indexB) {\n var lastA = parseInt(indexA, 10);\n var lastB = parseInt(indexB, 10);\n if (!(isNaN(lastA) || isNaN(lastB))) {\n return lastB - lastA;\n } else {\n return 0;\n }\n };\n\n function opsByDescendingOrder(removeOps) {\n return sortBy(removeOps, function (a, b) {\n var splitA = a.path.split('/');\n var splitB = b.path.split('/');\n if (splitA.length !== splitB.length) {\n return splitA.length - splitB.length;\n } else {\n return compareByIndexDesc(last(splitA), last(splitB));\n }\n });\n }\n\n function partition(arr, pred) {\n var left = [];\n var right = [];\n\n arr.forEach(function (el) {\n var coll = pred(el) ? left : right;\n coll.push(el);\n });\n return [left, right];\n }\n\n function reorderOps(jsonFormattedDiff) {\n var removeOpsOtherOps = partition(jsonFormattedDiff, function (operation) {\n return operation.op === 'remove';\n });\n var removeOps = removeOpsOtherOps[0];\n var otherOps = removeOpsOtherOps[1];\n\n var removeOpsReverse = opsByDescendingOrder(removeOps);\n return removeOpsReverse.concat(otherOps);\n }\n\n\n var format = function (delta, left) {\n if (!defaultInstance) {\n defaultInstance = new JSONFormatter();\n }\n return reorderOps(defaultInstance.format(delta, left));\n };\n\n exports.log = function (delta, left) {\n console.log(format(delta, left));\n };\n\n exports.format = format;\n})();\n","var base = require('./base');\nvar BaseFormatter = base.BaseFormatter;\n\nvar HtmlFormatter = function HtmlFormatter() {};\n\nHtmlFormatter.prototype = new BaseFormatter();\n\nfunction htmlEscape(text) {\n var html = text;\n var replacements = [\n [/&/g, '&'],\n [//g, '>'],\n [/'/g, '''],\n [/\"/g, '"']\n ];\n for (var i = 0; i < replacements.length; i++) {\n html = html.replace(replacements[i][0], replacements[i][1]);\n }\n return html;\n}\n\nHtmlFormatter.prototype.typeFormattterErrorFormatter = function(context, err) {\n context.out('
' + err + '
');\n};\n\nHtmlFormatter.prototype.formatValue = function(context, value) {\n context.out('
' + htmlEscape(JSON.stringify(value, null, 2)) + '
');\n};\n\nHtmlFormatter.prototype.formatTextDiffString = function(context, value) {\n var lines = this.parseTextDiff(value);\n context.out('');\n};\n\nvar adjustArrows = function jsondiffpatchHtmlFormatterAdjustArrows(node) {\n node = node || document;\n var getElementText = function(el) {\n return el.textContent || el.innerText;\n };\n var eachByQuery = function(el, query, fn) {\n var elems = el.querySelectorAll(query);\n for (var i = 0, l = elems.length; i < l; i++) {\n fn(elems[i]);\n }\n };\n var eachChildren = function(el, fn) {\n for (var i = 0, l = el.children.length; i < l; i++) {\n fn(el.children[i], i);\n }\n };\n eachByQuery(node, '.jsondiffpatch-arrow', function(arrow) {\n var arrowParent = arrow.parentNode;\n var svg = arrow.children[0],\n path = svg.children[1];\n svg.style.display = 'none';\n var destination = getElementText(arrowParent.querySelector('.jsondiffpatch-moved-destination'));\n var container = arrowParent.parentNode;\n var destinationElem;\n eachChildren(container, function(child) {\n if (child.getAttribute('data-key') === destination) {\n destinationElem = child;\n }\n });\n if (!destinationElem) {\n return;\n }\n try {\n var distance = destinationElem.offsetTop - arrowParent.offsetTop;\n svg.setAttribute('height', Math.abs(distance) + 6);\n arrow.style.top = (-8 + (distance > 0 ? 0 : distance)) + 'px';\n var curve = distance > 0 ?\n 'M30,0 Q-10,' + Math.round(distance / 2) + ' 26,' + (distance - 4) :\n 'M30,' + (-distance) + ' Q-10,' + Math.round(-distance / 2) + ' 26,4';\n path.setAttribute('d', curve);\n svg.style.display = '';\n } catch (err) {\n return;\n }\n });\n};\n\nHtmlFormatter.prototype.rootBegin = function(context, type, nodeType) {\n var nodeClass = 'jsondiffpatch-' + type +\n (nodeType ? ' jsondiffpatch-child-node-type-' + nodeType : '');\n context.out('
');\n};\n\nHtmlFormatter.prototype.rootEnd = function(context) {\n context.out('
' + (context.hasArrows ?\n ('') : ''));\n};\n\nHtmlFormatter.prototype.nodeBegin = function(context, key, leftKey, type, nodeType) {\n var nodeClass = 'jsondiffpatch-' + type +\n (nodeType ? ' jsondiffpatch-child-node-type-' + nodeType : '');\n context.out('
  • ' +\n '
    ' + leftKey + '
    ');\n};\n\n\nHtmlFormatter.prototype.nodeEnd = function(context) {\n context.out('
  • ');\n};\n\n/* jshint camelcase: false */\n\nHtmlFormatter.prototype.format_unchanged = function(context, delta, left) {\n if (typeof left === 'undefined') {\n return;\n }\n context.out('
    ');\n this.formatValue(context, left);\n context.out('
    ');\n};\n\nHtmlFormatter.prototype.format_movedestination = function(context, delta, left) {\n if (typeof left === 'undefined') {\n return;\n }\n context.out('
    ');\n this.formatValue(context, left);\n context.out('
    ');\n};\n\nHtmlFormatter.prototype.format_node = function(context, delta, left) {\n // recurse\n var nodeType = (delta._t === 'a') ? 'array' : 'object';\n context.out('');\n};\n\nHtmlFormatter.prototype.format_added = function(context, delta) {\n context.out('
    ');\n this.formatValue(context, delta[0]);\n context.out('
    ');\n};\n\nHtmlFormatter.prototype.format_modified = function(context, delta) {\n context.out('
    ');\n this.formatValue(context, delta[0]);\n context.out('
    ' +\n '
    ');\n this.formatValue(context, delta[1]);\n context.out('
    ');\n};\n\nHtmlFormatter.prototype.format_deleted = function(context, delta) {\n context.out('
    ');\n this.formatValue(context, delta[0]);\n context.out('
    ');\n};\n\nHtmlFormatter.prototype.format_moved = function(context, delta) {\n context.out('
    ');\n this.formatValue(context, delta[0]);\n context.out('
    ' + delta[1] + '
    ');\n\n // draw an SVG arrow from here to move destination\n context.out(\n /*jshint multistr: true */\n '
    \\\n \\\n \\\n \\\n \\\n \\\n \\\n \\\n \\\n
    ');\n context.hasArrows = true;\n};\n\nHtmlFormatter.prototype.format_textdiff = function(context, delta) {\n context.out('
    ');\n this.formatTextDiffString(context, delta[0]);\n context.out('
    ');\n};\n\n/* jshint camelcase: true */\n\nvar showUnchanged = function(show, node, delay) {\n var el = node || document.body;\n var prefix = 'jsondiffpatch-unchanged-';\n var classes = {\n showing: prefix + 'showing',\n hiding: prefix + 'hiding',\n visible: prefix + 'visible',\n hidden: prefix + 'hidden',\n };\n var list = el.classList;\n if (!list) {\n return;\n }\n if (!delay) {\n list.remove(classes.showing);\n list.remove(classes.hiding);\n list.remove(classes.visible);\n list.remove(classes.hidden);\n if (show === false) {\n list.add(classes.hidden);\n }\n return;\n }\n if (show === false) {\n list.remove(classes.showing);\n list.add(classes.visible);\n setTimeout(function() {\n list.add(classes.hiding);\n }, 10);\n } else {\n list.remove(classes.hiding);\n list.add(classes.showing);\n list.remove(classes.hidden);\n }\n var intervalId = setInterval(function() {\n adjustArrows(el);\n }, 100);\n setTimeout(function() {\n list.remove(classes.showing);\n list.remove(classes.hiding);\n if (show === false) {\n list.add(classes.hidden);\n list.remove(classes.visible);\n } else {\n list.add(classes.visible);\n list.remove(classes.hidden);\n }\n setTimeout(function() {\n list.remove(classes.visible);\n clearInterval(intervalId);\n }, delay + 400);\n }, delay);\n};\n\nvar hideUnchanged = function(node, delay) {\n return showUnchanged(false, node, delay);\n};\n\nexports.HtmlFormatter = HtmlFormatter;\n\nexports.showUnchanged = showUnchanged;\n\nexports.hideUnchanged = hideUnchanged;\n\nvar defaultInstance;\n\nexports.format = function(delta, left) {\n if (!defaultInstance) {\n defaultInstance = new HtmlFormatter();\n }\n return defaultInstance.format(delta, left);\n};\n"]}