bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113

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.
Files changed (248) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.esm.js +13942 -13951
  3. package/dist/index.umd.js +54 -54
  4. package/dist/style.css +1 -1
  5. package/lib/affix/index.d.ts +111 -57
  6. package/lib/affix/index.js +17 -17
  7. package/lib/alert/index.d.ts +126 -73
  8. package/lib/alert/index.js +20 -20
  9. package/lib/animate-number/index.d.ts +96 -33
  10. package/lib/animate-number/index.js +7 -8
  11. package/lib/backtop/index.d.ts +117 -69
  12. package/lib/backtop/index.js +10 -11
  13. package/lib/badge/index.d.ts +152 -119
  14. package/lib/badge/index.js +19 -19
  15. package/lib/breadcrumb/index.d.ts +119 -67
  16. package/lib/breadcrumb/index.js +17 -17
  17. package/lib/button/button.d.ts +2 -2
  18. package/lib/button/index.d.ts +155 -119
  19. package/lib/button/index.js +20 -19
  20. package/lib/card/index.d.ts +157 -128
  21. package/lib/card/index.js +22 -20
  22. package/lib/cascader/cascader.d.ts +3 -3
  23. package/lib/cascader/index.d.ts +354 -393
  24. package/lib/cascader/index.js +57 -59
  25. package/lib/checkbox/checkbox.d.ts +1 -1
  26. package/lib/checkbox/index.d.ts +175 -143
  27. package/lib/checkbox/index.js +45 -45
  28. package/lib/code-diff/index.d.ts +82 -65
  29. package/lib/code-diff/index.js +438 -381
  30. package/lib/collapse/index.d.ts +175 -156
  31. package/lib/collapse/index.js +27 -28
  32. package/lib/collapse-transition/index.d.ts +94 -19
  33. package/lib/collapse-transition/index.js +3 -4
  34. package/lib/color-picker/color-picker.d.ts +1 -1
  35. package/lib/color-picker/index.d.ts +165 -144
  36. package/lib/color-picker/index.js +40 -42
  37. package/lib/config-provider/index.d.ts +227 -160
  38. package/lib/config-provider/index.js +17 -17
  39. package/lib/container/container.d.ts +1 -1
  40. package/lib/container/index.d.ts +85 -74
  41. package/lib/container/index.js +26 -28
  42. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  43. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  44. package/lib/date-picker/date-picker.d.ts +4 -4
  45. package/lib/date-picker/index.d.ts +351 -380
  46. package/lib/date-picker/index.js +79 -80
  47. package/lib/date-picker/panel/date-range.d.ts +1 -1
  48. package/lib/date-picker/panel/date.d.ts +1 -1
  49. package/lib/date-picker/panel/time-range.d.ts +2 -2
  50. package/lib/date-picker/panel/time.d.ts +2 -2
  51. package/lib/date-picker/time-picker.d.ts +4 -4
  52. package/lib/dialog/index.d.ts +269 -299
  53. package/lib/dialog/index.js +228 -227
  54. package/lib/directives/index.js +29 -29
  55. package/lib/divider/index.d.ts +111 -57
  56. package/lib/divider/index.js +2 -3
  57. package/lib/dropdown/dropdown.d.ts +1 -1
  58. package/lib/dropdown/index.d.ts +136 -94
  59. package/lib/dropdown/index.js +22 -24
  60. package/lib/exception/index.d.ts +102 -41
  61. package/lib/exception/index.js +21 -21
  62. package/lib/fixed-navbar/index.d.ts +113 -59
  63. package/lib/fixed-navbar/index.js +2 -3
  64. package/lib/form/form.d.ts +1 -1
  65. package/lib/form/index.d.ts +132 -80
  66. package/lib/form/index.js +22 -21
  67. package/lib/icon/angle-double-down-line.js +17 -17
  68. package/lib/icon/angle-double-left-line.js +17 -17
  69. package/lib/icon/angle-double-left.js +17 -17
  70. package/lib/icon/angle-double-right-line.js +17 -17
  71. package/lib/icon/angle-double-right.js +17 -17
  72. package/lib/icon/angle-double-up-line.js +17 -17
  73. package/lib/icon/angle-down-fill.js +17 -17
  74. package/lib/icon/angle-down-line.js +17 -17
  75. package/lib/icon/angle-down.js +17 -17
  76. package/lib/icon/angle-left.js +17 -17
  77. package/lib/icon/angle-right.js +17 -17
  78. package/lib/icon/angle-up-fill.js +17 -17
  79. package/lib/icon/angle-up.js +17 -17
  80. package/lib/icon/archive-fill.js +17 -17
  81. package/lib/icon/arrows-left.js +17 -17
  82. package/lib/icon/arrows-right.js +17 -17
  83. package/lib/icon/assistant.js +17 -17
  84. package/lib/icon/audio-fill.js +17 -17
  85. package/lib/icon/bk.js +17 -17
  86. package/lib/icon/circle.js +17 -17
  87. package/lib/icon/close-line.js +17 -17
  88. package/lib/icon/close.js +17 -17
  89. package/lib/icon/code.js +17 -17
  90. package/lib/icon/cog-shape.js +17 -17
  91. package/lib/icon/collapse-left.js +17 -17
  92. package/lib/icon/copy-shape.js +17 -17
  93. package/lib/icon/copy.js +17 -17
  94. package/lib/icon/data-shape.js +17 -17
  95. package/lib/icon/del.js +17 -17
  96. package/lib/icon/doc-fill.js +17 -17
  97. package/lib/icon/done.js +17 -17
  98. package/lib/icon/down-shape.js +17 -17
  99. package/lib/icon/down-small.js +17 -17
  100. package/lib/icon/edit-line.js +17 -17
  101. package/lib/icon/ellipsis.js +17 -17
  102. package/lib/icon/enlarge-line.js +17 -17
  103. package/lib/icon/error.js +17 -17
  104. package/lib/icon/excel-fill.js +17 -17
  105. package/lib/icon/exclamation-circle-shape.js +17 -17
  106. package/lib/icon/eye.js +17 -17
  107. package/lib/icon/filliscreen-line.js +17 -17
  108. package/lib/icon/fix-line.js +17 -17
  109. package/lib/icon/fix-shape.js +17 -17
  110. package/lib/icon/folder-open.js +17 -17
  111. package/lib/icon/folder-shape-open.js +17 -17
  112. package/lib/icon/folder-shape.js +17 -17
  113. package/lib/icon/folder.js +17 -17
  114. package/lib/icon/funnel.js +17 -17
  115. package/lib/icon/grag-fill.js +17 -17
  116. package/lib/icon/help-document-fill.js +17 -17
  117. package/lib/icon/help-fill.js +17 -17
  118. package/lib/icon/help.js +17 -17
  119. package/lib/icon/image-fill.js +17 -17
  120. package/lib/icon/img-error.js +17 -17
  121. package/lib/icon/img-placehoulder.js +17 -17
  122. package/lib/icon/info-line.js +17 -17
  123. package/lib/icon/info.js +17 -17
  124. package/lib/icon/left-shape.js +17 -17
  125. package/lib/icon/left-turn-line.js +17 -17
  126. package/lib/icon/loading.js +17 -17
  127. package/lib/icon/narrow-line.js +17 -17
  128. package/lib/icon/original.js +17 -17
  129. package/lib/icon/pdf-fill.js +17 -17
  130. package/lib/icon/play-shape.js +17 -17
  131. package/lib/icon/plus.js +17 -17
  132. package/lib/icon/ppt-fill.js +17 -17
  133. package/lib/icon/qq.js +17 -17
  134. package/lib/icon/right-shape.js +17 -17
  135. package/lib/icon/right-turn-line.js +17 -17
  136. package/lib/icon/search.js +17 -17
  137. package/lib/icon/share.js +17 -17
  138. package/lib/icon/spinner.js +17 -17
  139. package/lib/icon/success.js +17 -17
  140. package/lib/icon/switcher-loading.js +17 -17
  141. package/lib/icon/text-all.js +17 -17
  142. package/lib/icon/text-file.js +17 -17
  143. package/lib/icon/text-fill.js +17 -17
  144. package/lib/icon/transfer.js +17 -17
  145. package/lib/icon/tree-application-shape.js +17 -17
  146. package/lib/icon/unfull-screen.js +17 -17
  147. package/lib/icon/unvisible.js +17 -17
  148. package/lib/icon/up-shape.js +17 -17
  149. package/lib/icon/upload.js +17 -17
  150. package/lib/icon/video-fill.js +17 -17
  151. package/lib/icon/warn.js +17 -17
  152. package/lib/icon/weixin-pro.js +17 -17
  153. package/lib/icon/weixin.js +17 -17
  154. package/lib/image/index.d.ts +149 -113
  155. package/lib/image/index.js +26 -27
  156. package/lib/index.js +1 -1
  157. package/lib/info-box/index.js +233 -232
  158. package/lib/input/index.d.ts +293 -326
  159. package/lib/input/index.js +48 -46
  160. package/lib/link/index.d.ts +122 -73
  161. package/lib/link/index.js +2 -2
  162. package/lib/loading/index.d.ts +156 -130
  163. package/lib/loading/index.js +33 -32
  164. package/lib/loading/loading.d.ts +1 -1
  165. package/lib/menu/index.d.ts +116 -55
  166. package/lib/menu/index.js +25 -26
  167. package/lib/message/index.js +25 -24
  168. package/lib/message/messageConstructor.d.ts +5 -5
  169. package/lib/modal/index.d.ts +185 -171
  170. package/lib/modal/index.js +19 -19
  171. package/lib/navigation/index.d.ts +188 -152
  172. package/lib/navigation/index.js +7 -9
  173. package/lib/notify/index.js +21 -20
  174. package/lib/overflow-title/index.d.ts +256 -343
  175. package/lib/overflow-title/index.js +10 -11
  176. package/lib/pagination/index.d.ts +198 -184
  177. package/lib/pagination/index.js +56 -49
  178. package/lib/pop-confirm/index.d.ts +153 -115
  179. package/lib/pop-confirm/index.js +4 -5
  180. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  181. package/lib/popover/content.d.ts +1 -1
  182. package/lib/popover/index.d.ts +359 -421
  183. package/lib/popover/index.js +122 -220
  184. package/lib/popover2/index.d.ts +83 -8
  185. package/lib/popover2/index.js +2 -2
  186. package/lib/process/index.d.ts +137 -93
  187. package/lib/process/index.js +226 -226
  188. package/lib/progress/index.d.ts +187 -178
  189. package/lib/progress/index.js +21 -22
  190. package/lib/progress/progress.d.ts +2 -2
  191. package/lib/radio/index.d.ts +140 -91
  192. package/lib/radio/index.js +48 -46
  193. package/lib/rate/index.d.ts +112 -55
  194. package/lib/rate/index.js +20 -19
  195. package/lib/resize-layout/index.d.ts +192 -168
  196. package/lib/resize-layout/index.js +21 -20
  197. package/lib/resize-layout/resize-layout.d.ts +2 -2
  198. package/lib/scrollbar/index.js +38 -38
  199. package/lib/search-select/index.d.ts +901 -684
  200. package/lib/search-select/index.js +274 -274
  201. package/lib/search-select/input.d.ts +2 -2
  202. package/lib/search-select/search-select.d.ts +188 -133
  203. package/lib/search-select/selected.d.ts +188 -133
  204. package/lib/select/index.d.ts +1333 -1491
  205. package/lib/select/index.js +280 -279
  206. package/lib/select/select.d.ts +169 -132
  207. package/lib/select/selectTagInput.d.ts +2 -2
  208. package/lib/shared/index.js +56 -54
  209. package/lib/sideslider/index.d.ts +201 -197
  210. package/lib/sideslider/index.js +228 -227
  211. package/lib/slider/index.d.ts +210 -214
  212. package/lib/slider/index.js +225 -226
  213. package/lib/steps/index.d.ts +149 -110
  214. package/lib/steps/index.js +231 -230
  215. package/lib/swiper/index.d.ts +127 -81
  216. package/lib/swiper/index.js +18 -18
  217. package/lib/switcher/index.d.ts +174 -152
  218. package/lib/switcher/index.js +22 -20
  219. package/lib/tab/index.d.ts +183 -151
  220. package/lib/tab/index.js +19 -20
  221. package/lib/table/components/table-column.d.ts +1 -1
  222. package/lib/table/hooks/use-columns.d.ts +1 -1
  223. package/lib/table/hooks/use-layout.d.ts +2 -2
  224. package/lib/table/hooks/use-rows.d.ts +1 -1
  225. package/lib/table/index.d.ts +362 -457
  226. package/lib/table/index.js +348 -336
  227. package/lib/table/table.d.ts +1 -1
  228. package/lib/table-column/index.d.ts +150 -104
  229. package/lib/tag/index.d.ts +142 -95
  230. package/lib/tag/index.js +19 -19
  231. package/lib/tag-input/index.d.ts +540 -755
  232. package/lib/tag-input/index.js +58 -52
  233. package/lib/tag-input/tag-input.d.ts +5 -5
  234. package/lib/time-picker/index.d.ts +386 -439
  235. package/lib/timeline/index.d.ts +131 -64
  236. package/lib/timeline/index.js +6 -6
  237. package/lib/transfer/index.d.ts +206 -191
  238. package/lib/tree/index.d.ts +308 -350
  239. package/lib/tree/index.js +74 -71
  240. package/lib/tree/tree.d.ts +1 -1
  241. package/lib/tree/use-tree-init.d.ts +1 -1
  242. package/lib/upload/index.d.ts +273 -311
  243. package/lib/upload/index.js +264 -261
  244. package/lib/upload/upload.d.ts +2 -2
  245. package/lib/virtual-render/index.d.ts +241 -333
  246. package/lib/virtual-render/index.js +29 -29
  247. package/lib/virtual-render/virtual-render.d.ts +1 -1
  248. package/package.json +1 -1
@@ -18,7 +18,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
18
18
 
19
19
  var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
20
20
  // Module
21
- ___CSS_LOADER_EXPORT___.push([module.id, `:host,:root{--d2h-bg-color:#fff;--d2h-border-color:#ddd;--d2h-dim-color:rgba(0,0,0,.3);--d2h-line-border-color:#eee;--d2h-file-header-bg-color:#f7f7f7;--d2h-file-header-border-color:#d8d8d8;--d2h-empty-placeholder-bg-color:#f1f1f1;--d2h-empty-placeholder-border-color:#e1e1e1;--d2h-selected-color:#c8e1ff;--d2h-ins-bg-color:#dfd;--d2h-ins-border-color:#b4e2b4;--d2h-ins-highlight-bg-color:#97f295;--d2h-ins-label-color:#399839;--d2h-del-bg-color:#fee8e9;--d2h-del-border-color:#e9aeae;--d2h-del-highlight-bg-color:#ffb6ba;--d2h-del-label-color:#c33;--d2h-change-del-color:#fdf2d0;--d2h-change-ins-color:#ded;--d2h-info-bg-color:#f8fafd;--d2h-info-border-color:#d5e4f2;--d2h-change-label-color:#d0b44c;--d2h-moved-label-color:#3572b0;--d2h-dark-color:#e6edf3;--d2h-dark-bg-color:#0d1117;--d2h-dark-border-color:#30363d;--d2h-dark-dim-color:#6e7681;--d2h-dark-line-border-color:#21262d;--d2h-dark-file-header-bg-color:#161b22;--d2h-dark-file-header-border-color:#30363d;--d2h-dark-empty-placeholder-bg-color:hsla(215,8%,47%,.1);--d2h-dark-empty-placeholder-border-color:#30363d;--d2h-dark-selected-color:rgba(56,139,253,.1);--d2h-dark-ins-bg-color:rgba(46,160,67,.15);--d2h-dark-ins-border-color:rgba(46,160,67,.4);--d2h-dark-ins-highlight-bg-color:rgba(46,160,67,.4);--d2h-dark-ins-label-color:#3fb950;--d2h-dark-del-bg-color:rgba(248,81,73,.1);--d2h-dark-del-border-color:rgba(248,81,73,.4);--d2h-dark-del-highlight-bg-color:rgba(248,81,73,.4);--d2h-dark-del-label-color:#f85149;--d2h-dark-change-del-color:rgba(210,153,34,.2);--d2h-dark-change-ins-color:rgba(46,160,67,.25);--d2h-dark-info-bg-color:rgba(56,139,253,.1);--d2h-dark-info-border-color:rgba(56,139,253,.4);--d2h-dark-change-label-color:#d29922;--d2h-dark-moved-label-color:#3572b0}.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;background-color:var(--d2h-file-header-bg-color);border-bottom:1px solid #d8d8d8;border-bottom:1px solid var(--d2h-file-header-border-color);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border:1px solid var(--d2h-ins-border-color);border-radius:5px 0 0 5px;color:#399839;color:var(--d2h-ins-label-color);padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border:1px solid var(--d2h-del-border-color);border-radius:0 5px 5px 0;color:#c33;color:var(--d2h-del-label-color);margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{border:1px solid #ddd;border:1px solid var(--d2h-border-color);border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border:1px solid var(--d2h-border-color);border-radius:3px;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff;background-color:var(--d2h-selected-color)}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em;width:calc(100% - 16em)}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.d2h-code-side-line{padding:0 4.5em;width:calc(100% - 9em)}.d2h-code-line-ctn{background:none;display:inline-block;padding:0;word-wrap:normal;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba;background-color:var(--d2h-del-highlight-bg-color)}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;display:inline-block;margin-top:-1px;-webkit-text-decoration:none;text-decoration:none}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;background-color:var(--d2h-ins-highlight-bg-color);text-align:left}.d2h-code-line-prefix{background:none;display:inline;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;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);color:var(--d2h-dim-color);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;background-color:var(--d2h-bg-color);border:solid #eee;border:solid var(--d2h-line-border-color);border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);color:var(--d2h-dim-color);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;background-color:var(--d2h-empty-placeholder-bg-color);border-color:#e1e1e1;border-color:var(--d2h-empty-placeholder-border-color)}.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;background-color:var(--d2h-del-bg-color);border-color:#e9aeae;border-color:var(--d2h-del-border-color)}.d2h-ins{background-color:#dfd;background-color:var(--d2h-ins-bg-color);border-color:#b4e2b4;border-color:var(--d2h-ins-border-color)}.d2h-info{background-color:#f8fafd;background-color:var(--d2h-info-bg-color);border-color:#d5e4f2;border-color:var(--d2h-info-border-color);color:rgba(0,0,0,.3);color:var(--d2h-dim-color)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0;background-color:var(--d2h-change-del-color)}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded;background-color:var(--d2h-change-ins-color)}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{-webkit-text-decoration:none;text-decoration:none}.d2h-file-list-wrapper a,.d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-moved-label-color)}.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;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;border-bottom:1px solid var(--d2h-border-color);margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{margin-right:10px;vertical-align:middle;fill:currentColor}.d2h-deleted{color:#c33;color:var(--d2h-del-label-color)}.d2h-added{color:#399839;color:var(--d2h-ins-label-color)}.d2h-changed{color:#d0b44c;color:var(--d2h-change-label-color)}.d2h-moved{color:#3572b0;color:var(--d2h-moved-label-color)}.d2h-tag{background-color:#fff;background-color:var(--d2h-bg-color);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33;border:1px solid var(--d2h-del-label-color)}.d2h-added-tag{border:1px solid #399839;border:1px solid var(--d2h-ins-label-color)}.d2h-changed-tag{border:1px solid #d0b44c;border:1px solid var(--d2h-change-label-color)}.d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-moved-label-color)}.d2h-dark-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:#e6edf3;color:var(--d2h-dark-color)}.d2h-dark-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-dark-color-scheme .d2h-lines-added{border:1px solid rgba(46,160,67,.4);border:1px solid var(--d2h-dark-ins-border-color);color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-lines-deleted{border:1px solid rgba(248,81,73,.4);border:1px solid var(--d2h-dark-del-border-color);color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-code-line del,.d2h-dark-color-scheme .d2h-code-side-line del{background-color:rgba(248,81,73,.4);background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-dark-color-scheme .d2h-code-line ins,.d2h-dark-color-scheme .d2h-code-side-line ins{background-color:rgba(46,160,67,.4);background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-dark-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-dark-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:hsla(215,8%,47%,.1);background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-dark-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-del{background-color:rgba(248,81,73,.1);background-color:var(--d2h-dark-del-bg-color);border-color:rgba(248,81,73,.4);border-color:var(--d2h-dark-del-border-color)}.d2h-dark-color-scheme .d2h-ins{background-color:rgba(46,160,67,.15);background-color:var(--d2h-dark-ins-bg-color);border-color:rgba(46,160,67,.4);border-color:var(--d2h-dark-ins-border-color)}.d2h-dark-color-scheme .d2h-info{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-info-bg-color);border-color:rgba(56,139,253,.4);border-color:var(--d2h-dark-info-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:rgba(210,153,34,.2);background-color:var(--d2h-dark-change-del-color)}.d2h-dark-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:rgba(46,160,67,.25);background-color:var(--d2h-dark-change-ins-color)}.d2h-dark-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-dark-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-file-collapse.d2h-selected{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-selected-color)}.d2h-dark-color-scheme .d2h-file-list-wrapper a,.d2h-dark-color-scheme .d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added{color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed{color:#d29922;color:var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-dark-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-dark-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-dark-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-dark-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}@media (prefers-color-scheme:dark){.d2h-auto-color-scheme{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);color:#e6edf3;color:var(--d2h-dark-color)}.d2h-auto-color-scheme .d2h-file-header{background-color:#161b22;background-color:var(--d2h-dark-file-header-bg-color);border-bottom:#30363d;border-bottom:var(--d2h-dark-file-header-border-color)}.d2h-auto-color-scheme .d2h-lines-added{border:1px solid rgba(46,160,67,.4);border:1px solid var(--d2h-dark-ins-border-color);color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-lines-deleted{border:1px solid rgba(248,81,73,.4);border:1px solid var(--d2h-dark-del-border-color);color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-code-line del,.d2h-auto-color-scheme .d2h-code-side-line del{background-color:rgba(248,81,73,.4);background-color:var(--d2h-dark-del-highlight-bg-color)}.d2h-auto-color-scheme .d2h-code-line ins,.d2h-auto-color-scheme .d2h-code-side-line ins{background-color:rgba(46,160,67,.4);background-color:var(--d2h-dark-ins-highlight-bg-color)}.d2h-auto-color-scheme .d2h-diff-tbody{border-color:#30363d;border-color:var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-code-side-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-files-diff .d2h-code-side-emptyplaceholder,.d2h-auto-color-scheme .d2h-files-diff .d2h-emptyplaceholder{background-color:hsla(215,8%,47%,.1);background-color:var(--d2h-dark-empty-placeholder-bg-color);border-color:#30363d;border-color:var(--d2h-dark-empty-placeholder-border-color)}.d2h-auto-color-scheme .d2h-code-linenumber{background-color:#0d1117;background-color:var(--d2h-dark-bg-color);border-color:#21262d;border-color:var(--d2h-dark-line-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-del{background-color:rgba(248,81,73,.1);background-color:var(--d2h-dark-del-bg-color);border-color:rgba(248,81,73,.4);border-color:var(--d2h-dark-del-border-color)}.d2h-auto-color-scheme .d2h-ins{background-color:rgba(46,160,67,.15);background-color:var(--d2h-dark-ins-bg-color);border-color:rgba(46,160,67,.4);border-color:var(--d2h-dark-ins-border-color)}.d2h-auto-color-scheme .d2h-info{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-info-bg-color);border-color:rgba(56,139,253,.4);border-color:var(--d2h-dark-info-border-color);color:#6e7681;color:var(--d2h-dark-dim-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-del.d2h-change{background-color:rgba(210,153,34,.2);background-color:var(--d2h-dark-change-del-color)}.d2h-auto-color-scheme .d2h-file-diff .d2h-ins.d2h-change{background-color:rgba(46,160,67,.25);background-color:var(--d2h-dark-change-ins-color)}.d2h-auto-color-scheme .d2h-file-wrapper{border:1px solid #30363d;border:1px solid var(--d2h-dark-border-color)}.d2h-auto-color-scheme .d2h-file-collapse{border:1px solid #0d1117;border:1px solid var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-file-collapse.d2h-selected{background-color:rgba(56,139,253,.1);background-color:var(--d2h-dark-selected-color)}.d2h-auto-color-scheme .d2h-file-list-wrapper a,.d2h-auto-color-scheme .d2h-file-list-wrapper a:visited{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-file-list>li{border-bottom:1px solid #0d1117;border-bottom:1px solid var(--d2h-dark-bg-color)}.d2h-dark-color-scheme .d2h-deleted{color:#f85149;color:var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added{color:#3fb950;color:var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed{color:#d29922;color:var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved{color:#3572b0;color:var(--d2h-dark-moved-label-color)}.d2h-auto-color-scheme .d2h-tag{background-color:#0d1117;background-color:var(--d2h-dark-bg-color)}.d2h-auto-color-scheme .d2h-deleted-tag{border:1px solid #f85149;border:1px solid var(--d2h-dark-del-label-color)}.d2h-auto-color-scheme .d2h-added-tag{border:1px solid #3fb950;border:1px solid var(--d2h-dark-ins-label-color)}.d2h-auto-color-scheme .d2h-changed-tag{border:1px solid #d29922;border:1px solid var(--d2h-dark-change-label-color)}.d2h-auto-color-scheme .d2h-moved-tag{border:1px solid #3572b0;border:1px solid var(--d2h-dark-moved-label-color)}}`, ""]);
21
+ ___CSS_LOADER_EXPORT___.push([module.id, `.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px;margin-bottom:1em}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em;width:calc(100% - 16em)}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.d2h-code-side-line{padding:0 4.5em;width:calc(100% - 9em)}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba;border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;border-radius:.2em;display:inline-block;margin-top:-1px;text-align:left;text-decoration:none}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.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;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.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{color:#3572b0;text-decoration:none}.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;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.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}`, ""]);
22
22
  // Exports
23
23
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (___CSS_LOADER_EXPORT___)));
24
24
 
@@ -1008,31 +1008,31 @@ function _arrayWithHoles(arr) {
1008
1008
  if (Array.isArray(arr)) return arr;
1009
1009
  }
1010
1010
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1011
- function _iterableToArrayLimit(r, l) {
1012
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1013
- if (null != t) {
1014
- var e,
1015
- n,
1016
- i,
1017
- u,
1018
- a = [],
1019
- f = !0,
1020
- o = !1;
1011
+ function _iterableToArrayLimit(arr, i) {
1012
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1013
+ if (null != _i) {
1014
+ var _s,
1015
+ _e,
1016
+ _x,
1017
+ _r,
1018
+ _arr = [],
1019
+ _n = !0,
1020
+ _d = !1;
1021
1021
  try {
1022
- if (i = (t = t.call(r)).next, 0 === l) {
1023
- if (Object(t) !== t) return;
1024
- f = !1;
1025
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1026
- } catch (r) {
1027
- o = !0, n = r;
1022
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
1023
+ if (Object(_i) !== _i) return;
1024
+ _n = !1;
1025
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1026
+ } catch (err) {
1027
+ _d = !0, _e = err;
1028
1028
  } finally {
1029
1029
  try {
1030
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1030
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1031
1031
  } finally {
1032
- if (o) throw n;
1032
+ if (_d) throw _e;
1033
1033
  }
1034
1034
  }
1035
- return a;
1035
+ return _arr;
1036
1036
  }
1037
1037
  }
1038
1038
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -2637,28 +2637,22 @@ var LineType;
2637
2637
  LineType["DELETE"] = "delete";
2638
2638
  LineType["CONTEXT"] = "context";
2639
2639
  })(LineType || (LineType = {}));
2640
- const OutputFormatType = {
2640
+ var OutputFormatType = {
2641
2641
  LINE_BY_LINE: 'line-by-line',
2642
2642
  SIDE_BY_SIDE: 'side-by-side',
2643
2643
  };
2644
- const LineMatchingType = {
2644
+ var LineMatchingType = {
2645
2645
  LINES: 'lines',
2646
2646
  WORDS: 'words',
2647
2647
  NONE: 'none',
2648
2648
  };
2649
- const DiffStyleType = {
2649
+ var DiffStyleType = {
2650
2650
  WORD: 'word',
2651
2651
  CHAR: 'char',
2652
2652
  };
2653
- var ColorSchemeType;
2654
- (function (ColorSchemeType) {
2655
- ColorSchemeType["AUTO"] = "auto";
2656
- ColorSchemeType["DARK"] = "dark";
2657
- ColorSchemeType["LIGHT"] = "light";
2658
- })(ColorSchemeType || (ColorSchemeType = {}));
2659
2653
  //# sourceMappingURL=types.js.map
2660
2654
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/utils.js
2661
- const specials = [
2655
+ var specials = [
2662
2656
  '-',
2663
2657
  '[',
2664
2658
  ']',
@@ -2676,7 +2670,7 @@ const specials = [
2676
2670
  '$',
2677
2671
  '|',
2678
2672
  ];
2679
- const regex = RegExp('[' + specials.join('\\') + ']', 'g');
2673
+ var regex = RegExp('[' + specials.join('\\') + ']', 'g');
2680
2674
  function escapeForRegExp(str) {
2681
2675
  return str.replace(regex, '\\$&');
2682
2676
  }
@@ -2684,8 +2678,8 @@ function unifyPath(path) {
2684
2678
  return path ? path.replace(/\\/g, '/') : path;
2685
2679
  }
2686
2680
  function hashCode(text) {
2687
- let i, chr, len;
2688
- let hash = 0;
2681
+ var i, chr, len;
2682
+ var hash = 0;
2689
2683
  for (i = 0, len = text.length; i < len; i++) {
2690
2684
  chr = text.charCodeAt(i);
2691
2685
  hash = (hash << 5) - hash + chr;
@@ -2695,24 +2689,33 @@ function hashCode(text) {
2695
2689
  }
2696
2690
  //# sourceMappingURL=utils.js.map
2697
2691
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff-parser.js
2692
+ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
2693
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2694
+ if (ar || !(i in from)) {
2695
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2696
+ ar[i] = from[i];
2697
+ }
2698
+ }
2699
+ return to.concat(ar || Array.prototype.slice.call(from));
2700
+ };
2698
2701
 
2699
2702
 
2700
2703
  function getExtension(filename, language) {
2701
- const filenameParts = filename.split('.');
2704
+ var filenameParts = filename.split('.');
2702
2705
  return filenameParts.length > 1 ? filenameParts[filenameParts.length - 1] : language;
2703
2706
  }
2704
2707
  function startsWithAny(str, prefixes) {
2705
- return prefixes.reduce((startsWith, prefix) => startsWith || str.startsWith(prefix), false);
2708
+ return prefixes.reduce(function (startsWith, prefix) { return startsWith || str.startsWith(prefix); }, false);
2706
2709
  }
2707
- const baseDiffFilenamePrefixes = ['a/', 'b/', 'i/', 'w/', 'c/', 'o/'];
2710
+ var baseDiffFilenamePrefixes = ['a/', 'b/', 'i/', 'w/', 'c/', 'o/'];
2708
2711
  function getFilename(line, linePrefix, extraPrefix) {
2709
- const prefixes = extraPrefix !== undefined ? [...baseDiffFilenamePrefixes, extraPrefix] : baseDiffFilenamePrefixes;
2710
- const FilenameRegExp = linePrefix
2711
- ? new RegExp(`^${escapeForRegExp(linePrefix)} "?(.+?)"?$`)
2712
+ var prefixes = extraPrefix !== undefined ? __spreadArray(__spreadArray([], baseDiffFilenamePrefixes, true), [extraPrefix], false) : baseDiffFilenamePrefixes;
2713
+ var FilenameRegExp = linePrefix
2714
+ ? new RegExp("^".concat(escapeForRegExp(linePrefix), " \"?(.+?)\"?$"))
2712
2715
  : new RegExp('^"?(.+?)"?$');
2713
- const [, filename = ''] = FilenameRegExp.exec(line) || [];
2714
- const matchingPrefix = prefixes.find(p => filename.indexOf(p) === 0);
2715
- const fnameWithoutPrefix = matchingPrefix ? filename.slice(matchingPrefix.length) : filename;
2716
+ var _a = FilenameRegExp.exec(line) || [], _b = _a[1], filename = _b === void 0 ? '' : _b;
2717
+ var matchingPrefix = prefixes.find(function (p) { return filename.indexOf(p) === 0; });
2718
+ var fnameWithoutPrefix = matchingPrefix ? filename.slice(matchingPrefix.length) : filename;
2716
2719
  return fnameWithoutPrefix.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/, '');
2717
2720
  }
2718
2721
  function getSrcFilename(line, srcPrefix) {
@@ -2721,36 +2724,37 @@ function getSrcFilename(line, srcPrefix) {
2721
2724
  function getDstFilename(line, dstPrefix) {
2722
2725
  return getFilename(line, '+++', dstPrefix);
2723
2726
  }
2724
- function parse(diffInput, config = {}) {
2725
- const files = [];
2726
- let currentFile = null;
2727
- let currentBlock = null;
2728
- let oldLine = null;
2729
- let oldLine2 = null;
2730
- let newLine = null;
2731
- let possibleOldName = null;
2732
- let possibleNewName = null;
2733
- const oldFileNameHeader = '--- ';
2734
- const newFileNameHeader = '+++ ';
2735
- const hunkHeaderPrefix = '@@';
2736
- const oldMode = /^old mode (\d{6})/;
2737
- const newMode = /^new mode (\d{6})/;
2738
- const deletedFileMode = /^deleted file mode (\d{6})/;
2739
- const newFileMode = /^new file mode (\d{6})/;
2740
- const copyFrom = /^copy from "?(.+)"?/;
2741
- const copyTo = /^copy to "?(.+)"?/;
2742
- const renameFrom = /^rename from "?(.+)"?/;
2743
- const renameTo = /^rename to "?(.+)"?/;
2744
- const similarityIndex = /^similarity index (\d+)%/;
2745
- const dissimilarityIndex = /^dissimilarity index (\d+)%/;
2746
- const index = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
2747
- const binaryFiles = /^Binary files (.*) and (.*) differ/;
2748
- const binaryDiff = /^GIT binary patch/;
2749
- const combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
2750
- const combinedMode = /^mode (\d{6}),(\d{6})\.\.(\d{6})/;
2751
- const combinedNewFile = /^new file mode (\d{6})/;
2752
- const combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/;
2753
- const diffLines = diffInput
2727
+ function parse(diffInput, config) {
2728
+ if (config === void 0) { config = {}; }
2729
+ var files = [];
2730
+ var currentFile = null;
2731
+ var currentBlock = null;
2732
+ var oldLine = null;
2733
+ var oldLine2 = null;
2734
+ var newLine = null;
2735
+ var possibleOldName = null;
2736
+ var possibleNewName = null;
2737
+ var oldFileNameHeader = '--- ';
2738
+ var newFileNameHeader = '+++ ';
2739
+ var hunkHeaderPrefix = '@@';
2740
+ var oldMode = /^old mode (\d{6})/;
2741
+ var newMode = /^new mode (\d{6})/;
2742
+ var deletedFileMode = /^deleted file mode (\d{6})/;
2743
+ var newFileMode = /^new file mode (\d{6})/;
2744
+ var copyFrom = /^copy from "?(.+)"?/;
2745
+ var copyTo = /^copy to "?(.+)"?/;
2746
+ var renameFrom = /^rename from "?(.+)"?/;
2747
+ var renameTo = /^rename to "?(.+)"?/;
2748
+ var similarityIndex = /^similarity index (\d+)%/;
2749
+ var dissimilarityIndex = /^dissimilarity index (\d+)%/;
2750
+ var index = /^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/;
2751
+ var binaryFiles = /^Binary files (.*) and (.*) differ/;
2752
+ var binaryDiff = /^GIT binary patch/;
2753
+ var combinedIndex = /^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/;
2754
+ var combinedMode = /^mode (\d{6}),(\d{6})\.\.(\d{6})/;
2755
+ var combinedNewFile = /^new file mode (\d{6})/;
2756
+ var combinedDeletedFile = /^deleted file mode (\d{6}),(\d{6})/;
2757
+ var diffLines = diffInput
2754
2758
  .replace(/\/g, '')
2755
2759
  .replace(/\r\n?/g, '\n')
2756
2760
  .split('\n');
@@ -2787,7 +2791,7 @@ function parse(diffInput, config = {}) {
2787
2791
  }
2788
2792
  function startBlock(line) {
2789
2793
  saveBlock();
2790
- let values;
2794
+ var values;
2791
2795
  if (currentFile !== null) {
2792
2796
  if ((values = /^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(line))) {
2793
2797
  currentFile.isCombined = false;
@@ -2820,11 +2824,11 @@ function parse(diffInput, config = {}) {
2820
2824
  function createLine(line) {
2821
2825
  if (currentFile === null || currentBlock === null || oldLine === null || newLine === null)
2822
2826
  return;
2823
- const currentLine = {
2827
+ var currentLine = {
2824
2828
  content: line,
2825
2829
  };
2826
- const addedPrefixes = currentFile.isCombined ? ['+ ', ' +', '++'] : ['+'];
2827
- const deletedPrefixes = currentFile.isCombined ? ['- ', ' -', '--'] : ['-'];
2830
+ var addedPrefixes = currentFile.isCombined ? ['+ ', ' +', '++'] : ['+'];
2831
+ var deletedPrefixes = currentFile.isCombined ? ['- ', ' -', '--'] : ['-'];
2828
2832
  if (startsWithAny(line, addedPrefixes)) {
2829
2833
  currentFile.addedLines++;
2830
2834
  currentLine.type = LineType.INSERT;
@@ -2845,7 +2849,7 @@ function parse(diffInput, config = {}) {
2845
2849
  currentBlock.lines.push(currentLine);
2846
2850
  }
2847
2851
  function existHunkHeader(line, lineIdx) {
2848
- let idx = lineIdx;
2852
+ var idx = lineIdx;
2849
2853
  while (idx < diffLines.length - 3) {
2850
2854
  if (line.startsWith('diff')) {
2851
2855
  return false;
@@ -2859,17 +2863,17 @@ function parse(diffInput, config = {}) {
2859
2863
  }
2860
2864
  return false;
2861
2865
  }
2862
- diffLines.forEach((line, lineIndex) => {
2866
+ diffLines.forEach(function (line, lineIndex) {
2863
2867
  if (!line || line.startsWith('*')) {
2864
2868
  return;
2865
2869
  }
2866
- let values;
2867
- const prevLine = diffLines[lineIndex - 1];
2868
- const nxtLine = diffLines[lineIndex + 1];
2869
- const afterNxtLine = diffLines[lineIndex + 2];
2870
+ var values;
2871
+ var prevLine = diffLines[lineIndex - 1];
2872
+ var nxtLine = diffLines[lineIndex + 1];
2873
+ var afterNxtLine = diffLines[lineIndex + 2];
2870
2874
  if (line.startsWith('diff --git') || line.startsWith('diff --combined')) {
2871
2875
  startFile();
2872
- const gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
2876
+ var gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;
2873
2877
  if ((values = gitDiffStart.exec(line))) {
2874
2878
  possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
2875
2879
  possibleNewName = getFilename(values[2], undefined, config.srcPrefix);
@@ -2882,7 +2886,7 @@ function parse(diffInput, config = {}) {
2882
2886
  }
2883
2887
  if (line.startsWith('Binary files') && !(currentFile === null || currentFile === void 0 ? void 0 : currentFile.isGitDiff)) {
2884
2888
  startFile();
2885
- const unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/;
2889
+ var unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/;
2886
2890
  if ((values = unixDiffBinaryStart.exec(line))) {
2887
2891
  possibleOldName = getFilename(values[1], undefined, config.dstPrefix);
2888
2892
  possibleNewName = getFilename(values[2], undefined, config.srcPrefix);
@@ -2913,7 +2917,7 @@ function parse(diffInput, config = {}) {
2913
2917
  currentFile.deletedLines = 0;
2914
2918
  currentFile.blocks = [];
2915
2919
  currentBlock = null;
2916
- const message = typeof config.diffTooBigMessage === 'function'
2920
+ var message = typeof config.diffTooBigMessage === 'function'
2917
2921
  ? config.diffTooBigMessage(files.length)
2918
2922
  : 'Diff too big to be displayed';
2919
2923
  startBlock(message);
@@ -2948,7 +2952,7 @@ function parse(diffInput, config = {}) {
2948
2952
  createLine(line);
2949
2953
  return;
2950
2954
  }
2951
- const doesNotExistHunkHeader = !existHunkHeader(line, lineIndex);
2955
+ var doesNotExistHunkHeader = !existHunkHeader(line, lineIndex);
2952
2956
  if (currentFile === null) {
2953
2957
  throw new Error('Where is my file !!!');
2954
2958
  }
@@ -4604,12 +4608,12 @@ function levenshtein(a, b) {
4604
4608
  if (b.length === 0) {
4605
4609
  return a.length;
4606
4610
  }
4607
- const matrix = [];
4608
- let i;
4611
+ var matrix = [];
4612
+ var i;
4609
4613
  for (i = 0; i <= b.length; i++) {
4610
4614
  matrix[i] = [i];
4611
4615
  }
4612
- let j;
4616
+ var j;
4613
4617
  for (j = 0; j <= a.length; j++) {
4614
4618
  matrix[0][j] = j;
4615
4619
  }
@@ -4626,21 +4630,22 @@ function levenshtein(a, b) {
4626
4630
  return matrix[b.length][a.length];
4627
4631
  }
4628
4632
  function newDistanceFn(str) {
4629
- return (x, y) => {
4630
- const xValue = str(x).trim();
4631
- const yValue = str(y).trim();
4632
- const lev = levenshtein(xValue, yValue);
4633
+ return function (x, y) {
4634
+ var xValue = str(x).trim();
4635
+ var yValue = str(y).trim();
4636
+ var lev = levenshtein(xValue, yValue);
4633
4637
  return lev / (xValue.length + yValue.length);
4634
4638
  };
4635
4639
  }
4636
4640
  function newMatcherFn(distance) {
4637
- function findBestMatch(a, b, cache = new Map()) {
4638
- let bestMatchDist = Infinity;
4639
- let bestMatch;
4640
- for (let i = 0; i < a.length; ++i) {
4641
- for (let j = 0; j < b.length; ++j) {
4642
- const cacheKey = JSON.stringify([a[i], b[j]]);
4643
- let md;
4641
+ function findBestMatch(a, b, cache) {
4642
+ if (cache === void 0) { cache = new Map(); }
4643
+ var bestMatchDist = Infinity;
4644
+ var bestMatch;
4645
+ for (var i = 0; i < a.length; ++i) {
4646
+ for (var j = 0; j < b.length; ++j) {
4647
+ var cacheKey = JSON.stringify([a[i], b[j]]);
4648
+ var md = void 0;
4644
4649
  if (!(cache.has(cacheKey) && (md = cache.get(cacheKey)))) {
4645
4650
  md = distance(a[i], b[j]);
4646
4651
  cache.set(cacheKey, md);
@@ -4653,23 +4658,25 @@ function newMatcherFn(distance) {
4653
4658
  }
4654
4659
  return bestMatch;
4655
4660
  }
4656
- function group(a, b, level = 0, cache = new Map()) {
4657
- const bm = findBestMatch(a, b, cache);
4661
+ function group(a, b, level, cache) {
4662
+ if (level === void 0) { level = 0; }
4663
+ if (cache === void 0) { cache = new Map(); }
4664
+ var bm = findBestMatch(a, b, cache);
4658
4665
  if (!bm || a.length + b.length < 3) {
4659
4666
  return [[a, b]];
4660
4667
  }
4661
- const a1 = a.slice(0, bm.indexA);
4662
- const b1 = b.slice(0, bm.indexB);
4663
- const aMatch = [a[bm.indexA]];
4664
- const bMatch = [b[bm.indexB]];
4665
- const tailA = bm.indexA + 1;
4666
- const tailB = bm.indexB + 1;
4667
- const a2 = a.slice(tailA);
4668
- const b2 = b.slice(tailB);
4669
- const group1 = group(a1, b1, level + 1, cache);
4670
- const groupMatch = group(aMatch, bMatch, level + 1, cache);
4671
- const group2 = group(a2, b2, level + 1, cache);
4672
- let result = groupMatch;
4668
+ var a1 = a.slice(0, bm.indexA);
4669
+ var b1 = b.slice(0, bm.indexB);
4670
+ var aMatch = [a[bm.indexA]];
4671
+ var bMatch = [b[bm.indexB]];
4672
+ var tailA = bm.indexA + 1;
4673
+ var tailB = bm.indexB + 1;
4674
+ var a2 = a.slice(tailA);
4675
+ var b2 = b.slice(tailB);
4676
+ var group1 = group(a1, b1, level + 1, cache);
4677
+ var groupMatch = group(aMatch, bMatch, level + 1, cache);
4678
+ var group2 = group(a2, b2, level + 1, cache);
4679
+ var result = groupMatch;
4673
4680
  if (bm.indexA > 0 || bm.indexB > 0) {
4674
4681
  result = group1.concat(result);
4675
4682
  }
@@ -4682,11 +4689,22 @@ function newMatcherFn(distance) {
4682
4689
  }
4683
4690
  //# sourceMappingURL=rematch.js.map
4684
4691
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/render-utils.js
4692
+ var __assign = (undefined && undefined.__assign) || function () {
4693
+ __assign = Object.assign || function(t) {
4694
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4695
+ s = arguments[i];
4696
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4697
+ t[p] = s[p];
4698
+ }
4699
+ return t;
4700
+ };
4701
+ return __assign.apply(this, arguments);
4702
+ };
4685
4703
 
4686
4704
 
4687
4705
 
4688
4706
 
4689
- const CSSLineClass = {
4707
+ var CSSLineClass = {
4690
4708
  INSERTS: 'd2h-ins',
4691
4709
  DELETES: 'd2h-del',
4692
4710
  CONTEXT: 'd2h-cntx',
@@ -4694,16 +4712,15 @@ const CSSLineClass = {
4694
4712
  INSERT_CHANGES: 'd2h-ins d2h-change',
4695
4713
  DELETE_CHANGES: 'd2h-del d2h-change',
4696
4714
  };
4697
- const defaultRenderConfig = {
4715
+ var defaultRenderConfig = {
4698
4716
  matching: LineMatchingType.NONE,
4699
4717
  matchWordsThreshold: 0.25,
4700
4718
  maxLineLengthHighlight: 10000,
4701
4719
  diffStyle: DiffStyleType.WORD,
4702
- colorScheme: ColorSchemeType.LIGHT,
4703
4720
  };
4704
- const separator = '/';
4705
- const distance = newDistanceFn((change) => change.value);
4706
- const matcher = newMatcherFn(distance);
4721
+ var separator = '/';
4722
+ var distance = newDistanceFn(function (change) { return change.value; });
4723
+ var matcher = newMatcherFn(distance);
4707
4724
  function isDevNullName(name) {
4708
4725
  return name.indexOf('dev/null') !== -1;
4709
4726
  }
@@ -4723,17 +4740,6 @@ function toCSSClass(lineType) {
4723
4740
  return CSSLineClass.DELETES;
4724
4741
  }
4725
4742
  }
4726
- function colorSchemeToCss(colorScheme) {
4727
- switch (colorScheme) {
4728
- case ColorSchemeType.DARK:
4729
- return 'd2h-dark-color-scheme';
4730
- case ColorSchemeType.AUTO:
4731
- return 'd2h-auto-color-scheme';
4732
- case ColorSchemeType.LIGHT:
4733
- default:
4734
- return 'd2h-light-color-scheme';
4735
- }
4736
- }
4737
4743
  function prefixLength(isCombined) {
4738
4744
  return isCombined ? 2 : 1;
4739
4745
  }
@@ -4747,26 +4753,27 @@ function escapeForHtml(str) {
4747
4753
  .replace(/'/g, '&#x27;')
4748
4754
  .replace(/\//g, '&#x2F;');
4749
4755
  }
4750
- function deconstructLine(line, isCombined, escape = true) {
4751
- const indexToSplit = prefixLength(isCombined);
4756
+ function deconstructLine(line, isCombined, escape) {
4757
+ if (escape === void 0) { escape = true; }
4758
+ var indexToSplit = prefixLength(isCombined);
4752
4759
  return {
4753
4760
  prefix: line.substring(0, indexToSplit),
4754
4761
  content: escape ? escapeForHtml(line.substring(indexToSplit)) : line.substring(indexToSplit),
4755
4762
  };
4756
4763
  }
4757
4764
  function filenameDiff(file) {
4758
- const oldFilename = unifyPath(file.oldName);
4759
- const newFilename = unifyPath(file.newName);
4765
+ var oldFilename = unifyPath(file.oldName);
4766
+ var newFilename = unifyPath(file.newName);
4760
4767
  if (oldFilename !== newFilename && !isDevNullName(oldFilename) && !isDevNullName(newFilename)) {
4761
- const prefixPaths = [];
4762
- const suffixPaths = [];
4763
- const oldFilenameParts = oldFilename.split(separator);
4764
- const newFilenameParts = newFilename.split(separator);
4765
- const oldFilenamePartsSize = oldFilenameParts.length;
4766
- const newFilenamePartsSize = newFilenameParts.length;
4767
- let i = 0;
4768
- let j = oldFilenamePartsSize - 1;
4769
- let k = newFilenamePartsSize - 1;
4768
+ var prefixPaths = [];
4769
+ var suffixPaths = [];
4770
+ var oldFilenameParts = oldFilename.split(separator);
4771
+ var newFilenameParts = newFilename.split(separator);
4772
+ var oldFilenamePartsSize = oldFilenameParts.length;
4773
+ var newFilenamePartsSize = newFilenameParts.length;
4774
+ var i = 0;
4775
+ var j = oldFilenamePartsSize - 1;
4776
+ var k = newFilenamePartsSize - 1;
4770
4777
  while (i < j && i < k) {
4771
4778
  if (oldFilenameParts[i] === newFilenameParts[i]) {
4772
4779
  prefixPaths.push(newFilenameParts[i]);
@@ -4786,10 +4793,10 @@ function filenameDiff(file) {
4786
4793
  break;
4787
4794
  }
4788
4795
  }
4789
- const finalPrefix = prefixPaths.join(separator);
4790
- const finalSuffix = suffixPaths.join(separator);
4791
- const oldRemainingPath = oldFilenameParts.slice(i, j + 1).join(separator);
4792
- const newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);
4796
+ var finalPrefix = prefixPaths.join(separator);
4797
+ var finalSuffix = suffixPaths.join(separator);
4798
+ var oldRemainingPath = oldFilenameParts.slice(i, j + 1).join(separator);
4799
+ var newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);
4793
4800
  if (finalPrefix.length && finalSuffix.length) {
4794
4801
  return (finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix);
4795
4802
  }
@@ -4809,10 +4816,10 @@ function filenameDiff(file) {
4809
4816
  }
4810
4817
  }
4811
4818
  function getHtmlId(file) {
4812
- return `d2h-${hashCode(filenameDiff(file)).toString().slice(-6)}`;
4819
+ return "d2h-".concat(hashCode(filenameDiff(file)).toString().slice(-6));
4813
4820
  }
4814
4821
  function getFileIcon(file) {
4815
- let templateName = 'file-changed';
4822
+ var templateName = 'file-changed';
4816
4823
  if (file.isRename) {
4817
4824
  templateName = 'file-renamed';
4818
4825
  }
@@ -4830,10 +4837,11 @@ function getFileIcon(file) {
4830
4837
  }
4831
4838
  return templateName;
4832
4839
  }
4833
- function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) {
4834
- const { matching, maxLineLengthHighlight, matchWordsThreshold, diffStyle } = Object.assign(Object.assign({}, defaultRenderConfig), config);
4835
- const line1 = deconstructLine(diffLine1, isCombined, false);
4836
- const line2 = deconstructLine(diffLine2, isCombined, false);
4840
+ function diffHighlight(diffLine1, diffLine2, isCombined, config) {
4841
+ if (config === void 0) { config = {}; }
4842
+ var _a = __assign(__assign({}, defaultRenderConfig), config), matching = _a.matching, maxLineLengthHighlight = _a.maxLineLengthHighlight, matchWordsThreshold = _a.matchWordsThreshold, diffStyle = _a.diffStyle;
4843
+ var line1 = deconstructLine(diffLine1, isCombined, false);
4844
+ var line2 = deconstructLine(diffLine2, isCombined, false);
4837
4845
  if (line1.content.length > maxLineLengthHighlight || line2.content.length > maxLineLengthHighlight) {
4838
4846
  return {
4839
4847
  oldLine: {
@@ -4846,17 +4854,17 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) {
4846
4854
  },
4847
4855
  };
4848
4856
  }
4849
- const diff = diffStyle === 'char'
4857
+ var diff = diffStyle === 'char'
4850
4858
  ? lib_diffChars(line1.content, line2.content)
4851
4859
  : lib_diffWordsWithSpace(line1.content, line2.content);
4852
- const changedWords = [];
4860
+ var changedWords = [];
4853
4861
  if (diffStyle === 'word' && matching === 'words') {
4854
- const removed = diff.filter(element => element.removed);
4855
- const added = diff.filter(element => element.added);
4856
- const chunks = matcher(added, removed);
4857
- chunks.forEach(chunk => {
4862
+ var removed = diff.filter(function (element) { return element.removed; });
4863
+ var added = diff.filter(function (element) { return element.added; });
4864
+ var chunks = matcher(added, removed);
4865
+ chunks.forEach(function (chunk) {
4858
4866
  if (chunk[0].length === 1 && chunk[1].length === 1) {
4859
- const dist = distance(chunk[0][0], chunk[1][0]);
4867
+ var dist = distance(chunk[0][0], chunk[1][0]);
4860
4868
  if (dist < matchWordsThreshold) {
4861
4869
  changedWords.push(chunk[0][0]);
4862
4870
  changedWords.push(chunk[1][0]);
@@ -4864,13 +4872,13 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) {
4864
4872
  }
4865
4873
  });
4866
4874
  }
4867
- const highlightedLine = diff.reduce((highlightedLine, part) => {
4868
- const elemType = part.added ? 'ins' : part.removed ? 'del' : null;
4869
- const addClass = changedWords.indexOf(part) > -1 ? ' class="d2h-change"' : '';
4870
- const escapedValue = escapeForHtml(part.value);
4875
+ var highlightedLine = diff.reduce(function (highlightedLine, part) {
4876
+ var elemType = part.added ? 'ins' : part.removed ? 'del' : null;
4877
+ var addClass = changedWords.indexOf(part) > -1 ? ' class="d2h-change"' : '';
4878
+ var escapedValue = escapeForHtml(part.value);
4871
4879
  return elemType !== null
4872
- ? `${highlightedLine}<${elemType}${addClass}>${escapedValue}</${elemType}>`
4873
- : `${highlightedLine}${escapedValue}`;
4880
+ ? "".concat(highlightedLine, "<").concat(elemType).concat(addClass, ">").concat(escapedValue, "</").concat(elemType, ">")
4881
+ : "".concat(highlightedLine).concat(escapedValue);
4874
4882
  }, '');
4875
4883
  return {
4876
4884
  oldLine: {
@@ -4886,19 +4894,12 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) {
4886
4894
  //# sourceMappingURL=render-utils.js.map
4887
4895
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/file-list-renderer.js
4888
4896
 
4889
- const baseTemplatesPath = 'file-summary';
4890
- const iconsBaseTemplatesPath = 'icon';
4891
- const defaultFileListRendererConfig = {
4892
- colorScheme: defaultRenderConfig.colorScheme,
4893
- };
4894
- class FileListRenderer {
4895
- constructor(hoganUtils, config = {}) {
4896
- this.hoganUtils = hoganUtils;
4897
- this.config = Object.assign(Object.assign({}, defaultFileListRendererConfig), config);
4898
- }
4899
- render(diffFiles) {
4900
- const files = diffFiles
4901
- .map(file => this.hoganUtils.render(baseTemplatesPath, 'line', {
4897
+ var baseTemplatesPath = 'file-summary';
4898
+ var iconsBaseTemplatesPath = 'icon';
4899
+ function render(diffFiles, hoganUtils) {
4900
+ var files = diffFiles
4901
+ .map(function (file) {
4902
+ return hoganUtils.render(baseTemplatesPath, 'line', {
4902
4903
  fileHtmlId: getHtmlId(file),
4903
4904
  oldName: file.oldName,
4904
4905
  newName: file.newName,
@@ -4906,56 +4907,65 @@ class FileListRenderer {
4906
4907
  deletedLines: '-' + file.deletedLines,
4907
4908
  addedLines: '+' + file.addedLines,
4908
4909
  }, {
4909
- fileIcon: this.hoganUtils.template(iconsBaseTemplatesPath, getFileIcon(file)),
4910
- }))
4911
- .join('\n');
4912
- return this.hoganUtils.render(baseTemplatesPath, 'wrapper', {
4913
- colorScheme: colorSchemeToCss(this.config.colorScheme),
4914
- filesNumber: diffFiles.length,
4915
- files: files,
4910
+ fileIcon: hoganUtils.template(iconsBaseTemplatesPath, getFileIcon(file)),
4916
4911
  });
4917
- }
4912
+ })
4913
+ .join('\n');
4914
+ return hoganUtils.render(baseTemplatesPath, 'wrapper', {
4915
+ filesNumber: diffFiles.length,
4916
+ files: files,
4917
+ });
4918
4918
  }
4919
4919
  //# sourceMappingURL=file-list-renderer.js.map
4920
4920
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/line-by-line-renderer.js
4921
+ var line_by_line_renderer_assign = (undefined && undefined.__assign) || function () {
4922
+ line_by_line_renderer_assign = Object.assign || function(t) {
4923
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4924
+ s = arguments[i];
4925
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4926
+ t[p] = s[p];
4927
+ }
4928
+ return t;
4929
+ };
4930
+ return line_by_line_renderer_assign.apply(this, arguments);
4931
+ };
4921
4932
 
4922
4933
 
4923
4934
 
4924
- const defaultLineByLineRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
4925
- const genericTemplatesPath = 'generic';
4926
- const line_by_line_renderer_baseTemplatesPath = 'line-by-line';
4927
- const line_by_line_renderer_iconsBaseTemplatesPath = 'icon';
4928
- const tagsBaseTemplatesPath = 'tag';
4929
- class LineByLineRenderer {
4930
- constructor(hoganUtils, config = {}) {
4935
+ var defaultLineByLineRendererConfig = line_by_line_renderer_assign(line_by_line_renderer_assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
4936
+ var genericTemplatesPath = 'generic';
4937
+ var line_by_line_renderer_baseTemplatesPath = 'line-by-line';
4938
+ var line_by_line_renderer_iconsBaseTemplatesPath = 'icon';
4939
+ var tagsBaseTemplatesPath = 'tag';
4940
+ var LineByLineRenderer = (function () {
4941
+ function LineByLineRenderer(hoganUtils, config) {
4942
+ if (config === void 0) { config = {}; }
4931
4943
  this.hoganUtils = hoganUtils;
4932
- this.config = Object.assign(Object.assign({}, defaultLineByLineRendererConfig), config);
4944
+ this.config = line_by_line_renderer_assign(line_by_line_renderer_assign({}, defaultLineByLineRendererConfig), config);
4933
4945
  }
4934
- render(diffFiles) {
4935
- const diffsHtml = diffFiles
4936
- .map(file => {
4937
- let diffs;
4946
+ LineByLineRenderer.prototype.render = function (diffFiles) {
4947
+ var _this = this;
4948
+ var diffsHtml = diffFiles
4949
+ .map(function (file) {
4950
+ var diffs;
4938
4951
  if (file.blocks.length) {
4939
- diffs = this.generateFileHtml(file);
4952
+ diffs = _this.generateFileHtml(file);
4940
4953
  }
4941
4954
  else {
4942
- diffs = this.generateEmptyDiff();
4955
+ diffs = _this.generateEmptyDiff();
4943
4956
  }
4944
- return this.makeFileDiffHtml(file, diffs);
4957
+ return _this.makeFileDiffHtml(file, diffs);
4945
4958
  })
4946
4959
  .join('\n');
4947
- return this.hoganUtils.render(genericTemplatesPath, 'wrapper', {
4948
- colorScheme: colorSchemeToCss(this.config.colorScheme),
4949
- content: diffsHtml,
4950
- });
4951
- }
4952
- makeFileDiffHtml(file, diffs) {
4960
+ return this.hoganUtils.render(genericTemplatesPath, 'wrapper', { content: diffsHtml });
4961
+ };
4962
+ LineByLineRenderer.prototype.makeFileDiffHtml = function (file, diffs) {
4953
4963
  if (this.config.renderNothingWhenEmpty && Array.isArray(file.blocks) && file.blocks.length === 0)
4954
4964
  return '';
4955
- const fileDiffTemplate = this.hoganUtils.template(line_by_line_renderer_baseTemplatesPath, 'file-diff');
4956
- const filePathTemplate = this.hoganUtils.template(genericTemplatesPath, 'file-path');
4957
- const fileIconTemplate = this.hoganUtils.template(line_by_line_renderer_iconsBaseTemplatesPath, 'file');
4958
- const fileTagTemplate = this.hoganUtils.template(tagsBaseTemplatesPath, getFileIcon(file));
4965
+ var fileDiffTemplate = this.hoganUtils.template(line_by_line_renderer_baseTemplatesPath, 'file-diff');
4966
+ var filePathTemplate = this.hoganUtils.template(genericTemplatesPath, 'file-path');
4967
+ var fileIconTemplate = this.hoganUtils.template(line_by_line_renderer_iconsBaseTemplatesPath, 'file');
4968
+ var fileTagTemplate = this.hoganUtils.template(tagsBaseTemplatesPath, getFileIcon(file));
4959
4969
  return fileDiffTemplate.render({
4960
4970
  file: file,
4961
4971
  fileHtmlId: getHtmlId(file),
@@ -4967,35 +4977,38 @@ class LineByLineRenderer {
4967
4977
  fileTag: fileTagTemplate,
4968
4978
  }),
4969
4979
  });
4970
- }
4971
- generateEmptyDiff() {
4980
+ };
4981
+ LineByLineRenderer.prototype.generateEmptyDiff = function () {
4972
4982
  return this.hoganUtils.render(genericTemplatesPath, 'empty-diff', {
4973
4983
  contentClass: 'd2h-code-line',
4974
4984
  CSSLineClass: CSSLineClass,
4975
4985
  });
4976
- }
4977
- generateFileHtml(file) {
4978
- const matcher = newMatcherFn(newDistanceFn((e) => deconstructLine(e.content, file.isCombined).content));
4986
+ };
4987
+ LineByLineRenderer.prototype.generateFileHtml = function (file) {
4988
+ var _this = this;
4989
+ var matcher = newMatcherFn(newDistanceFn(function (e) { return deconstructLine(e.content, file.isCombined).content; }));
4979
4990
  return file.blocks
4980
- .map(block => {
4981
- let lines = this.hoganUtils.render(genericTemplatesPath, 'block-header', {
4991
+ .map(function (block) {
4992
+ var lines = _this.hoganUtils.render(genericTemplatesPath, 'block-header', {
4982
4993
  CSSLineClass: CSSLineClass,
4983
4994
  blockHeader: file.isTooBig ? block.header : escapeForHtml(block.header),
4984
4995
  lineClass: 'd2h-code-linenumber',
4985
4996
  contentClass: 'd2h-code-line',
4986
4997
  });
4987
- this.applyLineGroupping(block).forEach(([contextLines, oldLines, newLines]) => {
4998
+ _this.applyLineGroupping(block).forEach(function (_a) {
4999
+ var contextLines = _a[0], oldLines = _a[1], newLines = _a[2];
4988
5000
  if (oldLines.length && newLines.length && !contextLines.length) {
4989
- this.applyRematchMatching(oldLines, newLines, matcher).map(([oldLines, newLines]) => {
4990
- const { left, right } = this.processChangedLines(file, file.isCombined, oldLines, newLines);
5001
+ _this.applyRematchMatching(oldLines, newLines, matcher).map(function (_a) {
5002
+ var oldLines = _a[0], newLines = _a[1];
5003
+ var _b = _this.processChangedLines(file, file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
4991
5004
  lines += left;
4992
5005
  lines += right;
4993
5006
  });
4994
5007
  }
4995
5008
  else if (contextLines.length) {
4996
- contextLines.forEach(line => {
4997
- const { prefix, content } = deconstructLine(line.content, file.isCombined);
4998
- lines += this.generateSingleLineHtml(file, {
5009
+ contextLines.forEach(function (line) {
5010
+ var _a = deconstructLine(line.content, file.isCombined), prefix = _a.prefix, content = _a.content;
5011
+ lines += _this.generateSingleLineHtml(file, {
4999
5012
  type: CSSLineClass.CONTEXT,
5000
5013
  prefix: prefix,
5001
5014
  content: content,
@@ -5005,7 +5018,7 @@ class LineByLineRenderer {
5005
5018
  });
5006
5019
  }
5007
5020
  else if (oldLines.length || newLines.length) {
5008
- const { left, right } = this.processChangedLines(file, file.isCombined, oldLines, newLines);
5021
+ var _b = _this.processChangedLines(file, file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
5009
5022
  lines += left;
5010
5023
  lines += right;
5011
5024
  }
@@ -5016,13 +5029,13 @@ class LineByLineRenderer {
5016
5029
  return lines;
5017
5030
  })
5018
5031
  .join('\n');
5019
- }
5020
- applyLineGroupping(block) {
5021
- const blockLinesGroups = [];
5022
- let oldLines = [];
5023
- let newLines = [];
5024
- for (let i = 0; i < block.lines.length; i++) {
5025
- const diffLine = block.lines[i];
5032
+ };
5033
+ LineByLineRenderer.prototype.applyLineGroupping = function (block) {
5034
+ var blockLinesGroups = [];
5035
+ var oldLines = [];
5036
+ var newLines = [];
5037
+ for (var i = 0; i < block.lines.length; i++) {
5038
+ var diffLine = block.lines[i];
5026
5039
  if ((diffLine.type !== LineType.INSERT && newLines.length) ||
5027
5040
  (diffLine.type === LineType.CONTEXT && oldLines.length > 0)) {
5028
5041
  blockLinesGroups.push([[], oldLines, newLines]);
@@ -5048,59 +5061,59 @@ class LineByLineRenderer {
5048
5061
  newLines = [];
5049
5062
  }
5050
5063
  return blockLinesGroups;
5051
- }
5052
- applyRematchMatching(oldLines, newLines, matcher) {
5053
- const comparisons = oldLines.length * newLines.length;
5054
- const maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(elem => elem.content.length)));
5055
- const doMatching = comparisons < this.config.matchingMaxComparisons &&
5064
+ };
5065
+ LineByLineRenderer.prototype.applyRematchMatching = function (oldLines, newLines, matcher) {
5066
+ var comparisons = oldLines.length * newLines.length;
5067
+ var maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(function (elem) { return elem.content.length; })));
5068
+ var doMatching = comparisons < this.config.matchingMaxComparisons &&
5056
5069
  maxLineSizeInBlock < this.config.maxLineSizeInBlockForComparison &&
5057
5070
  (this.config.matching === 'lines' || this.config.matching === 'words');
5058
5071
  return doMatching ? matcher(oldLines, newLines) : [[oldLines, newLines]];
5059
- }
5060
- processChangedLines(file, isCombined, oldLines, newLines) {
5061
- const fileHtml = {
5072
+ };
5073
+ LineByLineRenderer.prototype.processChangedLines = function (file, isCombined, oldLines, newLines) {
5074
+ var fileHtml = {
5062
5075
  right: '',
5063
5076
  left: '',
5064
5077
  };
5065
- const maxLinesNumber = Math.max(oldLines.length, newLines.length);
5066
- for (let i = 0; i < maxLinesNumber; i++) {
5067
- const oldLine = oldLines[i];
5068
- const newLine = newLines[i];
5069
- const diff = oldLine !== undefined && newLine !== undefined
5078
+ var maxLinesNumber = Math.max(oldLines.length, newLines.length);
5079
+ for (var i = 0; i < maxLinesNumber; i++) {
5080
+ var oldLine = oldLines[i];
5081
+ var newLine = newLines[i];
5082
+ var diff = oldLine !== undefined && newLine !== undefined
5070
5083
  ? diffHighlight(oldLine.content, newLine.content, isCombined, this.config)
5071
5084
  : undefined;
5072
- const preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5073
- ? Object.assign(Object.assign({}, (diff !== undefined
5085
+ var preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5086
+ ? line_by_line_renderer_assign(line_by_line_renderer_assign({}, (diff !== undefined
5074
5087
  ? {
5075
5088
  prefix: diff.oldLine.prefix,
5076
5089
  content: diff.oldLine.content,
5077
5090
  type: CSSLineClass.DELETE_CHANGES,
5078
5091
  }
5079
- : Object.assign(Object.assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { oldNumber: oldLine.oldNumber, newNumber: oldLine.newNumber }) : undefined;
5080
- const preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5081
- ? Object.assign(Object.assign({}, (diff !== undefined
5092
+ : line_by_line_renderer_assign(line_by_line_renderer_assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { oldNumber: oldLine.oldNumber, newNumber: oldLine.newNumber }) : undefined;
5093
+ var preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5094
+ ? line_by_line_renderer_assign(line_by_line_renderer_assign({}, (diff !== undefined
5082
5095
  ? {
5083
5096
  prefix: diff.newLine.prefix,
5084
5097
  content: diff.newLine.content,
5085
5098
  type: CSSLineClass.INSERT_CHANGES,
5086
5099
  }
5087
- : Object.assign(Object.assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { oldNumber: newLine.oldNumber, newNumber: newLine.newNumber }) : undefined;
5088
- const { left, right } = this.generateLineHtml(file, preparedOldLine, preparedNewLine);
5100
+ : line_by_line_renderer_assign(line_by_line_renderer_assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { oldNumber: newLine.oldNumber, newNumber: newLine.newNumber }) : undefined;
5101
+ var _a = this.generateLineHtml(file, preparedOldLine, preparedNewLine), left = _a.left, right = _a.right;
5089
5102
  fileHtml.left += left;
5090
5103
  fileHtml.right += right;
5091
5104
  }
5092
5105
  return fileHtml;
5093
- }
5094
- generateLineHtml(file, oldLine, newLine) {
5106
+ };
5107
+ LineByLineRenderer.prototype.generateLineHtml = function (file, oldLine, newLine) {
5095
5108
  return {
5096
5109
  left: this.generateSingleLineHtml(file, oldLine),
5097
5110
  right: this.generateSingleLineHtml(file, newLine),
5098
5111
  };
5099
- }
5100
- generateSingleLineHtml(file, line) {
5112
+ };
5113
+ LineByLineRenderer.prototype.generateSingleLineHtml = function (file, line) {
5101
5114
  if (line === undefined)
5102
5115
  return '';
5103
- const lineNumberHtml = this.hoganUtils.render(line_by_line_renderer_baseTemplatesPath, 'numbers', {
5116
+ var lineNumberHtml = this.hoganUtils.render(line_by_line_renderer_baseTemplatesPath, 'numbers', {
5104
5117
  oldNumber: line.oldNumber || '',
5105
5118
  newNumber: line.newNumber || '',
5106
5119
  });
@@ -5111,51 +5124,63 @@ class LineByLineRenderer {
5111
5124
  prefix: line.prefix === ' ' ? '&nbsp;' : line.prefix,
5112
5125
  content: line.content,
5113
5126
  lineNumber: lineNumberHtml,
5114
- line,
5115
- file,
5127
+ line: line,
5128
+ file: file,
5116
5129
  });
5117
- }
5118
- }
5130
+ };
5131
+ return LineByLineRenderer;
5132
+ }());
5133
+ /* harmony default export */ const line_by_line_renderer = (LineByLineRenderer);
5119
5134
  //# sourceMappingURL=line-by-line-renderer.js.map
5120
5135
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/side-by-side-renderer.js
5136
+ var side_by_side_renderer_assign = (undefined && undefined.__assign) || function () {
5137
+ side_by_side_renderer_assign = Object.assign || function(t) {
5138
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5139
+ s = arguments[i];
5140
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5141
+ t[p] = s[p];
5142
+ }
5143
+ return t;
5144
+ };
5145
+ return side_by_side_renderer_assign.apply(this, arguments);
5146
+ };
5121
5147
 
5122
5148
 
5123
5149
 
5124
- const defaultSideBySideRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
5125
- const side_by_side_renderer_genericTemplatesPath = 'generic';
5126
- const side_by_side_renderer_baseTemplatesPath = 'side-by-side';
5127
- const side_by_side_renderer_iconsBaseTemplatesPath = 'icon';
5128
- const side_by_side_renderer_tagsBaseTemplatesPath = 'tag';
5129
- class SideBySideRenderer {
5130
- constructor(hoganUtils, config = {}) {
5150
+ var defaultSideBySideRendererConfig = side_by_side_renderer_assign(side_by_side_renderer_assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 });
5151
+ var side_by_side_renderer_genericTemplatesPath = 'generic';
5152
+ var side_by_side_renderer_baseTemplatesPath = 'side-by-side';
5153
+ var side_by_side_renderer_iconsBaseTemplatesPath = 'icon';
5154
+ var side_by_side_renderer_tagsBaseTemplatesPath = 'tag';
5155
+ var SideBySideRenderer = (function () {
5156
+ function SideBySideRenderer(hoganUtils, config) {
5157
+ if (config === void 0) { config = {}; }
5131
5158
  this.hoganUtils = hoganUtils;
5132
- this.config = Object.assign(Object.assign({}, defaultSideBySideRendererConfig), config);
5159
+ this.config = side_by_side_renderer_assign(side_by_side_renderer_assign({}, defaultSideBySideRendererConfig), config);
5133
5160
  }
5134
- render(diffFiles) {
5135
- const diffsHtml = diffFiles
5136
- .map(file => {
5137
- let diffs;
5161
+ SideBySideRenderer.prototype.render = function (diffFiles) {
5162
+ var _this = this;
5163
+ var diffsHtml = diffFiles
5164
+ .map(function (file) {
5165
+ var diffs;
5138
5166
  if (file.blocks.length) {
5139
- diffs = this.generateFileHtml(file);
5167
+ diffs = _this.generateFileHtml(file);
5140
5168
  }
5141
5169
  else {
5142
- diffs = this.generateEmptyDiff();
5170
+ diffs = _this.generateEmptyDiff();
5143
5171
  }
5144
- return this.makeFileDiffHtml(file, diffs);
5172
+ return _this.makeFileDiffHtml(file, diffs);
5145
5173
  })
5146
5174
  .join('\n');
5147
- return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'wrapper', {
5148
- colorScheme: colorSchemeToCss(this.config.colorScheme),
5149
- content: diffsHtml,
5150
- });
5151
- }
5152
- makeFileDiffHtml(file, diffs) {
5175
+ return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'wrapper', { content: diffsHtml });
5176
+ };
5177
+ SideBySideRenderer.prototype.makeFileDiffHtml = function (file, diffs) {
5153
5178
  if (this.config.renderNothingWhenEmpty && Array.isArray(file.blocks) && file.blocks.length === 0)
5154
5179
  return '';
5155
- const fileDiffTemplate = this.hoganUtils.template(side_by_side_renderer_baseTemplatesPath, 'file-diff');
5156
- const filePathTemplate = this.hoganUtils.template(side_by_side_renderer_genericTemplatesPath, 'file-path');
5157
- const fileIconTemplate = this.hoganUtils.template(side_by_side_renderer_iconsBaseTemplatesPath, 'file');
5158
- const fileTagTemplate = this.hoganUtils.template(side_by_side_renderer_tagsBaseTemplatesPath, getFileIcon(file));
5180
+ var fileDiffTemplate = this.hoganUtils.template(side_by_side_renderer_baseTemplatesPath, 'file-diff');
5181
+ var filePathTemplate = this.hoganUtils.template(side_by_side_renderer_genericTemplatesPath, 'file-path');
5182
+ var fileIconTemplate = this.hoganUtils.template(side_by_side_renderer_iconsBaseTemplatesPath, 'file');
5183
+ var fileTagTemplate = this.hoganUtils.template(side_by_side_renderer_tagsBaseTemplatesPath, getFileIcon(file));
5159
5184
  return fileDiffTemplate.render({
5160
5185
  file: file,
5161
5186
  fileHtmlId: getHtmlId(file),
@@ -5167,8 +5192,8 @@ class SideBySideRenderer {
5167
5192
  fileTag: fileTagTemplate,
5168
5193
  }),
5169
5194
  });
5170
- }
5171
- generateEmptyDiff() {
5195
+ };
5196
+ SideBySideRenderer.prototype.generateEmptyDiff = function () {
5172
5197
  return {
5173
5198
  right: '',
5174
5199
  left: this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'empty-diff', {
@@ -5176,27 +5201,30 @@ class SideBySideRenderer {
5176
5201
  CSSLineClass: CSSLineClass,
5177
5202
  }),
5178
5203
  };
5179
- }
5180
- generateFileHtml(file) {
5181
- const matcher = newMatcherFn(newDistanceFn((e) => deconstructLine(e.content, file.isCombined).content));
5204
+ };
5205
+ SideBySideRenderer.prototype.generateFileHtml = function (file) {
5206
+ var _this = this;
5207
+ var matcher = newMatcherFn(newDistanceFn(function (e) { return deconstructLine(e.content, file.isCombined).content; }));
5182
5208
  return file.blocks
5183
- .map(block => {
5184
- const fileHtml = {
5185
- left: this.makeHeaderHtml(block.header, file),
5186
- right: this.makeHeaderHtml(''),
5209
+ .map(function (block) {
5210
+ var fileHtml = {
5211
+ left: _this.makeHeaderHtml(block.header, file),
5212
+ right: _this.makeHeaderHtml(''),
5187
5213
  };
5188
- this.applyLineGroupping(block).forEach(([contextLines, oldLines, newLines]) => {
5214
+ _this.applyLineGroupping(block).forEach(function (_a) {
5215
+ var contextLines = _a[0], oldLines = _a[1], newLines = _a[2];
5189
5216
  if (oldLines.length && newLines.length && !contextLines.length) {
5190
- this.applyRematchMatching(oldLines, newLines, matcher).map(([oldLines, newLines]) => {
5191
- const { left, right } = this.processChangedLines(file.isCombined, oldLines, newLines);
5217
+ _this.applyRematchMatching(oldLines, newLines, matcher).map(function (_a) {
5218
+ var oldLines = _a[0], newLines = _a[1];
5219
+ var _b = _this.processChangedLines(file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
5192
5220
  fileHtml.left += left;
5193
5221
  fileHtml.right += right;
5194
5222
  });
5195
5223
  }
5196
5224
  else if (contextLines.length) {
5197
- contextLines.forEach(line => {
5198
- const { prefix, content } = deconstructLine(line.content, file.isCombined);
5199
- const { left, right } = this.generateLineHtml({
5225
+ contextLines.forEach(function (line) {
5226
+ var _a = deconstructLine(line.content, file.isCombined), prefix = _a.prefix, content = _a.content;
5227
+ var _b = _this.generateLineHtml({
5200
5228
  type: CSSLineClass.CONTEXT,
5201
5229
  prefix: prefix,
5202
5230
  content: content,
@@ -5206,13 +5234,13 @@ class SideBySideRenderer {
5206
5234
  prefix: prefix,
5207
5235
  content: content,
5208
5236
  number: line.newNumber,
5209
- });
5237
+ }), left = _b.left, right = _b.right;
5210
5238
  fileHtml.left += left;
5211
5239
  fileHtml.right += right;
5212
5240
  });
5213
5241
  }
5214
5242
  else if (oldLines.length || newLines.length) {
5215
- const { left, right } = this.processChangedLines(file.isCombined, oldLines, newLines);
5243
+ var _b = _this.processChangedLines(file.isCombined, oldLines, newLines), left = _b.left, right = _b.right;
5216
5244
  fileHtml.left += left;
5217
5245
  fileHtml.right += right;
5218
5246
  }
@@ -5222,16 +5250,16 @@ class SideBySideRenderer {
5222
5250
  });
5223
5251
  return fileHtml;
5224
5252
  })
5225
- .reduce((accomulated, html) => {
5253
+ .reduce(function (accomulated, html) {
5226
5254
  return { left: accomulated.left + html.left, right: accomulated.right + html.right };
5227
5255
  }, { left: '', right: '' });
5228
- }
5229
- applyLineGroupping(block) {
5230
- const blockLinesGroups = [];
5231
- let oldLines = [];
5232
- let newLines = [];
5233
- for (let i = 0; i < block.lines.length; i++) {
5234
- const diffLine = block.lines[i];
5256
+ };
5257
+ SideBySideRenderer.prototype.applyLineGroupping = function (block) {
5258
+ var blockLinesGroups = [];
5259
+ var oldLines = [];
5260
+ var newLines = [];
5261
+ for (var i = 0; i < block.lines.length; i++) {
5262
+ var diffLine = block.lines[i];
5235
5263
  if ((diffLine.type !== LineType.INSERT && newLines.length) ||
5236
5264
  (diffLine.type === LineType.CONTEXT && oldLines.length > 0)) {
5237
5265
  blockLinesGroups.push([[], oldLines, newLines]);
@@ -5257,84 +5285,86 @@ class SideBySideRenderer {
5257
5285
  newLines = [];
5258
5286
  }
5259
5287
  return blockLinesGroups;
5260
- }
5261
- applyRematchMatching(oldLines, newLines, matcher) {
5262
- const comparisons = oldLines.length * newLines.length;
5263
- const maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(elem => elem.content.length)));
5264
- const doMatching = comparisons < this.config.matchingMaxComparisons &&
5288
+ };
5289
+ SideBySideRenderer.prototype.applyRematchMatching = function (oldLines, newLines, matcher) {
5290
+ var comparisons = oldLines.length * newLines.length;
5291
+ var maxLineSizeInBlock = Math.max.apply(null, [0].concat(oldLines.concat(newLines).map(function (elem) { return elem.content.length; })));
5292
+ var doMatching = comparisons < this.config.matchingMaxComparisons &&
5265
5293
  maxLineSizeInBlock < this.config.maxLineSizeInBlockForComparison &&
5266
5294
  (this.config.matching === 'lines' || this.config.matching === 'words');
5267
5295
  return doMatching ? matcher(oldLines, newLines) : [[oldLines, newLines]];
5268
- }
5269
- makeHeaderHtml(blockHeader, file) {
5296
+ };
5297
+ SideBySideRenderer.prototype.makeHeaderHtml = function (blockHeader, file) {
5270
5298
  return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'block-header', {
5271
5299
  CSSLineClass: CSSLineClass,
5272
5300
  blockHeader: (file === null || file === void 0 ? void 0 : file.isTooBig) ? blockHeader : escapeForHtml(blockHeader),
5273
5301
  lineClass: 'd2h-code-side-linenumber',
5274
5302
  contentClass: 'd2h-code-side-line',
5275
5303
  });
5276
- }
5277
- processChangedLines(isCombined, oldLines, newLines) {
5278
- const fileHtml = {
5304
+ };
5305
+ SideBySideRenderer.prototype.processChangedLines = function (isCombined, oldLines, newLines) {
5306
+ var fileHtml = {
5279
5307
  right: '',
5280
5308
  left: '',
5281
5309
  };
5282
- const maxLinesNumber = Math.max(oldLines.length, newLines.length);
5283
- for (let i = 0; i < maxLinesNumber; i++) {
5284
- const oldLine = oldLines[i];
5285
- const newLine = newLines[i];
5286
- const diff = oldLine !== undefined && newLine !== undefined
5310
+ var maxLinesNumber = Math.max(oldLines.length, newLines.length);
5311
+ for (var i = 0; i < maxLinesNumber; i++) {
5312
+ var oldLine = oldLines[i];
5313
+ var newLine = newLines[i];
5314
+ var diff = oldLine !== undefined && newLine !== undefined
5287
5315
  ? diffHighlight(oldLine.content, newLine.content, isCombined, this.config)
5288
5316
  : undefined;
5289
- const preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5290
- ? Object.assign(Object.assign({}, (diff !== undefined
5317
+ var preparedOldLine = oldLine !== undefined && oldLine.oldNumber !== undefined
5318
+ ? side_by_side_renderer_assign(side_by_side_renderer_assign({}, (diff !== undefined
5291
5319
  ? {
5292
5320
  prefix: diff.oldLine.prefix,
5293
5321
  content: diff.oldLine.content,
5294
5322
  type: CSSLineClass.DELETE_CHANGES,
5295
5323
  }
5296
- : Object.assign(Object.assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { number: oldLine.oldNumber }) : undefined;
5297
- const preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5298
- ? Object.assign(Object.assign({}, (diff !== undefined
5324
+ : side_by_side_renderer_assign(side_by_side_renderer_assign({}, deconstructLine(oldLine.content, isCombined)), { type: toCSSClass(oldLine.type) }))), { number: oldLine.oldNumber }) : undefined;
5325
+ var preparedNewLine = newLine !== undefined && newLine.newNumber !== undefined
5326
+ ? side_by_side_renderer_assign(side_by_side_renderer_assign({}, (diff !== undefined
5299
5327
  ? {
5300
5328
  prefix: diff.newLine.prefix,
5301
5329
  content: diff.newLine.content,
5302
5330
  type: CSSLineClass.INSERT_CHANGES,
5303
5331
  }
5304
- : Object.assign(Object.assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { number: newLine.newNumber }) : undefined;
5305
- const { left, right } = this.generateLineHtml(preparedOldLine, preparedNewLine);
5332
+ : side_by_side_renderer_assign(side_by_side_renderer_assign({}, deconstructLine(newLine.content, isCombined)), { type: toCSSClass(newLine.type) }))), { number: newLine.newNumber }) : undefined;
5333
+ var _a = this.generateLineHtml(preparedOldLine, preparedNewLine), left = _a.left, right = _a.right;
5306
5334
  fileHtml.left += left;
5307
5335
  fileHtml.right += right;
5308
5336
  }
5309
5337
  return fileHtml;
5310
- }
5311
- generateLineHtml(oldLine, newLine) {
5338
+ };
5339
+ SideBySideRenderer.prototype.generateLineHtml = function (oldLine, newLine) {
5312
5340
  return {
5313
5341
  left: this.generateSingleHtml(oldLine),
5314
5342
  right: this.generateSingleHtml(newLine),
5315
5343
  };
5316
- }
5317
- generateSingleHtml(line) {
5318
- const lineClass = 'd2h-code-side-linenumber';
5319
- const contentClass = 'd2h-code-side-line';
5344
+ };
5345
+ SideBySideRenderer.prototype.generateSingleHtml = function (line) {
5346
+ var lineClass = 'd2h-code-side-linenumber';
5347
+ var contentClass = 'd2h-code-side-line';
5320
5348
  return this.hoganUtils.render(side_by_side_renderer_genericTemplatesPath, 'line', {
5321
- type: (line === null || line === void 0 ? void 0 : line.type) || `${CSSLineClass.CONTEXT} d2h-emptyplaceholder`,
5322
- lineClass: line !== undefined ? lineClass : `${lineClass} d2h-code-side-emptyplaceholder`,
5323
- contentClass: line !== undefined ? contentClass : `${contentClass} d2h-code-side-emptyplaceholder`,
5349
+ type: (line === null || line === void 0 ? void 0 : line.type) || "".concat(CSSLineClass.CONTEXT, " d2h-emptyplaceholder"),
5350
+ lineClass: line !== undefined ? lineClass : "".concat(lineClass, " d2h-code-side-emptyplaceholder"),
5351
+ contentClass: line !== undefined ? contentClass : "".concat(contentClass, " d2h-code-side-emptyplaceholder"),
5324
5352
  prefix: (line === null || line === void 0 ? void 0 : line.prefix) === ' ' ? '&nbsp;' : line === null || line === void 0 ? void 0 : line.prefix,
5325
5353
  content: line === null || line === void 0 ? void 0 : line.content,
5326
5354
  lineNumber: line === null || line === void 0 ? void 0 : line.number,
5327
5355
  });
5328
- }
5329
- }
5356
+ };
5357
+ return SideBySideRenderer;
5358
+ }());
5359
+ /* harmony default export */ const side_by_side_renderer = (SideBySideRenderer);
5330
5360
  //# sourceMappingURL=side-by-side-renderer.js.map
5331
5361
  // EXTERNAL MODULE: ../../node_modules/hogan.js/lib/hogan.js
5332
5362
  var hogan = __webpack_require__(112);
5333
5363
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff2html-templates.js
5334
5364
 
5335
- const defaultTemplates = {};
5365
+ var defaultTemplates = {};
5336
5366
  defaultTemplates["file-summary-line"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<li class=\"d2h-file-list-line\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-name-wrapper\">"); t.b("\n" + i); t.b(t.rp("<fileIcon0", c, p, " ")); t.b(" <a href=\"#"); t.b(t.v(t.f("fileHtmlId", c, p, 0))); t.b("\" class=\"d2h-file-name\">"); t.b(t.v(t.f("fileName", c, p, 0))); t.b("</a>"); t.b("\n" + i); t.b(" <span class=\"d2h-file-stats\">"); t.b("\n" + i); t.b(" <span class=\"d2h-lines-added\">"); t.b(t.v(t.f("addedLines", c, p, 0))); t.b("</span>"); t.b("\n" + i); t.b(" <span class=\"d2h-lines-deleted\">"); t.b(t.v(t.f("deletedLines", c, p, 0))); t.b("</span>"); t.b("\n" + i); t.b(" </span>"); t.b("\n" + i); t.b(" </span>"); t.b("\n" + i); t.b("</li>"); return t.fl(); }, partials: { "<fileIcon0": { name: "fileIcon", partials: {}, subs: {} } }, subs: {} });
5337
- defaultTemplates["file-summary-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-file-list-wrapper "); t.b(t.v(t.f("colorScheme", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" <div class=\"d2h-file-list-header\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-list-title\">Files changed ("); t.b(t.v(t.f("filesNumber", c, p, 0))); t.b(")</span>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-hide\">hide</a>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-show\">show</a>"); t.b("\n" + i); t.b(" </div>"); t.b("\n" + i); t.b(" <ol class=\"d2h-file-list\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("files", c, p, 0))); t.b("\n" + i); t.b(" </ol>"); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5367
+ defaultTemplates["file-summary-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-file-list-wrapper\">"); t.b("\n" + i); t.b(" <div class=\"d2h-file-list-header\">"); t.b("\n" + i); t.b(" <span class=\"d2h-file-list-title\">Files changed ("); t.b(t.v(t.f("filesNumber", c, p, 0))); t.b(")</span>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-hide\">hide</a>"); t.b("\n" + i); t.b(" <a class=\"d2h-file-switch d2h-show\">show</a>"); t.b("\n" + i); t.b(" </div>"); t.b("\n" + i); t.b(" <ol class=\"d2h-file-list\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("files", c, p, 0))); t.b("\n" + i); t.b(" </ol>"); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5338
5368
  defaultTemplates["generic-block-header"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<tr>"); t.b("\n" + i); t.b(" <td class=\""); t.b(t.v(t.f("lineClass", c, p, 0))); t.b(" "); t.b(t.v(t.d("CSSLineClass.INFO", c, p, 0))); t.b("\"></td>"); t.b("\n" + i); t.b(" <td class=\""); t.b(t.v(t.d("CSSLineClass.INFO", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" <div class=\""); t.b(t.v(t.f("contentClass", c, p, 0))); t.b("\">"); if (t.s(t.f("blockHeader", c, p, 1), c, p, 0, 156, 173, "{{ }}")) {
5339
5369
  t.rs(c, p, function (c, p, t) { t.b(t.t(t.f("blockHeader", c, p, 0))); });
5340
5370
  c.pop();
@@ -5356,7 +5386,7 @@ defaultTemplates["generic-line"] = new hogan.Template({ code: function (c, p, i)
5356
5386
  t.b(" <span class=\"d2h-code-line-ctn\"><br></span>");
5357
5387
  t.b("\n" + i);
5358
5388
  } ; t.b(" </div>"); t.b("\n" + i); t.b(" </td>"); t.b("\n" + i); t.b("</tr>"); return t.fl(); }, partials: {}, subs: {} });
5359
- defaultTemplates["generic-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-wrapper "); t.b(t.v(t.f("colorScheme", c, p, 0))); t.b("\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("content", c, p, 0))); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5389
+ defaultTemplates["generic-wrapper"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<div class=\"d2h-wrapper\">"); t.b("\n" + i); t.b(" "); t.b(t.t(t.f("content", c, p, 0))); t.b("\n" + i); t.b("</div>"); return t.fl(); }, partials: {}, subs: {} });
5360
5390
  defaultTemplates["icon-file-added"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-added\" height=\"16\" title=\"added\" version=\"1.1\" viewBox=\"0 0 14 16\""); t.b("\n" + i); t.b(" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
5361
5391
  defaultTemplates["icon-file-changed"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-changed\" height=\"16\" title=\"modified\" version=\"1.1\""); t.b("\n" + i); t.b(" viewBox=\"0 0 14 16\" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
5362
5392
  defaultTemplates["icon-file-deleted"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<svg aria-hidden=\"true\" class=\"d2h-icon d2h-deleted\" height=\"16\" title=\"removed\" version=\"1.1\""); t.b("\n" + i); t.b(" viewBox=\"0 0 14 16\" width=\"14\">"); t.b("\n" + i); t.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>"); t.b("\n" + i); t.b("</svg>"); return t.fl(); }, partials: {}, subs: {} });
@@ -5371,58 +5401,85 @@ defaultTemplates["tag-file-deleted"] = new hogan.Template({ code: function (c, p
5371
5401
  defaultTemplates["tag-file-renamed"] = new hogan.Template({ code: function (c, p, i) { var t = this; t.b(i = i || ""); t.b("<span class=\"d2h-tag d2h-moved d2h-moved-tag\">RENAMED</span>"); return t.fl(); }, partials: {}, subs: {} });
5372
5402
  //# sourceMappingURL=diff2html-templates.js.map
5373
5403
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/hoganjs-utils.js
5404
+ var hoganjs_utils_assign = (undefined && undefined.__assign) || function () {
5405
+ hoganjs_utils_assign = Object.assign || function(t) {
5406
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5407
+ s = arguments[i];
5408
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5409
+ t[p] = s[p];
5410
+ }
5411
+ return t;
5412
+ };
5413
+ return hoganjs_utils_assign.apply(this, arguments);
5414
+ };
5374
5415
 
5375
5416
 
5376
- class HoganJsUtils {
5377
- constructor({ compiledTemplates = {}, rawTemplates = {} }) {
5378
- const compiledRawTemplates = Object.entries(rawTemplates).reduce((previousTemplates, [name, templateString]) => {
5379
- const compiledTemplate = hogan.compile(templateString, { asString: false });
5380
- return Object.assign(Object.assign({}, previousTemplates), { [name]: compiledTemplate });
5417
+ var HoganJsUtils = (function () {
5418
+ function HoganJsUtils(_a) {
5419
+ var _b = _a.compiledTemplates, compiledTemplates = _b === void 0 ? {} : _b, _c = _a.rawTemplates, rawTemplates = _c === void 0 ? {} : _c;
5420
+ var compiledRawTemplates = Object.entries(rawTemplates).reduce(function (previousTemplates, _a) {
5421
+ var _b;
5422
+ var name = _a[0], templateString = _a[1];
5423
+ var compiledTemplate = hogan.compile(templateString, { asString: false });
5424
+ return hoganjs_utils_assign(hoganjs_utils_assign({}, previousTemplates), (_b = {}, _b[name] = compiledTemplate, _b));
5381
5425
  }, {});
5382
- this.preCompiledTemplates = Object.assign(Object.assign(Object.assign({}, defaultTemplates), compiledTemplates), compiledRawTemplates);
5426
+ this.preCompiledTemplates = hoganjs_utils_assign(hoganjs_utils_assign(hoganjs_utils_assign({}, defaultTemplates), compiledTemplates), compiledRawTemplates);
5383
5427
  }
5384
- static compile(templateString) {
5428
+ HoganJsUtils.compile = function (templateString) {
5385
5429
  return hogan.compile(templateString, { asString: false });
5386
- }
5387
- render(namespace, view, params, partials, indent) {
5388
- const templateKey = this.templateKey(namespace, view);
5430
+ };
5431
+ HoganJsUtils.prototype.render = function (namespace, view, params, partials, indent) {
5432
+ var templateKey = this.templateKey(namespace, view);
5389
5433
  try {
5390
- const template = this.preCompiledTemplates[templateKey];
5434
+ var template = this.preCompiledTemplates[templateKey];
5391
5435
  return template.render(params, partials, indent);
5392
5436
  }
5393
5437
  catch (e) {
5394
- throw new Error(`Could not find template to render '${templateKey}'`);
5438
+ throw new Error("Could not find template to render '".concat(templateKey, "'"));
5395
5439
  }
5396
- }
5397
- template(namespace, view) {
5440
+ };
5441
+ HoganJsUtils.prototype.template = function (namespace, view) {
5398
5442
  return this.preCompiledTemplates[this.templateKey(namespace, view)];
5399
- }
5400
- templateKey(namespace, view) {
5401
- return `${namespace}-${view}`;
5402
- }
5403
- }
5443
+ };
5444
+ HoganJsUtils.prototype.templateKey = function (namespace, view) {
5445
+ return "".concat(namespace, "-").concat(view);
5446
+ };
5447
+ return HoganJsUtils;
5448
+ }());
5449
+ /* harmony default export */ const hoganjs_utils = (HoganJsUtils);
5404
5450
  //# sourceMappingURL=hoganjs-utils.js.map
5405
5451
  ;// CONCATENATED MODULE: ../../node_modules/diff2html/lib-esm/diff2html.js
5452
+ var diff2html_assign = (undefined && undefined.__assign) || function () {
5453
+ diff2html_assign = Object.assign || function(t) {
5454
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5455
+ s = arguments[i];
5456
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5457
+ t[p] = s[p];
5458
+ }
5459
+ return t;
5460
+ };
5461
+ return diff2html_assign.apply(this, arguments);
5462
+ };
5406
5463
 
5407
5464
 
5408
5465
 
5409
5466
 
5410
5467
 
5411
5468
 
5412
- const defaultDiff2HtmlConfig = Object.assign(Object.assign(Object.assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true });
5413
- function diff2html_parse(diffInput, configuration = {}) {
5414
- return DiffParser.parse(diffInput, Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration));
5469
+ var defaultDiff2HtmlConfig = diff2html_assign(diff2html_assign(diff2html_assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true });
5470
+ function diff2html_parse(diffInput, configuration) {
5471
+ if (configuration === void 0) { configuration = {}; }
5472
+ return DiffParser.parse(diffInput, diff2html_assign(diff2html_assign({}, defaultDiff2HtmlConfig), configuration));
5415
5473
  }
5416
- function html(diffInput, configuration = {}) {
5417
- const config = Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration);
5418
- const diffJson = typeof diffInput === 'string' ? parse(diffInput, config) : diffInput;
5419
- const hoganUtils = new HoganJsUtils(config);
5420
- const { colorScheme } = config;
5421
- const fileListRendererConfig = { colorScheme };
5422
- const fileList = config.drawFileList ? new FileListRenderer(hoganUtils, fileListRendererConfig).render(diffJson) : '';
5423
- const diffOutput = config.outputFormat === 'side-by-side'
5424
- ? new SideBySideRenderer(hoganUtils, config).render(diffJson)
5425
- : new LineByLineRenderer(hoganUtils, config).render(diffJson);
5474
+ function html(diffInput, configuration) {
5475
+ if (configuration === void 0) { configuration = {}; }
5476
+ var config = diff2html_assign(diff2html_assign({}, defaultDiff2HtmlConfig), configuration);
5477
+ var diffJson = typeof diffInput === 'string' ? parse(diffInput, config) : diffInput;
5478
+ var hoganUtils = new hoganjs_utils(config);
5479
+ var fileList = config.drawFileList ? render(diffJson, hoganUtils) : '';
5480
+ var diffOutput = config.outputFormat === 'side-by-side'
5481
+ ? new side_by_side_renderer(hoganUtils, config).render(diffJson)
5482
+ : new line_by_line_renderer(hoganUtils, config).render(diffJson);
5426
5483
  return fileList + diffOutput;
5427
5484
  }
5428
5485
  //# sourceMappingURL=diff2html.js.map