bkui-vue 0.0.2-table-refactor.7 → 0.0.2-table-refactor.9

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 (198) hide show
  1. package/dist/index.cjs.js +13 -13
  2. package/dist/index.esm.js +153 -153
  3. package/dist/index.umd.js +2 -2
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -1
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +1 -1
  9. package/lib/backtop/backtop.css +8 -8
  10. package/lib/backtop/backtop.less +3 -1
  11. package/lib/backtop/backtop.variable.css +11 -11
  12. package/lib/backtop/index.js +1 -1
  13. package/lib/badge/index.js +1 -1
  14. package/lib/breadcrumb/breadcrumb.css +4 -4
  15. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  16. package/lib/breadcrumb/index.js +1 -1
  17. package/lib/button/index.js +1 -1
  18. package/lib/card/card.css +4 -4
  19. package/lib/card/card.variable.css +4 -4
  20. package/lib/card/index.js +1 -1
  21. package/lib/cascader/cascader.css +4 -4
  22. package/lib/cascader/cascader.variable.css +4 -4
  23. package/lib/cascader/index.js +1 -1
  24. package/lib/checkbox/index.js +1 -1
  25. package/lib/code-diff/index.js +1 -1
  26. package/lib/collapse/index.js +1 -1
  27. package/lib/collapse-transition/index.js +1 -1
  28. package/lib/color-picker/index.js +1 -1
  29. package/lib/components.js +1 -1
  30. package/lib/config-provider/index.js +1 -1
  31. package/lib/container/container.css +4 -4
  32. package/lib/container/container.variable.css +4 -4
  33. package/lib/container/index.js +1 -1
  34. package/lib/date-picker/index.js +1 -1
  35. package/lib/dialog/index.js +1 -1
  36. package/lib/directives/index.js +1 -1
  37. package/lib/dist.index.js +1 -1
  38. package/lib/divider/index.js +1 -1
  39. package/lib/dropdown/index.js +1 -1
  40. package/lib/exception/index.js +1 -1
  41. package/lib/fixed-navbar/index.js +1 -1
  42. package/lib/form/index.js +1 -1
  43. package/lib/hooks.js +1 -1
  44. package/lib/icon/angle-double-down-line.js +1 -1
  45. package/lib/icon/angle-double-left-line.js +1 -1
  46. package/lib/icon/angle-double-left.js +1 -1
  47. package/lib/icon/angle-double-right-line.js +1 -1
  48. package/lib/icon/angle-double-right.js +1 -1
  49. package/lib/icon/angle-double-up-line.js +1 -1
  50. package/lib/icon/angle-down-fill.js +1 -1
  51. package/lib/icon/angle-down-line.js +1 -1
  52. package/lib/icon/angle-down.js +1 -1
  53. package/lib/icon/angle-left.js +1 -1
  54. package/lib/icon/angle-right.js +1 -1
  55. package/lib/icon/angle-up-fill.js +1 -1
  56. package/lib/icon/angle-up.js +1 -1
  57. package/lib/icon/archive-fill.js +1 -1
  58. package/lib/icon/arrows-left.js +1 -1
  59. package/lib/icon/arrows-right.js +1 -1
  60. package/lib/icon/assistant.js +1 -1
  61. package/lib/icon/audio-fill.js +1 -1
  62. package/lib/icon/bk.js +1 -1
  63. package/lib/icon/circle.js +1 -1
  64. package/lib/icon/close-line.js +1 -1
  65. package/lib/icon/close.js +1 -1
  66. package/lib/icon/code.js +1 -1
  67. package/lib/icon/cog-shape.js +1 -1
  68. package/lib/icon/collapse-left.js +1 -1
  69. package/lib/icon/copy-shape.js +1 -1
  70. package/lib/icon/copy.js +1 -1
  71. package/lib/icon/data-shape.js +1 -1
  72. package/lib/icon/del.js +1 -1
  73. package/lib/icon/doc-fill.js +1 -1
  74. package/lib/icon/done.js +1 -1
  75. package/lib/icon/down-shape.js +1 -1
  76. package/lib/icon/down-small.js +1 -1
  77. package/lib/icon/edit-line.js +1 -1
  78. package/lib/icon/ellipsis.js +1 -1
  79. package/lib/icon/enlarge-line.js +1 -1
  80. package/lib/icon/error.js +1 -1
  81. package/lib/icon/excel-fill.js +1 -1
  82. package/lib/icon/exclamation-circle-shape.js +1 -1
  83. package/lib/icon/eye.js +1 -1
  84. package/lib/icon/filliscreen-line.js +1 -1
  85. package/lib/icon/fix-line.js +1 -1
  86. package/lib/icon/fix-shape.js +1 -1
  87. package/lib/icon/folder-open.js +1 -1
  88. package/lib/icon/folder-shape-open.js +1 -1
  89. package/lib/icon/folder-shape.js +1 -1
  90. package/lib/icon/folder.js +1 -1
  91. package/lib/icon/funnel.js +1 -1
  92. package/lib/icon/help-document-fill.js +1 -1
  93. package/lib/icon/help-fill.js +1 -1
  94. package/lib/icon/help.js +1 -1
  95. package/lib/icon/image-fill.js +1 -1
  96. package/lib/icon/img-error.js +1 -1
  97. package/lib/icon/img-placehoulder.js +1 -1
  98. package/lib/icon/index.js +1 -1
  99. package/lib/icon/info-line.js +1 -1
  100. package/lib/icon/info.js +1 -1
  101. package/lib/icon/left-shape.js +1 -1
  102. package/lib/icon/left-turn-line.js +1 -1
  103. package/lib/icon/narrow-line.js +1 -1
  104. package/lib/icon/original.js +1 -1
  105. package/lib/icon/pdf-fill.js +1 -1
  106. package/lib/icon/play-shape.js +1 -1
  107. package/lib/icon/plus.js +1 -1
  108. package/lib/icon/ppt-fill.js +1 -1
  109. package/lib/icon/qq.js +1 -1
  110. package/lib/icon/right-shape.js +1 -1
  111. package/lib/icon/right-turn-line.js +1 -1
  112. package/lib/icon/search.js +1 -1
  113. package/lib/icon/share.js +1 -1
  114. package/lib/icon/spinner.js +1 -1
  115. package/lib/icon/success.js +1 -1
  116. package/lib/icon/switcher-loading.js +1 -1
  117. package/lib/icon/text-file.js +1 -1
  118. package/lib/icon/text-fill.js +1 -1
  119. package/lib/icon/transfer.js +1 -1
  120. package/lib/icon/tree-application-shape.js +1 -1
  121. package/lib/icon/unfull-screen.js +1 -1
  122. package/lib/icon/unvisible.js +1 -1
  123. package/lib/icon/up-shape.js +1 -1
  124. package/lib/icon/upload.js +1 -1
  125. package/lib/icon/video-fill.js +1 -1
  126. package/lib/icon/warn.js +1 -1
  127. package/lib/icon/weixin-pro.js +1 -1
  128. package/lib/icon/weixin.js +1 -1
  129. package/lib/image/index.js +1 -1
  130. package/lib/index.js +1 -1
  131. package/lib/info-box/index.js +1 -1
  132. package/lib/input/index.js +1 -1
  133. package/lib/input/input.css +4 -4
  134. package/lib/input/input.variable.css +4 -4
  135. package/lib/link/index.js +1 -1
  136. package/lib/loading/index.js +1 -1
  137. package/lib/loading/loading.css +4 -4
  138. package/lib/loading/loading.variable.css +4 -4
  139. package/lib/locale/index.js +1 -1
  140. package/lib/menu/index.js +1 -1
  141. package/lib/menu/menu.css +4 -4
  142. package/lib/menu/menu.variable.css +4 -4
  143. package/lib/message/index.js +1 -1
  144. package/lib/modal/index.js +1 -1
  145. package/lib/navigation/index.js +1 -1
  146. package/lib/notify/index.js +1 -1
  147. package/lib/overflow-title/index.js +1 -1
  148. package/lib/pagination/index.js +1 -1
  149. package/lib/plugin-popover/index.js +1 -1
  150. package/lib/plugins/index.js +1 -1
  151. package/lib/pop-confirm/index.js +1 -1
  152. package/lib/popover/index.js +1 -1
  153. package/lib/popover2/index.js +1 -1
  154. package/lib/preset.js +1 -1
  155. package/lib/process/index.js +1 -1
  156. package/lib/progress/index.js +1 -1
  157. package/lib/progress/progress.css +4 -4
  158. package/lib/progress/progress.variable.css +4 -4
  159. package/lib/radio/index.js +1 -1
  160. package/lib/rate/index.js +1 -1
  161. package/lib/resize-layout/index.js +1 -1
  162. package/lib/search-select/index.js +1 -1
  163. package/lib/search-select/search-select.css +11 -11
  164. package/lib/search-select/search-select.less +13 -9
  165. package/lib/search-select/search-select.variable.css +11 -11
  166. package/lib/select/index.js +1 -1
  167. package/lib/select/select.css +4 -4
  168. package/lib/select/select.variable.css +28 -28
  169. package/lib/shared/index.js +1 -1
  170. package/lib/sideslider/index.js +1 -1
  171. package/lib/slider/index.js +1 -1
  172. package/lib/steps/index.js +1 -1
  173. package/lib/styles/mixins/animate.css +4 -4
  174. package/lib/styles/mixins/animate.less +10 -6
  175. package/lib/styles/mixins/animate.variable.css +126 -4
  176. package/lib/styles/mixins/mixins.css +4 -4
  177. package/lib/styles/mixins/mixins.variable.css +4 -4
  178. package/lib/swiper/index.js +1 -1
  179. package/lib/switcher/index.js +1 -1
  180. package/lib/switcher/switcher.css +4 -4
  181. package/lib/switcher/switcher.variable.css +4 -4
  182. package/lib/tab/index.js +1 -1
  183. package/lib/table/index.js +1 -1
  184. package/lib/table/table.css +3 -1
  185. package/lib/table/table.less +3 -1
  186. package/lib/table/table.variable.css +3 -1
  187. package/lib/table-column/index.js +1 -1
  188. package/lib/tag/index.js +1 -1
  189. package/lib/tag-input/index.js +1 -1
  190. package/lib/time-picker/index.js +1 -1
  191. package/lib/timeline/index.js +1 -1
  192. package/lib/transfer/index.js +1 -1
  193. package/lib/tree/index.js +1 -1
  194. package/lib/upload/index.js +1 -1
  195. package/lib/upload/upload.css +4 -4
  196. package/lib/upload/upload.variable.css +4 -4
  197. package/lib/virtual-render/index.js +1 -1
  198. package/package.json +1 -1
@@ -1 +1 @@
1
- !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider")):r(e["../shared"],e.vue,e["../config-provider"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t)=>(()=>{"use strict";var o={2717:e=>{e.exports=t},4212:r=>{r.exports=e},748:e=>{e.exports=r}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{BkCheckbox:()=>p,BkCheckboxGroup:()=>f,default:()=>h});var e=i(4212);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function t(e,t,o){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}var n=i(748),l=i(2717),u=Symbol("CheckboxGroup"),s={modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),label:e.PropTypes.oneOfType([String,Number,Boolean]),trueLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(!0),falseLabel:e.PropTypes.oneOfType([String,Number,Boolean]).def(!1),disabled:e.PropTypes.bool.def(!1),checked:e.PropTypes.bool.def(!1),indeterminate:e.PropTypes.bool,beforeChange:e.PropTypes.func,size:e.PropTypes.size().def(e.SizeEnum.LARGE),immediateEmitChange:e.PropTypes.bool.def(!0)};const c=(0,n.defineComponent)({name:"Checkbox",props:s,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(r){var t,i,a=function(){var e=(0,n.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),s=(i=2,function(e){if(Array.isArray(e))return e}(t=a)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,i,a,l=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=i.call(t)).done)&&(l.push(o.value),l.length!==r);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return l}}(t,i)||function(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],d=s[1],f=d.blur,p=d.focus,h=function(){var r=(0,n.getCurrentInstance)(),t=r.props,o=r.emit,i=(0,n.inject)(u,e.EMPTY_OBJ),a=!(0,e.isEmptyObj)(i),l=(0,n.ref)(),s=(0,n.ref)(t.checked),c=(0,n.computed)((function(){return!(!a||!i.props.disabled)||t.disabled})),d=function(){var e=s.value?t.trueLabel:t.falseLabel;o("update:modelValue",e),o("change",e),a&&i.handleChange(),(0,n.nextTick)((function(){l.value.checked!==s.value&&(l.value.checked=s.value)}))};return a?(0,n.watch)((function(){return i.props.modelValue}),(function(e){s.value=e.includes(t.label)}),{deep:!0}):(0,n.watch)((function(){return t.modelValue}),(function(e){""!==e&&(s.value=e===t.trueLabel)}),{immediate:!0}),(0,n.watch)((function(){return t.checked}),(function(){s.value=t.checked,!1!==t.immediateEmitChange&&d()})),(0,n.onMounted)((function(){a&&i.register(r.proxy)})),(0,n.onBeforeUnmount)((function(){a&&i.unregister(r.proxy)})),{inputRef:l,isChecked:s,isDisabled:c,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!c.value){var r=e.target;s.value=r.checked,d()}}}}(),b=h.inputRef,v=h.isChecked,m=h.isDisabled,y=h.setChecked,g=h.handleChange,C=(0,l.usePrefix)().resolveClassName;return{inputRef:b,isFocus:c,isChecked:v,isDisabled:m,setChecked:y,handleBlur:f,handleFocus:p,handleChange:g,size:r.size,resolveClassName:C}},render:function(){var r,o=this,i=(0,e.classes)((t(r={},"".concat(this.resolveClassName("checkbox")),!0),t(r,"is-focused",this.isFocus),t(r,"is-checked",this.isChecked),t(r,"is-disabled",this.isDisabled),t(r,"is-indeterminated",this.indeterminate),r));return(0,n.createVNode)("label",{class:i},[(0,n.createVNode)("span",{class:[this.resolveClassName("checkbox-input"),this.size]},[(0,n.createVNode)("input",{ref:"inputRef",role:"checkbox",type:"checkbox",class:"".concat(this.resolveClassName("checkbox-original")),disabled:this.isDisabled,checked:this.isChecked,onChange:this.handleChange},null)]),o.label||o.$slots.default?(0,n.createVNode)("span",{class:"".concat(o.resolveClassName("checkbox-label"))},[o.$slots.default?o.$slots.default():o.label]):null])}});var d={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.array,disabled:e.PropTypes.bool,withValidate:e.PropTypes.bool.def(!0)};const f=(0,n.defineComponent)({name:"CheckboxGroup",props:d,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(r,t){var o=(0,e.useFormItem)(),i=[];return(0,n.provide)(u,{name:"CheckboxGroup",props:r,register:function(e){i.push(e)},unregister:function(e){var r=i.indexOf(e);r>-1&&i.splice(r,1)},handleChange:function(){var e=i.reduce((function(e,r){return r.isChecked&&e.push(r.label),e}),[]);t.emit("update:modelValue",e),t.emit("change",e)}}),(0,n.watch)((function(){return r.modelValue}),(function(){var e;r.withValidate&&(null===(e=null==o?void 0:o.validate)||void 0===e||e.call(o,"change"))})),(0,n.onMounted)((function(){var e=r.modelValue||[];i.forEach((function(r){e.includes(r.label)&&r.setChecked(!0)}))})),{resolveClassName:(0,l.usePrefix)().resolveClassName}},render:function(){var e;return(0,n.createVNode)("div",{class:"".concat(this.resolveClassName("checkbox-group"))},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var p=(0,e.withInstallProps)(c,{Group:f});const h=p})(),a})()));
1
+ import*as e from"../shared";import*as t from"vue";import*as n from"../config-provider";var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{Cs:()=>y,Kr:()=>v,ZP:()=>C});const a=(i={EMPTY_OBJ:()=>e.EMPTY_OBJ,PropTypes:()=>e.PropTypes,SizeEnum:()=>e.SizeEnum,classes:()=>e.classes,isEmptyObj:()=>e.isEmptyObj,useFormItem:()=>e.useFormItem,withInstallProps:()=>e.withInstallProps},l={},r.d(l,i),l);var i,l;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const d=(e=>{var t={};return r.d(t,e),t})({computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,getCurrentInstance:()=>t.getCurrentInstance,inject:()=>t.inject,nextTick:()=>t.nextTick,onBeforeUnmount:()=>t.onBeforeUnmount,onMounted:()=>t.onMounted,provide:()=>t.provide,ref:()=>t.ref,watch:()=>t.watch}),f=(e=>{var t={};return r.d(t,e),t})({usePrefix:()=>n.usePrefix});var p=Symbol("CheckboxGroup"),m={modelValue:a.PropTypes.oneOfType([String,Number,Boolean]),label:a.PropTypes.oneOfType([String,Number,Boolean]),trueLabel:a.PropTypes.oneOfType([String,Number,Boolean]).def(!0),falseLabel:a.PropTypes.oneOfType([String,Number,Boolean]).def(!1),disabled:a.PropTypes.bool.def(!1),checked:a.PropTypes.bool.def(!1),indeterminate:a.PropTypes.bool,beforeChange:a.PropTypes.func,size:a.PropTypes.size().def(a.SizeEnum.LARGE),immediateEmitChange:a.PropTypes.bool.def(!0)};const h=(0,d.defineComponent)({name:"Checkbox",props:m,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(e){var t,n,r=function(){var e=(0,d.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}(),o=(n=2,function(e){if(Array.isArray(e))return e}(t=r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],s=l.blur,u=l.focus,m=function(){var e=(0,d.getCurrentInstance)(),t=e.props,n=e.emit,r=(0,d.inject)(p,a.EMPTY_OBJ),o=!(0,a.isEmptyObj)(r),i=(0,d.ref)(),l=(0,d.ref)(t.checked),s=(0,d.computed)((function(){return!(!o||!r.props.disabled)||t.disabled})),u=function(){var e=l.value?t.trueLabel:t.falseLabel;n("update:modelValue",e),n("change",e),o&&r.handleChange(),(0,d.nextTick)((function(){i.value.checked!==l.value&&(i.value.checked=l.value)}))};return o?(0,d.watch)((function(){return r.props.modelValue}),(function(e){l.value=e.includes(t.label)}),{deep:!0}):(0,d.watch)((function(){return t.modelValue}),(function(e){""!==e&&(l.value=e===t.trueLabel)}),{immediate:!0}),(0,d.watch)((function(){return t.checked}),(function(){l.value=t.checked,!1!==t.immediateEmitChange&&u()})),(0,d.onMounted)((function(){o&&r.register(e.proxy)})),(0,d.onBeforeUnmount)((function(){o&&r.unregister(e.proxy)})),{inputRef:i,isChecked:l,isDisabled:s,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];l.value=e},handleChange:function(e){if(!s.value){var t=e.target;l.value=t.checked,u()}}}}(),h=m.inputRef,b=m.isChecked,v=m.isDisabled,y=m.setChecked,C=m.handleChange,g=(0,f.usePrefix)().resolveClassName;return{inputRef:h,isFocus:i,isChecked:b,isDisabled:v,setChecked:y,handleBlur:s,handleFocus:u,handleChange:C,size:e.size,resolveClassName:g}},render:function(){var e,t=this,n=(0,a.classes)((u(e={},"".concat(this.resolveClassName("checkbox")),!0),u(e,"is-focused",this.isFocus),u(e,"is-checked",this.isChecked),u(e,"is-disabled",this.isDisabled),u(e,"is-indeterminated",this.indeterminate),e));return(0,d.createVNode)("label",{class:n},[(0,d.createVNode)("span",{class:[this.resolveClassName("checkbox-input"),this.size]},[(0,d.createVNode)("input",{ref:"inputRef",role:"checkbox",type:"checkbox",class:"".concat(this.resolveClassName("checkbox-original")),disabled:this.isDisabled,checked:this.isChecked,onChange:this.handleChange},null)]),t.label||t.$slots.default?(0,d.createVNode)("span",{class:"".concat(t.resolveClassName("checkbox-label"))},[t.$slots.default?t.$slots.default():t.label]):null])}});var b={name:a.PropTypes.string.def(""),modelValue:a.PropTypes.array,disabled:a.PropTypes.bool,withValidate:a.PropTypes.bool.def(!0)};const v=(0,d.defineComponent)({name:"CheckboxGroup",props:b,emits:{"update:modelValue":function(e){return void 0!==e},change:function(e){return void 0!==e}},setup:function(e,t){var n=(0,a.useFormItem)(),r=[];return(0,d.provide)(p,{name:"CheckboxGroup",props:e,register:function(e){r.push(e)},unregister:function(e){var t=r.indexOf(e);t>-1&&r.splice(t,1)},handleChange:function(){var e=r.reduce((function(e,t){return t.isChecked&&e.push(t.label),e}),[]);t.emit("update:modelValue",e),t.emit("change",e)}}),(0,d.watch)((function(){return e.modelValue}),(function(){var t;e.withValidate&&(null===(t=null==n?void 0:n.validate)||void 0===t||t.call(n,"change"))})),(0,d.onMounted)((function(){var t=e.modelValue||[];r.forEach((function(e){t.includes(e.label)&&e.setChecked(!0)}))})),{resolveClassName:(0,f.usePrefix)().resolveClassName}},render:function(){var e;return(0,d.createVNode)("div",{class:"".concat(this.resolveClassName("checkbox-group"))},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var y=(0,a.withInstallProps)(h,{Group:v});const C=y;var g=o.Cs,k=o.Kr,P=o.ZP;export{g as BkCheckbox,k as BkCheckboxGroup,P as default};
@@ -1 +1 @@
1
- !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../config-provider"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("vue-types"),require("../config-provider")):n(e["../shared"],e.vue,e["vue-types"],e["../config-provider"]);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,n,t,i)=>(()=>{var r={2148:(e,n)=>{!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(t,i){var r,o=t.length,a=0,s=null,u=null,f="",d=[],p=!1,h=0,b=0,g="{{",v="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<d.length;i++)if(!(t=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(n)))return!1;return t}())for(var r,o=b;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});p=!1,b=d.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=l(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),h=0;h<o;h++)0==a?c(g,t,h)?(--h,m(),a=1):"\n"==t.charAt(h)?y(p):f+=t.charAt(h):1==a?(h+=g.length-1,"="==(s=(u=e.tags[t.charAt(h+1)])?t.charAt(h+1):"_v")?(h=w(t,h),a=0):(u&&h++,a=2),p=h):c(v,t,h)?(d.push({tag:s,n:l(f),otag:g,ctag:v,i:"/"==s?p-g.length:h+v.length}),f="",h+=v.length-1,a=0,"{"==s&&("}}"==v?h++:"}"===(r=d[d.length-1]).n.substr(r.n.length-1)&&(r.n=r.n.substring(0,r.n.length-1)))):f+=t.charAt(h);return y(p,!0),d};var u={_t:!0,"\n":!0,$:!0,"/":!0};function f(n,t,i,r){var o,a=[],s=null,l=null;for(o=i[i.length-1];n.length>0;){if(l=n.shift(),o&&"<"==o.tag&&!(l.tag in u))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||d(l,r))i.push(l),l.nodes=f(n,l.tag,i,r);else{if("/"==l.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+l.n);if(s=i.pop(),l.n!=s.n&&!p(l.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==n.length||"\n"==n[0].tag)}a.push(l)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}function d(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function p(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function h(e){var n=[];for(var t in e.partials)n.push('"'+g(t)+'":{name:"'+g(e.partials[t].name)+'", '+h(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+g(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+h(n)+"}"};var b=0;function g(e){return e.replace(o,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,n){var t="<"+(n.prefix||"")+e.n+b++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+g(t)+'",c,p,"'+(e.indent||"")+'"));',t}function y(e,n){n.code+="t.b(t.t(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(n,t,i){b=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":m,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[m(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+g(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=w('"'+g(e.text)+'"')},"{":y,"&":y},e.walk=function(n,t){for(var i,r=0,o=n.length;r<o;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(e,n,t){return f(e,0,[],(t=t||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var o=r.partials;for(var a in o)delete o[a].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(n)},112:(e,n,t)=>{var i=t(2148);i.Template=t(8719).Template,i.template=i.Template,e.exports=i},8719:(e,n)=>{!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),s.test(e)?e.replace(t,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=o,n)i[l]||(i[l]=n[l]);for(l in i)c.subs[l]=i[l];for(l in r=r||{},c.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)c.partials[l]=r[l];return c}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(c(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,o,a)),s=!!e,!i&&s&&n&&n.push("object"==typeof e?e:n[n.length-1]),s)},d:function(e,t,i,r){var o,a=e.split("."),s=this.f(a[0],t,i,r),l=this.options.modelGet,u=null;if("."===e&&c(t[t.length-2]))s=t[t.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=n(a[f],s,l))?(u=s,s=o):s="";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(u),s=this.mv(s,t,i),t.pop()),s)},f:function(e,t,i,r){for(var o=!1,a=!1,s=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(o=n(e,t[l],s))){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,t,i)),o):!r&&""},ls:function(e,n,t,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=o,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,o,a){var s,l=n[n.length-1],c=e.call(l);return"function"==typeof c?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,s.substring(r,o),a)):c},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(n)},2717:e=>{"use strict";e.exports=i},4212:n=>{"use strict";n.exports=e},748:e=>{"use strict";e.exports=n},210:e=>{"use strict";e.exports=t}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,a),t.exports}a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>Le});var e=a(4212);function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var t=a(748);function i(){}function r(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var c=n[o];if(c.removed){if(c.value=e.join(i.slice(l,l+c.count)),l+=c.count,o&&n[o-1].added){var u=n[o-1];n[o-1]=n[o],n[o]=u}}else{if(!c.added&&r){var f=t.slice(s,s+c.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),c.value=e.join(f)}else c.value=e.join(t.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}i.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var o=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var s=(n=this.removeEmpty(this.tokenize(n))).length,l=e.length,c=1,u=s+l,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],n,e,0);if(f[0].newPos+1>=s&&d+1>=l)return a([{value:this.join(n),count:n.length}]);function p(){for(var t=-1*c;t<=c;t+=2){var i=void 0,u=f[t-1],d=f[t+1],p=(d?d.newPos:0)-t;u&&(f[t-1]=void 0);var h=u&&u.newPos+1<s,b=d&&0<=p&&p<l;if(h||b){if(!h||b&&u.newPos<d.newPos?(i={newPos:(g=d).newPos,components:g.components.slice(0)},o.pushComponent(i.components,void 0,!0)):((i=u).newPos++,o.pushComponent(i.components,!0,void 0)),p=o.extractCommon(i,n,e,t),i.newPos+1>=s&&p+1>=l)return a(r(o,i.components,n,e,o.useLongestToken));f[t]=i}else f[t]=void 0}var g;c++}if(i)!function e(){setTimeout((function(){if(c>u)return i();p()||e()}),0)}();else for(;c<=u;){var h=p();if(h)return h}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new i;var o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,c=new i;c.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(n)},c.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&o.test(n[t])&&o.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var u=new i;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return p(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}u.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new i).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new i).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var h=Object.prototype.toString,b=new i;function g(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===h.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=g(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===f(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=g(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}b.useLongestToken=!0,b.tokenize=u.tokenize,b.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(g(e,null,null,r),r," ")},b.equals=function(e,n){return i.prototype.equals.call(b,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var v,m=new i;function y(e,n,t,i,r,o){return function(e,n,t,i,r,o,a){return function(e){var n=[];e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),n.push("==================================================================="),n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var i=e.hunks[t];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),n.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),n.push.apply(n,i.lines)}return n.join("\n")+"\n"}(function(e,n,t,i,r,o,a){a||(a={}),void 0===a.context&&(a.context=4);var s=function(e,n,t){return u.diff(e,n,t)}(t,i,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var c=[],f=0,p=0,h=[],b=1,g=1,v=function(e){var n=s[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var o;if(!f){var u=s[e-1];f=b,p=g,u&&(h=a.context>0?l(u.lines.slice(-a.context)):[],f-=h.length,p-=h.length)}(o=h).push.apply(o,d(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?g+=r.length:b+=r.length}else{if(f)if(r.length<=2*a.context&&e<s.length-2){var v;(v=h).push.apply(v,d(l(r)))}else{var m,y=Math.min(r.length,a.context);(m=h).push.apply(m,d(l(r.slice(0,y))));var w={oldStart:f,oldLines:b-f+y,newStart:p,newLines:g-p+y,lines:h};if(e>=s.length-2&&r.length<=a.context){var x=/\n$/.test(t),N=/\n$/.test(i),C=0==r.length&&h.length>w.oldLines;!x&&C&&t.length>0&&h.splice(w.oldLines,0,"\"),(x||C)&&N||h.push("\")}c.push(w),f=0,p=0,h=[]}b+=r.length,g+=r.length}},m=0;m<s.length;m++)v(m);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:c}}(e,n,t,i,r,o,a))}(e,e,n,t,i,r,o)}m.tokenize=function(e){return e.slice()},m.join=m.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(v||(v={}));var w=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function x(e){return e?e.replace(/\\/g,"/"):e}var N=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};function C(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function T(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var S=["a/","b/","i/","w/","c/","o/"];function E(e,n,t){var i=void 0!==t?N(N([],S,!0),[t],!1):S,r=((n?new RegExp("^".concat(n.replace(w,"\\$&"),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],o=void 0===r?"":r,a=i.find((function(e){return 0===o.indexOf(e)}));return(a?o.slice(a.length):o).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function L(){}function k(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var c=n[o];if(c.removed){if(c.value=e.join(i.slice(l,l+c.count)),l+=c.count,o&&n[o-1].added){var u=n[o-1];n[o-1]=n[o],n[o]=u}}else{if(!c.added&&r){var f=t.slice(s,s+c.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),c.value=e.join(f)}else c.value=e.join(t.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}L.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,c=a+s;t.maxEditLength&&(c=Math.min(c,t.maxEditLength));var u=[{newPos:-1,components:[]}],f=this.extractCommon(u[0],n,e,0);if(u[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,c=u[t-1],f=u[t+1],d=(f?f.newPos:0)-t;c&&(u[t-1]=void 0);var p=c&&c.newPos+1<a,h=f&&0<=d&&d<s;if(p||h){if(!p||h&&c.newPos<f.newPos?(i={newPos:(b=f).newPos,components:b.components.slice(0)},r.pushComponent(i.components,void 0,!0)):((i=c).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(k(r,i.components,n,e,r.useLongestToken));u[t]=i}else u[t]=void 0}var b;l++}if(i)!function e(){setTimeout((function(){if(l>c)return i();d()||e()}),0)}();else for(;l<=c;){var p=d();if(p)return p}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var H=new L,j=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,I=/\S/,O=new L;O.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!I.test(e)&&!I.test(n)},O.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&j.test(n[t])&&j.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var P=new L;function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}P.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new L).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new L).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var M=Object.prototype.toString,z=new L;function F(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===M.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=F(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===A(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=F(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}z.useLongestToken=!0,z.tokenize=P.tokenize,z.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(F(e,null,null,r),r," ")},z.equals=function(e,n){return L.prototype.equals.call(z,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var D=new L;function W(e){return function(n,t){var i=e(n).trim(),r=e(t).trim();return function(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}(i,r)/(i.length+r.length)}}function R(e){return function n(t,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var a=function(n,t,i){void 0===i&&(i=new Map);for(var r,o=1/0,a=0;a<n.length;++a)for(var s=0;s<t.length;++s){var l=JSON.stringify([n[a],t[s]]),c=void 0;i.has(l)&&(c=i.get(l))||(c=e(n[a],t[s]),i.set(l,c)),c<o&&(r={indexA:a,indexB:s,score:o=c})}return r}(t,i,o);if(!a||t.length+i.length<3)return[[t,i]];var s=t.slice(0,a.indexA),l=i.slice(0,a.indexB),c=[t[a.indexA]],u=[i[a.indexB]],f=a.indexA+1,d=a.indexB+1,p=t.slice(f),h=i.slice(d),b=n(s,l,r+1,o),g=n(c,u,r+1,o),v=n(p,h,r+1,o),m=g;return(a.indexA>0||a.indexB>0)&&(m=b.concat(m)),(t.length>f||i.length>d)&&(m=m.concat(v)),m}}D.tokenize=function(e){return e.slice()},D.join=D.removeEmpty=function(e){return e};var B=function(){return B=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},B.apply(this,arguments)},q={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},U={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},$="/",G=W((function(e){return e.value})),V=R(G);function _(e){return-1!==e.indexOf("dev/null")}function X(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function J(e){switch(e){case v.CONTEXT:return q.CONTEXT;case v.INSERT:return q.INSERTS;case v.DELETE:return q.DELETES}}function K(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function Z(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?K(e.substring(i)):e.substring(i)}}function Q(e){var n=x(e.oldName),t=x(e.newName);if(n===t||_(n)||_(t))return _(t)?n:t;for(var i=[],r=[],o=n.split($),a=t.split($),s=0,l=o.length-1,c=a.length-1;s<l&&s<c&&o[s]===a[s];)i.push(a[s]),s+=1;for(;l>s&&c>s&&o[l]===a[c];)r.unshift(a[c]),l-=1,c-=1;var u=i.join($),f=r.join($),d=o.slice(s,l+1).join($),p=a.slice(s,c+1).join($);return u.length&&f.length?u+$+"{"+d+" → "+p+"}"+$+f:u.length?u+$+"{"+d+" → "+p+"}":f.length?"{"+d+" → "+p+"}"+$+f:n+" → "+t}function Y(e){return"d2h-".concat(function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}(Q(e)).toString().slice(-6))}function ee(e){var n="file-changed";return e.isRename||e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n}function ne(e,n,t,i){void 0===i&&(i={});var r=B(B({},U),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,c=Z(e,t,!1),u=Z(n,t,!1);if(c.content.length>a||u.content.length>a)return{oldLine:{prefix:c.prefix,content:K(c.content)},newLine:{prefix:u.prefix,content:K(u.content)}};var f,d,p="char"===l?(f=c.content,d=u.content,H.diff(f,d,undefined)):function(e,n,t){return O.diff(e,n,void 0)}(c.content,u.content),h=[];if("word"===l&&"words"===o){var b=p.filter((function(e){return e.removed})),g=p.filter((function(e){return e.added}));V(g,b).forEach((function(e){1===e[0].length&&1===e[1].length&&G(e[0][0],e[1][0])<s&&(h.push(e[0][0]),h.push(e[1][0]))}))}var v,m=p.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=h.indexOf(n)>-1?' class="d2h-change"':"",r=K(n.value);return null!==t?"".concat(e,"<").concat(t).concat(i,">").concat(r,"</").concat(t,">"):"".concat(e).concat(r)}),"");return{oldLine:{prefix:c.prefix,content:(v=m,v.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:u.prefix,content:X(m)}}}var te="file-summary",ie=function(){return ie=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ie.apply(this,arguments)},re=ie(ie({},U),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),oe="generic",ae="line-by-line",se=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=ie(ie({},re),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(oe,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template(ae,"file-diff"),i=this.hoganUtils.template(oe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",ee(e));return t.render({file:e,fileHtmlId:Y(e),diffs:n,filePath:i.render({fileDiffName:Q(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(oe,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:q})},e.prototype.generateFileHtml=function(e){var n=this,t=R(W((function(n){return Z(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(oe,"block-header",{CSSLineClass:q,blockHeader:e.isTooBig?i.header:K(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e,e.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=Z(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml(e,{type:q.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(e,e.isCombined,a,s),c=l.left,u=l.right;r+=c,r+=u}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==v.INSERT&&i.length||o.type===v.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===v.CONTEXT?n.push([[o],[],[]]):o.type===v.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===v.INSERT&&t.length>0?i.push(o):o.type===v.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t,i){for(var r={right:"",left:""},o=Math.max(t.length,i.length),a=0;a<o;a++){var s=t[a],l=i[a],c=void 0!==s&&void 0!==l?ne(s.content,l.content,n,this.config):void 0,u=void 0!==s&&void 0!==s.oldNumber?ie(ie({},void 0!==c?{prefix:c.oldLine.prefix,content:c.oldLine.content,type:q.DELETE_CHANGES}:ie(ie({},Z(s.content,n)),{type:J(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,f=void 0!==l&&void 0!==l.newNumber?ie(ie({},void 0!==c?{prefix:c.newLine.prefix,content:c.newLine.content,type:q.INSERT_CHANGES}:ie(ie({},Z(l.content,n)),{type:J(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,d=this.generateLineHtml(e,u,f),p=d.left,h=d.right;r.left+=p,r.right+=h}return r},e.prototype.generateLineHtml=function(e,n,t){return{left:this.generateSingleLineHtml(e,n),right:this.generateSingleLineHtml(e,t)}},e.prototype.generateSingleLineHtml=function(e,n){if(void 0===n)return"";var t=this.hoganUtils.render(ae,"numbers",{oldNumber:n.oldNumber||"",newNumber:n.newNumber||""});return this.hoganUtils.render(oe,"line",{type:n.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===n.prefix?"&nbsp;":n.prefix,content:n.content,lineNumber:t,line:n,file:e})},e}();const le=se;var ce=function(){return ce=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ce.apply(this,arguments)},ue=ce(ce({},U),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),fe="generic",de=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=ce(ce({},ue),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(fe,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(fe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",ee(e));return t.render({file:e,fileHtmlId:Y(e),diffs:n,filePath:i.render({fileDiffName:Q(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(fe,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:q})}},e.prototype.generateFileHtml=function(e){var n=this,t=R(W((function(n){return Z(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header,e),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r.left+=s,r.right+=l}));else if(o.length)o.forEach((function(t){var i=Z(t.content,e.isCombined),o=i.prefix,a=i.content,s=n.generateLineHtml({type:q.CONTEXT,prefix:o,content:a,number:t.oldNumber},{type:q.CONTEXT,prefix:o,content:a,number:t.newNumber}),l=s.left,c=s.right;r.left+=l,r.right+=c}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),c=l.left,u=l.right;r.left+=c,r.right+=u}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==v.INSERT&&i.length||o.type===v.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===v.CONTEXT?n.push([[o],[],[]]):o.type===v.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===v.INSERT&&t.length>0?i.push(o):o.type===v.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e,n){return this.hoganUtils.render(fe,"block-header",{CSSLineClass:q,blockHeader:(null==n?void 0:n.isTooBig)?e:K(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?ne(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?ce(ce({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:q.DELETE_CHANGES}:ce(ce({},Z(a.content,e)),{type:J(a.type)})),{number:a.oldNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?ce(ce({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:q.INSERT_CHANGES}:ce(ce({},Z(s.content,e)),{type:J(s.type)})),{number:s.newNumber}):void 0,f=this.generateLineHtml(c,u),d=f.left,p=f.right;i.left+=d,i.right+=p}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){var n="d2h-code-side-linenumber",t="d2h-code-side-line";return this.hoganUtils.render(fe,"line",{type:(null==e?void 0:e.type)||"".concat(q.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();const pe=de;var he=a(112),be={};be["file-summary-line"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),be["file-summary-wrapper"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),be["generic-block-header"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.s(i.f("blockHeader",e,n,1),e,n,0,156,173,"{{ }}")&&(i.rs(e,n,(function(e,n,t){t.b(t.t(t.f("blockHeader",e,n,0)))})),e.pop()),i.s(i.f("blockHeader",e,n,1),e,n,1,0,0,"")||i.b("&nbsp;"),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),be["generic-empty-diff"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),be["generic-file-path"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.b("\n"+t),i.b('<label class="d2h-file-collapse">'),i.b("\n"+t),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+t),i.b(" Viewed"),i.b("\n"+t),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),be["generic-line"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,162,238,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,371,445,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),be["generic-wrapper"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),be["icon-file-added"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+t),i.b(' width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),be["icon-file-changed"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),be["icon-file-deleted"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),be["icon-file-renamed"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),be["icon-file"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),be["line-by-line-file-diff"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),be["line-by-line-numbers"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),be["side-by-side-file-diff"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),be["tag-file-added"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),be["tag-file-changed"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),be["tag-file-deleted"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),be["tag-file-renamed"]=new he.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}});var ge=function(){return ge=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ge.apply(this,arguments)};const ve=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,i=e.rawTemplates,r=void 0===i?{}:i,o=Object.entries(r).reduce((function(e,n){var t,i=n[0],r=n[1],o=he.compile(r,{asString:!1});return ge(ge({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=ge(ge(ge({},be),t),o)}return e.compile=function(e){return he.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var o=this.templateKey(e,n);try{return this.preCompiledTemplates[o].render(t,i,r)}catch(e){throw new Error("Could not find template to render '".concat(o,"'"))}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return"".concat(e,"-").concat(n)},e}();var me=function(){return me=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},me.apply(this,arguments)},ye=me(me(me({},re),ue),{outputFormat:"line-by-line",drawFileList:!0});function we(e,n){void 0===n&&(n={});var t=me(me({},ye),n),i="string"==typeof e?function(e,n){void 0===n&&(n={});var t=[],i=null,r=null,o=null,a=null,s=null,l=null,c=null,u="--- ",f="+++ ",d="@@",p=/^old mode (\d{6})/,h=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,x=/^rename to "?(.+)"?/,N=/^similarity index (\d+)%/,S=/^dissimilarity index (\d+)%/,L=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,H=/^GIT binary patch/,j=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,I=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,O=/^new file mode (\d{6})/,P=/^deleted file mode (\d{6}),(\d{6})/,A=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function M(){null!==r&&null!==i&&(i.blocks.push(r),r=null)}function z(){null!==i&&(i.oldName||null===l||(i.oldName=l),i.newName||null===c||(i.newName=c),i.newName&&(t.push(i),i=null)),l=null,c=null}function F(){M(),z(),i={blocks:[],deletedLines:0,addedLines:0}}function D(e){var n;M(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(n[1],10),s=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(n[1],10),a=parseInt(n[2],10),s=parseInt(n[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,i.isCombined=!1)),r={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return A.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=A[a-1],W=A[a+1],R=A[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){if(F(),(M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=E(M[1],void 0,n.dstPrefix),c=E(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if(!e.startsWith("Binary files")||(null==i?void 0:i.isGitDiff)){if((!i||!i.isGitDiff&&i&&e.startsWith(u)&&W.startsWith(f)&&R.startsWith(d))&&F(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof n.diffMaxChanges&&i.addedLines+i.deletedLines>n.diffMaxChanges||"number"==typeof n.diffMaxLineLength&&e.length>n.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],r=null,void D("function"==typeof n.diffTooBigMessage?n.diffTooBigMessage(t.length):"Diff too big to be displayed");if(e.startsWith(u)&&W.startsWith(f)||e.startsWith(f)&&z.startsWith(u)){if(i&&!i.oldName&&e.startsWith("--- ")&&(M=function(e,n){return E(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=C(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return E(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=C(i.newName,i.language))}if(i&&(e.startsWith(d)||i.isGitDiff&&i.oldName&&i.newName&&!r))D(e);else if(r&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==r&&null!==o&&null!==s){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],a=i.isCombined?["- "," -","--"]:["-"];T(e,t)?(i.addedLines++,n.type=v.INSERT,n.oldNumber=void 0,n.newNumber=s++):T(e,a)?(i.deletedLines++,n.type=v.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=v.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var B=!function(e,n){for(var t=n;t<A.length-3;){if(e.startsWith("diff"))return!1;if(A[t].startsWith(u)&&A[t+1].startsWith(f)&&A[t+2].startsWith(d))return!0;t++}return!1}(e,a);if(null===i)throw new Error("Where is my file !!!");(M=p.exec(e))?i.oldMode=M[1]:(M=h.exec(e))?i.newMode=M[1]:(M=b.exec(e))?(i.deletedFileMode=M[1],i.isDeleted=!0):(M=g.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=m.exec(e))?(B&&(i.oldName=M[1]),i.isCopy=!0):(M=y.exec(e))?(B&&(i.newName=M[1]),i.isCopy=!0):(M=w.exec(e))?(B&&(i.oldName=M[1]),i.isRename=!0):(M=x.exec(e))?(B&&(i.newName=M[1]),i.isRename=!0):(M=k.exec(e))?(i.isBinary=!0,i.oldName=E(M[1],void 0,n.srcPrefix),i.newName=E(M[2],void 0,n.dstPrefix),D("Binary file")):H.test(e)?(i.isBinary=!0,D(e)):(M=N.exec(e))?i.unchangedPercentage=parseInt(M[1],10):(M=S.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=L.exec(e))?(i.checksumBefore=M[1],i.checksumAfter=M[2],M[3]&&(i.mode=M[3])):(M=j.exec(e))?(i.checksumBefore=[M[2],M[3]],i.checksumAfter=M[1]):(M=I.exec(e))?(i.oldMode=[M[2],M[3]],i.newMode=M[1]):(M=O.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=P.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}else{if(F(),(M=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=E(M[1],void 0,n.dstPrefix),c=E(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isBinary=!0}}})),M(),z(),t}(e,t):e,r=new ve(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(te,"line",{fileHtmlId:Y(e),oldName:e.oldName,newName:e.newName,fileName:Q(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",ee(e))})})).join("\n");return n.render(te,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new pe(r,t).render(i):new le(r,t).render(i))}var xe=a(210),Ne=a(2717),Ce=(0,e.stringEnum)([].concat(["side-by-side","line-by-line"])),Te=(0,e.stringEnum)([].concat(["dark","light"])),Se={oldContent:(0,xe.string)().def(""),newContent:(0,xe.string)().def(""),diffFormat:(0,xe.string)().def(Ce["line-by-line"]),diffContext:(0,xe.number)(),theme:(0,xe.string)().def("light"),language:(0,xe.string)().def("javascript"),hljs:e.PropTypes.any.isRequired};const Ee=(0,t.defineComponent)({name:"CodeDiff",props:Se,emits:[],setup:function(i){var r=(0,Ne.usePrefix)().resolveClassName,o=(0,t.ref)(null),a=(0,t.ref)(""),s=(0,t.computed)((function(){return(0,e.classes)({dark:i.theme===Te.dark},"hljs ".concat(r("code-diff")))}));function l(e,n){var r,s,l=y("",i.oldContent,i.newContent,"","",{context:e});a.value=(r=we(l,{drawFileList:!1,matching:"lines",outputFormat:i.diffFormat}),s=n,r.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(s)}))),(0,t.nextTick)((function(){o.value&&o.value.querySelectorAll(".lang-".concat(i.language)).forEach((function(e){i.hljs.highlightElement(e)}))}))}return(0,t.onMounted)((function(){l(i.diffContext,i.language)})),(0,t.watch)((function(){return[i.diffContext,i.language]}),(function(e){var t,i,r=(i=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=o.call(t)).done)&&(s.push(i.value),s.length!==n);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,i)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());l(r[0],r[1])})),function(){return(0,t.createVNode)("div",{ref:o,class:s.value,innerHTML:a.value},null)}}}),Le=(0,e.withInstall)(Ee)})(),s})()));
1
+ import*as e from"../shared";import*as n from"vue";import*as t from"vue-types";import*as i from"../config-provider";var r={2148:(e,n)=>{!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(t,i){var r,o=t.length,a=0,s=null,u=null,f="",d=[],h=!1,p=0,b=0,g="{{",v="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<d.length;i++)if(!(t=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(n)))return!1;return t}())for(var r,o=b;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});h=!1,b=d.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=l(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),p=0;p<o;p++)0==a?c(g,t,p)?(--p,m(),a=1):"\n"==t.charAt(p)?y(h):f+=t.charAt(p):1==a?(p+=g.length-1,"="==(s=(u=e.tags[t.charAt(p+1)])?t.charAt(p+1):"_v")?(p=w(t,p),a=0):(u&&p++,a=2),h=p):c(v,t,p)?(d.push({tag:s,n:l(f),otag:g,ctag:v,i:"/"==s?h-g.length:p+v.length}),f="",p+=v.length-1,a=0,"{"==s&&("}}"==v?p++:"}"===(r=d[d.length-1]).n.substr(r.n.length-1)&&(r.n=r.n.substring(0,r.n.length-1)))):f+=t.charAt(p);return y(h,!0),d};var u={_t:!0,"\n":!0,$:!0,"/":!0};function f(n,t,i,r){var o,a=[],s=null,l=null;for(o=i[i.length-1];n.length>0;){if(l=n.shift(),o&&"<"==o.tag&&!(l.tag in u))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||d(l,r))i.push(l),l.nodes=f(n,l.tag,i,r);else{if("/"==l.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+l.n);if(s=i.pop(),l.n!=s.n&&!h(l.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==n.length||"\n"==n[0].tag)}a.push(l)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}function d(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function h(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function p(e){var n=[];for(var t in e.partials)n.push('"'+g(t)+'":{name:"'+g(e.partials[t].name)+'", '+p(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+g(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+p(n)+"}"};var b=0;function g(e){return e.replace(o,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function m(e,n){var t="<"+(n.prefix||"")+e.n+b++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+g(t)+'",c,p,"'+(e.indent||"")+'"));',t}function y(e,n){n.code+="t.b(t.t(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(n,t,i){b=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+v(n.n)+'("'+g(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":m,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[m(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+g(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+v(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=w('"'+g(e.text)+'"')},"{":y,"&":y},e.walk=function(n,t){for(var i,r=0,o=n.length;r<o;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(e,n,t){return f(e,0,[],(t=t||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var o=r.partials;for(var a in o)delete o[a].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(n)},112:(e,n,t)=>{var i=t(2148);i.Template=t(8719).Template,i.template=i.Template,e.exports=i},8719:(e,n)=>{!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),s.test(e)?e.replace(t,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=o,n)i[l]||(i[l]=n[l]);for(l in i)c.subs[l]=i[l];for(l in r=r||{},c.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)c.partials[l]=r[l];return c}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(c(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,o,a)),s=!!e,!i&&s&&n&&n.push("object"==typeof e?e:n[n.length-1]),s)},d:function(e,t,i,r){var o,a=e.split("."),s=this.f(a[0],t,i,r),l=this.options.modelGet,u=null;if("."===e&&c(t[t.length-2]))s=t[t.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=n(a[f],s,l))?(u=s,s=o):s="";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(u),s=this.mv(s,t,i),t.pop()),s)},f:function(e,t,i,r){for(var o=!1,a=!1,s=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(o=n(e,t[l],s))){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,t,i)),o):!r&&""},ls:function(e,n,t,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=o,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,o,a){var s,l=n[n.length-1],c=e.call(l);return"function"==typeof c?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,s.substring(r,o),a)):c},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(n)}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,a),t.exports}a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var s={};(()=>{a.d(s,{Z:()=>Pe});const r=(o={PropTypes:()=>e.PropTypes,classes:()=>e.classes,stringEnum:()=>e.stringEnum,withInstall:()=>e.withInstall},l={},a.d(l,o),l);var o,l;function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}const u=(e=>{var n={};return a.d(n,e),n})({computed:()=>n.computed,createVNode:()=>n.createVNode,defineComponent:()=>n.defineComponent,nextTick:()=>n.nextTick,onMounted:()=>n.onMounted,ref:()=>n.ref,watch:()=>n.watch});function f(){}function d(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var c=n[o];if(c.removed){if(c.value=e.join(i.slice(l,l+c.count)),l+=c.count,o&&n[o-1].added){var u=n[o-1];n[o-1]=n[o],n[o]=u}}else{if(!c.added&&r){var f=t.slice(s,s+c.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),c.value=e.join(f)}else c.value=e.join(t.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}f.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,c=a+s,u=[{newPos:-1,components:[]}],f=this.extractCommon(u[0],n,e,0);if(u[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function h(){for(var t=-1*l;t<=l;t+=2){var i=void 0,c=u[t-1],f=u[t+1],h=(f?f.newPos:0)-t;c&&(u[t-1]=void 0);var p=c&&c.newPos+1<a,b=f&&0<=h&&h<s;if(p||b){if(!p||b&&c.newPos<f.newPos?(i={newPos:(g=f).newPos,components:g.components.slice(0)},r.pushComponent(i.components,void 0,!0)):((i=c).newPos++,r.pushComponent(i.components,!0,void 0)),h=r.extractCommon(i,n,e,t),i.newPos+1>=a&&h+1>=s)return o(d(r,i.components,n,e,r.useLongestToken));u[t]=i}else u[t]=void 0}var g;l++}if(i)!function e(){setTimeout((function(){if(l>c)return i();h()||e()}),0)}();else for(;l<=c;){var p=h();if(p)return p}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}},new f;var h=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,p=/\S/,b=new f;b.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!p.test(e)&&!p.test(n)},b.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&h.test(n[t])&&h.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var g=new f;function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}g.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new f).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new f).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var w=Object.prototype.toString,x=new f;function N(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===w.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=N(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===v(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=N(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}x.useLongestToken=!0,x.tokenize=g.tokenize,x.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(N(e,null,null,r),r," ")},x.equals=function(e,n){return f.prototype.equals.call(x,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var C,T=new f;function E(e,n,t,i,r,o){return function(e,n,t,i,r,o,a){return function(e){var n=[];e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),n.push("==================================================================="),n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var i=e.hunks[t];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),n.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),n.push.apply(n,i.lines)}return n.join("\n")+"\n"}(function(e,n,t,i,r,o,a){a||(a={}),void 0===a.context&&(a.context=4);var s=function(e,n,t){return g.diff(e,n,t)}(t,i,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var c=[],u=0,f=0,d=[],h=1,p=1,b=function(e){var n=s[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var o;if(!u){var b=s[e-1];u=h,f=p,b&&(d=a.context>0?l(b.lines.slice(-a.context)):[],u-=d.length,f-=d.length)}(o=d).push.apply(o,m(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?p+=r.length:h+=r.length}else{if(u)if(r.length<=2*a.context&&e<s.length-2){var g;(g=d).push.apply(g,m(l(r)))}else{var v,y=Math.min(r.length,a.context);(v=d).push.apply(v,m(l(r.slice(0,y))));var w={oldStart:u,oldLines:h-u+y,newStart:f,newLines:p-f+y,lines:d};if(e>=s.length-2&&r.length<=a.context){var x=/\n$/.test(t),N=/\n$/.test(i),C=0==r.length&&d.length>w.oldLines;!x&&C&&t.length>0&&d.splice(w.oldLines,0,"\"),(x||C)&&N||d.push("\")}c.push(w),u=0,f=0,d=[]}h+=r.length,p+=r.length}},v=0;v<s.length;v++)b(v);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:c}}(e,n,t,i,r,o,a))}(e,e,n,t,i,r,o)}T.tokenize=function(e){return e.slice()},T.join=T.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(C||(C={}));var S=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function L(e){return e?e.replace(/\\/g,"/"):e}var k=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};function H(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function I(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var j=["a/","b/","i/","w/","c/","o/"];function O(e,n,t){var i=void 0!==t?k(k([],j,!0),[t],!1):j,r=((n?new RegExp("^".concat(n.replace(S,"\\$&"),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],o=void 0===r?"":r,a=i.find((function(e){return 0===o.indexOf(e)}));return(a?o.slice(a.length):o).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function P(){}function A(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var c=n[o];if(c.removed){if(c.value=e.join(i.slice(l,l+c.count)),l+=c.count,o&&n[o-1].added){var u=n[o-1];n[o-1]=n[o],n[o]=u}}else{if(!c.added&&r){var f=t.slice(s,s+c.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),c.value=e.join(f)}else c.value=e.join(t.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}P.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,c=a+s;t.maxEditLength&&(c=Math.min(c,t.maxEditLength));var u=[{newPos:-1,components:[]}],f=this.extractCommon(u[0],n,e,0);if(u[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,c=u[t-1],f=u[t+1],d=(f?f.newPos:0)-t;c&&(u[t-1]=void 0);var h=c&&c.newPos+1<a,p=f&&0<=d&&d<s;if(h||p){if(!h||p&&c.newPos<f.newPos?(i={newPos:(b=f).newPos,components:b.components.slice(0)},r.pushComponent(i.components,void 0,!0)):((i=c).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(A(r,i.components,n,e,r.useLongestToken));u[t]=i}else u[t]=void 0}var b;l++}if(i)!function e(){setTimeout((function(){if(l>c)return i();d()||e()}),0)}();else for(;l<=c;){var h=d();if(h)return h}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var M=new P,z=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,D=new P;D.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!F.test(e)&&!F.test(n)},D.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&z.test(n[t])&&z.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var W=new P;function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}W.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new P).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new P).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var B=Object.prototype.toString,U=new P;function $(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===B.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=$(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===R(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=$(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}U.useLongestToken=!0,U.tokenize=W.tokenize,U.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify($(e,null,null,r),r," ")},U.equals=function(e,n){return P.prototype.equals.call(U,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var V=new P;function G(e){return function(n,t){var i=e(n).trim(),r=e(t).trim();return function(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}(i,r)/(i.length+r.length)}}function q(e){return function n(t,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var a=function(n,t,i){void 0===i&&(i=new Map);for(var r,o=1/0,a=0;a<n.length;++a)for(var s=0;s<t.length;++s){var l=JSON.stringify([n[a],t[s]]),c=void 0;i.has(l)&&(c=i.get(l))||(c=e(n[a],t[s]),i.set(l,c)),c<o&&(r={indexA:a,indexB:s,score:o=c})}return r}(t,i,o);if(!a||t.length+i.length<3)return[[t,i]];var s=t.slice(0,a.indexA),l=i.slice(0,a.indexB),c=[t[a.indexA]],u=[i[a.indexB]],f=a.indexA+1,d=a.indexB+1,h=t.slice(f),p=i.slice(d),b=n(s,l,r+1,o),g=n(c,u,r+1,o),v=n(h,p,r+1,o),m=g;return(a.indexA>0||a.indexB>0)&&(m=b.concat(m)),(t.length>f||i.length>d)&&(m=m.concat(v)),m}}V.tokenize=function(e){return e.slice()},V.join=V.removeEmpty=function(e){return e};var _=function(){return _=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},_.apply(this,arguments)},X={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},J={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},K="/",Z=G((function(e){return e.value})),Q=q(Z);function Y(e){return-1!==e.indexOf("dev/null")}function ee(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ne(e){switch(e){case C.CONTEXT:return X.CONTEXT;case C.INSERT:return X.INSERTS;case C.DELETE:return X.DELETES}}function te(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function ie(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?te(e.substring(i)):e.substring(i)}}function re(e){var n=L(e.oldName),t=L(e.newName);if(n===t||Y(n)||Y(t))return Y(t)?n:t;for(var i=[],r=[],o=n.split(K),a=t.split(K),s=0,l=o.length-1,c=a.length-1;s<l&&s<c&&o[s]===a[s];)i.push(a[s]),s+=1;for(;l>s&&c>s&&o[l]===a[c];)r.unshift(a[c]),l-=1,c-=1;var u=i.join(K),f=r.join(K),d=o.slice(s,l+1).join(K),h=a.slice(s,c+1).join(K);return u.length&&f.length?u+K+"{"+d+" → "+h+"}"+K+f:u.length?u+K+"{"+d+" → "+h+"}":f.length?"{"+d+" → "+h+"}"+K+f:n+" → "+t}function oe(e){return"d2h-".concat(function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}(re(e)).toString().slice(-6))}function ae(e){var n="file-changed";return e.isRename||e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n}function se(e,n,t,i){void 0===i&&(i={});var r=_(_({},J),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,c=ie(e,t,!1),u=ie(n,t,!1);if(c.content.length>a||u.content.length>a)return{oldLine:{prefix:c.prefix,content:te(c.content)},newLine:{prefix:u.prefix,content:te(u.content)}};var f,d,h="char"===l?(f=c.content,d=u.content,M.diff(f,d,undefined)):function(e,n,t){return D.diff(e,n,void 0)}(c.content,u.content),p=[];if("word"===l&&"words"===o){var b=h.filter((function(e){return e.removed})),g=h.filter((function(e){return e.added}));Q(g,b).forEach((function(e){1===e[0].length&&1===e[1].length&&Z(e[0][0],e[1][0])<s&&(p.push(e[0][0]),p.push(e[1][0]))}))}var v,m=h.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=p.indexOf(n)>-1?' class="d2h-change"':"",r=te(n.value);return null!==t?"".concat(e,"<").concat(t).concat(i,">").concat(r,"</").concat(t,">"):"".concat(e).concat(r)}),"");return{oldLine:{prefix:c.prefix,content:(v=m,v.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:u.prefix,content:ee(m)}}}var le="file-summary",ce=function(){return ce=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ce.apply(this,arguments)},ue=ce(ce({},J),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),fe="generic",de="line-by-line",he=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=ce(ce({},ue),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(fe,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template(de,"file-diff"),i=this.hoganUtils.template(fe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",ae(e));return t.render({file:e,fileHtmlId:oe(e),diffs:n,filePath:i.render({fileDiffName:re(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(fe,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:X})},e.prototype.generateFileHtml=function(e){var n=this,t=q(G((function(n){return ie(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(fe,"block-header",{CSSLineClass:X,blockHeader:e.isTooBig?i.header:te(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e,e.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=ie(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml(e,{type:X.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(e,e.isCombined,a,s),c=l.left,u=l.right;r+=c,r+=u}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==C.INSERT&&i.length||o.type===C.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===C.CONTEXT?n.push([[o],[],[]]):o.type===C.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===C.INSERT&&t.length>0?i.push(o):o.type===C.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t,i){for(var r={right:"",left:""},o=Math.max(t.length,i.length),a=0;a<o;a++){var s=t[a],l=i[a],c=void 0!==s&&void 0!==l?se(s.content,l.content,n,this.config):void 0,u=void 0!==s&&void 0!==s.oldNumber?ce(ce({},void 0!==c?{prefix:c.oldLine.prefix,content:c.oldLine.content,type:X.DELETE_CHANGES}:ce(ce({},ie(s.content,n)),{type:ne(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,f=void 0!==l&&void 0!==l.newNumber?ce(ce({},void 0!==c?{prefix:c.newLine.prefix,content:c.newLine.content,type:X.INSERT_CHANGES}:ce(ce({},ie(l.content,n)),{type:ne(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,d=this.generateLineHtml(e,u,f),h=d.left,p=d.right;r.left+=h,r.right+=p}return r},e.prototype.generateLineHtml=function(e,n,t){return{left:this.generateSingleLineHtml(e,n),right:this.generateSingleLineHtml(e,t)}},e.prototype.generateSingleLineHtml=function(e,n){if(void 0===n)return"";var t=this.hoganUtils.render(de,"numbers",{oldNumber:n.oldNumber||"",newNumber:n.newNumber||""});return this.hoganUtils.render(fe,"line",{type:n.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===n.prefix?"&nbsp;":n.prefix,content:n.content,lineNumber:t,line:n,file:e})},e}();const pe=he;var be=function(){return be=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},be.apply(this,arguments)},ge=be(be({},J),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ve="generic",me=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=be(be({},ge),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(ve,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(ve,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",ae(e));return t.render({file:e,fileHtmlId:oe(e),diffs:n,filePath:i.render({fileDiffName:re(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(ve,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:X})}},e.prototype.generateFileHtml=function(e){var n=this,t=q(G((function(n){return ie(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header,e),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r.left+=s,r.right+=l}));else if(o.length)o.forEach((function(t){var i=ie(t.content,e.isCombined),o=i.prefix,a=i.content,s=n.generateLineHtml({type:X.CONTEXT,prefix:o,content:a,number:t.oldNumber},{type:X.CONTEXT,prefix:o,content:a,number:t.newNumber}),l=s.left,c=s.right;r.left+=l,r.right+=c}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),c=l.left,u=l.right;r.left+=c,r.right+=u}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==C.INSERT&&i.length||o.type===C.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===C.CONTEXT?n.push([[o],[],[]]):o.type===C.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===C.INSERT&&t.length>0?i.push(o):o.type===C.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e,n){return this.hoganUtils.render(ve,"block-header",{CSSLineClass:X,blockHeader:(null==n?void 0:n.isTooBig)?e:te(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?se(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?be(be({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:X.DELETE_CHANGES}:be(be({},ie(a.content,e)),{type:ne(a.type)})),{number:a.oldNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?be(be({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:X.INSERT_CHANGES}:be(be({},ie(s.content,e)),{type:ne(s.type)})),{number:s.newNumber}):void 0,f=this.generateLineHtml(c,u),d=f.left,h=f.right;i.left+=d,i.right+=h}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){var n="d2h-code-side-linenumber",t="d2h-code-side-line";return this.hoganUtils.render(ve,"line",{type:(null==e?void 0:e.type)||"".concat(X.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();const ye=me;var we=a(112),xe={};xe["file-summary-line"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),xe["file-summary-wrapper"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),xe["generic-block-header"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.s(i.f("blockHeader",e,n,1),e,n,0,156,173,"{{ }}")&&(i.rs(e,n,(function(e,n,t){t.b(t.t(t.f("blockHeader",e,n,0)))})),e.pop()),i.s(i.f("blockHeader",e,n,1),e,n,1,0,0,"")||i.b("&nbsp;"),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),xe["generic-empty-diff"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),xe["generic-file-path"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.b("\n"+t),i.b('<label class="d2h-file-collapse">'),i.b("\n"+t),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+t),i.b(" Viewed"),i.b("\n"+t),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),xe["generic-line"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,162,238,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,371,445,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),xe["generic-wrapper"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),xe["icon-file-added"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+t),i.b(' width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),xe["icon-file-changed"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),xe["icon-file-deleted"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),xe["icon-file-renamed"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),xe["icon-file"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),xe["line-by-line-file-diff"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),xe["line-by-line-numbers"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),xe["side-by-side-file-diff"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),xe["tag-file-added"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),xe["tag-file-changed"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),xe["tag-file-deleted"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),xe["tag-file-renamed"]=new we.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}});var Ne=function(){return Ne=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Ne.apply(this,arguments)};const Ce=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,i=e.rawTemplates,r=void 0===i?{}:i,o=Object.entries(r).reduce((function(e,n){var t,i=n[0],r=n[1],o=we.compile(r,{asString:!1});return Ne(Ne({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=Ne(Ne(Ne({},xe),t),o)}return e.compile=function(e){return we.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var o=this.templateKey(e,n);try{return this.preCompiledTemplates[o].render(t,i,r)}catch(e){throw new Error("Could not find template to render '".concat(o,"'"))}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return"".concat(e,"-").concat(n)},e}();var Te=function(){return Te=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Te.apply(this,arguments)},Ee=Te(Te(Te({},ue),ge),{outputFormat:"line-by-line",drawFileList:!0});function Se(e,n){void 0===n&&(n={});var t=Te(Te({},Ee),n),i="string"==typeof e?function(e,n){void 0===n&&(n={});var t=[],i=null,r=null,o=null,a=null,s=null,l=null,c=null,u="--- ",f="+++ ",d="@@",h=/^old mode (\d{6})/,p=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,v=/^copy from "?(.+)"?/,m=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,w=/^rename to "?(.+)"?/,x=/^similarity index (\d+)%/,N=/^dissimilarity index (\d+)%/,T=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,E=/^Binary files (.*) and (.*) differ/,S=/^GIT binary patch/,L=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,k=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,j=/^new file mode (\d{6})/,P=/^deleted file mode (\d{6}),(\d{6})/,A=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function M(){null!==r&&null!==i&&(i.blocks.push(r),r=null)}function z(){null!==i&&(i.oldName||null===l||(i.oldName=l),i.newName||null===c||(i.newName=c),i.newName&&(t.push(i),i=null)),l=null,c=null}function F(){M(),z(),i={blocks:[],deletedLines:0,addedLines:0}}function D(e){var n;M(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(n[1],10),s=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(n[1],10),a=parseInt(n[2],10),s=parseInt(n[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,i.isCombined=!1)),r={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return A.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=A[a-1],W=A[a+1],R=A[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){if(F(),(M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=O(M[1],void 0,n.dstPrefix),c=O(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if(!e.startsWith("Binary files")||(null==i?void 0:i.isGitDiff)){if((!i||!i.isGitDiff&&i&&e.startsWith(u)&&W.startsWith(f)&&R.startsWith(d))&&F(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof n.diffMaxChanges&&i.addedLines+i.deletedLines>n.diffMaxChanges||"number"==typeof n.diffMaxLineLength&&e.length>n.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],r=null,void D("function"==typeof n.diffTooBigMessage?n.diffTooBigMessage(t.length):"Diff too big to be displayed");if(e.startsWith(u)&&W.startsWith(f)||e.startsWith(f)&&z.startsWith(u)){if(i&&!i.oldName&&e.startsWith("--- ")&&(M=function(e,n){return O(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=H(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return O(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=H(i.newName,i.language))}if(i&&(e.startsWith(d)||i.isGitDiff&&i.oldName&&i.newName&&!r))D(e);else if(r&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==r&&null!==o&&null!==s){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],a=i.isCombined?["- "," -","--"]:["-"];I(e,t)?(i.addedLines++,n.type=C.INSERT,n.oldNumber=void 0,n.newNumber=s++):I(e,a)?(i.deletedLines++,n.type=C.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=C.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var B=!function(e,n){for(var t=n;t<A.length-3;){if(e.startsWith("diff"))return!1;if(A[t].startsWith(u)&&A[t+1].startsWith(f)&&A[t+2].startsWith(d))return!0;t++}return!1}(e,a);if(null===i)throw new Error("Where is my file !!!");(M=h.exec(e))?i.oldMode=M[1]:(M=p.exec(e))?i.newMode=M[1]:(M=b.exec(e))?(i.deletedFileMode=M[1],i.isDeleted=!0):(M=g.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=v.exec(e))?(B&&(i.oldName=M[1]),i.isCopy=!0):(M=m.exec(e))?(B&&(i.newName=M[1]),i.isCopy=!0):(M=y.exec(e))?(B&&(i.oldName=M[1]),i.isRename=!0):(M=w.exec(e))?(B&&(i.newName=M[1]),i.isRename=!0):(M=E.exec(e))?(i.isBinary=!0,i.oldName=O(M[1],void 0,n.srcPrefix),i.newName=O(M[2],void 0,n.dstPrefix),D("Binary file")):S.test(e)?(i.isBinary=!0,D(e)):(M=x.exec(e))?i.unchangedPercentage=parseInt(M[1],10):(M=N.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=T.exec(e))?(i.checksumBefore=M[1],i.checksumAfter=M[2],M[3]&&(i.mode=M[3])):(M=L.exec(e))?(i.checksumBefore=[M[2],M[3]],i.checksumAfter=M[1]):(M=k.exec(e))?(i.oldMode=[M[2],M[3]],i.newMode=M[1]):(M=j.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=P.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}else{if(F(),(M=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=O(M[1],void 0,n.dstPrefix),c=O(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isBinary=!0}}})),M(),z(),t}(e,t):e,r=new Ce(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(le,"line",{fileHtmlId:oe(e),oldName:e.oldName,newName:e.newName,fileName:re(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",ae(e))})})).join("\n");return n.render(le,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new ye(r,t).render(i):new pe(r,t).render(i))}const Le=(e=>{var n={};return a.d(n,e),n})({number:()=>t.number,string:()=>t.string}),ke=(e=>{var n={};return a.d(n,e),n})({usePrefix:()=>i.usePrefix});var He=(0,r.stringEnum)([].concat(["side-by-side","line-by-line"])),Ie=(0,r.stringEnum)([].concat(["dark","light"])),je={oldContent:(0,Le.string)().def(""),newContent:(0,Le.string)().def(""),diffFormat:(0,Le.string)().def(He["line-by-line"]),diffContext:(0,Le.number)(),theme:(0,Le.string)().def("light"),language:(0,Le.string)().def("javascript"),hljs:r.PropTypes.any.isRequired};const Oe=(0,u.defineComponent)({name:"CodeDiff",props:je,emits:[],setup:function(e){var n=(0,ke.usePrefix)().resolveClassName,t=(0,u.ref)(null),i=(0,u.ref)(""),o=(0,u.computed)((function(){return(0,r.classes)({dark:e.theme===Ie.dark},"hljs ".concat(n("code-diff")))}));function a(n,r){var o,a,s=E("",e.oldContent,e.newContent,"","",{context:n});i.value=(o=Se(s,{drawFileList:!1,matching:"lines",outputFormat:e.diffFormat}),a=r,o.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(a)}))),(0,u.nextTick)((function(){t.value&&t.value.querySelectorAll(".lang-".concat(e.language)).forEach((function(n){e.hljs.highlightElement(n)}))}))}return(0,u.onMounted)((function(){a(e.diffContext,e.language)})),(0,u.watch)((function(){return[e.diffContext,e.language]}),(function(e){var n,t,i=(t=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=o.call(t)).done)&&(s.push(i.value),s.length!==n);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(n,t)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());a(i[0],i[1])})),function(){return(0,u.createVNode)("div",{ref:t,class:o.value,innerHTML:i.value},null)}}}),Pe=(0,r.withInstall)(Oe)})();var l=s.Z;export{l as default};
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../collapse-transition"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../collapse-transition","../icon"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../collapse-transition"),require("../icon")):t(e["../shared"],e.vue,e["../config-provider"],e["../collapse-transition"],e["../icon"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r,o,n)=>(()=>{"use strict";var a={9891:e=>{e.exports=o},2717:e=>{e.exports=r},6870:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{l.r(c),l.d(c,{BkCollapsePanel:()=>u,Collapse:()=>f,default:()=>v});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var r=l(748),o=l(2717),n=l(9891),a=l.n(n),i=l(6870),s={list:e.PropTypes.arrayOf(e.PropTypes.any).def([]),idFiled:e.PropTypes.string.def("$index"),titleField:e.PropTypes.string.def("name"),contentField:e.PropTypes.string.def("content"),modelValue:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.number).def([]),e.PropTypes.arrayOf(e.PropTypes.string).def([]),e.PropTypes.number.def(-1)]),accordion:e.PropTypes.bool.def(!1),hasHeaderBorder:e.PropTypes.bool.def(!1),hasHeaderHover:e.PropTypes.bool.def(!0),headerIcon:e.PropTypes.string.def(""),useCardTheme:e.PropTypes.bool.def(!1),headerIconAlign:e.PropTypes.string.def("left")},d={itemClick:{type:Function}},p=Object.assign({name:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),title:e.PropTypes.any,content:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),isFormList:e.PropTypes.bool.def(!1),renderDirective:(0,e.renderDirectiveType)(),modelValue:e.PropTypes.bool.def(!1),alone:e.PropTypes.bool.def(!1),icon:e.PropTypes.string.def("angle-right")},d);const u=(0,r.defineComponent)({name:"CollapsePanel",props:p,emits:["change","update:modelValue","after-leave","before-enter"],setup:function(e,t){var n=t.emit,a=t.slots,l=null,c=null,s=(0,r.ref)(e.modelValue);(0,r.watch)((function(){return e.modelValue}),(function(e){s.value=e})),e.alone||(l=(0,r.inject)("localActiveItems"),c=(0,r.inject)("handleItemClick"),(0,r.watch)(l,(function(t){(null==t?void 0:t.length)&&(s.value=t.includes(e.name))}),{immediate:!0}));var d,p=(0,o.usePrefix)().resolveClassName;return{isActive:s,collapseIcon:i["".concat((d=e.icon,d.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")))],clickItem:function(){var t=e.disabled,r=e.name,o=e.itemClick;if(!t){var a={name:r};s.value=!s.value,n("update:modelValue",s.value),n("change",a),"function"==typeof o?o(a):"function"==typeof c&&c({name:r})}},renderPanel:function(){return"if"!==e.renderDirective||s.value?(0,r.withDirectives)((0,r.createVNode)("div",{class:"".concat(p("collapse-content")," ").concat(s.value?"active":"")},[e.content?e.content:"function"==typeof a.content?a.content(r.h):a.content]),[[r.vShow,s.value]]):""},renderHeader:function(t){return a.header?"function"==typeof a.header?a.header(r.h):a.header:(o=a.default?"function"==typeof a.default?a.default(r.h):a.default:e.title,(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)("div",{class:"".concat(p("collapse-header"))},[(0,r.createVNode)("span",{class:"".concat(p("collapse-title"))},[o]),t])]));var o},resolveClassName:p}},render:function(){var e,t,o=this;return(0,r.createVNode)("div",{class:"".concat(this.resolveClassName("collapse-item")," ").concat(this.disabled?"is-disabled":""," ").concat(this.isActive?"".concat(this.resolveClassName("collapse-item-active")):"")},[(0,r.createVNode)("div",{onClick:function(){return o.clickItem()}},[this.renderHeader((0,r.createVNode)(this.collapseIcon,{class:"".concat(this.resolveClassName("collapse-icon")," ").concat(this.isActive?"rotate-icon":"")},null))]),(0,r.createVNode)(a(),null,(t=e=this.renderPanel(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,r.isVNode)(t)?e:{default:function(){return[e]}}))])}}),f=(0,r.defineComponent)({name:"Collapse",props:s,emits:["item-click","update:modelValue","after-leave","before-enter"],setup:function(e,n){var a=n.emit,i=n.slots,l=(0,r.ref)([]);(0,r.watch)((function(){return[e.modelValue]}),(function(){var r,o=e.modelValue;Array.isArray(o)?l.value=function(e){if(Array.isArray(e))return t(e)}(r=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():l.value=void 0!==o?[o]:[]}),{immediate:!0});var c=function(t){var r=t.name;if(e.accordion){var o=l.value.findIndex((function(e){return e===r}));o>=0?l.value.splice(o,1):l.value=[r]}else{var n=l.value.findIndex((function(e){return e===r}));n>=0?l.value.splice(n,1):l.value.push(r)}a("item-click",t),a("update:modelValue",l.value)};(0,r.provide)("localActiveItems",l),(0,r.provide)("handleItemClick",c);var s=(0,o.usePrefix)().resolveClassName,d=s("collapse-wrapper");if(e.hasHeaderBorder&&(d+=" ".concat(s("collapse-header-border"))),e.hasHeaderHover&&(d+=" ".concat(s("collapse-header-hover"))),e.useCardTheme&&(d+=" ".concat(s("collapse-card"))),"left"===e.headerIconAlign?d+=" ".concat(s("collapse-icon-left")):d+=" ".concat(s("collapse-icon-right")),!Array.isArray(e.list)||!e.list.length)return function(){return(0,r.createVNode)("div",{class:d},[(0,r.renderSlot)(i,"default",{props:{isList:!0}})])};var p=(0,r.computed)((function(){return(e.list||[]).map((function(e,t){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:t,name:e}:Object.assign({$index:t},e)}))}));return function(){return(0,r.createVNode)("div",{class:d},[p.value.map((function(t,o){var n,a,l,s=t[e.idFiled]||o,d=t[e.titleField],p=e.headerIcon||"angle-right";return i.title&&(d="function"==typeof i.title?i.title(t,o):i.title),i.default&&(d=null===(n=i.default)||void 0===n?void 0:n.call(i,t,o)),(0,r.createVNode)(u,{key:o,"item-click":c,disabled:t.disabled,name:s,icon:p,isFormList:!0,title:d,content:null!==(l=null===(a=i.content)||void 0===a?void 0:a.call(i,t,o))&&void 0!==l?l:t[e.contentField]},null)}))])}}}),v=(0,e.withInstallProps)(f,{CollapsePanel:u})})(),c})()));
1
+ import*as e from"../shared";import*as t from"vue";import*as r from"../config-provider";import*as o from"../collapse-transition";import*as n from"../icon";var a={d:(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},i={};a.d(i,{AP:()=>P,UO:()=>b,ZP:()=>T});const l=(c={PropTypes:()=>e.PropTypes,renderDirectiveType:()=>e.renderDirectiveType,withInstallProps:()=>e.withInstallProps},s={},a.d(s,c),s);var c,s;function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}const p=(e=>{var t={};return a.d(t,e),t})({Fragment:()=>t.Fragment,computed:()=>t.computed,createVNode:()=>t.createVNode,defineComponent:()=>t.defineComponent,h:()=>t.h,inject:()=>t.inject,isVNode:()=>t.isVNode,provide:()=>t.provide,ref:()=>t.ref,renderSlot:()=>t.renderSlot,vShow:()=>t.vShow,watch:()=>t.watch,withDirectives:()=>t.withDirectives}),u=(e=>{var t={};return a.d(t,e),t})({usePrefix:()=>r.usePrefix}),f=(e=>{var t={};return a.d(t,e),t})({default:()=>o.default}),v=n;var m={list:l.PropTypes.arrayOf(l.PropTypes.any).def([]),idFiled:l.PropTypes.string.def("$index"),titleField:l.PropTypes.string.def("name"),contentField:l.PropTypes.string.def("content"),modelValue:l.PropTypes.oneOfType([l.PropTypes.arrayOf(l.PropTypes.number).def([]),l.PropTypes.arrayOf(l.PropTypes.string).def([]),l.PropTypes.number.def(-1)]),accordion:l.PropTypes.bool.def(!1),hasHeaderBorder:l.PropTypes.bool.def(!1),hasHeaderHover:l.PropTypes.bool.def(!0),headerIcon:l.PropTypes.string.def(""),useCardTheme:l.PropTypes.bool.def(!1),headerIconAlign:l.PropTypes.string.def("left")},y={itemClick:{type:Function}},h=Object.assign({name:l.PropTypes.oneOfType([l.PropTypes.number,l.PropTypes.string]).def(""),title:l.PropTypes.any,content:l.PropTypes.string,disabled:l.PropTypes.bool.def(!1),isFormList:l.PropTypes.bool.def(!1),renderDirective:(0,l.renderDirectiveType)(),modelValue:l.PropTypes.bool.def(!1),alone:l.PropTypes.bool.def(!1),icon:l.PropTypes.string.def("angle-right")},y);const P=(0,p.defineComponent)({name:"CollapsePanel",props:h,emits:["change","update:modelValue","after-leave","before-enter"],setup:function(e,t){var r=t.emit,o=t.slots,n=null,a=null,i=(0,p.ref)(e.modelValue);(0,p.watch)((function(){return e.modelValue}),(function(e){i.value=e})),e.alone||(n=(0,p.inject)("localActiveItems"),a=(0,p.inject)("handleItemClick"),(0,p.watch)(n,(function(t){(null==t?void 0:t.length)&&(i.value=t.includes(e.name))}),{immediate:!0}));var l,c=(0,u.usePrefix)().resolveClassName;return{isActive:i,collapseIcon:v["".concat((l=e.icon,l.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")))],clickItem:function(){var t=e.disabled,o=e.name,n=e.itemClick;if(!t){var l={name:o};i.value=!i.value,r("update:modelValue",i.value),r("change",l),"function"==typeof n?n(l):"function"==typeof a&&a({name:o})}},renderPanel:function(){return"if"!==e.renderDirective||i.value?(0,p.withDirectives)((0,p.createVNode)("div",{class:"".concat(c("collapse-content")," ").concat(i.value?"active":"")},[e.content?e.content:"function"==typeof o.content?o.content(p.h):o.content]),[[p.vShow,i.value]]):""},renderHeader:function(t){return o.header?"function"==typeof o.header?o.header(p.h):o.header:(r=o.default?"function"==typeof o.default?o.default(p.h):o.default:e.title,(0,p.createVNode)(p.Fragment,null,[(0,p.createVNode)("div",{class:"".concat(c("collapse-header"))},[(0,p.createVNode)("span",{class:"".concat(c("collapse-title"))},[r]),t])]));var r},resolveClassName:c}},render:function(){var e,t,r=this;return(0,p.createVNode)("div",{class:"".concat(this.resolveClassName("collapse-item")," ").concat(this.disabled?"is-disabled":""," ").concat(this.isActive?"".concat(this.resolveClassName("collapse-item-active")):"")},[(0,p.createVNode)("div",{onClick:function(){return r.clickItem()}},[this.renderHeader((0,p.createVNode)(this.collapseIcon,{class:"".concat(this.resolveClassName("collapse-icon")," ").concat(this.isActive?"rotate-icon":"")},null))]),(0,p.createVNode)(f.default,null,(t=e=this.renderPanel(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,p.isVNode)(t)?e:{default:function(){return[e]}}))])}}),b=(0,p.defineComponent)({name:"Collapse",props:m,emits:["item-click","update:modelValue","after-leave","before-enter"],setup:function(e,t){var r=t.emit,o=t.slots,n=(0,p.ref)([]);(0,p.watch)((function(){return[e.modelValue]}),(function(){var t,r=e.modelValue;Array.isArray(r)?n.value=function(e){if(Array.isArray(e))return d(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():n.value=void 0!==r?[r]:[]}),{immediate:!0});var a=function(t){var o=t.name;if(e.accordion){var a=n.value.findIndex((function(e){return e===o}));a>=0?n.value.splice(a,1):n.value=[o]}else{var i=n.value.findIndex((function(e){return e===o}));i>=0?n.value.splice(i,1):n.value.push(o)}r("item-click",t),r("update:modelValue",n.value)};(0,p.provide)("localActiveItems",n),(0,p.provide)("handleItemClick",a);var i=(0,u.usePrefix)().resolveClassName,l=i("collapse-wrapper");if(e.hasHeaderBorder&&(l+=" ".concat(i("collapse-header-border"))),e.hasHeaderHover&&(l+=" ".concat(i("collapse-header-hover"))),e.useCardTheme&&(l+=" ".concat(i("collapse-card"))),"left"===e.headerIconAlign?l+=" ".concat(i("collapse-icon-left")):l+=" ".concat(i("collapse-icon-right")),!Array.isArray(e.list)||!e.list.length)return function(){return(0,p.createVNode)("div",{class:l},[(0,p.renderSlot)(o,"default",{props:{isList:!0}})])};var c=(0,p.computed)((function(){return(e.list||[]).map((function(e,t){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:t,name:e}:Object.assign({$index:t},e)}))}));return function(){return(0,p.createVNode)("div",{class:l},[c.value.map((function(t,r){var n,i,l,c=t[e.idFiled]||r,s=t[e.titleField],d=e.headerIcon||"angle-right";return o.title&&(s="function"==typeof o.title?o.title(t,r):o.title),o.default&&(s=null===(n=o.default)||void 0===n?void 0:n.call(o,t,r)),(0,p.createVNode)(P,{key:r,"item-click":a,disabled:t.disabled,name:c,icon:d,isFormList:!0,title:s,content:null!==(l=null===(i=o.content)||void 0===i?void 0:i.call(o,t,r))&&void 0!==l?l:t[e.contentField]},null)}))])}}}),T=(0,l.withInstallProps)(b,{CollapsePanel:P});var g=i.AP,V=i.UO,C=i.ZP;export{g as BkCollapsePanel,V as Collapse,C as default};
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider")):t(e["../shared"],e.vue,e["../config-provider"]);for(var d in o)("object"==typeof exports?exports:e)[d]=o[d]}}(self,((e,t,o)=>(()=>{"use strict";var d={2717:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return d[e](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>a});var e=r(4212),t=r(748),o=r(2717);const d=(0,t.defineComponent)({name:"CollapseTransition",setup:function(e,t){return{on:{onBeforeEnter:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0"},onEnter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight="0",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},onAfterEnter:function(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},onBeforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight="".concat(e.scrollHeight,"px"),e.style.overflow="hidden"},onLeave:function(e){0!==e.scrollHeight&&(e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0")},onAfterLeave:function(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}},slots:t.slots,resolveClassName:(0,o.usePrefix)().resolveClassName}},render:function(){var e=this,o=this.resolveClassName("collapse-transition");return(0,t.createVNode)(t.Transition,(0,t.mergeProps)({name:o},this.on),{default:function(){return[e.slots.default?e.slots.default():null]}})}}),a=(0,e.withInstall)(d)})(),n})()));
1
+ import*as t from"../shared";import*as e from"vue";import*as o from"../config-provider";var a={d:(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},d={};a.d(d,{Z:()=>g});const n=(s={withInstall:()=>t.withInstall},l={},a.d(l,s),l);var s,l;const r=(t=>{var e={};return a.d(e,t),e})({Transition:()=>e.Transition,createVNode:()=>e.createVNode,defineComponent:()=>e.defineComponent,mergeProps:()=>e.mergeProps}),i=(t=>{var e={};return a.d(e,t),e})({usePrefix:()=>o.usePrefix}),p=(0,r.defineComponent)({name:"CollapseTransition",setup:function(t,e){return{on:{onBeforeEnter:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight="0",t.style.paddingTop="0",t.style.paddingBottom="0"},onEnter:function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.maxHeight="".concat(t.scrollHeight,"px"),t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.maxHeight="0",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},onAfterEnter:function(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},onBeforeLeave:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight="".concat(t.scrollHeight,"px"),t.style.overflow="hidden"},onLeave:function(t){0!==t.scrollHeight&&(t.style.maxHeight="0",t.style.paddingTop="0",t.style.paddingBottom="0")},onAfterLeave:function(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}},slots:e.slots,resolveClassName:(0,i.usePrefix)().resolveClassName}},render:function(){var t=this,e=this.resolveClassName("collapse-transition");return(0,r.createVNode)(r.Transition,(0,r.mergeProps)({name:e},this.on),{default:function(){return[t.slots.default?t.slots.default():null]}})}}),g=(0,n.withInstall)(p);var f=d.Z;export{f as default};