bkui-vue 0.0.1-beta.61 → 0.0.1-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +30 -30
- package/dist/index.esm.js +1434 -298
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.variable.css +5 -0
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +5 -0
- package/lib/backtop/index.d.ts +4 -4
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/badge.variable.css +5 -0
- package/lib/badge/index.d.ts +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +5 -0
- package/lib/button/button.css +2 -1
- package/lib/button/button.less +9 -8
- package/lib/button/button.variable.css +7 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +5 -0
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox.variable.css +5 -0
- package/lib/code-diff/code-diff.variable.css +5 -0
- package/lib/code-diff/index.js +1 -1
- package/lib/components.d.ts +12 -9
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +5 -0
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.css +1 -0
- package/lib/date-picker/date-picker.d.ts +9 -2
- package/lib/date-picker/date-picker.less +1 -0
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +22 -7
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/props.d.ts +3 -0
- package/lib/dialog/dialog.css +10 -1
- package/lib/dialog/dialog.d.ts +75 -8
- package/lib/dialog/dialog.variable.css +10 -1
- package/lib/dialog/index.d.ts +166 -25
- package/lib/dialog/index.js +1 -1
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +5 -0
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown/dropdown.css +4 -0
- package/lib/dropdown/dropdown.less +5 -0
- package/lib/dropdown/dropdown.variable.css +9 -0
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +5 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -0
- package/lib/fixed-navbar/index.d.ts +43 -8
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/form.css +4 -0
- package/lib/form/form.d.ts +5 -2
- package/lib/form/form.less +4 -0
- package/lib/form/form.variable.css +9 -0
- package/lib/form/index.d.ts +19 -8
- package/lib/form/index.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +12 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/input/index.d.ts +8 -8
- package/lib/input/input.css +3 -0
- package/lib/input/input.d.ts +2 -2
- package/lib/input/input.less +3 -0
- package/lib/input/input.variable.css +8 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.variable.css +5 -0
- package/lib/loading/loading.variable.css +5 -0
- package/lib/menu/menu.variable.css +5 -0
- package/lib/menu/submenu.variable.css +5 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +4 -4
- package/lib/message/message.less +4 -4
- package/lib/message/message.variable.css +9 -4
- package/lib/modal/index.d.ts +277 -24
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +10 -1
- package/lib/modal/modal.d.ts +108 -9
- package/lib/modal/modal.less +15 -4
- package/lib/modal/modal.variable.css +10 -1
- package/lib/modal/props.mixin.d.ts +47 -3
- package/lib/navigation/index.d.ts +291 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +5 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +17 -1
- package/lib/notify/notify.less +19 -1
- package/lib/notify/notify.variable.css +22 -1
- package/lib/notify/notifyConstructor.d.ts +49 -5
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +5 -0
- package/lib/popover/index.d.ts +57 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +26 -4
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +8 -0
- package/lib/popover/props.d.ts +11 -1
- package/lib/process/process.variable.css +5 -0
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +5 -0
- package/lib/radio/radio.variable.css +5 -0
- package/lib/resize-layout/resize-layout.variable.css +5 -0
- package/lib/select/select.variable.css +5 -0
- package/lib/shared/index.d.ts +18 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -2
- package/lib/shared/pop-manager.d.ts +3 -2
- package/lib/shared/popover.d.ts +3 -0
- package/lib/sideslider/index.d.ts +227 -33
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +103 -12
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +53 -3
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +5 -0
- package/lib/steps/steps.variable.css +5 -0
- package/lib/styles/index.d.ts +3 -0
- package/lib/styles/themes/themes.less +7 -0
- package/lib/switcher/switcher.variable.css +5 -0
- package/lib/tab/index.d.ts +6 -6
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +1 -1
- package/lib/tab/tab.variable.css +5 -0
- package/lib/table/index.d.ts +4 -4
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +5 -0
- package/lib/table/plugins/head-sort.variable.css +5 -0
- package/lib/table/plugins/settings.variable.css +5 -0
- package/lib/table/props.d.ts +4 -0
- package/lib/table/render.d.ts +1 -0
- package/lib/table/table.css +54 -2
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +52 -2
- package/lib/table/table.variable.css +59 -2
- package/lib/table/use-common.d.ts +5 -3
- package/lib/table/utils.d.ts +10 -0
- package/lib/tag/index.d.ts +3 -3
- package/lib/tag/tag.d.ts +1 -1
- package/lib/tag/tag.variable.css +5 -0
- package/lib/tag-input/index.d.ts +893 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/tag-input/tag-input.variable.css +5 -0
- package/lib/timeline/timeline.variable.css +5 -0
- package/lib/transfer/transfer.variable.css +5 -0
- package/lib/tree/index.d.ts +39 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +19 -0
- package/lib/tree/tree.css +3 -1
- package/lib/tree/tree.d.ts +18 -0
- package/lib/tree/tree.less +3 -1
- package/lib/tree/tree.variable.css +8 -1
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-attribute.d.ts +1 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/util.d.ts +2 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +27 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.d.ts +14 -3
- package/package.json +2 -2
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","../popover","../checkbox"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox")):t(e["../shared"],e.vue,e["../directives"],e["../icon"],e["../popover"],e["../checkbox"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,i)=>(()=>{var a={7162:(e,t,r)=>{r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=d;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=u(e,t,r);if("normal"===s.type){if(n=r.done?f:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=f,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",v={};function y(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(E([])));w&&w!==r&&n.call(w,i)&&(b=w);var N=m.prototype=y.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function L(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return g.prototype=m,s(N,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,c,"GeneratorFunction")),e.prototype=Object.create(N),e},e.awrap=function(e){return{__await:e}},x(P.prototype),s(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(N),s(N,c,"Generator"),s(N,i,(function(){return this})),s(N,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(V),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),V(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;V(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},5800:e=>{"use strict";e.exports=i},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=n},5537:e=>{"use strict";e.exports=o},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return a[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";s.r(l),s.d(l,{BkCascader:()=>m,BkCascaderPanel:()=>u,default:()=>b});var e=s(4212),t=s(748),r=s(4061),n=s(6870),o=s(5537),i=s.n(o);s(7162),Symbol("BkSelect"),Symbol("BkOptionGroup");var a=s(5800),c=s.n(a);const u=(0,t.defineComponent)({name:"CascaderPanel",props:{store:e.PropTypes.object.def({})},emits:["input"],setup:function(r,n){var o=n.emit,i=r.store,a=(0,t.reactive)({list:[r.store.getNodes()]}),c=(0,t.ref)([]),s=(0,t.ref)([]),l=function(e){e.config.multiple?s.value=i.getCheckedNodes().map((function(e){return e.path})):s.value=e.path,o("input",s.value)},u=function(e){var t;e.isDisabled||(a.list=a.list.slice(0,e.level),c.value=c.value.slice(0,e.level-1),(null===(t=e.children)||void 0===t?void 0:t.length)&&(a.list.push(e.children),c.value.push(e)))};return{menus:a,activePath:c,nodeExpandHandler:u,isNodeInPath:function(e){return(c.value[e.level-1]||{}).id===e.id},nodeEvent:function(e){var t=e.config,r=t.trigger,n=t.checkAnyLevel,o=t.multiple;return{onClick:function(t){e.isLeaf&&!o||t.stopPropagation(),"click"===r&&u(e),n&&!o&&l(e),e.isLeaf&&!o&&l(e)},onMouseenter:function(){"hover"===r&&u(e)}}},isCheckedNode:function(t,r){return!t.config.multiple&&(0,e.arrayEqual)(r,t.path)},checkValue:s,nodeClear:function(){o("input",[])},checkNode:function(e,t){e.setNodeCheck(t),l(e)}}},render:function(){var e=this;return(0,t.createVNode)("div",{class:"bk-cascader-panel-wrapper"},[this.menus.list.map((function(r){return(0,t.createVNode)("ul",{class:"bk-cascader-panel"},[r.map((function(r){return(0,t.createVNode)("li",(0,t.mergeProps)({class:["bk-cascader-node",{"is-selected":e.isNodeInPath(r)},{"is-disabled":r.isDisabled},{"is-checked":e.isCheckedNode(r,e.checkValue)}]},e.nodeEvent(r)),[r.config.multiple&&(0,t.createVNode)(c(),{disabled:r.isDisabled,modelValue:r.checked,"onUpdate:modelValue":function(e){return r.checked=e},onChange:function(t){return e.checkNode(r,t)}},null),(0,t.createVNode)("span",{class:"content"},[r.name]),r.isLeaf?"":(0,t.createVNode)(n.AngleRight,{class:"icon-angle-right"},null)])}))])}))])}});function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}const f=function(){function e(t,r,n){d(this,e),this.data=t,this.config=r,this.parent=n||null,this.level=this.parent?this.parent.level+1:1,this.initState()}return p(e,[{key:"initState",value:function(){var t,r=this,n=this.config,o=n.idKey,i=n.nameKey,a=n.childrenKey;this.id=this.data[o],this.name=this.data[i],this.loading=!1,this.checked=!1;var c=this.data[a];this.children=(c||[]).map((function(t){return new e(t,r.config,r)})),this.hasChildren=0!==(null===(t=this.children)||void 0===t?void 0:t.length),this.pathNodes=this.calculateNodesPath(),this.path=this.pathNodes.map((function(e){return e.id})),this.pathNames=this.pathNodes.map((function(e){return e.name}))}},{key:"isLeaf",get:function(){return!this.hasChildren}},{key:"isDisabled",get:function(){return this.data.disabled}},{key:"setNodeCheck",value:function(e){this.checked=e}},{key:"calculateNodesPath",value:function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e}}]),e}();var v=function e(t,r){return t.reduce((function(t,n){return n.isLeaf?t.push(n):(!r&&t.push(n),t=t.concat(e(n.children,r))),t}),[])};const y=function(){function t(r){var n=this;d(this,t);var o=r.list;this.data=o,this.config=(0,e.filterProperty)(r,["list"]),this.nodes=this.data.map((function(e){return new f(e,n.config)}))}return p(t,[{key:"getNodes",value:function(){return this.nodes}},{key:"getFlattedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this.nodes,e)}},{key:"getCheckedNodes",value:function(){return this.getFlattedNodes().filter((function(e){return e.checked}))}},{key:"getNodeByValue",value:function(t){var r;return null!==(r=this.getFlattedNodes().filter((function(r){return(0,e.arrayEqual)(r.path,t)}))[0])&&void 0!==r?r:null}}]),t}(),g=(0,t.defineComponent)({name:"Cascader",directives:{clickoutside:r.clickoutside},components:{CascaderPanel:u,BkPopover:i()},props:{modelValue:e.PropTypes.array.def([]),list:e.PropTypes.array.def([]),placeholder:e.PropTypes.string.def("请选择"),filterable:e.PropTypes.bool.def(!1),multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.string.def("click"),checkAnyLevel:e.PropTypes.bool.def(!1),isRemote:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,showCompleteName:e.PropTypes.bool.def(!1),idKey:e.PropTypes.string.def("id"),nameKey:e.PropTypes.string.def("name"),childrenKey:e.PropTypes.string.def("children"),separator:e.PropTypes.string.def("/"),limitOneLine:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string.def("")},emits:["update:modelValue"],setup:function(e,r){var n=r.emit,o=e.separator,i=e.multiple,a=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),c=a.isHover,s=a.setHover,l=a.cancelHover,u=(0,t.reactive)(new y(e)),d=(0,t.ref)(!1),h=(0,t.ref)(""),p=(0,t.ref)([]),f=function(e){if(n("update:modelValue",e),i)p.value=u.getCheckedNodes().map((function(e){return{text:e.pathNames.join(o),key:e.id}}));else if(0!==e.length){var t=u.getNodeByValue(e);h.value=t.pathNames.join(o)}else h.value=""};return{store:u,updateValue:f,hidePopover:function(){d.value=!1},inputClickHandler:function(e){e.stopPropagation(),d.value=!d.value},selectedText:h,panelShow:d,handleClear:function(e){e.stopPropagation(),f([])},isHover:c,setHover:s,cancelHover:l,selectedTags:p,removeTag:function(e,t,r){r.stopPropagation();var n=JSON.parse(JSON.stringify(e));n.splice(t,1),f(n)}}},render:function(){var e=this;return(0,t.createVNode)("div",{class:["bk-cascader","bk-cascader-wrapper",this.extCls,{"bk-is-show-panel":this.panelShow,"is-unselected":0===this.modelValue.length}],tabindex:"0","data-placeholder":this.placeholder,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[e.clearable&&e.isHover?(0,t.createVNode)(n.Close,{class:"bk-icon-clear-icon",onClick:e.handleClear},null):(0,t.createVNode)(n.AngleUp,{class:"bk-icon-angle-up"},null),(0,t.createVNode)(i(),{placement:"bottom-start",theme:"light bk-cascader-popover",trigger:"click",arrow:!1,class:"bk-cascader-popover-wrapper",isShow:e.panelShow,"onUpdate:isShow":function(t){return e.panelShow=t},boundary:"body"},{default:function(){return(0,t.createVNode)("div",{class:"bk-cascader-name",onClick:e.inputClickHandler},[e.multiple&&(e.limitOneLine?(0,t.createVNode)("span",null,[e.selectedText]):(0,t.createVNode)("div",{class:"cascader-tag-list"},[e.selectedTags.map((function(r,o){return(0,t.createVNode)("span",{class:"cascader-tag-item"},[(0,t.createVNode)("span",{class:"cascader-tag-item-name"},[r.text]),(0,t.createVNode)(n.Error,{class:"bk-icon-clear-icon",onClick:function(t){return e.removeTag(e.modelValue,o,t)}},null)])}))])),e.filterable?(0,t.createVNode)("input",{class:"bk-cascader-search-input",type:"text",placeholder:e.placeholder},null):(0,t.createVNode)("span",null,[e.selectedText])])},content:function(){return(0,t.createVNode)("div",{class:"bk-cascader-popover"},[(0,t.createVNode)(u,{store:e.store,onInput:function(t){return e.updateValue(t)}},null)])}})])}});var m=(0,e.withInstallProps)(g,{CascaderPanel:u});const b=m})(),l})()));
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export interface IPanel {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
disabled?: boolean;
|
5
|
+
children?: IPanel;
|
6
|
+
}
|
7
|
+
export interface INodeConfig {
|
8
|
+
multiple: boolean;
|
9
|
+
}
|
10
|
+
export interface INode {
|
11
|
+
checked: boolean;
|
12
|
+
children?: (null)[] | null;
|
13
|
+
config: IConfig;
|
14
|
+
data: IData;
|
15
|
+
hasChildren: boolean;
|
16
|
+
id: string;
|
17
|
+
level: number;
|
18
|
+
loading: boolean;
|
19
|
+
name: string;
|
20
|
+
parent?: INode;
|
21
|
+
isDisabled: boolean;
|
22
|
+
isLeaf: boolean;
|
23
|
+
pathNames: string[];
|
24
|
+
path: string[];
|
25
|
+
setNodeCheck(status: boolean): void;
|
26
|
+
}
|
27
|
+
export interface IData {
|
28
|
+
id: string;
|
29
|
+
name: string;
|
30
|
+
disabled?: boolean;
|
31
|
+
children?: IData[];
|
32
|
+
}
|
33
|
+
export interface IConfig {
|
34
|
+
checkAnyLevel: boolean;
|
35
|
+
childrenKey: string;
|
36
|
+
clearable: boolean;
|
37
|
+
disabled: boolean;
|
38
|
+
idKey: string;
|
39
|
+
isRemote: boolean;
|
40
|
+
multiple: boolean;
|
41
|
+
nameKey: string;
|
42
|
+
showCompleteName: boolean;
|
43
|
+
trigger: string;
|
44
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { IConfig, IData, INode } from './interface';
|
2
|
+
declare class Node implements INode {
|
3
|
+
data: IData;
|
4
|
+
config: IConfig;
|
5
|
+
parent: INode;
|
6
|
+
level: number;
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
loading: boolean;
|
10
|
+
checked: boolean;
|
11
|
+
children?: null[];
|
12
|
+
hasChildren: boolean;
|
13
|
+
pathNodes: INode[];
|
14
|
+
path: string[];
|
15
|
+
pathNames: string[];
|
16
|
+
nodes: INode[];
|
17
|
+
constructor(node: IData, config: any, parent?: any);
|
18
|
+
initState(): void;
|
19
|
+
get isLeaf(): boolean;
|
20
|
+
get isDisabled(): boolean;
|
21
|
+
setNodeCheck(status: boolean): void;
|
22
|
+
calculateNodesPath(): INode[];
|
23
|
+
}
|
24
|
+
export default Node;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { IConfig, IData, INode } from './interface';
|
2
|
+
declare class Store {
|
3
|
+
data: IData[];
|
4
|
+
config: IConfig;
|
5
|
+
nodes: INode[];
|
6
|
+
constructor(props: any);
|
7
|
+
getNodes(): INode[];
|
8
|
+
/** 拍平节点,方便筛选 */
|
9
|
+
getFlattedNodes(leafOnly?: boolean): any;
|
10
|
+
/** 获取多选下,被选中(checked)的节点 */
|
11
|
+
getCheckedNodes(): any;
|
12
|
+
/** 根据值获得node实例 */
|
13
|
+
getNodeByValue(value: string[]): INode;
|
14
|
+
}
|
15
|
+
export default Store;
|
@@ -9,6 +9,7 @@
|
|
9
9
|
--gray-color: #979ba5;
|
10
10
|
--light-gray: #c4c6cc;
|
11
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
12
13
|
--disable-color: #dcdee5;
|
13
14
|
--font-size-base: 12px;
|
14
15
|
--font-size-medium: 14px;
|
@@ -91,6 +92,10 @@
|
|
91
92
|
--table-body-font-color: #575961;
|
92
93
|
--table-row-hover-bg-color: #f5f7fa;
|
93
94
|
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
94
99
|
}
|
95
100
|
.bk-checkbox {
|
96
101
|
display: inline-block;
|
@@ -10,6 +10,7 @@
|
|
10
10
|
--gray-color: #979ba5;
|
11
11
|
--light-gray: #c4c6cc;
|
12
12
|
--white-color: white;
|
13
|
+
--whitesmoke-color: #fafbfd;
|
13
14
|
--disable-color: #dcdee5;
|
14
15
|
--font-size-base: 12px;
|
15
16
|
--font-size-medium: 14px;
|
@@ -92,6 +93,10 @@
|
|
92
93
|
--table-body-font-color: #575961;
|
93
94
|
--table-row-hover-bg-color: #f5f7fa;
|
94
95
|
--table-row-active-bg-color: #f0f1f5;
|
96
|
+
--cascader-panel-border-color: #dcdee5;
|
97
|
+
--cascader-panel-hover: #eaf3ff;
|
98
|
+
--cascader-panel-active: #f4f6fa;
|
99
|
+
--cascader-panel-disabled-bg: #fff;
|
95
100
|
}
|
96
101
|
/* stylelint-disable declaration-no-important */
|
97
102
|
.bk-code-diff {
|
package/lib/code-diff/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("vue-types")):n(e["../shared"],e.vue,e["vue-types"]);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,n,t)=>(()=>{var i={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,"&").replace(i,"<").replace(r,">").replace(o,"'").replace(a,"""):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)},4212:n=>{"use strict";n.exports=e},748:e=>{"use strict";e.exports=n},210:e=>{"use strict";e.exports=t}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var t=r[e]={exports:{}};return i[e](t,t.exports,o),t.exports}o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{default:()=>ke});var e=o(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=o(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}function s(e){return{newPos:e.newPos,components:e.components.slice(0)}}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 l=(n=this.removeEmpty(this.tokenize(n))).length,c=e.length,u=1,f=l+c,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],n,e,0);if(d[0].newPos+1>=l&&p+1>=c)return a([{value:this.join(n),count:n.length}]);function h(){for(var t=-1*u;t<=u;t+=2){var i=void 0,f=d[t-1],p=d[t+1],h=(p?p.newPos:0)-t;f&&(d[t-1]=void 0);var b=f&&f.newPos+1<l,g=p&&0<=h&&h<c;if(b||g){if(!b||g&&f.newPos<p.newPos?(i=s(p),o.pushComponent(i.components,void 0,!0)):((i=f).newPos++,o.pushComponent(i.components,!0,void 0)),h=o.extractCommon(i,n,e,t),i.newPos+1>=l&&h+1>=c)return a(r(o,i.components,n,e,o.useLongestToken));d[t]=i}else d[t]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>f)return i();h()||e()}),0)}();else for(;u<=f;){var b=h();if(b)return b}},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 l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,c=/\S/,u=new i;u.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!c.test(e)&&!c.test(n)},u.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]&&l.test(n[t])&&l.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var f=new i;function d(e){return d="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},d(e)}function p(e){return function(e){if(Array.isArray(e))return h(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 h(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)?h(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 h(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}f.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 b=Object.prototype.toString,g=new i;function v(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]=v(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===d(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]]=v(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}g.useLongestToken=!0,g.tokenize=f.tokenize,g.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(v(e,null,null,r),r," ")},g.equals=function(e,n){return i.prototype.equals.call(g,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var m,y=new i;function w(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 f.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,d=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(!u){var f=s[e-1];u=b,d=g,f&&(h=a.context>0?l(f.lines.slice(-a.context)):[],u-=h.length,d-=h.length)}(o=h).push.apply(o,p(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?g+=r.length:b+=r.length}else{if(u)if(r.length<=2*a.context&&e<s.length-2){var v;(v=h).push.apply(v,p(l(r)))}else{var m,y=Math.min(r.length,a.context);(m=h).push.apply(m,p(l(r.slice(0,y))));var w={oldStart:u,oldLines:b-u+y,newStart:d,newLines:g-d+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),u=0,d=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)}y.tokenize=function(e){return e.slice()},y.join=y.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(m||(m={}));var x=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function N(e){return e?e.replace(/\\/g,"/"):e}var C=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 T(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function S(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var E=["a/","b/","i/","w/","c/","o/"];function L(e,n,t){var i=void 0!==t?C(C([],E,!0),[t],!1):E,r=((n?new RegExp("^"+n.replace(x,"\\$&")+' "?(.+?)"?$'):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 k(){}function H(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}function j(e){return{newPos:e.newPos,components:e.components.slice(0)}}k.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 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=j(f),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(H(r,i.components,n,e,r.useLongestToken));u[t]=i}else u[t]=void 0}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 I=new k,O=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,A=/\S/,P=new k;P.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!A.test(e)&&!A.test(n)},P.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 M=new k;function z(e){return z="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},z(e)}M.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 k).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new k).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var F=Object.prototype.toString,D=new k;function W(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]"===F.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=W(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===z(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]]=W(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}D.useLongestToken=!0,D.tokenize=M.tokenize,D.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(W(e,null,null,r),r," ")},D.equals=function(e,n){return k.prototype.equals.call(D,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var R=new k;function B(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 U(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}}R.tokenize=function(e){return e.slice()},R.join=R.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)},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"},V={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},G="/",_=B((function(e){return e.value})),X=U(_);function J(e){return-1!==e.indexOf("dev/null")}function K(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function Z(e){switch(e){case m.CONTEXT:return q.CONTEXT;case m.INSERT:return q.INSERTS;case m.DELETE:return q.DELETES}}function Q(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Y(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?Q(e.substring(i)):e.substring(i)}}function ee(e){var n=N(e.oldName),t=N(e.newName);if(n===t||J(n)||J(t))return J(t)?n:t;for(var i=[],r=[],o=n.split(G),a=t.split(G),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(G),f=r.join(G),d=o.slice(s,l+1).join(G),p=a.slice(s,c+1).join(G);return u.length&&f.length?u+G+"{"+d+" → "+p+"}"+G+f:u.length?u+G+"{"+d+" → "+p+"}":f.length?"{"+d+" → "+p+"}"+G+f:n+" → "+t}function ne(e){return"d2h-"+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}(ee(e)).toString().slice(-6)}function te(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 ie(e,n,t,i){void 0===i&&(i={});var r=$($({},V),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,c=Y(e,t,!1),u=Y(n,t,!1);if(c.content.length>a||u.content.length>a)return{oldLine:{prefix:c.prefix,content:Q(c.content)},newLine:{prefix:u.prefix,content:Q(u.content)}};var f,d,p="char"===l?(f=c.content,d=u.content,I.diff(f,d,undefined)):function(e,n,t){return P.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}));X(g,b).forEach((function(e){1===e[0].length&&1===e[1].length&&_(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=Q(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:c.prefix,content:(v=m,v.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:u.prefix,content:K(m)}}}var re="file-summary",oe=function(){return oe=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},oe.apply(this,arguments)},ae=oe(oe({},V),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),se="generic",le="line-by-line",ce=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=oe(oe({},ae),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(se,"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(le,"file-diff"),i=this.hoganUtils.template(se,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",te(e));return t.render({file:e,fileHtmlId:ne(e),diffs:n,filePath:i.render({fileDiffName:ee(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(se,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:q})},e.prototype.generateFileHtml=function(e){var n=this,t=U(B((function(n){return Y(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(se,"block-header",{CSSLineClass:q,blockHeader:e.isTooBig?i.header:Q(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.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=Y(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml({type:q.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(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!==m.INSERT&&i.length||o.type===m.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===m.CONTEXT?n.push([[o],[],[]]):o.type===m.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===m.INSERT&&t.length>0?i.push(o):o.type===m.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){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?ie(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?oe(oe({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:q.DELETE_CHANGES}:oe(oe({},Y(a.content,e)),{type:Z(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?oe(oe({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:q.INSERT_CHANGES}:oe(oe({},Y(s.content,e)),{type:Z(s.type)})),{oldNumber:s.oldNumber,newNumber: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.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render(le,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(se,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?" ":e.prefix,content:e.content,lineNumber:n})},e}();const ue=ce;var fe=function(){return fe=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},fe.apply(this,arguments)},de=fe(fe({},V),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),pe="generic",he=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=fe(fe({},de),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(pe,"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(pe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",te(e));return t.render({file:e,fileHtmlId:ne(e),diffs:n,filePath:i.render({fileDiffName:ee(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(pe,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:q})}},e.prototype.generateFileHtml=function(e){var n=this,t=U(B((function(n){return Y(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=Y(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!==m.INSERT&&i.length||o.type===m.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===m.CONTEXT?n.push([[o],[],[]]):o.type===m.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===m.INSERT&&t.length>0?i.push(o):o.type===m.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(pe,"block-header",{CSSLineClass:q,blockHeader:(null==n?void 0:n.isTooBig)?e:Q(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?ie(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?fe(fe({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:q.DELETE_CHANGES}:fe(fe({},Y(a.content,e)),{type:Z(a.type)})),{number:a.oldNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?fe(fe({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:q.INSERT_CHANGES}:fe(fe({},Y(s.content,e)),{type:Z(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(pe,"line",{type:(null==e?void 0:e.type)||q.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?n:n+" d2h-code-side-emptyplaceholder",contentClass:void 0!==e?t:t+" d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?" ":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();const be=he;var ge=o(112),ve={};ve["file-summary-line"]=new ge.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:{}}),ve["file-summary-wrapper"]=new ge.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:{}}),ve["generic-block-header"]=new ge.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.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),ve["generic-empty-diff"]=new ge.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:{}}),ve["generic-file-path"]=new ge.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:{}}),ve["generic-line"]=new ge.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"> </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:{}}),ve["generic-wrapper"]=new ge.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:{}}),ve["icon-file-added"]=new ge.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:{}}),ve["icon-file-changed"]=new ge.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:{}}),ve["icon-file-deleted"]=new ge.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:{}}),ve["icon-file-renamed"]=new ge.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:{}}),ve["icon-file"]=new ge.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:{}}),ve["line-by-line-file-diff"]=new ge.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:{}}),ve["line-by-line-numbers"]=new ge.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:{}}),ve["side-by-side-file-diff"]=new ge.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:{}}),ve["tag-file-added"]=new ge.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:{}}),ve["tag-file-changed"]=new ge.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:{}}),ve["tag-file-deleted"]=new ge.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:{}}),ve["tag-file-renamed"]=new ge.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 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)};const ye=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=ge.compile(r,{asString:!1});return me(me({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=me(me(me({},ve),t),o)}return e.compile=function(e){return ge.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 '"+o+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}();var we=function(){return we=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},we.apply(this,arguments)},xe=we(we(we({},ae),de),{outputFormat:"line-by-line",drawFileList:!0});function Ne(e,n){void 0===n&&(n={});var t=we(we({},xe),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})/,v=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,x=/^rename to "?(.+)"?/,N=/^similarity index (\d+)%/,C=/^dissimilarity index (\d+)%/,E=/^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})/,A=/^deleted file mode (\d{6}),(\d{6})/,P=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 P.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=P[a-1],W=P[a+1],R=P[a+2];if(e.startsWith("diff")){if(F(),(M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=L(M[1],void 0,n.dstPrefix),c=L(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else 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 L(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=T(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return L(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=T(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?["- "," -","--"]:["-"];S(e,t)?(i.addedLines++,n.type=m.INSERT,n.oldNumber=void 0,n.newNumber=s++):S(e,a)?(i.deletedLines++,n.type=m.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=m.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var B=!function(e,n){for(var t=n;t<P.length-3;){if(e.startsWith("diff"))return!1;if(P[t].startsWith(u)&&P[t+1].startsWith(f)&&P[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=v.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=L(M[1],void 0,n.srcPrefix),i.newName=L(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=C.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=E.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=A.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}})),M(),z(),t}(e,t):e,r=new ye(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(re,"line",{fileHtmlId:ne(e),oldName:e.oldName,newName:e.newName,fileName:ee(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",te(e))})})).join("\n");return n.render(re,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new be(r,t).render(i):new ue(r,t).render(i))}var Ce=o(210),Te=(0,e.stringEnum)([].concat(["side-by-side","line-by-line"])),Se=(0,e.stringEnum)([].concat(["dark","light"])),Ee={oldContent:(0,Ce.string)().def(""),newContent:(0,Ce.string)().def(""),diffFormat:(0,Ce.string)().def(Te["line-by-line"]),diffContext:(0,Ce.number)(),theme:(0,Ce.string)().def("light"),language:(0,Ce.string)().def("javascript"),hljs:e.PropTypes.any.isRequired};const Le=(0,t.defineComponent)({name:"BkCodeDiff",props:Ee,emits:[],setup:function(i){var r=(0,t.ref)(null),o=(0,t.ref)(""),a=(0,t.computed)((function(){return(0,e.classes)({dark:i.theme===Se.dark},"hljs bk-code-diff")}));function s(e,n){var a,s,l=w("",i.oldContent,i.newContent,"","",{context:e});o.value=(a=Ne(l,{drawFileList:!1,matching:"lines",outputFormat:i.diffFormat}),s=n,a.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(s)}))),(0,t.nextTick)((function(){r.value&&r.value.querySelectorAll(".lang-".concat(i.language)).forEach((function(e){i.hljs.highlightElement(e)}))}))}return(0,t.onMounted)((function(){s(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=!0,s=!1;try{for(t=t.call(e);!(a=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw r}}return o}}(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.")}());s(r[0],r[1])})),function(){return(0,t.createVNode)("div",{ref:r,class:a.value,innerHTML:o.value},null)}}}),ke=(0,e.withInstall)(Le)})(),a})()));
|
1
|
+
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],n);else{var t="object"==typeof exports?n(require("../shared"),require("vue"),require("vue-types")):n(e["../shared"],e.vue,e["vue-types"]);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,n,t)=>(()=>{var i={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,"&").replace(i,"<").replace(r,">").replace(o,"'").replace(a,"""):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)},4212:n=>{"use strict";n.exports=e},748:e=>{"use strict";e.exports=n},210:e=>{"use strict";e.exports=t}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var t=r[e]={exports:{}};return i[e](t,t.exports,o),t.exports}o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{default:()=>ke});var e=o(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=o(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}function s(e){return{newPos:e.newPos,components:e.components.slice(0)}}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 l=(n=this.removeEmpty(this.tokenize(n))).length,c=e.length,u=1,f=l+c,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],n,e,0);if(d[0].newPos+1>=l&&p+1>=c)return a([{value:this.join(n),count:n.length}]);function h(){for(var t=-1*u;t<=u;t+=2){var i=void 0,f=d[t-1],p=d[t+1],h=(p?p.newPos:0)-t;f&&(d[t-1]=void 0);var b=f&&f.newPos+1<l,g=p&&0<=h&&h<c;if(b||g){if(!b||g&&f.newPos<p.newPos?(i=s(p),o.pushComponent(i.components,void 0,!0)):((i=f).newPos++,o.pushComponent(i.components,!0,void 0)),h=o.extractCommon(i,n,e,t),i.newPos+1>=l&&h+1>=c)return a(r(o,i.components,n,e,o.useLongestToken));d[t]=i}else d[t]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>f)return i();h()||e()}),0)}();else for(;u<=f;){var b=h();if(b)return b}},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 l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,c=/\S/,u=new i;u.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!c.test(e)&&!c.test(n)},u.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]&&l.test(n[t])&&l.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var f=new i;function d(e){return d="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},d(e)}function p(e){return function(e){if(Array.isArray(e))return h(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 h(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)?h(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 h(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}f.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 b=Object.prototype.toString,g=new i;function v(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]=v(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===d(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]]=v(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}g.useLongestToken=!0,g.tokenize=f.tokenize,g.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(v(e,null,null,r),r," ")},g.equals=function(e,n){return i.prototype.equals.call(g,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var m,y=new i;function w(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 f.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,d=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(!u){var f=s[e-1];u=b,d=g,f&&(h=a.context>0?l(f.lines.slice(-a.context)):[],u-=h.length,d-=h.length)}(o=h).push.apply(o,p(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?g+=r.length:b+=r.length}else{if(u)if(r.length<=2*a.context&&e<s.length-2){var v;(v=h).push.apply(v,p(l(r)))}else{var m,y=Math.min(r.length,a.context);(m=h).push.apply(m,p(l(r.slice(0,y))));var w={oldStart:u,oldLines:b-u+y,newStart:d,newLines:g-d+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),u=0,d=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)}y.tokenize=function(e){return e.slice()},y.join=y.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(m||(m={}));var x=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function N(e){return e?e.replace(/\\/g,"/"):e}var C=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 T(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function S(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var E=["a/","b/","i/","w/","c/","o/"];function L(e,n,t){var i=void 0!==t?C(C([],E,!0),[t],!1):E,r=((n?new RegExp("^"+n.replace(x,"\\$&")+' "?(.+?)"?$'):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 k(){}function H(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}function j(e){return{newPos:e.newPos,components:e.components.slice(0)}}k.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 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=j(f),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(H(r,i.components,n,e,r.useLongestToken));u[t]=i}else u[t]=void 0}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 I=new k,O=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,A=/\S/,P=new k;P.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!A.test(e)&&!A.test(n)},P.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 M=new k;function z(e){return z="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},z(e)}M.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 k).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new k).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var F=Object.prototype.toString,D=new k;function W(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]"===F.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=W(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===z(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]]=W(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}D.useLongestToken=!0,D.tokenize=M.tokenize,D.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(W(e,null,null,r),r," ")},D.equals=function(e,n){return k.prototype.equals.call(D,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var R=new k;function B(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 U(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}}R.tokenize=function(e){return e.slice()},R.join=R.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)},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"},V={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},G="/",_=B((function(e){return e.value})),X=U(_);function J(e){return-1!==e.indexOf("dev/null")}function K(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function Z(e){switch(e){case m.CONTEXT:return q.CONTEXT;case m.INSERT:return q.INSERTS;case m.DELETE:return q.DELETES}}function Q(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Y(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?Q(e.substring(i)):e.substring(i)}}function ee(e){var n=N(e.oldName),t=N(e.newName);if(n===t||J(n)||J(t))return J(t)?n:t;for(var i=[],r=[],o=n.split(G),a=t.split(G),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(G),f=r.join(G),d=o.slice(s,l+1).join(G),p=a.slice(s,c+1).join(G);return u.length&&f.length?u+G+"{"+d+" → "+p+"}"+G+f:u.length?u+G+"{"+d+" → "+p+"}":f.length?"{"+d+" → "+p+"}"+G+f:n+" → "+t}function ne(e){return"d2h-"+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}(ee(e)).toString().slice(-6)}function te(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 ie(e,n,t,i){void 0===i&&(i={});var r=$($({},V),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,c=Y(e,t,!1),u=Y(n,t,!1);if(c.content.length>a||u.content.length>a)return{oldLine:{prefix:c.prefix,content:Q(c.content)},newLine:{prefix:u.prefix,content:Q(u.content)}};var f,d,p="char"===l?(f=c.content,d=u.content,I.diff(f,d,undefined)):function(e,n,t){return P.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}));X(g,b).forEach((function(e){1===e[0].length&&1===e[1].length&&_(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=Q(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:c.prefix,content:(v=m,v.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:u.prefix,content:K(m)}}}var re="file-summary",oe=function(){return oe=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},oe.apply(this,arguments)},ae=oe(oe({},V),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),se="generic",le="line-by-line",ce=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=oe(oe({},ae),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(se,"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(le,"file-diff"),i=this.hoganUtils.template(se,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",te(e));return t.render({file:e,fileHtmlId:ne(e),diffs:n,filePath:i.render({fileDiffName:ee(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(se,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:q})},e.prototype.generateFileHtml=function(e){var n=this,t=U(B((function(n){return Y(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(se,"block-header",{CSSLineClass:q,blockHeader:e.isTooBig?i.header:Q(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.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=Y(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml({type:q.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(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!==m.INSERT&&i.length||o.type===m.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===m.CONTEXT?n.push([[o],[],[]]):o.type===m.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===m.INSERT&&t.length>0?i.push(o):o.type===m.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){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?ie(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?oe(oe({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:q.DELETE_CHANGES}:oe(oe({},Y(a.content,e)),{type:Z(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?oe(oe({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:q.INSERT_CHANGES}:oe(oe({},Y(s.content,e)),{type:Z(s.type)})),{oldNumber:s.oldNumber,newNumber: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.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render(le,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(se,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?" ":e.prefix,content:e.content,lineNumber:n})},e}();const ue=ce;var fe=function(){return fe=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},fe.apply(this,arguments)},de=fe(fe({},V),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),pe="generic",he=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=fe(fe({},de),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(pe,"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(pe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",te(e));return t.render({file:e,fileHtmlId:ne(e),diffs:n,filePath:i.render({fileDiffName:ee(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(pe,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:q})}},e.prototype.generateFileHtml=function(e){var n=this,t=U(B((function(n){return Y(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=Y(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!==m.INSERT&&i.length||o.type===m.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===m.CONTEXT?n.push([[o],[],[]]):o.type===m.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===m.INSERT&&t.length>0?i.push(o):o.type===m.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(pe,"block-header",{CSSLineClass:q,blockHeader:(null==n?void 0:n.isTooBig)?e:Q(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?ie(a.content,s.content,e,this.config):void 0,c=void 0!==a&&void 0!==a.oldNumber?fe(fe({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:q.DELETE_CHANGES}:fe(fe({},Y(a.content,e)),{type:Z(a.type)})),{number:a.oldNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?fe(fe({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:q.INSERT_CHANGES}:fe(fe({},Y(s.content,e)),{type:Z(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(pe,"line",{type:(null==e?void 0:e.type)||q.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?n:n+" d2h-code-side-emptyplaceholder",contentClass:void 0!==e?t:t+" d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?" ":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}();const be=he;var ge=o(112),ve={};ve["file-summary-line"]=new ge.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:{}}),ve["file-summary-wrapper"]=new ge.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:{}}),ve["generic-block-header"]=new ge.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.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),ve["generic-empty-diff"]=new ge.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:{}}),ve["generic-file-path"]=new ge.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:{}}),ve["generic-line"]=new ge.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"> </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:{}}),ve["generic-wrapper"]=new ge.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:{}}),ve["icon-file-added"]=new ge.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:{}}),ve["icon-file-changed"]=new ge.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:{}}),ve["icon-file-deleted"]=new ge.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:{}}),ve["icon-file-renamed"]=new ge.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:{}}),ve["icon-file"]=new ge.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:{}}),ve["line-by-line-file-diff"]=new ge.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:{}}),ve["line-by-line-numbers"]=new ge.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:{}}),ve["side-by-side-file-diff"]=new ge.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:{}}),ve["tag-file-added"]=new ge.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:{}}),ve["tag-file-changed"]=new ge.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:{}}),ve["tag-file-deleted"]=new ge.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:{}}),ve["tag-file-renamed"]=new ge.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 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)};const ye=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=ge.compile(r,{asString:!1});return me(me({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=me(me(me({},ve),t),o)}return e.compile=function(e){return ge.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 '"+o+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}();var we=function(){return we=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},we.apply(this,arguments)},xe=we(we(we({},ae),de),{outputFormat:"line-by-line",drawFileList:!0});function Ne(e,n){void 0===n&&(n={});var t=we(we({},xe),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})/,v=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,w=/^rename from "?(.+)"?/,x=/^rename to "?(.+)"?/,N=/^similarity index (\d+)%/,C=/^dissimilarity index (\d+)%/,E=/^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})/,A=/^deleted file mode (\d{6}),(\d{6})/,P=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 P.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=P[a-1],W=P[a+1],R=P[a+2];if(e.startsWith("diff")){if(F(),(M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=L(M[1],void 0,n.dstPrefix),c=L(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else 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 L(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=T(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return L(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=T(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?["- "," -","--"]:["-"];S(e,t)?(i.addedLines++,n.type=m.INSERT,n.oldNumber=void 0,n.newNumber=s++):S(e,a)?(i.deletedLines++,n.type=m.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=m.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var B=!function(e,n){for(var t=n;t<P.length-3;){if(e.startsWith("diff"))return!1;if(P[t].startsWith(u)&&P[t+1].startsWith(f)&&P[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=v.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=L(M[1],void 0,n.srcPrefix),i.newName=L(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=C.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=E.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=A.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}})),M(),z(),t}(e,t):e,r=new ye(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(re,"line",{fileHtmlId:ne(e),oldName:e.oldName,newName:e.newName,fileName:ee(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",te(e))})})).join("\n");return n.render(re,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new be(r,t).render(i):new ue(r,t).render(i))}var Ce=o(210),Te=(0,e.stringEnum)([].concat(["side-by-side","line-by-line"])),Se=(0,e.stringEnum)([].concat(["dark","light"])),Ee={oldContent:(0,Ce.string)().def(""),newContent:(0,Ce.string)().def(""),diffFormat:(0,Ce.string)().def(Te["line-by-line"]),diffContext:(0,Ce.number)(),theme:(0,Ce.string)().def("light"),language:(0,Ce.string)().def("javascript"),hljs:e.PropTypes.any.isRequired};const Le=(0,t.defineComponent)({name:"CodeDiff",props:Ee,emits:[],setup:function(i){var r=(0,t.ref)(null),o=(0,t.ref)(""),a=(0,t.computed)((function(){return(0,e.classes)({dark:i.theme===Se.dark},"hljs bk-code-diff")}));function s(e,n){var a,s,l=w("",i.oldContent,i.newContent,"","",{context:e});o.value=(a=Ne(l,{drawFileList:!1,matching:"lines",outputFormat:i.diffFormat}),s=n,a.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(s)}))),(0,t.nextTick)((function(){r.value&&r.value.querySelectorAll(".lang-".concat(i.language)).forEach((function(e){i.hljs.highlightElement(e)}))}))}return(0,t.onMounted)((function(){s(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=!0,s=!1;try{for(t=t.call(e);!(a=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw r}}return o}}(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.")}());s(r[0],r[1])})),function(){return(0,t.createVNode)("div",{ref:r,class:a.value,innerHTML:o.value},null)}}}),ke=(0,e.withInstall)(Le)})(),a})()));
|
package/lib/components.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
export { default as Alert } from './alert';
|
2
2
|
export { default as AnimateNumber } from './animate-number';
|
3
|
+
export { default as Affix } from './affix';
|
3
4
|
export { default as Backtop } from './backtop';
|
4
5
|
export { default as Badge } from './badge';
|
5
|
-
export { default as Breadcrumb
|
6
|
-
export { default as Button
|
6
|
+
export { default as Breadcrumb } from './breadcrumb';
|
7
|
+
export { default as Button } from './button';
|
7
8
|
export { default as Card } from './card';
|
8
|
-
export { default as Checkbox
|
9
|
+
export { default as Checkbox } from './checkbox';
|
9
10
|
export { default as Collapse } from './collapse';
|
10
11
|
export { default as Dialog } from './dialog';
|
11
12
|
export { default as Exception } from './exception';
|
@@ -16,10 +17,10 @@ export { default as Loading } from './loading';
|
|
16
17
|
export { default as Modal } from './modal';
|
17
18
|
export { default as Popover } from './popover';
|
18
19
|
export { default as Progress } from './progress';
|
19
|
-
export { default as Radio
|
20
|
+
export { default as Radio } from './radio';
|
20
21
|
export { default as Rate } from './rate';
|
21
22
|
export { default as Swiper } from './swiper';
|
22
|
-
export { default as Select
|
23
|
+
export { default as Select } from './select';
|
23
24
|
export { default as Sideslider } from './sideslider';
|
24
25
|
export { default as Steps } from './steps';
|
25
26
|
export { default as Switcher } from './switcher';
|
@@ -27,7 +28,7 @@ export { default as Table } from './table';
|
|
27
28
|
export { default as Tag } from './tag';
|
28
29
|
export { default as TagInput } from './tag-input';
|
29
30
|
export { default as Divider } from './divider';
|
30
|
-
export { default as Tab
|
31
|
+
export { default as Tab } from './tab';
|
31
32
|
export { default as Message } from './message';
|
32
33
|
export { default as Notify } from './notify';
|
33
34
|
export { default as Menu } from './menu';
|
@@ -36,7 +37,9 @@ export { default as DatePicker } from './date-picker';
|
|
36
37
|
export { default as Transfer } from './transfer';
|
37
38
|
export { default as Tree } from './tree';
|
38
39
|
export { default as VirtualRender } from './virtual-render';
|
39
|
-
export { default as Form
|
40
|
+
export { default as Form } from './form';
|
40
41
|
export { default as Pagination } from './pagination';
|
41
|
-
export { default as Container
|
42
|
-
export { default as
|
42
|
+
export { default as Container } from './container';
|
43
|
+
export { default as containerProps } from './container';
|
44
|
+
export { default as Dropdown } from './dropdown';
|
45
|
+
export { default as Cascader } from './cascader';
|
package/lib/components.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("./alert"),require("./animate-number"),require("./backtop"),require("./badge"),require("./breadcrumb"),require("./button"),require("./card"),require("./checkbox"),require("./collapse"),require("./dialog"),require("./exception"),require("./fixed-navbar"),require("./input"),require("./link"),require("./loading"),require("./modal"),require("./popover"),require("./progress"),require("./radio"),require("./rate"),require("./swiper"),require("./select"),require("./sideslider"),require("./steps"),require("./switcher"),require("./table"),require("./tag"),require("./tag-input"),require("./divider"),require("./tab"),require("./message"),require("./notify"),require("./menu"),require("./navigation"),require("./date-picker"),require("./transfer"),require("./tree"),require("./virtual-render"),require("./form"),require("./pagination"),require("./container"),require("./dropdown"));else if("function"==typeof define&&define.amd)define(["./alert","./animate-number","./backtop","./badge","./breadcrumb","./button","./card","./checkbox","./collapse","./dialog","./exception","./fixed-navbar","./input","./link","./loading","./modal","./popover","./progress","./radio","./rate","./swiper","./select","./sideslider","./steps","./switcher","./table","./tag","./tag-input","./divider","./tab","./message","./notify","./menu","./navigation","./date-picker","./transfer","./tree","./virtual-render","./form","./pagination","./container","./dropdown"],r);else{var i="object"==typeof exports?r(require("./alert"),require("./animate-number"),require("./backtop"),require("./badge"),require("./breadcrumb"),require("./button"),require("./card"),require("./checkbox"),require("./collapse"),require("./dialog"),require("./exception"),require("./fixed-navbar"),require("./input"),require("./link"),require("./loading"),require("./modal"),require("./popover"),require("./progress"),require("./radio"),require("./rate"),require("./swiper"),require("./select"),require("./sideslider"),require("./steps"),require("./switcher"),require("./table"),require("./tag"),require("./tag-input"),require("./divider"),require("./tab"),require("./message"),require("./notify"),require("./menu"),require("./navigation"),require("./date-picker"),require("./transfer"),require("./tree"),require("./virtual-render"),require("./form"),require("./pagination"),require("./container"),require("./dropdown")):r(e["./alert"],e["./animate-number"],e["./backtop"],e["./badge"],e["./breadcrumb"],e["./button"],e["./card"],e["./checkbox"],e["./collapse"],e["./dialog"],e["./exception"],e["./fixed-navbar"],e["./input"],e["./link"],e["./loading"],e["./modal"],e["./popover"],e["./progress"],e["./radio"],e["./rate"],e["./swiper"],e["./select"],e["./sideslider"],e["./steps"],e["./switcher"],e["./table"],e["./tag"],e["./tag-input"],e["./divider"],e["./tab"],e["./message"],e["./notify"],e["./menu"],e["./navigation"],e["./date-picker"],e["./transfer"],e["./tree"],e["./virtual-render"],e["./form"],e["./pagination"],e["./container"],e["./dropdown"]);for(var
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("./alert"),require("./animate-number"),require("./affix"),require("./backtop"),require("./badge"),require("./breadcrumb"),require("./button"),require("./card"),require("./checkbox"),require("./collapse"),require("./dialog"),require("./exception"),require("./fixed-navbar"),require("./input"),require("./link"),require("./loading"),require("./modal"),require("./popover"),require("./progress"),require("./radio"),require("./rate"),require("./swiper"),require("./select"),require("./sideslider"),require("./steps"),require("./switcher"),require("./table"),require("./tag"),require("./tag-input"),require("./divider"),require("./tab"),require("./message"),require("./notify"),require("./menu"),require("./navigation"),require("./date-picker"),require("./transfer"),require("./tree"),require("./virtual-render"),require("./form"),require("./pagination"),require("./container"),require("./dropdown"),require("./cascader"));else if("function"==typeof define&&define.amd)define(["./alert","./animate-number","./affix","./backtop","./badge","./breadcrumb","./button","./card","./checkbox","./collapse","./dialog","./exception","./fixed-navbar","./input","./link","./loading","./modal","./popover","./progress","./radio","./rate","./swiper","./select","./sideslider","./steps","./switcher","./table","./tag","./tag-input","./divider","./tab","./message","./notify","./menu","./navigation","./date-picker","./transfer","./tree","./virtual-render","./form","./pagination","./container","./dropdown","./cascader"],r);else{var i="object"==typeof exports?r(require("./alert"),require("./animate-number"),require("./affix"),require("./backtop"),require("./badge"),require("./breadcrumb"),require("./button"),require("./card"),require("./checkbox"),require("./collapse"),require("./dialog"),require("./exception"),require("./fixed-navbar"),require("./input"),require("./link"),require("./loading"),require("./modal"),require("./popover"),require("./progress"),require("./radio"),require("./rate"),require("./swiper"),require("./select"),require("./sideslider"),require("./steps"),require("./switcher"),require("./table"),require("./tag"),require("./tag-input"),require("./divider"),require("./tab"),require("./message"),require("./notify"),require("./menu"),require("./navigation"),require("./date-picker"),require("./transfer"),require("./tree"),require("./virtual-render"),require("./form"),require("./pagination"),require("./container"),require("./dropdown"),require("./cascader")):r(e["./alert"],e["./animate-number"],e["./affix"],e["./backtop"],e["./badge"],e["./breadcrumb"],e["./button"],e["./card"],e["./checkbox"],e["./collapse"],e["./dialog"],e["./exception"],e["./fixed-navbar"],e["./input"],e["./link"],e["./loading"],e["./modal"],e["./popover"],e["./progress"],e["./radio"],e["./rate"],e["./swiper"],e["./select"],e["./sideslider"],e["./steps"],e["./switcher"],e["./table"],e["./tag"],e["./tag-input"],e["./divider"],e["./tab"],e["./message"],e["./notify"],e["./menu"],e["./navigation"],e["./date-picker"],e["./transfer"],e["./tree"],e["./virtual-render"],e["./form"],e["./pagination"],e["./container"],e["./dropdown"],e["./cascader"]);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(self,((e,r,i,a,t,o,n,u,p,s,d,q,c,x,l,b,f,g,m,v,k,y,w,h,S,P,j,T,M,C,O,B,D,N,_,A,R,F,I,L,E,V,z,G)=>(()=>{"use strict";var H={9649:e=>{e.exports=i},431:r=>{r.exports=e},4408:e=>{e.exports=r},5963:e=>{e.exports=a},7416:e=>{e.exports=t},8393:e=>{e.exports=o},2477:e=>{e.exports=n},1919:e=>{e.exports=u},2074:e=>{e.exports=G},8432:e=>{e.exports=p},8477:e=>{e.exports=s},2299:e=>{e.exports=V},5936:e=>{e.exports=A},9837:e=>{e.exports=d},6743:e=>{e.exports=C},6750:e=>{e.exports=z},1520:e=>{e.exports=q},5389:e=>{e.exports=c},9602:e=>{e.exports=L},2009:e=>{e.exports=x},5717:e=>{e.exports=l},8668:e=>{e.exports=b},3158:e=>{e.exports=N},3227:e=>{e.exports=B},3110:e=>{e.exports=f},6972:e=>{e.exports=_},2426:e=>{e.exports=D},6496:e=>{e.exports=E},5657:e=>{e.exports=g},1633:e=>{e.exports=m},6154:e=>{e.exports=v},9495:e=>{e.exports=k},6414:e=>{e.exports=w},4819:e=>{e.exports=h},1810:e=>{e.exports=S},4706:e=>{e.exports=y},946:e=>{e.exports=P},3612:e=>{e.exports=O},3294:e=>{e.exports=j},5899:e=>{e.exports=T},2144:e=>{e.exports=M},9933:e=>{e.exports=R},4727:e=>{e.exports=F},1285:e=>{e.exports=I}},J={};function K(e){var r=J[e];if(void 0!==r)return r.exports;var i=J[e]={exports:{}};return H[e](i,i.exports,K),i.exports}K.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return K.d(r,{a:r}),r},K.d=(e,r)=>{for(var i in r)K.o(r,i)&&!K.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},K.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),K.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var Q={};return(()=>{K.r(Q),K.d(Q,{Affix:()=>o.a,Alert:()=>r.a,AnimateNumber:()=>a.a,Backtop:()=>u.a,Badge:()=>s.a,Breadcrumb:()=>q.a,Button:()=>x.a,Card:()=>b.a,Cascader:()=>Ae.a,Checkbox:()=>g.a,Collapse:()=>v.a,Container:()=>Be.a,DatePicker:()=>ve.a,Dialog:()=>y.a,Divider:()=>ue.a,Dropdown:()=>Ne.a,Exception:()=>h.a,FixedNavbar:()=>P.a,Form:()=>Te.a,Input:()=>T.a,Link:()=>C.a,Loading:()=>B.a,Menu:()=>be.a,Message:()=>qe.a,Modal:()=>N.a,Navigation:()=>ge.a,Notify:()=>xe.a,Pagination:()=>Ce.a,Popover:()=>A.a,Progress:()=>F.a,Radio:()=>L.a,Rate:()=>V.a,Select:()=>J.a,Sideslider:()=>W.a,Steps:()=>Y.a,Swiper:()=>G.a,Switcher:()=>$.a,Tab:()=>se.a,Table:()=>re.a,Tag:()=>ae.a,TagInput:()=>oe.a,Transfer:()=>ye.a,Tree:()=>he.a,VirtualRender:()=>Pe.a,containerProps:()=>Be.a});var e=K(431),r=K.n(e),i=K(4408),a=K.n(i),t=K(9649),o=K.n(t),n=K(5963),u=K.n(n),p=K(7416),s=K.n(p),d=K(8393),q=K.n(d),c=K(2477),x=K.n(c),l=K(1919),b=K.n(l),f=K(8432),g=K.n(f),m=K(8477),v=K.n(m),k=K(9837),y=K.n(k),w=K(1520),h=K.n(w),S=K(5389),P=K.n(S),j=K(2009),T=K.n(j),M=K(5717),C=K.n(M),O=K(8668),B=K.n(O),D=K(3110),N=K.n(D),_=K(5657),A=K.n(_),R=K(1633),F=K.n(R),I=K(6154),L=K.n(I),E=K(9495),V=K.n(E),z=K(4706),G=K.n(z),H=K(6414),J=K.n(H),U=K(4819),W=K.n(U),X=K(1810),Y=K.n(X),Z=K(946),$=K.n(Z),ee=K(3294),re=K.n(ee),ie=K(5899),ae=K.n(ie),te=K(2144),oe=K.n(te),ne=K(6743),ue=K.n(ne),pe=K(3612),se=K.n(pe),de=K(3227),qe=K.n(de),ce=K(2426),xe=K.n(ce),le=K(3158),be=K.n(le),fe=K(6972),ge=K.n(fe),me=K(5936),ve=K.n(me),ke=K(9933),ye=K.n(ke),we=K(4727),he=K.n(we),Se=K(1285),Pe=K.n(Se),je=K(9602),Te=K.n(je),Me=K(6496),Ce=K.n(Me),Oe=K(2299),Be=K.n(Oe),De=K(6750),Ne=K.n(De),_e=K(2074),Ae=K.n(_e)})(),Q})()));
|
@@ -9,6 +9,7 @@
|
|
9
9
|
--gray-color: #979ba5;
|
10
10
|
--light-gray: #c4c6cc;
|
11
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
12
13
|
--disable-color: #dcdee5;
|
13
14
|
--font-size-base: 12px;
|
14
15
|
--font-size-medium: 14px;
|
@@ -91,6 +92,10 @@
|
|
91
92
|
--table-body-font-color: #575961;
|
92
93
|
--table-row-hover-bg-color: #f5f7fa;
|
93
94
|
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
94
99
|
}
|
95
100
|
@keyframes loading-scale-animate {
|
96
101
|
0% {
|