diff2html 3.1.18 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -316,6 +316,7 @@ highlightCode(): void
316
316
  - `highlight`: syntax highlight the code on the diff: `true` or `false`, default is `true`
317
317
  - `fileListToggle`: allow the file summary list to be toggled: `true` or `false`, default is `true`
318
318
  - `fileListStartVisible`: choose if the file summary list starts visible: `true` or `false`, default is `false`
319
+ - `fileContentToggle`: allow each file contents to be toggled: `true` or `false`, default is `true`
319
320
 
320
321
  > NOTE: All the options from Diff2Html are also valid configurations in Diff2HtmlUI
321
322
 
@@ -1 +1 @@
1
- .d2h-wrapper{text-align:left}.d2h-file-header{height:35px;padding:5px 10px;border-bottom:1px solid #d8d8d8;background-color:#f7f7f7}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:auto;font-size:14px}.d2h-lines-added{text-align:right;border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;vertical-align:middle}.d2h-lines-deleted{text-align:left;border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;padding:2px;vertical-align:middle;margin-left:1px}.d2h-file-name-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:15px}.d2h-file-name{white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px;margin-bottom:1em}.d2h-diff-table{width:100%;border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px}.d2h-files-diff{display:block;width:100%;height:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%;margin-right:-4px;margin-bottom:-8px}.d2h-code-line{padding:0 8em}.d2h-code-line,.d2h-code-side-line{display:inline-block;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.d2h-code-side-line{padding:0 4.5em}.d2h-code-line-ctn{display:inline-block;background:none;padding:0;word-wrap:normal;white-space:pre;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;width:100%;vertical-align:middle}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{display:inline-block;margin-top:-1px;text-decoration:none;border-radius:.2em;vertical-align:middle}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{display:inline;background:none;padding:0;word-wrap:normal;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{-webkit-box-sizing:border-box;box-sizing:border-box;width:3.5em;overflow:hidden;text-overflow:ellipsis;padding:0 .5em}.line-num2{float:right}.d2h-code-linenumber{-webkit-box-sizing:border-box;box-sizing:border-box;width:7.5em;position:absolute;display:inline-block;background-color:#fff;color:rgba(0,0,0,.3);text-align:right;border:solid #eee;border-width:0 1px;cursor:pointer}.d2h-code-linenumber:after{content:"\200b"}.d2h-code-side-linenumber{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:4em;background-color:#fff;color:rgba(0,0,0,.3);text-align:right;border:solid #eee;border-width:0 1px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding:0 .5em}.d2h-code-side-linenumber:after{content:"\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;color:rgba(0,0,0,.3);border-color:#d5e4f2}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{text-decoration:none;color:#3572b0}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;padding:0;margin:0}.d2h-file-list>li{border-bottom:1px solid #ddd;padding:5px 10px;margin:0}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{display:none;font-size:10px;cursor:pointer}.d2h-icon{vertical-align:middle;margin-right:10px;fill:currentColor}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px;background-color:#fff}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}
1
+ .d2h-d-none{display:none}.d2h-wrapper{text-align:left}.d2h-file-header{height:35px;padding:5px 10px;border-bottom:1px solid #d8d8d8;background-color:#f7f7f7;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif}.d2h-file-header,.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex}.d2h-file-stats{margin-left:auto;font-size:14px}.d2h-lines-added{text-align:right;border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;vertical-align:middle}.d2h-lines-deleted{text-align:left;border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;padding:2px;vertical-align:middle;margin-left:1px}.d2h-file-name-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;font-size:15px}.d2h-file-name{white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}.d2h-file-wrapper{margin-bottom:1em}.d2h-file-collapse,.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;font-size:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{width:100%;border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px}.d2h-files-diff{display:block;width:100%;height:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%;margin-right:-4px;margin-bottom:-8px}.d2h-code-line{padding:0 8em}.d2h-code-line,.d2h-code-side-line{display:inline-block;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.d2h-code-side-line{padding:0 4.5em}.d2h-code-line-ctn{display:inline-block;background:none;padding:0;word-wrap:normal;white-space:pre;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;width:100%;vertical-align:middle}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{display:inline-block;margin-top:-1px;text-decoration:none;border-radius:.2em;vertical-align:middle}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{display:inline;background:none;padding:0;word-wrap:normal;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{-webkit-box-sizing:border-box;box-sizing:border-box;width:3.5em;overflow:hidden;text-overflow:ellipsis;padding:0 .5em}.line-num2{float:right}.d2h-code-linenumber{-webkit-box-sizing:border-box;box-sizing:border-box;width:7.5em;position:absolute;display:inline-block;background-color:#fff;color:rgba(0,0,0,.3);text-align:right;border:solid #eee;border-width:0 1px;cursor:pointer}.d2h-code-linenumber:after{content:"\200b"}.d2h-code-side-linenumber{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:4em;background-color:#fff;color:rgba(0,0,0,.3);text-align:right;border:solid #eee;border-width:0 1px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding:0 .5em}.d2h-code-side-linenumber:after{content:"\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;color:rgba(0,0,0,.3);border-color:#d5e4f2}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{text-decoration:none;color:#3572b0}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;padding:0;margin:0}.d2h-file-list>li{border-bottom:1px solid #ddd;padding:5px 10px;margin:0}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{display:none;font-size:10px;cursor:pointer}.d2h-icon{vertical-align:middle;margin-right:10px;fill:currentColor}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px;background-color:#fff}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(t.LineType||(t.LineType={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var a=l(n(10)),s=n(3),f=l(n(2)),u=n(0);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:u.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:u.DiffStyleType.WORD};var c=f.newDistanceFn((function(e){return e.value})),d=f.newMatcherFn(c);function h(e){return-1!==e.indexOf("dev/null")}function p(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function g(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function b(e,t,n){void 0===n&&(n=!0);var i=function(e){return e?2:1}(t);return{prefix:e.substring(0,i),content:n?g(e.substring(i)):e.substring(i)}}function v(e){var t=s.unifyPath(e.oldName),n=s.unifyPath(e.newName);if(t===n||h(t)||h(n))return h(n)?t:n;for(var i=[],r=[],o=t.split("/"),l=n.split("/"),a=0,f=o.length-1,u=l.length-1;a<f&&a<u&&o[a]===l[a];)i.push(l[a]),a+=1;for(;f>a&&u>a&&o[f]===l[u];)r.unshift(l[u]),f-=1,u-=1;var c=i.join("/"),d=r.join("/"),p=o.slice(a,f+1).join("/"),g=l.slice(a,u+1).join("/");return c.length&&d.length?c+"/{"+p+" → "+g+"}/"+d:c.length?c+"/{"+p+" → "+g+"}":d.length?"{"+p+" → "+g+"}/"+d:t+" → "+n}t.toCSSClass=function(e){switch(e){case u.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case u.LineType.INSERT:return t.CSSLineClass.INSERTS;case u.LineType.DELETE:return t.CSSLineClass.DELETES}},t.escapeForHtml=g,t.deconstructLine=b,t.filenameDiff=v,t.getHtmlId=function(e){return"d2h-"+s.hashCode(v(e)).toString().slice(-6)},t.getFileIcon=function(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t},t.diffHighlight=function(e,n,r,o){void 0===o&&(o={});var l=i(i({},t.defaultRenderConfig),o),s=l.matching,f=l.maxLineLengthHighlight,u=l.matchWordsThreshold,h=l.diffStyle,v=b(e,r,!1),m=b(n,r,!1);if(v.content.length>f||m.content.length>f)return{oldLine:{prefix:v.prefix,content:g(v.content)},newLine:{prefix:m.prefix,content:g(m.content)}};var y="char"===h?a.diffChars(v.content,m.content):a.diffWordsWithSpace(v.content,m.content),w=[];if("word"===h&&"words"===s){var S=y.filter((function(e){return e.removed})),L=y.filter((function(e){return e.added}));d(L,S).forEach((function(e){1===e[0].length&&1===e[1].length&&(c(e[0][0],e[1][0])<u&&(w.push(e[0][0]),w.push(e[1][0])))}))}var x,C=y.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,i=w.indexOf(t)>-1?' class="d2h-change"':"",r=g(t.value);return null!==n?e+"<"+n+i+">"+r+"</"+n+">":""+e+r}),"");return{oldLine:{prefix:v.prefix,content:(x=C,x.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:m.prefix,content:p(C)}}}},function(e,t,n){"use strict";function i(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,i,r=[];for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=i,t.newDistanceFn=function(e){return function(t,n){var r=e(t).trim(),o=e(n).trim();return i(r,o)/(r.length+o.length)}},t.newMatcherFn=function(e){return function t(n,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var l=function(t,n,i){void 0===i&&(i=new Map);for(var r,o=1/0,l=0;l<t.length;++l)for(var a=0;a<n.length;++a){var s=JSON.stringify([t[l],n[a]]),f=void 0;i.has(s)&&(f=i.get(s))||(f=e(t[l],n[a]),i.set(s,f)),f<o&&(r={indexA:l,indexB:a,score:o=f})}return r}(n,i,o);if(!l||n.length+i.length<3)return[[n,i]];var a=n.slice(0,l.indexA),s=i.slice(0,l.indexB),f=[n[l.indexA]],u=[i[l.indexB]],c=l.indexA+1,d=l.indexB+1,h=n.slice(c),p=i.slice(d),g=t(a,s,r+1,o),b=t(f,u,r+1,o),v=t(h,p,r+1,o),m=b;return(l.indexA>0||l.indexB>0)&&(m=g.concat(m)),(n.length>c||i.length>d)&&(m=m.concat(v)),m}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var i=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");t.escapeForRegExp=function(e){return e.replace(i,"\\$&")},t.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},t.hashCode=function(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i}},function(e,t,n){var i=n(14);i.Template=n(15).Template,i.template=i.Template,e.exports=i},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var r=n(6),o=n(7);t.defaultDiff2HtmlUIConfig=i(i({},o.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,smartSelection:!0});var l=function(){function e(e,n,r,l){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?o.html(n,this.config):e.innerHTML,this.targetElement=e,void 0!==l&&(this.hljs=l)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible)},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],i=t[1];if(void 0!==n&&void 0!==i){var r=function(e){null!==e&&null!==e.target&&(e.target===n?(i.scrollTop=n.scrollTop,i.scrollLeft=n.scrollLeft):(n.scrollTop=i.scrollTop,n.scrollLeft=i.scrollLeft))};n.addEventListener("scroll",r),i.addEventListener("scroll",r)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),i=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==i){var r=function(){t.style.display="none",n.style.display="inline",i.style.display="block"},o=function(){t.style.display="inline",n.style.display="none",i.style.display="none"};t.addEventListener("click",(function(){return r()})),n.addEventListener("click",(function(){return o()}));var l=this.getHashTag();"files-summary-show"===l?r():"files-summary-hide"===l?o():e?r():o()}},e.prototype.highlightCode=function(){var e=this;if(null===this.hljs)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(t){var n,i;t.querySelectorAll(".d2h-code-line-ctn").forEach((function(o){if(null!==e.hljs){var l=o.textContent,a=o.parentNode;if(null!==l&&null!==a&&e.isElement(a)){var s=a.classList.contains("d2h-del")?n:i,f=t.getAttribute("data-lang"),u=f&&e.hljs.getLanguage(f)?e.hljs.highlight(f,l,!0,s):e.hljs.highlightAuto(l);e.instanceOfHighlightResult(u)&&(a.classList.contains("d2h-del")?n=u.top:(a.classList.contains("d2h-ins")||(n=u.top),i=u.top));var c=r.nodeStream(o);if(c.length){var d=document.createElementNS("http://www.w3.org/1999/xhtml","div");d.innerHTML=u.value,u.value=r.mergeStreams(c,r.nodeStream(d),l)}o.classList.add("hljs"),u.language&&o.classList.add(u.language),o.innerHTML=u.value}}}))}))},e.prototype.smartSelection=function(){console.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.instanceOfHighlightResult=function(e){return"top"in e},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){var t;return null!==e&&void 0!==(null===(t=e)||void 0===t?void 0:t.classList)},e}();t.Diff2HtmlUI=l},function(e,t,n){"use strict";function i(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function r(e){return e.nodeName.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeStreams=t.nodeStream=void 0,t.nodeStream=function(e){var t=[],n=function(e,i){for(var o=e.firstChild;o;o=o.nextSibling)3===o.nodeType&&null!==o.nodeValue?i+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=n(o,i),r(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i};return n(e,0),t},t.mergeStreams=function(e,t,n){var o=0,l="",a=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function f(e){if(null===(t=e)||void 0===(null===(n=t)||void 0===n?void 0:n.attributes))throw new Error("Node is not an Element");var t,n;l+="<"+r(e)+" "+Array().map.call(e.attributes,(function(e){return e.nodeName+'="'+i(e.value).replace(/"/g,"&quot;")+'"'})).join(" ")+">"}function u(e){l+="</"+r(e)+">"}function c(e){("start"===e.event?f:u)(e.node)}for(;e.length||t.length;){var d=s();if(l+=i(n.substring(o,d[0].offset)),o=d[0].offset,d===e){a.reverse().forEach(u);do{c(d.splice(0,1)[0]),d=s()}while(d===e&&d.length&&d[0].offset===o);a.reverse().forEach(f)}else"start"===d[0].event?a.push(d[0].node):a.pop(),c(d.splice(0,1)[0])}return l+i(n.substr(o))}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var s=l(n(8)),f=l(n(9)),u=l(n(11)),c=l(n(12)),d=n(0),h=a(n(13));t.defaultDiff2HtmlConfig=i(i(i({},u.defaultLineByLineRendererConfig),c.defaultSideBySideRendererConfig),{outputFormat:d.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=function(e,n){return void 0===n&&(n={}),s.parse(e,i(i({},t.defaultDiff2HtmlConfig),n))},t.html=function(e,n){void 0===n&&(n={});var r=i(i({},t.defaultDiff2HtmlConfig),n),o="string"==typeof e?s.parse(e,r):e,l=new h.default(r);return(r.drawFileList?f.render(o,l):"")+("side-by-side"===r.outputFormat?new c.default(l,r).render(o):new u.default(l,r).render(o))}},function(e,t,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],l=0,a=o.length;l<a;l++,r++)i[r]=o[l];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=n(0),o=n(3);function l(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function a(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var s=["a/","b/","i/","w/","c/","o/"];function f(e,t,n){var r=void 0!==n?i(s,[n]):s,l=((t?new RegExp("^"+o.escapeForRegExp(t)+' "?(.+?)"?$'):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],a=void 0===l?"":l,f=r.find((function(e){return 0===a.indexOf(e)}));return(f?a.slice(f.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}t.parse=function(e,t){void 0===t&&(t={});var n=[],i=null,o=null,s=null,u=null,c=null,d=null,h=null,p=/^old mode (\d{6})/,g=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,v=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,S=/^rename to "?(.+)"?/,L=/^similarity index (\d+)%/,x=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,N=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,O=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,_=/^new file mode (\d{6})/,H=/^deleted file mode (\d{6}),(\d{6})/,j=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function k(){null!==o&&null!==i&&(i.blocks.push(o),o=null)}function P(){null!==i&&(i.oldName||null===d||(i.oldName=d),i.newName||null===h||(i.newName=h),i.newName&&(n.push(i),i=null)),d=null,h=null}function F(){k(),P(),i={blocks:[],deletedLines:0,addedLines:0}}function M(e){var t;k(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,s=parseInt(t[1],10),c=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,s=parseInt(t[1],10),u=parseInt(t[2],10),c=parseInt(t[3],10)):(e.startsWith("@@")&&console.error("Failed to parse lines, starting in 0!"),s=0,c=0,i.isCombined=!1)),o={lines:[],oldStartLine:s,oldStartLine2:u,newStartLine:c,header:e}}return j.forEach((function(e,n){if(e&&!e.startsWith("*")){var u,k=j[n-1],P=j[n+1],I=j[n+2];if(e.startsWith("diff")){F();if((u=/^diff --git "?(.+)"? "?(.+)"?/.exec(e))&&(d=f(u[1],void 0,t.dstPrefix),h=f(u[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else{if((!i||!i.isGitDiff&&i&&e.startsWith("--- ")&&P.startsWith("+++ ")&&I.startsWith("@@"))&&F(),e.startsWith("--- ")&&P.startsWith("+++ ")||e.startsWith("+++ ")&&k.startsWith("--- ")){if(i&&!i.oldName&&e.startsWith("--- ")&&(u=function(e,t){return f(e,"---",t)}(e,t.srcPrefix)))return i.oldName=u,void(i.language=l(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(u=function(e,t){return f(e,"+++",t)}(e,t.dstPrefix)))return i.newName=u,void(i.language=l(i.newName,i.language))}if(i&&(e.startsWith("@@")||i.isGitDiff&&i.oldName&&i.newName&&!o))M(e);else if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==o&&null!==s&&null!==c){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],l=i.isCombined?["- "," -","--"]:["-"];a(e,n)?(i.addedLines++,t.type=r.LineType.INSERT,t.oldNumber=void 0,t.newNumber=c++):a(e,l)?(i.deletedLines++,t.type=r.LineType.DELETE,t.oldNumber=s++,t.newNumber=void 0):(t.type=r.LineType.CONTEXT,t.oldNumber=s++,t.newNumber=c++),o.lines.push(t)}}(e);else{var D=!function(e,t){for(var n=t;n<j.length-3;){if(e.startsWith("diff"))return!1;if(j[n].startsWith("--- ")&&j[n+1].startsWith("+++ ")&&j[n+2].startsWith("@@"))return!0;n++}return!1}(e,n);if(null===i)throw new Error("Where is my file !!!");(u=p.exec(e))?i.oldMode=u[1]:(u=g.exec(e))?i.newMode=u[1]:(u=b.exec(e))?(i.deletedFileMode=u[1],i.isDeleted=!0):(u=v.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=m.exec(e))?(D&&(i.oldName=u[1]),i.isCopy=!0):(u=y.exec(e))?(D&&(i.newName=u[1]),i.isCopy=!0):(u=w.exec(e))?(D&&(i.oldName=u[1]),i.isRename=!0):(u=S.exec(e))?(D&&(i.newName=u[1]),i.isRename=!0):(u=T.exec(e))?(i.isBinary=!0,i.oldName=f(u[1],void 0,t.srcPrefix),i.newName=f(u[2],void 0,t.dstPrefix),M("Binary file")):N.test(e)?(i.isBinary=!0,M(e)):(u=L.exec(e))?i.unchangedPercentage=parseInt(u[1],10):(u=x.exec(e))?i.changedPercentage=parseInt(u[1],10):(u=C.exec(e))?(i.checksumBefore=u[1],i.checksumAfter=u[2],u[3]&&(i.mode=u[3])):(u=E.exec(e))?(i.checksumBefore=[u[2],u[3]],i.checksumAfter=u[1]):(u=O.exec(e))?(i.oldMode=[u[2],u[3]],i.newMode=u[1]):(u=_.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=H.exec(e))&&(i.deletedFileMode=u[1],i.isDeleted=!0)}}}})),k(),P(),n}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var l=o(n(1));t.render=function(e,t){var n=e.map((function(e){return t.render("file-summary","line",{fileHtmlId:l.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:l.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template("icon",l.getFileIcon(e))})})).join("\n");return t.render("file-summary","wrapper",{filesNumber:e.length,files:n})}},function(e,t,n){
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(t.LineType||(t.LineType={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var a=l(n(10)),s=n(3),f=l(n(2)),u=n(0);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:u.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:u.DiffStyleType.WORD};var c=f.newDistanceFn((function(e){return e.value})),d=f.newMatcherFn(c);function h(e){return-1!==e.indexOf("dev/null")}function p(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function g(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function b(e,t,n){void 0===n&&(n=!0);var i=function(e){return e?2:1}(t);return{prefix:e.substring(0,i),content:n?g(e.substring(i)):e.substring(i)}}function v(e){var t=s.unifyPath(e.oldName),n=s.unifyPath(e.newName);if(t===n||h(t)||h(n))return h(n)?t:n;for(var i=[],r=[],o=t.split("/"),l=n.split("/"),a=0,f=o.length-1,u=l.length-1;a<f&&a<u&&o[a]===l[a];)i.push(l[a]),a+=1;for(;f>a&&u>a&&o[f]===l[u];)r.unshift(l[u]),f-=1,u-=1;var c=i.join("/"),d=r.join("/"),p=o.slice(a,f+1).join("/"),g=l.slice(a,u+1).join("/");return c.length&&d.length?c+"/{"+p+" → "+g+"}/"+d:c.length?c+"/{"+p+" → "+g+"}":d.length?"{"+p+" → "+g+"}/"+d:t+" → "+n}t.toCSSClass=function(e){switch(e){case u.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case u.LineType.INSERT:return t.CSSLineClass.INSERTS;case u.LineType.DELETE:return t.CSSLineClass.DELETES}},t.escapeForHtml=g,t.deconstructLine=b,t.filenameDiff=v,t.getHtmlId=function(e){return"d2h-"+s.hashCode(v(e)).toString().slice(-6)},t.getFileIcon=function(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t},t.diffHighlight=function(e,n,r,o){void 0===o&&(o={});var l=i(i({},t.defaultRenderConfig),o),s=l.matching,f=l.maxLineLengthHighlight,u=l.matchWordsThreshold,h=l.diffStyle,v=b(e,r,!1),m=b(n,r,!1);if(v.content.length>f||m.content.length>f)return{oldLine:{prefix:v.prefix,content:g(v.content)},newLine:{prefix:m.prefix,content:g(m.content)}};var y="char"===h?a.diffChars(v.content,m.content):a.diffWordsWithSpace(v.content,m.content),w=[];if("word"===h&&"words"===s){var S=y.filter((function(e){return e.removed})),L=y.filter((function(e){return e.added}));d(L,S).forEach((function(e){1===e[0].length&&1===e[1].length&&(c(e[0][0],e[1][0])<u&&(w.push(e[0][0]),w.push(e[1][0])))}))}var x,C=y.reduce((function(e,t){var n=t.added?"ins":t.removed?"del":null,i=w.indexOf(t)>-1?' class="d2h-change"':"",r=g(t.value);return null!==n?e+"<"+n+i+">"+r+"</"+n+">":""+e+r}),"");return{oldLine:{prefix:v.prefix,content:(x=C,x.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:m.prefix,content:p(C)}}}},function(e,t,n){"use strict";function i(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,i,r=[];for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=i,t.newDistanceFn=function(e){return function(t,n){var r=e(t).trim(),o=e(n).trim();return i(r,o)/(r.length+o.length)}},t.newMatcherFn=function(e){return function t(n,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var l=function(t,n,i){void 0===i&&(i=new Map);for(var r,o=1/0,l=0;l<t.length;++l)for(var a=0;a<n.length;++a){var s=JSON.stringify([t[l],n[a]]),f=void 0;i.has(s)&&(f=i.get(s))||(f=e(t[l],n[a]),i.set(s,f)),f<o&&(r={indexA:l,indexB:a,score:o=f})}return r}(n,i,o);if(!l||n.length+i.length<3)return[[n,i]];var a=n.slice(0,l.indexA),s=i.slice(0,l.indexB),f=[n[l.indexA]],u=[i[l.indexB]],c=l.indexA+1,d=l.indexB+1,h=n.slice(c),p=i.slice(d),g=t(a,s,r+1,o),b=t(f,u,r+1,o),v=t(h,p,r+1,o),m=b;return(l.indexA>0||l.indexB>0)&&(m=g.concat(m)),(n.length>c||i.length>d)&&(m=m.concat(v)),m}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var i=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");t.escapeForRegExp=function(e){return e.replace(i,"\\$&")},t.unifyPath=function(e){return e?e.replace(/\\/g,"/"):e},t.hashCode=function(e){var t,n,i=0;for(t=0,n=e.length;t<n;t++)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i}},function(e,t,n){var i=n(14);i.Template=n(15).Template,i.template=i.Template,e.exports=i},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var r=n(6),o=n(7);t.defaultDiff2HtmlUIConfig=i(i({},o.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,smartSelection:!0,fileContentToggle:!0});var l=function(){function e(e,n,r,l){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?o.html(n,this.config):e.innerHTML,this.targetElement=e,void 0!==l&&(this.hljs=l)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],i=t[1];if(void 0!==n&&void 0!==i){var r=function(e){null!==e&&null!==e.target&&(e.target===n?(i.scrollTop=n.scrollTop,i.scrollLeft=n.scrollLeft):(n.scrollTop=i.scrollTop,n.scrollLeft=i.scrollLeft))};n.addEventListener("scroll",r),i.addEventListener("scroll",r)}}))},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),i=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==i){var r=function(){t.style.display="none",n.style.display="inline",i.style.display="block"},o=function(){t.style.display="inline",n.style.display="none",i.style.display="none"};t.addEventListener("click",(function(){return r()})),n.addEventListener("click",(function(){return o()}));var l=this.getHashTag();"files-summary-show"===l?r():"files-summary-hide"===l?o():e?r():o()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach((function(e){var t=function(t){var n,i=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!=i&&(e.classList.toggle("d2h-selected"),i.classList.toggle("d2h-d-none"))};e.addEventListener("click",(function(n){return function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))}(n)}))}))},e.prototype.highlightCode=function(){var e=this;if(null===this.hljs)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach((function(t){var n,i;t.querySelectorAll(".d2h-code-line-ctn").forEach((function(o){if(null!==e.hljs){var l=o.textContent,a=o.parentNode;if(null!==l&&null!==a&&e.isElement(a)){var s=a.classList.contains("d2h-del")?n:i,f=t.getAttribute("data-lang"),u=f&&e.hljs.getLanguage(f)?e.hljs.highlight(f,l,!0,s):e.hljs.highlightAuto(l);e.instanceOfHighlightResult(u)&&(a.classList.contains("d2h-del")?n=u.top:(a.classList.contains("d2h-ins")||(n=u.top),i=u.top));var c=r.nodeStream(o);if(c.length){var d=document.createElementNS("http://www.w3.org/1999/xhtml","div");d.innerHTML=u.value,u.value=r.mergeStreams(c,r.nodeStream(d),l)}o.classList.add("hljs"),u.language&&o.classList.add(u.language),o.innerHTML=u.value}}}))}))},e.prototype.smartSelection=function(){console.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.instanceOfHighlightResult=function(e){return"top"in e},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){var t;return null!==e&&void 0!==(null===(t=e)||void 0===t?void 0:t.classList)},e}();t.Diff2HtmlUI=l},function(e,t,n){"use strict";function i(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function r(e){return e.nodeName.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeStreams=t.nodeStream=void 0,t.nodeStream=function(e){var t=[],n=function(e,i){for(var o=e.firstChild;o;o=o.nextSibling)3===o.nodeType&&null!==o.nodeValue?i+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=n(o,i),r(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i};return n(e,0),t},t.mergeStreams=function(e,t,n){var o=0,l="",a=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function f(e){if(null===(t=e)||void 0===(null===(n=t)||void 0===n?void 0:n.attributes))throw new Error("Node is not an Element");var t,n;l+="<"+r(e)+" "+Array().map.call(e.attributes,(function(e){return e.nodeName+'="'+i(e.value).replace(/"/g,"&quot;")+'"'})).join(" ")+">"}function u(e){l+="</"+r(e)+">"}function c(e){("start"===e.event?f:u)(e.node)}for(;e.length||t.length;){var d=s();if(l+=i(n.substring(o,d[0].offset)),o=d[0].offset,d===e){a.reverse().forEach(u);do{c(d.splice(0,1)[0]),d=s()}while(d===e&&d.length&&d[0].offset===o);a.reverse().forEach(f)}else"start"===d[0].event?a.push(d[0].node):a.pop(),c(d.splice(0,1)[0])}return l+i(n.substr(o))}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var s=l(n(8)),f=l(n(9)),u=l(n(11)),c=l(n(12)),d=n(0),h=a(n(13));t.defaultDiff2HtmlConfig=i(i(i({},u.defaultLineByLineRendererConfig),c.defaultSideBySideRendererConfig),{outputFormat:d.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=function(e,n){return void 0===n&&(n={}),s.parse(e,i(i({},t.defaultDiff2HtmlConfig),n))},t.html=function(e,n){void 0===n&&(n={});var r=i(i({},t.defaultDiff2HtmlConfig),n),o="string"==typeof e?s.parse(e,r):e,l=new h.default(r);return(r.drawFileList?f.render(o,l):"")+("side-by-side"===r.outputFormat?new c.default(l,r).render(o):new u.default(l,r).render(o))}},function(e,t,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],l=0,a=o.length;l<a;l++,r++)i[r]=o[l];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=n(0),o=n(3);function l(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function a(e,t){return t.reduce((function(t,n){return t||e.startsWith(n)}),!1)}var s=["a/","b/","i/","w/","c/","o/"];function f(e,t,n){var r=void 0!==n?i(s,[n]):s,l=((t?new RegExp("^"+o.escapeForRegExp(t)+' "?(.+?)"?$'):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],a=void 0===l?"":l,f=r.find((function(e){return 0===a.indexOf(e)}));return(f?a.slice(f.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}t.parse=function(e,t){void 0===t&&(t={});var n=[],i=null,o=null,s=null,u=null,c=null,d=null,h=null,p=/^old mode (\d{6})/,g=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,v=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,S=/^rename to "?(.+)"?/,L=/^similarity index (\d+)%/,x=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,N=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,O=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,_=/^new file mode (\d{6})/,H=/^deleted file mode (\d{6}),(\d{6})/,j=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function k(){null!==o&&null!==i&&(i.blocks.push(o),o=null)}function P(){null!==i&&(i.oldName||null===d||(i.oldName=d),i.newName||null===h||(i.newName=h),i.newName&&(n.push(i),i=null)),d=null,h=null}function F(){k(),P(),i={blocks:[],deletedLines:0,addedLines:0}}function M(e){var t;k(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,s=parseInt(t[1],10),c=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,s=parseInt(t[1],10),u=parseInt(t[2],10),c=parseInt(t[3],10)):(e.startsWith("@@")&&console.error("Failed to parse lines, starting in 0!"),s=0,c=0,i.isCombined=!1)),o={lines:[],oldStartLine:s,oldStartLine2:u,newStartLine:c,header:e}}return j.forEach((function(e,n){if(e&&!e.startsWith("*")){var u,k=j[n-1],P=j[n+1],I=j[n+2];if(e.startsWith("diff")){F();if((u=/^diff --git "?(.+)"? "?(.+)"?/.exec(e))&&(d=f(u[1],void 0,t.dstPrefix),h=f(u[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else{if((!i||!i.isGitDiff&&i&&e.startsWith("--- ")&&P.startsWith("+++ ")&&I.startsWith("@@"))&&F(),e.startsWith("--- ")&&P.startsWith("+++ ")||e.startsWith("+++ ")&&k.startsWith("--- ")){if(i&&!i.oldName&&e.startsWith("--- ")&&(u=function(e,t){return f(e,"---",t)}(e,t.srcPrefix)))return i.oldName=u,void(i.language=l(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(u=function(e,t){return f(e,"+++",t)}(e,t.dstPrefix)))return i.newName=u,void(i.language=l(i.newName,i.language))}if(i&&(e.startsWith("@@")||i.isGitDiff&&i.oldName&&i.newName&&!o))M(e);else if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==o&&null!==s&&null!==c){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],l=i.isCombined?["- "," -","--"]:["-"];a(e,n)?(i.addedLines++,t.type=r.LineType.INSERT,t.oldNumber=void 0,t.newNumber=c++):a(e,l)?(i.deletedLines++,t.type=r.LineType.DELETE,t.oldNumber=s++,t.newNumber=void 0):(t.type=r.LineType.CONTEXT,t.oldNumber=s++,t.newNumber=c++),o.lines.push(t)}}(e);else{var D=!function(e,t){for(var n=t;n<j.length-3;){if(e.startsWith("diff"))return!1;if(j[n].startsWith("--- ")&&j[n+1].startsWith("+++ ")&&j[n+2].startsWith("@@"))return!0;n++}return!1}(e,n);if(null===i)throw new Error("Where is my file !!!");(u=p.exec(e))?i.oldMode=u[1]:(u=g.exec(e))?i.newMode=u[1]:(u=b.exec(e))?(i.deletedFileMode=u[1],i.isDeleted=!0):(u=v.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=m.exec(e))?(D&&(i.oldName=u[1]),i.isCopy=!0):(u=y.exec(e))?(D&&(i.newName=u[1]),i.isCopy=!0):(u=w.exec(e))?(D&&(i.oldName=u[1]),i.isRename=!0):(u=S.exec(e))?(D&&(i.newName=u[1]),i.isRename=!0):(u=T.exec(e))?(i.isBinary=!0,i.oldName=f(u[1],void 0,t.srcPrefix),i.newName=f(u[2],void 0,t.dstPrefix),M("Binary file")):N.test(e)?(i.isBinary=!0,M(e)):(u=L.exec(e))?i.unchangedPercentage=parseInt(u[1],10):(u=x.exec(e))?i.changedPercentage=parseInt(u[1],10):(u=C.exec(e))?(i.checksumBefore=u[1],i.checksumAfter=u[2],u[3]&&(i.mode=u[3])):(u=E.exec(e))?(i.checksumBefore=[u[2],u[3]],i.checksumAfter=u[1]):(u=O.exec(e))?(i.oldMode=[u[2],u[3]],i.newMode=u[1]):(u=_.exec(e))?(i.newFileMode=u[1],i.isNew=!0):(u=H.exec(e))&&(i.deletedFileMode=u[1],i.isDeleted=!0)}}}})),k(),P(),n}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var l=o(n(1));t.render=function(e,t){var n=e.map((function(e){return t.render("file-summary","line",{fileHtmlId:l.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:l.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template("icon",l.getFileIcon(e))})})).join("\n");return t.render("file-summary","wrapper",{filesNumber:e.length,files:n})}},function(e,t,n){
2
2
  /*!
3
3
 
4
4
  diff v4.0.1
@@ -36,4 +36,4 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI
36
36
  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
37
  @license
38
38
  */
39
- !function(e){"use strict";function t(){}function n(e,t,n,i,r){for(var o=0,l=t.length,a=0,s=0;o<l;o++){var f=t[o];if(f.removed){if(f.value=e.join(i.slice(s,s+f.count)),s+=f.count,o&&t[o-1].added){var u=t[o-1];t[o-1]=t[o],t[o]=u}}else{if(!f.added&&r){var c=n.slice(a,a+f.count);c=c.map((function(e,t){var n=i[s+t];return n.length>e.length?n:e})),f.value=e.join(c)}else f.value=e.join(n.slice(a,a+f.count));a+=f.count,f.added||(s+=f.count)}}var d=t[l-1];return l>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[l-2].value+=d.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callback;"function"==typeof r&&(o=r,r={}),this.options=r;var l=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,f=e.length,u=1,c=s+f,d=[{newPos:-1,components:[]}],h=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&h+1>=f)return a([{value:this.join(t),count:t.length}]);function p(){for(var r=-1*u;r<=u;r+=2){var o=void 0,c=d[r-1],h=d[r+1],p=(h?h.newPos:0)-r;c&&(d[r-1]=void 0);var g=c&&c.newPos+1<s,b=h&&0<=p&&p<f;if(g||b){if(!g||b&&c.newPos<h.newPos?(o=i(h),l.pushComponent(o.components,void 0,!0)):((o=c).newPos++,l.pushComponent(o.components,!0,void 0)),p=l.extractCommon(o,t,e,r),o.newPos+1>=s&&p+1>=f)return a(n(l,o.components,t,e,l.useLongestToken));d[r]=o}else d[r]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>c)return o();p()||e()}),0)}();else for(;u<=c;){var g=p();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,o=n.length,l=e.newPos,a=l-i,s=0;l+1<r&&a+1<o&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&e.components.push({count:s}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var r=new t;function o(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,a=/\S/,s=new t;s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!a.test(e)&&!a.test(t)},s.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&l.test(t[n])&&l.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var f=new t;function u(e,t,n){return f.diff(e,t,n)}f.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var r=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),t.push(r))}return t};var c=new t;c.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var d=new t;function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}d.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var g=Object.prototype.toString,b=new t;function v(e,t,n,i,r){var o,l;for(t=t||[],n=n||[],i&&(e=i(r,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===g.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),o=0;o<e.length;o+=1)l[o]=v(e[o],t,n,i,r);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===h(e)&&null!==e){t.push(e),l={},n.push(l);var a,s=[];for(a in e)e.hasOwnProperty(a)&&s.push(a);for(s.sort(),o=0;o<s.length;o+=1)l[a=s[o]]=v(e[a],t,n,i,a);t.pop(),n.pop()}else l=e;return l}b.useLongestToken=!0,b.tokenize=f.tokenize,b.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,r=void 0===i?function(e,t){return void 0===t?n:t}:i;return"string"==typeof e?e:JSON.stringify(v(e,null,null,r),r," ")},b.equals=function(e,n){return t.prototype.equals.call(b,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var m=new t;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],o=0;function l(){var e={};for(r.push(e);o<n.length;){var i=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var l=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);l&&(e.index=l[1]),o++}for(a(e),a(e),e.hunks=[];o<n.length;){var f=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))e.hunks.push(s());else{if(f&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(f));o++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var i="---"===t[1]?"old":"new",r=t[2].split("\t",2),l=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(l)&&(l=l.substr(1,l.length-2)),e[i+"FileName"]=l,e[i+"Header"]=(r[1]||"").trim(),o++}}function s(){for(var e=o,r=n[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+r[1],oldLines:+r[2]||1,newStart:+r[3],newLines:+r[4]||1,lines:[],linedelimiters:[]},a=0,s=0;o<n.length&&!(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"));o++){var f=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==f&&"-"!==f&&" "!==f&&"\\"!==f)break;l.lines.push(n[o]),l.linedelimiters.push(i[o]||"\n"),"+"===f?a++:"-"===f?s++:" "===f&&(a++,s++)}if(a||1!==l.newLines||(l.newLines=0),s||1!==l.oldLines||(l.oldLines=0),t.strict){if(a!==l.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==l.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return l}for(;o<n.length;)l();return r}function w(e,t,n){var i=!0,r=!1,o=!1,l=1;return function a(){if(i&&!o){if(r?l++:i=!1,e+l<=n)return l;o=!0}if(!r)return o||(i=!0),t<=e-l?-l++:(r=!0,a())}}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=y(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i,r,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,s=n.compareLine||function(e,t,n,i){return t===i},f=0,u=n.fuzzFactor||0,c=0,d=0;function h(e,t){for(var n=0;n<e.lines.length;n++){var i=e.lines[n],r=i.length>0?i[0]:" ",l=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!s(t+1,o[t],r,l)&&++f>u)return!1;t++}}return!0}for(var p=0;p<a.length;p++){for(var g=a[p],b=o.length-g.oldLines,v=0,m=d+g.oldStart-1,S=w(m,c,b);void 0!==v;v=S())if(h(g,m+v)){g.offset=d+=v;break}if(void 0===v)return!1;c=g.offset+g.oldStart+g.oldLines}for(var L=0,x=0;x<a.length;x++){var C=a[x],T=C.oldStart+C.offset+L-1;L+=C.newLines-C.oldLines,T<0&&(T=0);for(var N=0;N<C.lines.length;N++){var E=C.lines[N],O=E.length>0?E[0]:" ",_=E.length>0?E.substr(1):E,H=C.linedelimiters[N];if(" "===O)T++;else if("-"===O)o.splice(T,1),l.splice(T,1);else if("+"===O)o.splice(T,0,_),l.splice(T,0,H),T++;else if("\\"===O){var j=C.lines[N-1]?C.lines[N-1][0]:null;"+"===j?i=!0:"-"===j&&(r=!0)}}}if(i)for(;!o[o.length-1];)o.pop(),l.pop();else r&&(o.push(""),l.push("\n"));for(var k=0;k<o.length-1;k++)o[k]=o[k]+l[k];return o.join("")}function L(e,t,n,i,r,o,l){l||(l={}),void 0===l.context&&(l.context=4);var a=u(n,i,l);function s(e){return e.map((function(e){return" "+e}))}a.push({value:"",lines:[]});for(var f=[],c=0,d=0,h=[],g=1,b=1,v=function(e){var t=a[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var o;if(!c){var u=a[e-1];c=g,d=b,u&&(h=l.context>0?s(u.lines.slice(-l.context)):[],c-=h.length,d-=h.length)}(o=h).push.apply(o,p(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?b+=r.length:g+=r.length}else{if(c)if(r.length<=2*l.context&&e<a.length-2){var v;(v=h).push.apply(v,p(s(r)))}else{var m,y=Math.min(r.length,l.context);(m=h).push.apply(m,p(s(r.slice(0,y))));var w={oldStart:c,oldLines:g-c+y,newStart:d,newLines:b-d+y,lines:h};if(e>=a.length-2&&r.length<=l.context){var S=/\n$/.test(n),L=/\n$/.test(i),x=0==r.length&&h.length>w.oldLines;!S&&x&&h.splice(w.oldLines,0,"\"),(S||x)&&L||h.push("\")}f.push(w),c=0,d=0,h=[]}g+=r.length,b+=r.length}},m=0;m<a.length;m++)v(m);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:o,hunks:f}}function x(e,t,n,i,r,o,l){var a=L(e,t,n,i,r,o,l),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"\t"+a.oldHeader)),s.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"\t"+a.newHeader));for(var f=0;f<a.hunks.length;f++){var u=a.hunks[f];s.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),s.push.apply(s,u.lines)}return s.join("\n")+"\n"}function C(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function T(e){var t=function e(t){var n=0,i=0;return t.forEach((function(t){if("string"!=typeof t){var r=e(t.mine),o=e(t.theirs);void 0!==n&&(r.oldLines===o.oldLines?n+=r.oldLines:n=void 0),void 0!==i&&(r.newLines===o.newLines?i+=r.newLines:i=void 0)}else void 0===i||"+"!==t[0]&&" "!==t[0]||i++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:i}}(e.lines),n=t.oldLines,i=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function N(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return y(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return L(void 0,void 0,t,e)}return e}function E(e){return e.newFileName&&e.newFileName!==e.oldFileName}function O(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function _(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function H(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function j(e,t,n,i,r){var o={offset:t,lines:n,index:0},l={offset:i,lines:r,index:0};for(M(e,o,l),M(e,l,o);o.index<o.lines.length&&l.index<l.lines.length;){var a=o.lines[o.index],s=l.lines[l.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==s[0]&&"+"!==s[0])if("+"===a[0]&&" "===s[0]){var f;(f=e.lines).push.apply(f,p(D(o)))}else if("+"===s[0]&&" "===a[0]){var u;(u=e.lines).push.apply(u,p(D(l)))}else"-"===a[0]&&" "===s[0]?P(e,o,l):"-"===s[0]&&" "===a[0]?P(e,l,o,!0):a===s?(e.lines.push(a),o.index++,l.index++):F(e,D(o),D(l));else k(e,o,l)}I(e,o),I(e,l),T(e)}function k(e,t,n){var i,r,o=D(t),l=D(n);if(A(o)&&A(l)){var a,s;if(C(o,l)&&R(n,o,o.length-l.length))return void(a=e.lines).push.apply(a,p(o));if(C(l,o)&&R(t,l,l.length-o.length))return void(s=e.lines).push.apply(s,p(l))}else if(r=l,(i=o).length===r.length&&C(i,r)){var f;return void(f=e.lines).push.apply(f,p(o))}F(e,o,l)}function P(e,t,n,i){var r,o=D(t),l=function(e,t){for(var n=[],i=[],r=0,o=!1,l=!1;r<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],s=t[r];if("+"===s[0])break;if(o=o||" "!==a[0],i.push(s),r++,"+"===a[0])for(l=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];s.substr(1)===a.substr(1)?(n.push(a),e.index++):l=!0}if("+"===(t[r]||"")[0]&&o&&(l=!0),l)return n;for(;r<t.length;)i.push(t[r++]);return{merged:i,changes:n}}(n,o);l.merged?(r=e.lines).push.apply(r,p(l.merged)):F(e,i?l:o,i?o:l)}function F(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function M(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var i=t.lines[t.index++];e.lines.push(i),t.offset++}}function I(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function D(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===n&&"+"===i[0]&&(n="+"),n!==i[0])break;t.push(i),e.index++}return t}function A(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function R(e,t,n){for(var i=0;i<n;i++){var r=t[t.length-n+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=n,!0}m.tokenize=function(e){return e.slice()},m.join=m.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=function(e,t,n){return r.diff(e,t,n)},e.diffWords=function(e,t,n){return n=o(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},e.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)},e.diffLines=u,e.diffTrimmedLines=function(e,t,n){var i=o(n,{ignoreWhitespace:!0});return f.diff(e,t,i)},e.diffSentences=function(e,t,n){return c.diff(e,t,n)},e.diffCss=function(e,t,n){return d.diff(e,t,n)},e.diffJson=function(e,t,n){return b.diff(e,t,n)},e.diffArrays=function(e,t,n){return m.diff(e,t,n)},e.structuredPatch=L,e.createTwoFilesPatch=x,e.createPatch=function(e,t,n,i,r,o){return x(e,e,t,n,i,r,o)},e.applyPatch=S,e.applyPatches=function(e,t){"string"==typeof e&&(e=y(e));var n=0;!function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var o=S(n,r,t);t.patched(r,o,(function(e){if(e)return t.complete(e);i()}))}))}()},e.parsePatch=y,e.merge=function(e,t,n){e=N(e,n),t=N(t,n);var i={};(e.index||t.index)&&(i.index=e.index||t.index),(e.newFileName||t.newFileName)&&(E(e)?E(t)?(i.oldFileName=O(i,e.oldFileName,t.oldFileName),i.newFileName=O(i,e.newFileName,t.newFileName),i.oldHeader=O(i,e.oldHeader,t.oldHeader),i.newHeader=O(i,e.newHeader,t.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=t.oldFileName||e.oldFileName,i.newFileName=t.newFileName||e.newFileName,i.oldHeader=t.oldHeader||e.oldHeader,i.newHeader=t.newHeader||e.newHeader)),i.hunks=[];for(var r=0,o=0,l=0,a=0;r<e.hunks.length||o<t.hunks.length;){var s=e.hunks[r]||{oldStart:1/0},f=t.hunks[o]||{oldStart:1/0};if(_(s,f))i.hunks.push(H(s,l)),r++,a+=s.newLines-s.oldLines;else if(_(f,s))i.hunks.push(H(f,a)),o++,l+=f.newLines-f.oldLines;else{var u={oldStart:Math.min(s.oldStart,f.oldStart),oldLines:0,newStart:Math.min(s.newStart+l,f.oldStart+a),newLines:0,lines:[]};j(u,s.oldStart,s.lines,f.oldStart,f.lines),o++,r++,i.hunks.push(u)}}return i},e.convertChangesToDMP=function(e){for(var t,n,i=[],r=0;r<e.length;r++)n=(t=e[r]).added?1:t.removed?-1:0,i.push([n,t.value]);return i},e.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push((r=i.value,void 0,r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}var r;return t.join("")},e.canonicalize=v,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var a=l(n(2)),s=l(n(1)),f=n(0);t.defaultLineByLineRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("line-by-line","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-line",CSSLineClass:s.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=a.newMatcherFn(a.newDistanceFn((function(t){return s.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r=t.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:s.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var o=i[0],l=i[1],a=i[2];if(l.length&&a.length&&!o.length)t.applyRematchMatching(l,a,n).map((function(n){var i=n[0],o=n[1],l=t.processChangedLines(e.isCombined,i,o),a=l.left,s=l.right;r+=a,r+=s}));else if(o.length)o.forEach((function(n){var i=s.deconstructLine(n.content,e.isCombined),o=i.prefix,l=i.content;r+=t.generateSingleLineHtml({type:s.CSSLineClass.CONTEXT,prefix:o,content:l,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(l.length||a.length){var f=t.processChangedLines(e.isCombined,l,a),u=f.left,c=f.right;r+=u,r+=c}else console.error("Unknown state reached while processing groups of lines",o,l,a)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==f.LineType.INSERT&&i.length||o.type===f.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),o.type===f.LineType.CONTEXT?t.push([[o],[],[]]):o.type===f.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===f.LineType.INSERT&&n.length>0?i.push(o):o.type===f.LineType.DELETE&&n.push(o)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),l=0;l<o;l++){var a=t[l],f=n[l],u=void 0!==a&&void 0!==f?s.diffHighlight(a.content,f.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(a.content,e)),{type:s.toCSSClass(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,d=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,h=this.generateLineHtml(c,d),p=h.left,g=h.right;r.left+=p,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render("line-by-line","numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render("generic","line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:t})},e}();t.default=u},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var a=l(n(2)),s=l(n(1)),f=n(0);t.defaultSideBySideRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:s.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=a.newMatcherFn(a.newDistanceFn((function(t){return s.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:t.makeHeaderHtml(i.header),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var o=i[0],l=i[1],a=i[2];if(l.length&&a.length&&!o.length)t.applyRematchMatching(l,a,n).map((function(n){var i=n[0],o=n[1],l=t.processChangedLines(e.isCombined,i,o),a=l.left,s=l.right;r.left+=a,r.right+=s}));else if(o.length)o.forEach((function(n){var i=s.deconstructLine(n.content,e.isCombined),o=i.prefix,l=i.content,a=t.generateLineHtml({type:s.CSSLineClass.CONTEXT,prefix:o,content:l,number:n.oldNumber},{type:s.CSSLineClass.CONTEXT,prefix:o,content:l,number:n.newNumber}),f=a.left,u=a.right;r.left+=f,r.right+=u}));else if(l.length||a.length){var f=t.processChangedLines(e.isCombined,l,a),u=f.left,c=f.right;r.left+=u,r.right+=c}else console.error("Unknown state reached while processing groups of lines",o,l,a)})),r})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==f.LineType.INSERT&&i.length||o.type===f.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),o.type===f.LineType.CONTEXT?t.push([[o],[],[]]):o.type===f.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===f.LineType.INSERT&&n.length>0?i.push(o):o.type===f.LineType.DELETE&&n.push(o)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e){return this.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:s.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),l=0;l<o;l++){var a=t[l],f=n[l],u=void 0!==a&&void 0!==f?s.diffHighlight(a.content,f.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(a.content,e)),{type:s.toCSSClass(a.type)})),{number:a.oldNumber}):void 0,d=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{number:f.newNumber}):void 0,h=this.generateLineHtml(c,d),p=h.left,g=h.right;r.left+=p,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){return this.hoganUtils.render("generic","line",{type:(null==e?void 0:e.type)||s.CSSLineClass.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?"d2h-code-side-linenumber":"d2h-code-side-linenumber d2h-code-side-emptyplaceholder",contentClass:void 0!==e?"d2h-code-side-line":"d2h-code-side-line d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();t.default=u},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=l(n(4)),s=n(16),f=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,r=e.rawTemplates,o=void 0===r?{}:r,l=Object.entries(o).reduce((function(e,t){var n,r=t[0],o=t[1],l=a.compile(o,{asString:!1});return i(i({},e),((n={})[r]=l,n))}),{});this.preCompiledTemplates=i(i(i({},s.defaultTemplates),n),l)}return e.compile=function(e){return a.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,i,r){var o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(n,i,r)}catch(e){throw new Error("Could not find template to render '"+o+"'")}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return e+"-"+t},e}();t.default=f},function(e,t,n){!function(e){var t=/\S/,n=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,l=/\u2028/,a=/\u2029/;function s(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function f(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(t.charAt(n+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,i){var r=n.length,o=0,l=null,a=null,c="",d=[],h=!1,p=0,g=0,b="{{",v="}}";function m(){c.length>0&&(d.push({tag:"_t",text:new String(c)}),c="")}function y(n,i){if(m(),n&&function(){for(var n=!0,i=g;i<d.length;i++)if(!(n=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(t)))return!1;return n}())for(var r,o=g;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});h=!1,g=d.length}function w(e,t){var n="="+v,i=e.indexOf(n,t),r=f(e.substring(e.indexOf("=",t)+1,i)).split(" ");return b=r[0],v=r[r.length-1],i+n.length-1}for(i&&(i=i.split(" "),b=i[0],v=i[1]),p=0;p<r;p++)0==o?u(b,n,p)?(--p,m(),o=1):"\n"==n.charAt(p)?y(h):c+=n.charAt(p):1==o?(p+=b.length-1,"="==(l=(a=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=w(n,p),o=0):(a&&p++,o=2),h=p):u(v,n,p)?(d.push({tag:l,n:f(c),otag:b,ctag:v,i:"/"==l?h-b.length:p+v.length}),c="",p+=v.length-1,o=0,"{"==l&&("}}"==v?p++:s(d[d.length-1]))):c+=n.charAt(p);return y(h,!0),d};var c={_t:!0,"\n":!0,$:!0,"/":!0};function d(e,t){for(var n=0,i=t.length;n<i;n++)if(t[n].o==e.n)return e.tag="#",!0}function h(e,t,n){for(var i=0,r=n.length;i<r;i++)if(n[i].c==e&&n[i].o==t)return!0}function p(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+p(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,i){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+p(t)+"}"};var g=0;function b(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(i,"\\n").replace(r,"\\r").replace(l,"\\u2028").replace(a,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+v(e.n)+'("'+b(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(t,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+v(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+v(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":m,"<":function(t,n){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,i);var r=n.partials[m(t,n)];r.subs=i.subs,r.partials=i.partials},$:function(t,n){var i={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,i),n.subs[t.n]=i.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+v(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+b(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var i,r=0,o=t.length;r<o;r++)(i=e.codegen[t[r].tag])&&i(t[r],n);return n},e.parse=function(t,n,i){return function t(n,i,r,o){var l,a=[],s=null,f=null;for(l=r[r.length-1];n.length>0;){if(f=n.shift(),l&&"<"==l.tag&&!(f.tag in c))throw new Error("Illegal content in < super tag.");if(e.tags[f.tag]<=e.tags.$||d(f,o))r.push(f),f.nodes=t(n,f.tag,r,o);else{if("/"==f.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+f.n);if(s=r.pop(),f.n!=s.n&&!h(f.n,s.n,o))throw new Error("Nesting error: "+s.n+" vs. "+f.n);return s.end=f.i,a}"\n"==f.tag&&(f.last=0==n.length||"\n"==n[0].tag)}a.push(f)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}(t,0,[],(i=i||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var i=e.cacheKey(t,n),r=this.cache[i];if(r){var o=r.partials;for(var l in o)delete o[l].instance;return r}return r=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[i]=r}}(t)},function(e,t,n){!function(e){function t(e,t,n){var i;return t&&"object"==typeof t&&(void 0!==t[e]?i=t[e]:n&&t.get&&"function"==typeof t.get&&(i=t.get(e))),i}e.Template=function(e,t,n,i){e=e||{},this.r=e.code||this.r,this.c=n,this.options=i||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=s(e),a.test(e)?e.replace(n,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(l,"&quot;"):e},t:s,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],i=t[n.name];if(n.instance&&n.base==i)return n.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=function(e,t,n,i,r,o){function l(){}function a(){}var s;l.prototype=e,a.prototype=e.subs;var f=new l;for(s in f.subs=new a,f.subsText={},f.buf="",i=i||{},f.stackSubs=i,f.subsText=o,t)i[s]||(i[s]=t[s]);for(s in i)f.subs[s]=i[s];for(s in r=r||{},f.stackPartials=r,n)r[s]||(r[s]=n[s]);for(s in r)f.partials[s]=r[s];return f}(i,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,i){var r=this.ep(e,n);return r?r.ri(t,n,i):""},rs:function(e,t,n){var i=e[e.length-1];if(f(i))for(var r=0;r<i.length;r++)e.push(i[r]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,i,r,o,l){var a;return(!f(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,i,r,o,l)),a=!!e,!i&&a&&t&&t.push("object"==typeof e?e:t[t.length-1]),a)},d:function(e,n,i,r){var o,l=e.split("."),a=this.f(l[0],n,i,r),s=this.options.modelGet,u=null;if("."===e&&f(n[n.length-2]))a=n[n.length-1];else for(var c=1;c<l.length;c++)void 0!==(o=t(l[c],a,s))?(u=a,a=o):a="";return!(r&&!a)&&(r||"function"!=typeof a||(n.push(u),a=this.mv(a,n,i),n.pop()),a)},f:function(e,n,i,r){for(var o=!1,l=!1,a=this.options.modelGet,s=n.length-1;s>=0;s--)if(void 0!==(o=t(e,n[s],a))){l=!0;break}return l?(r||"function"!=typeof o||(o=this.mv(o,n,i)),o):!r&&""},ls:function(e,t,n,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(s(e.call(t,i)),t,n)),this.options.delimiters=o,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,i,r,o,l){var a,s=t[t.length-1],f=e.call(s);return"function"==typeof f?!!i||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(f,s,n,a.substring(r,o),l)):f},mv:function(e,t,n){var i=t[t.length-1],r=e.call(i);return"function"==typeof r?this.ct(s(r.call(i)),i,n):r},sub:function(e,t,n,i){var r=this.subs[e];r&&(this.activeSub=e,r(t,n,this,i),this.activeSub=!1)}};var n=/&/g,i=/</g,r=/>/g,o=/\'/g,l=/\"/g,a=/[&<>\"\']/;function s(e){return String(null==e?"":e)}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var l=o(n(4));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+n),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,t,0))),i.b("</a>"),i.b("\n"+n),i.b(' <span class="d2h-file-stats">'),i.b("\n"+n),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+n),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+n),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,t,0))),i.b(")</span>"),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <ol class="d2h-file-list">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("files",e,t,0))),i.b("\n"+n),i.b(" </ol>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('"></td>'),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" File without changes"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(i.rp("<fileTag1",e,t," ")),i.b("</span>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("lineNumber",e,t,0))),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.s(i.f("prefix",e,t,1),e,t,0,171,247,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("prefix",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+n)),i.s(i.f("content",e,t,1),e,t,0,380,454,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("content",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+n)),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("content",e,t,0))),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+n),i.b(' width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+n),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("diffs",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,t,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-files-diff">'),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.left",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.right",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})}])}));
39
+ !function(e){"use strict";function t(){}function n(e,t,n,i,r){for(var o=0,l=t.length,a=0,s=0;o<l;o++){var f=t[o];if(f.removed){if(f.value=e.join(i.slice(s,s+f.count)),s+=f.count,o&&t[o-1].added){var u=t[o-1];t[o-1]=t[o],t[o]=u}}else{if(!f.added&&r){var c=n.slice(a,a+f.count);c=c.map((function(e,t){var n=i[s+t];return n.length>e.length?n:e})),f.value=e.join(c)}else f.value=e.join(n.slice(a,a+f.count));a+=f.count,f.added||(s+=f.count)}}var d=t[l-1];return l>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[l-2].value+=d.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callback;"function"==typeof r&&(o=r,r={}),this.options=r;var l=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,f=e.length,u=1,c=s+f,d=[{newPos:-1,components:[]}],h=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&h+1>=f)return a([{value:this.join(t),count:t.length}]);function p(){for(var r=-1*u;r<=u;r+=2){var o=void 0,c=d[r-1],h=d[r+1],p=(h?h.newPos:0)-r;c&&(d[r-1]=void 0);var g=c&&c.newPos+1<s,b=h&&0<=p&&p<f;if(g||b){if(!g||b&&c.newPos<h.newPos?(o=i(h),l.pushComponent(o.components,void 0,!0)):((o=c).newPos++,l.pushComponent(o.components,!0,void 0)),p=l.extractCommon(o,t,e,r),o.newPos+1>=s&&p+1>=f)return a(n(l,o.components,t,e,l.useLongestToken));d[r]=o}else d[r]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>c)return o();p()||e()}),0)}();else for(;u<=c;){var g=p();if(g)return g}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){for(var r=t.length,o=n.length,l=e.newPos,a=l-i,s=0;l+1<r&&a+1<o&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&e.components.push({count:s}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var r=new t;function o(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,a=/\S/,s=new t;s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!a.test(e)&&!a.test(t)},s.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&l.test(t[n])&&l.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var f=new t;function u(e,t,n){return f.diff(e,t,n)}f.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var i=0;i<n.length;i++){var r=n[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),t.push(r))}return t};var c=new t;c.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var d=new t;function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}d.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var g=Object.prototype.toString,b=new t;function v(e,t,n,i,r){var o,l;for(t=t||[],n=n||[],i&&(e=i(r,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===g.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),o=0;o<e.length;o+=1)l[o]=v(e[o],t,n,i,r);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===h(e)&&null!==e){t.push(e),l={},n.push(l);var a,s=[];for(a in e)e.hasOwnProperty(a)&&s.push(a);for(s.sort(),o=0;o<s.length;o+=1)l[a=s[o]]=v(e[a],t,n,i,a);t.pop(),n.pop()}else l=e;return l}b.useLongestToken=!0,b.tokenize=f.tokenize,b.castInput=function(e){var t=this.options,n=t.undefinedReplacement,i=t.stringifyReplacer,r=void 0===i?function(e,t){return void 0===t?n:t}:i;return"string"==typeof e?e:JSON.stringify(v(e,null,null,r),r," ")},b.equals=function(e,n){return t.prototype.equals.call(b,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var m=new t;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],r=[],o=0;function l(){var e={};for(r.push(e);o<n.length;){var i=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(i))break;var l=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);l&&(e.index=l[1]),o++}for(a(e),a(e),e.hunks=[];o<n.length;){var f=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))e.hunks.push(s());else{if(f&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(f));o++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var i="---"===t[1]?"old":"new",r=t[2].split("\t",2),l=r[0].replace(/\\\\/g,"\\");/^".*"$/.test(l)&&(l=l.substr(1,l.length-2)),e[i+"FileName"]=l,e[i+"Header"]=(r[1]||"").trim(),o++}}function s(){for(var e=o,r=n[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+r[1],oldLines:+r[2]||1,newStart:+r[3],newLines:+r[4]||1,lines:[],linedelimiters:[]},a=0,s=0;o<n.length&&!(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"));o++){var f=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==f&&"-"!==f&&" "!==f&&"\\"!==f)break;l.lines.push(n[o]),l.linedelimiters.push(i[o]||"\n"),"+"===f?a++:"-"===f?s++:" "===f&&(a++,s++)}if(a||1!==l.newLines||(l.newLines=0),s||1!==l.oldLines||(l.oldLines=0),t.strict){if(a!==l.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==l.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return l}for(;o<n.length;)l();return r}function w(e,t,n){var i=!0,r=!1,o=!1,l=1;return function a(){if(i&&!o){if(r?l++:i=!1,e+l<=n)return l;o=!0}if(!r)return o||(i=!0),t<=e-l?-l++:(r=!0,a())}}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=y(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i,r,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,s=n.compareLine||function(e,t,n,i){return t===i},f=0,u=n.fuzzFactor||0,c=0,d=0;function h(e,t){for(var n=0;n<e.lines.length;n++){var i=e.lines[n],r=i.length>0?i[0]:" ",l=i.length>0?i.substr(1):i;if(" "===r||"-"===r){if(!s(t+1,o[t],r,l)&&++f>u)return!1;t++}}return!0}for(var p=0;p<a.length;p++){for(var g=a[p],b=o.length-g.oldLines,v=0,m=d+g.oldStart-1,S=w(m,c,b);void 0!==v;v=S())if(h(g,m+v)){g.offset=d+=v;break}if(void 0===v)return!1;c=g.offset+g.oldStart+g.oldLines}for(var L=0,x=0;x<a.length;x++){var C=a[x],T=C.oldStart+C.offset+L-1;L+=C.newLines-C.oldLines,T<0&&(T=0);for(var N=0;N<C.lines.length;N++){var E=C.lines[N],O=E.length>0?E[0]:" ",_=E.length>0?E.substr(1):E,H=C.linedelimiters[N];if(" "===O)T++;else if("-"===O)o.splice(T,1),l.splice(T,1);else if("+"===O)o.splice(T,0,_),l.splice(T,0,H),T++;else if("\\"===O){var j=C.lines[N-1]?C.lines[N-1][0]:null;"+"===j?i=!0:"-"===j&&(r=!0)}}}if(i)for(;!o[o.length-1];)o.pop(),l.pop();else r&&(o.push(""),l.push("\n"));for(var k=0;k<o.length-1;k++)o[k]=o[k]+l[k];return o.join("")}function L(e,t,n,i,r,o,l){l||(l={}),void 0===l.context&&(l.context=4);var a=u(n,i,l);function s(e){return e.map((function(e){return" "+e}))}a.push({value:"",lines:[]});for(var f=[],c=0,d=0,h=[],g=1,b=1,v=function(e){var t=a[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var o;if(!c){var u=a[e-1];c=g,d=b,u&&(h=l.context>0?s(u.lines.slice(-l.context)):[],c-=h.length,d-=h.length)}(o=h).push.apply(o,p(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?b+=r.length:g+=r.length}else{if(c)if(r.length<=2*l.context&&e<a.length-2){var v;(v=h).push.apply(v,p(s(r)))}else{var m,y=Math.min(r.length,l.context);(m=h).push.apply(m,p(s(r.slice(0,y))));var w={oldStart:c,oldLines:g-c+y,newStart:d,newLines:b-d+y,lines:h};if(e>=a.length-2&&r.length<=l.context){var S=/\n$/.test(n),L=/\n$/.test(i),x=0==r.length&&h.length>w.oldLines;!S&&x&&h.splice(w.oldLines,0,"\"),(S||x)&&L||h.push("\")}f.push(w),c=0,d=0,h=[]}g+=r.length,b+=r.length}},m=0;m<a.length;m++)v(m);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:o,hunks:f}}function x(e,t,n,i,r,o,l){var a=L(e,t,n,i,r,o,l),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"\t"+a.oldHeader)),s.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"\t"+a.newHeader));for(var f=0;f<a.hunks.length;f++){var u=a.hunks[f];s.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),s.push.apply(s,u.lines)}return s.join("\n")+"\n"}function C(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function T(e){var t=function e(t){var n=0,i=0;return t.forEach((function(t){if("string"!=typeof t){var r=e(t.mine),o=e(t.theirs);void 0!==n&&(r.oldLines===o.oldLines?n+=r.oldLines:n=void 0),void 0!==i&&(r.newLines===o.newLines?i+=r.newLines:i=void 0)}else void 0===i||"+"!==t[0]&&" "!==t[0]||i++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:i}}(e.lines),n=t.oldLines,i=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function N(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return y(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return L(void 0,void 0,t,e)}return e}function E(e){return e.newFileName&&e.newFileName!==e.oldFileName}function O(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function _(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function H(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function j(e,t,n,i,r){var o={offset:t,lines:n,index:0},l={offset:i,lines:r,index:0};for(M(e,o,l),M(e,l,o);o.index<o.lines.length&&l.index<l.lines.length;){var a=o.lines[o.index],s=l.lines[l.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==s[0]&&"+"!==s[0])if("+"===a[0]&&" "===s[0]){var f;(f=e.lines).push.apply(f,p(D(o)))}else if("+"===s[0]&&" "===a[0]){var u;(u=e.lines).push.apply(u,p(D(l)))}else"-"===a[0]&&" "===s[0]?P(e,o,l):"-"===s[0]&&" "===a[0]?P(e,l,o,!0):a===s?(e.lines.push(a),o.index++,l.index++):F(e,D(o),D(l));else k(e,o,l)}I(e,o),I(e,l),T(e)}function k(e,t,n){var i,r,o=D(t),l=D(n);if(A(o)&&A(l)){var a,s;if(C(o,l)&&R(n,o,o.length-l.length))return void(a=e.lines).push.apply(a,p(o));if(C(l,o)&&R(t,l,l.length-o.length))return void(s=e.lines).push.apply(s,p(l))}else if(r=l,(i=o).length===r.length&&C(i,r)){var f;return void(f=e.lines).push.apply(f,p(o))}F(e,o,l)}function P(e,t,n,i){var r,o=D(t),l=function(e,t){for(var n=[],i=[],r=0,o=!1,l=!1;r<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],s=t[r];if("+"===s[0])break;if(o=o||" "!==a[0],i.push(s),r++,"+"===a[0])for(l=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];s.substr(1)===a.substr(1)?(n.push(a),e.index++):l=!0}if("+"===(t[r]||"")[0]&&o&&(l=!0),l)return n;for(;r<t.length;)i.push(t[r++]);return{merged:i,changes:n}}(n,o);l.merged?(r=e.lines).push.apply(r,p(l.merged)):F(e,i?l:o,i?o:l)}function F(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function M(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var i=t.lines[t.index++];e.lines.push(i),t.offset++}}function I(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function D(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===n&&"+"===i[0]&&(n="+"),n!==i[0])break;t.push(i),e.index++}return t}function A(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function R(e,t,n){for(var i=0;i<n;i++){var r=t[t.length-n+i].substr(1);if(e.lines[e.index+i]!==" "+r)return!1}return e.index+=n,!0}m.tokenize=function(e){return e.slice()},m.join=m.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=function(e,t,n){return r.diff(e,t,n)},e.diffWords=function(e,t,n){return n=o(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},e.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)},e.diffLines=u,e.diffTrimmedLines=function(e,t,n){var i=o(n,{ignoreWhitespace:!0});return f.diff(e,t,i)},e.diffSentences=function(e,t,n){return c.diff(e,t,n)},e.diffCss=function(e,t,n){return d.diff(e,t,n)},e.diffJson=function(e,t,n){return b.diff(e,t,n)},e.diffArrays=function(e,t,n){return m.diff(e,t,n)},e.structuredPatch=L,e.createTwoFilesPatch=x,e.createPatch=function(e,t,n,i,r,o){return x(e,e,t,n,i,r,o)},e.applyPatch=S,e.applyPatches=function(e,t){"string"==typeof e&&(e=y(e));var n=0;!function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,(function(e,n){if(e)return t.complete(e);var o=S(n,r,t);t.patched(r,o,(function(e){if(e)return t.complete(e);i()}))}))}()},e.parsePatch=y,e.merge=function(e,t,n){e=N(e,n),t=N(t,n);var i={};(e.index||t.index)&&(i.index=e.index||t.index),(e.newFileName||t.newFileName)&&(E(e)?E(t)?(i.oldFileName=O(i,e.oldFileName,t.oldFileName),i.newFileName=O(i,e.newFileName,t.newFileName),i.oldHeader=O(i,e.oldHeader,t.oldHeader),i.newHeader=O(i,e.newHeader,t.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=t.oldFileName||e.oldFileName,i.newFileName=t.newFileName||e.newFileName,i.oldHeader=t.oldHeader||e.oldHeader,i.newHeader=t.newHeader||e.newHeader)),i.hunks=[];for(var r=0,o=0,l=0,a=0;r<e.hunks.length||o<t.hunks.length;){var s=e.hunks[r]||{oldStart:1/0},f=t.hunks[o]||{oldStart:1/0};if(_(s,f))i.hunks.push(H(s,l)),r++,a+=s.newLines-s.oldLines;else if(_(f,s))i.hunks.push(H(f,a)),o++,l+=f.newLines-f.oldLines;else{var u={oldStart:Math.min(s.oldStart,f.oldStart),oldLines:0,newStart:Math.min(s.newStart+l,f.oldStart+a),newLines:0,lines:[]};j(u,s.oldStart,s.lines,f.oldStart,f.lines),o++,r++,i.hunks.push(u)}}return i},e.convertChangesToDMP=function(e){for(var t,n,i=[],r=0;r<e.length;r++)n=(t=e[r]).added?1:t.removed?-1:0,i.push([n,t.value]);return i},e.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push((r=i.value,void 0,r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}var r;return t.join("")},e.canonicalize=v,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var a=l(n(2)),s=l(n(1)),f=n(0);t.defaultLineByLineRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("line-by-line","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-line",CSSLineClass:s.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=a.newMatcherFn(a.newDistanceFn((function(t){return s.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r=t.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:s.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach((function(i){var o=i[0],l=i[1],a=i[2];if(l.length&&a.length&&!o.length)t.applyRematchMatching(l,a,n).map((function(n){var i=n[0],o=n[1],l=t.processChangedLines(e.isCombined,i,o),a=l.left,s=l.right;r+=a,r+=s}));else if(o.length)o.forEach((function(n){var i=s.deconstructLine(n.content,e.isCombined),o=i.prefix,l=i.content;r+=t.generateSingleLineHtml({type:s.CSSLineClass.CONTEXT,prefix:o,content:l,oldNumber:n.oldNumber,newNumber:n.newNumber})}));else if(l.length||a.length){var f=t.processChangedLines(e.isCombined,l,a),u=f.left,c=f.right;r+=u,r+=c}else console.error("Unknown state reached while processing groups of lines",o,l,a)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==f.LineType.INSERT&&i.length||o.type===f.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),o.type===f.LineType.CONTEXT?t.push([[o],[],[]]):o.type===f.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===f.LineType.INSERT&&n.length>0?i.push(o):o.type===f.LineType.DELETE&&n.push(o)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),l=0;l<o;l++){var a=t[l],f=n[l],u=void 0!==a&&void 0!==f?s.diffHighlight(a.content,f.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(a.content,e)),{type:s.toCSSClass(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,d=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{oldNumber:f.oldNumber,newNumber:f.newNumber}):void 0,h=this.generateLineHtml(c,d),p=h.left,g=h.right;r.left+=p,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render("line-by-line","numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render("generic","line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:t})},e}();t.default=u},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var a=l(n(2)),s=l(n(1)),f=n(0);t.defaultSideBySideRendererConfig=i(i({},s.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var u=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map((function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)})).join("\n");return this.hoganUtils.render("generic","wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template("generic","file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",s.getFileIcon(e));return n.render({file:e,fileHtmlId:s.getHtmlId(e),diffs:t,filePath:i.render({fileDiffName:s.filenameDiff(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render("generic","empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:s.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=a.newMatcherFn(a.newDistanceFn((function(t){return s.deconstructLine(t.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:t.makeHeaderHtml(i.header),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach((function(i){var o=i[0],l=i[1],a=i[2];if(l.length&&a.length&&!o.length)t.applyRematchMatching(l,a,n).map((function(n){var i=n[0],o=n[1],l=t.processChangedLines(e.isCombined,i,o),a=l.left,s=l.right;r.left+=a,r.right+=s}));else if(o.length)o.forEach((function(n){var i=s.deconstructLine(n.content,e.isCombined),o=i.prefix,l=i.content,a=t.generateLineHtml({type:s.CSSLineClass.CONTEXT,prefix:o,content:l,number:n.oldNumber},{type:s.CSSLineClass.CONTEXT,prefix:o,content:l,number:n.newNumber}),f=a.left,u=a.right;r.left+=f,r.right+=u}));else if(l.length||a.length){var f=t.processChangedLines(e.isCombined,l,a),u=f.left,c=f.right;r.left+=u,r.right+=c}else console.error("Unknown state reached while processing groups of lines",o,l,a)})),r})).reduce((function(e,t){return{left:e.left+t.left,right:e.right+t.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==f.LineType.INSERT&&i.length||o.type===f.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,i]),n=[],i=[]),o.type===f.LineType.CONTEXT?t.push([[o],[],[]]):o.type===f.LineType.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===f.LineType.INSERT&&n.length>0?i.push(o):o.type===f.LineType.DELETE&&n.push(o)}return(n.length||i.length)&&(t.push([[],n,i]),n=[],i=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var i=e.length*t.length,r=Math.max.apply(null,[0].concat(e.concat(t).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e){return this.hoganUtils.render("generic","block-header",{CSSLineClass:s.CSSLineClass,blockHeader:s.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},o=Math.max(t.length,n.length),l=0;l<o;l++){var a=t[l],f=n[l],u=void 0!==a&&void 0!==f?s.diffHighlight(a.content,f.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:s.CSSLineClass.DELETE_CHANGES}:i(i({},s.deconstructLine(a.content,e)),{type:s.toCSSClass(a.type)})),{number:a.oldNumber}):void 0,d=void 0!==f&&void 0!==f.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:s.CSSLineClass.INSERT_CHANGES}:i(i({},s.deconstructLine(f.content,e)),{type:s.toCSSClass(f.type)})),{number:f.newNumber}):void 0,h=this.generateLineHtml(c,d),p=h.left,g=h.right;r.left+=p,r.right+=g}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){return this.hoganUtils.render("generic","line",{type:(null==e?void 0:e.type)||s.CSSLineClass.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?"d2h-code-side-linenumber":"d2h-code-side-linenumber d2h-code-side-emptyplaceholder",contentClass:void 0!==e?"d2h-code-side-line":"d2h-code-side-line d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();t.default=u},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=l(n(4)),s=n(16),f=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,r=e.rawTemplates,o=void 0===r?{}:r,l=Object.entries(o).reduce((function(e,t){var n,r=t[0],o=t[1],l=a.compile(o,{asString:!1});return i(i({},e),((n={})[r]=l,n))}),{});this.preCompiledTemplates=i(i(i({},s.defaultTemplates),n),l)}return e.compile=function(e){return a.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,i,r){var o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(n,i,r)}catch(e){throw new Error("Could not find template to render '"+o+"'")}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return e+"-"+t},e}();t.default=f},function(e,t,n){!function(e){var t=/\S/,n=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,l=/\u2028/,a=/\u2029/;function s(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function f(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(t.charAt(n+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,i){var r=n.length,o=0,l=null,a=null,c="",d=[],h=!1,p=0,g=0,b="{{",v="}}";function m(){c.length>0&&(d.push({tag:"_t",text:new String(c)}),c="")}function y(n,i){if(m(),n&&function(){for(var n=!0,i=g;i<d.length;i++)if(!(n=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(t)))return!1;return n}())for(var r,o=g;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});h=!1,g=d.length}function w(e,t){var n="="+v,i=e.indexOf(n,t),r=f(e.substring(e.indexOf("=",t)+1,i)).split(" ");return b=r[0],v=r[r.length-1],i+n.length-1}for(i&&(i=i.split(" "),b=i[0],v=i[1]),p=0;p<r;p++)0==o?u(b,n,p)?(--p,m(),o=1):"\n"==n.charAt(p)?y(h):c+=n.charAt(p):1==o?(p+=b.length-1,"="==(l=(a=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=w(n,p),o=0):(a&&p++,o=2),h=p):u(v,n,p)?(d.push({tag:l,n:f(c),otag:b,ctag:v,i:"/"==l?h-b.length:p+v.length}),c="",p+=v.length-1,o=0,"{"==l&&("}}"==v?p++:s(d[d.length-1]))):c+=n.charAt(p);return y(h,!0),d};var c={_t:!0,"\n":!0,$:!0,"/":!0};function d(e,t){for(var n=0,i=t.length;n<i;n++)if(t[n].o==e.n)return e.tag="#",!0}function h(e,t,n){for(var i=0,r=n.length;i<r;i++)if(n[i].c==e&&n[i].o==t)return!0}function p(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+p(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,i){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+p(t)+"}"};var g=0;function b(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(i,"\\n").replace(r,"\\r").replace(l,"\\u2028").replace(a,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+v(e.n)+'("'+b(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(t,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+v(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+v(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":m,"<":function(t,n){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,i);var r=n.partials[m(t,n)];r.subs=i.subs,r.partials=i.partials},$:function(t,n){var i={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,i),n.subs[t.n]=i.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+v(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+b(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var i,r=0,o=t.length;r<o;r++)(i=e.codegen[t[r].tag])&&i(t[r],n);return n},e.parse=function(t,n,i){return function t(n,i,r,o){var l,a=[],s=null,f=null;for(l=r[r.length-1];n.length>0;){if(f=n.shift(),l&&"<"==l.tag&&!(f.tag in c))throw new Error("Illegal content in < super tag.");if(e.tags[f.tag]<=e.tags.$||d(f,o))r.push(f),f.nodes=t(n,f.tag,r,o);else{if("/"==f.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+f.n);if(s=r.pop(),f.n!=s.n&&!h(f.n,s.n,o))throw new Error("Nesting error: "+s.n+" vs. "+f.n);return s.end=f.i,a}"\n"==f.tag&&(f.last=0==n.length||"\n"==n[0].tag)}a.push(f)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}(t,0,[],(i=i||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var i=e.cacheKey(t,n),r=this.cache[i];if(r){var o=r.partials;for(var l in o)delete o[l].instance;return r}return r=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[i]=r}}(t)},function(e,t,n){!function(e){function t(e,t,n){var i;return t&&"object"==typeof t&&(void 0!==t[e]?i=t[e]:n&&t.get&&"function"==typeof t.get&&(i=t.get(e))),i}e.Template=function(e,t,n,i){e=e||{},this.r=e.code||this.r,this.c=n,this.options=i||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=s(e),a.test(e)?e.replace(n,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(l,"&quot;"):e},t:s,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],i=t[n.name];if(n.instance&&n.base==i)return n.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=function(e,t,n,i,r,o){function l(){}function a(){}var s;l.prototype=e,a.prototype=e.subs;var f=new l;for(s in f.subs=new a,f.subsText={},f.buf="",i=i||{},f.stackSubs=i,f.subsText=o,t)i[s]||(i[s]=t[s]);for(s in i)f.subs[s]=i[s];for(s in r=r||{},f.stackPartials=r,n)r[s]||(r[s]=n[s]);for(s in r)f.partials[s]=r[s];return f}(i,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,i){var r=this.ep(e,n);return r?r.ri(t,n,i):""},rs:function(e,t,n){var i=e[e.length-1];if(f(i))for(var r=0;r<i.length;r++)e.push(i[r]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,i,r,o,l){var a;return(!f(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,i,r,o,l)),a=!!e,!i&&a&&t&&t.push("object"==typeof e?e:t[t.length-1]),a)},d:function(e,n,i,r){var o,l=e.split("."),a=this.f(l[0],n,i,r),s=this.options.modelGet,u=null;if("."===e&&f(n[n.length-2]))a=n[n.length-1];else for(var c=1;c<l.length;c++)void 0!==(o=t(l[c],a,s))?(u=a,a=o):a="";return!(r&&!a)&&(r||"function"!=typeof a||(n.push(u),a=this.mv(a,n,i),n.pop()),a)},f:function(e,n,i,r){for(var o=!1,l=!1,a=this.options.modelGet,s=n.length-1;s>=0;s--)if(void 0!==(o=t(e,n[s],a))){l=!0;break}return l?(r||"function"!=typeof o||(o=this.mv(o,n,i)),o):!r&&""},ls:function(e,t,n,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(s(e.call(t,i)),t,n)),this.options.delimiters=o,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,i,r,o,l){var a,s=t[t.length-1],f=e.call(s);return"function"==typeof f?!!i||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(f,s,n,a.substring(r,o),l)):f},mv:function(e,t,n){var i=t[t.length-1],r=e.call(i);return"function"==typeof r?this.ct(s(r.call(i)),i,n):r},sub:function(e,t,n,i){var r=this.subs[e];r&&(this.activeSub=e,r(t,n,this,i),this.activeSub=!1)}};var n=/&/g,i=/</g,r=/>/g,o=/\'/g,l=/\"/g,a=/[&<>\"\']/;function s(e){return String(null==e?"":e)}var f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var l=o(n(4));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+n),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,t,0))),i.b("</a>"),i.b("\n"+n),i.b(' <span class="d2h-file-stats">'),i.b("\n"+n),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b(" </span>"),i.b("\n"+n),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+n),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+n),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,t,0))),i.b(")</span>"),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+n),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <ol class="d2h-file-list">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("files",e,t,0))),i.b("\n"+n),i.b(" </ol>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('"></td>'),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" File without changes"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+n),i.b(i.rp("<fileIcon0",e,t," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,t,0))),i.b("</span>"),i.b("\n"+n),i.b(i.rp("<fileTag1",e,t," ")),i.b("</span>"),i.b("\n"+n),i.b('<label class="d2h-file-collapse">'),i.b("\n"+n),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+n),i.b(" Viewed"),i.b("\n"+n),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b("<tr>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("lineNumber",e,t,0))),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b(' <td class="'),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,t,0))),i.b(" "),i.b(i.v(i.f("type",e,t,0))),i.b('">'),i.b("\n"+n),i.s(i.f("prefix",e,t,1),e,t,0,171,247,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("prefix",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+n)),i.s(i.f("content",e,t,1),e,t,0,380,454,"{{ }}")&&(i.rs(e,t,(function(e,t,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,t,0))),i.b("</span>"),i.b("\n"+n)})),e.pop()),i.s(i.f("content",e,t,1),e,t,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+n)),i.b(" </div>"),i.b("\n"+n),i.b(" </td>"),i.b("\n"+n),i.b("</tr>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("content",e,t,0))),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+n),i.b(' width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+n),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+n),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+n),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+n),i.b("</svg>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("diffs",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,t,0))),i.b("</div>"),i.b("\n"+n),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,t,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,t,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,t,0))),i.b('">'),i.b("\n"+n),i.b(' <div class="d2h-file-header">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.f("filePath",e,t,0))),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-files-diff">'),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.left",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+n),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+n),i.b(' <table class="d2h-diff-table">'),i.b("\n"+n),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+n),i.b(" "),i.b(i.t(i.d("diffs.right",e,t,0))),i.b("\n"+n),i.b(" </tbody>"),i.b("\n"+n),i.b(" </table>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b(" </div>"),i.b("\n"+n),i.b("</div>"),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new l.Template({code:function(e,t,n){var i=this;return i.b(n=n||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}})}])}));