s.index){var f=c-a.x-a.vx,m=l-a.y-a.vy,g=f*f+m*m;ge.r&&(e.r=e[t].r)}function s(){if(t){var i,o,r=t.length;for(n=new Array(r),i=0;i=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function re(e,t){for(var n,i=0,o=e.length;i0)for(var n,i,o=new Array(n),r=0;r=0&&t._call.call(null,e),t=t._next;--ue}function Se(){me=(fe=ve.now())+ge,ue=de=0;try{Le()}finally{ue=0,Ee(),me=0}}function Ce(){var e=ve.now(),t=e-fe;t>pe&&(ge-=t,fe=e)}function Ee(){var e,t,n=se,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:se=t);ce=e,Ae(i)}function Ae(e){if(!ue){de&&(de=clearTimeout(de));var t=e-me;t>24?(e<1/0&&(de=setTimeout(Se,e-ve.now()-ge)),he&&(he=clearInterval(he))):(he||(fe=ve.now(),he=setInterval(Ce,pe)),ue=1,_e(Se))}}Me.prototype=we.prototype={constructor:Me,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?be():+n)+(null==t?0:+t),this._next||ce===this||(ce?ce._next=this:se=this,ce=this),this._call=e,this._time=n,Ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ae())}};function Te(e){return e.x}function Oe(e){return e.y}var ke=10,xe=Math.PI*(3-Math.sqrt(5)),De=function(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),r=0,a=.6,s=G(),c=we(u),l=le("tick","end");function u(){d(),l.call("tick",t),n1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,i){var o,r,a,s,c,l=0,u=e.length;for(null==i?i=1/0:i*=i,l=0;l1?(l.on(e,n),t):l.on(e)}}},Re=function(){var e,t,n,i,o=_(-30),r=1,a=1/0,s=.81;function c(i){var o,r=e.length,a=B(e,Te,Oe).visitAfter(u);for(n=i,o=0;o=a)){(e.data!==t||e.next)&&(0===u&&(u=b(),p+=u*u),0===d&&(d=b(),p+=d*d),p=0;n--){var i=e.attributes[n];i&&(t[i.name]=i.value)}var o=e.innerHTML;if(o)return{attrs:t,data:o}}return null},svgElFromString:function(e){var t=this.toDom(e);if(this.isSvgData(t))return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t},svgDataToUrl:function(e,t){if("object"===Ue(t))for(var n in t){var i=t[n]?t[n]:"";e.setAttribute(n,i)}var o=this.export(e);return o?this.svgToUrl(this.serialize(o)):null},isSvgData:function(e){return!!e.firstChild&&"svg"===e.firstChild.parentNode.nodeName},svgToUrl:function(e){var t=new Blob([e],{type:"image/svg+xml"}),n=URL.createObjectURL(t);return n}},Ze={name:"svg-renderer",props:["size","nodes","noNodes","selected","linksSelected","links","nodeSize","padding","fontSize","strLinks","linkWidth","nodeLabels","linkLabels","labelOffset","nodeSym"],computed:{nodeSvg:function(){return this.nodeSym?Je.toObject(this.nodeSym):null}},methods:{getNodeSize:function(e,t){var n=e._size||this.nodeSize;return t&&(n=e["_"+t]||n),n},svgIcon:function(e){return e.svgObj||this.nodeSvg},emit:function(e,t){this.$emit("action",e,t)},svgScreenShot:function(e,t,n,i){var o=Je.export(this.$refs.svg,i);if(t)e(null,Je.save(o));else{n||(n=this.searchBackground());var r=Je.makeCanvas(this.size.w,this.size.h,n);Je.svgToImg(o,r,function(t,n){t?e(t):e(null,n)})}},linkClass:function(e){var t=["link"];return this.linksSelected.hasOwnProperty(e)&&t.push("selected"),this.strLinks||t.push("curve"),t},linkPath:function(e){var t={M:[0|e.source.x,0|e.source.y],X:[0|e.target.x,0|e.target.y]};return this.strLinks?"M "+t.M.join(" ")+" L"+t.X.join(" "):(t.Q=[e.source.x,e.target.y],"M "+t.M+" Q "+t.Q.join(" ")+" "+t.X)},nodeStyle:function(e){return e._color?"fill: "+e._color:""},linkStyle:function(e){var t={};return e._color&&(t.stroke=e._color),t},nodeClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e._cssClass?e._cssClass:[];return a()(n)||(n=[n]),n.push("node"),t.forEach(function(e){return n.push(e)}),this.selected[e.id]&&n.push("selected"),(e.fx||e.fy)&&n.push("pinned"),n},searchBackground:function(){var e=this;while(e.$parent){var t=window.getComputedStyle(e.$el),n=t.getPropertyValue("background-color"),i=n.replace(/[^\d,]/g,"").split(","),o=i.reduce(function(e,t){return Ye()(e)+Ye()(t)},0);if(o>0)return n;e=e.$parent}return"white"},spriteSymbol:function(){var e=this.nodeSym;if(e)return Je.toSymbol(e)},linkAttrs:function(e){var t=e._svgAttrs||{};return t["stroke-width"]=t["stroke-width"]||this.linkWidth,t}}},Qe=Ze;function et(e,t,n,i,o,r,a,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var tt,nt,it=et(Qe,Ie,Be,!1,null,null,null),ot=it.exports,rt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("canvas",{directives:[{name:"render-canvas",rawName:"v-render-canvas",value:{links:e.links,nodes:e.nodes},expression:"{links, nodes}"}],ref:"canvas",style:e.canvasStyle,attrs:{id:"canvas",width:e.size.w,height:e.size.h},on:{mouseup:function(t){return t.preventDefault(),e.canvasClick(t)},mousedown:function(t){return t.preventDefault(),e.canvasClick(t)},touchstart:function(t){return t.preventDefault(),e.canvasClick(t)},"&touchend":function(t){return e.canvasClick(t)}}})},at=[],st=(n("b54a"),n("6c7b"),{background:{_cssClass:"net-svg",fillStyle:"white"},node:{_cssClass:"node",fillStyle:"green",strokeStyle:"orange",lineWidth:2},link:{_cssClass:"link",strokeStyle:"blue",lineWidth:1},labels:{_cssClass:"node-label",_svgElement:"text",fillStyle:"black",fontFamily:"Arial"},nodeSelected:{_cssClass:"node selected",fillStyle:"red",strokeStyle:"orange",lineWidth:2},linkSelected:{_cssClass:"link selected",strokeStyle:"green",lineWidth:2},nodePinned:{_cssClass:"node pinned",fillStyle:"green",strokeStyle:"red"},nodeSelectedPinned:{_cssClass:"node selected pinned",fillStyle:"green",strokeStyle:"red"}}),ct=(n("6b54"),{randomId:function(){return Math.random().toString(36).substring(7)},fillStyle:function(e,t){var n=null,i="picker-"+this.randomId(),o=this.canvasPicker(e,i);t.appendChild(o);var r={fillStyle:"fill",strokeStyle:"stroke",lineWidth:"stroke-width",fontFamily:"font-family"};return e=this.mapStyle(i,r,e,n),t.removeChild(o),e},mapStyle:function(e,t,n,i,o){var r=window.getComputedStyle(document.getElementById(e),i);for(var a in o=o||["lineWidth"],t){var s=r.getPropertyValue(t[a]);o.indexOf(a)>-1&&(s=Ye()(s,10)),s&&(n[a]=s)}return n},canvasPicker:function(e,t){var n=e._svgAttrs||{},i=e._svgElement||"circle";if(!e._svgAttrs)switch(i){case"text":n={x:10,y:10,fontSize:20};break;case"circle":n={cx:10,cy:10,r:10};break}return n.class=e._cssClass,n.id=t,this.svgCreate(i,n)},compColor:function(e){var t=document.createElement("div");t.style.backgroundColor=e,document.body.appendChild(t);var n=window.getComputedStyle(t,null).getPropertyValue("background-color");return document.body.removeChild(t),n},svgCreate:function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var i in t)n.setAttributeNS(null,i,t[i]);return n},create:function(e,t,n){n=n||"body";var i=document.createElement(e),o=t||"";return o+=this.randomId(),i.setAttribute("id",o),document[n].appendChild(i),i}}),lt={name:"canvas-renderer",props:["size","offset","padding","nodes","selected","linksSelected","links","nodeSize","fontSize","strLinks","linkWidth","nodeLabels","labelOffset","canvasStyles","nodeSym","noNodes"],data:function(){return{hitCanvas:null,shapes:{},drag:null,stylesReady:!1,CssStyles:!0,styles:st,sprites:{}}},computed:{nodeSvg:function(){return this.nodeSym},canvasStyle:function(){var e=this.padding.x+"px",t=this.padding.y+"px";return{left:e,top:t}}},directives:{renderCanvas:function(e,t,n){var i=t.value.nodes,o=t.value.links;n.context.draw(i,o,e)}},created:function(){if(this.canvasStyles)for(var e in this.canvasStyles)this.styles[e]=this.canvasStyles[e]},mounted:function(){var e=this;this.$nextTick(function(){e.hitCanvas.width=e.size.w,e.hitCanvas.height=e.size.h})},watch:{nodeSize:function(){this.resetSprites()},canvasStyles:function(){this.resetSprites()}},methods:{canvasScreenShot:function(e,t){var n=this.$refs.canvas,i=document.createElement("canvas");i.width=n.width,i.height=n.height;var o=this.styles.background;t&&(o=this.getCssColor(t));var r=i.getContext("2d");r=this.setCtx(r,o),r.fillRect(0,0,i.width,i.height),r.drawImage(n,0,0);var a=i.toDataURL("image/png");a?e(null,a):e(new Error("error generating canvas image"))},emit:function(e,t){this.$emit("action",e,t)},canvasInit:function(){var e=document.createElement("canvas");e.width=this.size.w,e.height=this.size.h,e.top=this.offset.y,e.left=this.offset.x,e.id="hit-canvas",this.hitCanvas=e,this.resetSprites()},resetSprites:function(){this.sprites={};for(var e=["node","nodeSelected","nodePinned","nodeSelectedPinned"],t=0;t0&&e.y>0&&e.x0&&(i.data[r]=255,i.data[r-3]=t.r,i.data[r-2]=t.g,i.data[r-1]=t.b);return n.putImageData(i,0,0),e},newColorIndex:function(){while(1){var e=this.randomColor();if(!this.shapes[e.rgb])return e}},randomColor:function(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),n=Math.round(255*Math.random());return{r:e,g:t,b:n,rgb:"rgb(".concat(e,",").concat(t,",").concat(n,")")}},setCtx:function(e,t){for(var n in t)e[n]=t[n];return e},cloneCanvas:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0),t},Sprite:function(e,t){return this.sprites[e]||(this.sprites[e]=t()),this.sprites[e]},getCssStyles:function(){var e=ct.create("svg","css-picker");for(var t in this.styles){var n=this.styles[t]||{};n=ct.fillStyle(n,e)}document.body.removeChild(e),this.stylesReady=!0},loadNodeStyle:function(e){var t="node",n=this.selected[e.id];if(n&&(t="nodeSelected"),e.pinned&&(t="nodePinned"),n&&e.pinned&&(t="nodeSelectedPinned"),e._cssClass){var i=t+"-"+e._cssClass;if(!this.styles[i]){var o=g()({},this.styles[t]||{});o._cssClass=o._cssClass||"",o._cssClass+=" "+e._cssClass,this.updateStyle(i,o)}t=i}var r=g()({},this.styles[t]||this.updateStyle(t));return e._color&&(r.fillStyle=e._color,r._cssStyle="fill:"+e._color),e._cssClass&&(r._cssClass+=" "+e._cssClass),r},updateStyle:function(e,t){t=t||this.styles[e]||{};var n=ct.create("svg","css-picker");return t=ct.fillStyle(t,n),this.styles[e]=t,document.body.removeChild(n),t},getCssColor:function(e){var t=ct.create("div","color-picker"),n=t.id;t.setAttribute("style","background-color:"+e);var i=ct.mapStyle(n,{fillStyle:"background-color"},[]);return document.body.removeChild(t),i},labelStyle:function(e){var t=this.styles.labels,n=e._labelClass;if(n){var i="labels-"+n,o=this.styles[i];o||(o=g()({},t),o._cssClass+=" "+n,o=this.updateStyle(i,o)),t=o}return t}}},ut=lt,dt=(n("3d11"),et(ut,rt,at,!1,null,null,null)),ht=dt.exports,pt=(n("34ef"),{save:function(e,t){var n=this;e&&(e=this.dataURIToBlob(e,function(e){var i=URL.createObjectURL(e);n.download(i,t)}))},dataURIToBlob:function(e,t){for(var n=atob(e.split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),c=n("9757"),l=n("3a92"),u=n("6923"),d=n("3585"),h=n("168d"),p=n("cc26"),f=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.elementsToActivate=t,this.elementsToDeactivate=n,this.kind=e.KIND}return e.KIND="switchEditMode",e}();t.SwitchEditModeAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.elementsToActivate=[],n.elementsToDeactivate=[],n.handlesToRemove=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root.index;return this.action.elementsToActivate.forEach(function(e){var i=n.getById(e);void 0!==i&&t.elementsToActivate.push(i)}),this.action.elementsToDeactivate.forEach(function(e){var i=n.getById(e);if(void 0!==i&&t.elementsToDeactivate.push(i),i instanceof d.SRoutingHandle&&i.parent instanceof d.SRoutableElement){var o=i.parent;t.shouldRemoveHandle(i,o)&&(t.handlesToRemove.push({handle:i,parent:o}),t.elementsToDeactivate.push(o),t.elementsToActivate.push(o))}}),this.doExecute(e)},t.prototype.doExecute=function(e){var t=this;return this.handlesToRemove.forEach(function(e){e.point=e.parent.routingPoints.splice(e.handle.pointIndex,1)[0]}),this.elementsToDeactivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1,e.danglingAnchor&&e.parent instanceof d.SRoutableElement&&e.danglingAnchor.original&&(e.parent.source===e.danglingAnchor?e.parent.sourceId=e.danglingAnchor.original.id:e.parent.target===e.danglingAnchor&&(e.parent.targetId=e.danglingAnchor.original.id),e.danglingAnchor.parent.remove(e.danglingAnchor),e.danglingAnchor=void 0))}),this.elementsToActivate.forEach(function(e){if(p.canEditRouting(e)&&e instanceof l.SParentElement){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.shouldRemoveHandle=function(e,t){if("junction"===e.kind){var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return void 0===i.find(function(t){return t.pointIndex===e.pointIndex})}return!1},t.prototype.undo=function(e){var t=this;return this.handlesToRemove.forEach(function(e){void 0!==e.point&&e.parent.routingPoints.splice(e.handle.pointIndex,0,e.point)}),this.elementsToActivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1)}),this.elementsToDeactivate.forEach(function(e){if(p.canEditRouting(e)){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.redo=function(e){return this.doExecute(e)},t.KIND=f.KIND,o([s.inject(h.EdgeRouterRegistry),r("design:type",h.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([s.injectable(),a(0,s.inject(u.TYPES.Action)),r("design:paramtypes",[f])],t),t}(c.Command);t.SwitchEditModeCommand=m},a663:function(e,t,n){"use strict";var i=n("84fd"),o=n.n(i);o.a},a74d:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+function t(e,t,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},a8af:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){return e instanceof RangeError||e.message===i.STACK_OVERFLOW}t.isStackOverflowExeption=o},a8f0:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(o,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},ab71:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n("869e"),r=n("dd02"),a=n("e1c6"),s=n("d8f5"),c=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+o.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),a=o.x-t.x,s=o.y-t.y,c=Math.sqrt(a*a+s*s),l=a/c||0,u=s/c||0;return{x:o.x-l*(.5*i.width+n),y:o.y-u*(.5*i.height+n)}},e=i([a.injectable()],e),e}();t.EllipseAnchor=c;var l=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+o.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),a=new u(o,t);if(!r.almostEquals(o.y,t.y)){var s=this.getXIntersection(i.y,o,t);s>=i.x&&s<=i.x+i.width&&a.addCandidate(s,i.y-n);var c=this.getXIntersection(i.y+i.height,o,t);c>=i.x&&c<=i.x+i.width&&a.addCandidate(c,i.y+i.height+n)}if(!r.almostEquals(o.x,t.x)){var l=this.getYIntersection(i.x,o,t);l>=i.y&&l<=i.y+i.height&&a.addCandidate(i.x-n,l);var d=this.getYIntersection(i.x+i.width,o,t);d>=i.y&&d<=i.y+i.height&&a.addCandidate(i.x+i.width+n,d)}return a.best},e.prototype.getXIntersection=function(e,t,n){var i=(e-t.y)/(n.y-t.y);return(n.x-t.x)*i+t.x},e.prototype.getYIntersection=function(e,t,n){var i=(e-t.x)/(n.x-t.x);return(n.y-t.y)*i+t.y},e=i([a.injectable()],e),e}();t.RectangleAnchor=l;var u=function(){function e(e,t){this.centerPoint=e,this.refPoint=t,this.currentDist=-1}return e.prototype.addCandidate=function(e,t){var n=this.refPoint.x-e,i=this.refPoint.y-t,o=n*n+i*i;(this.currentDist<0||o=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===r["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),o=!1):this.freehand_&&t.type===r["a"].POINTERDOWN?o=!1:n?(o=t.type===r["a"].POINTERMOVE,o&&this.freehand_?o=this.handlePointerMove_(t):(t.pointerEvent.pointerType==b["b"]||t.type===r["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===r["a"].DBLCLICK&&(o=!1),e.prototype.handleEvent.call(this,t)&&o},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a["a"](r["a"].POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var n=this.mode_===A.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===A.POINT&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,i=t[0]-n[0],o=t[1]-n[1],r=i*i+o*o;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,i=[this.finishCoordinate_];if(this.mode_===A.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===A.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,i=[o[0][0],o[0][o[0].length-2]]}if(n)for(var r=e.map,a=0,s=i.length;a=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),this.geometryFunction_(n,o)):this.mode_===A.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,o)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t,n=this.sketchFeature_.getGeometry();this.mode_===A.LINE_STRING?(e=this.sketchCoords_,e.splice(-2,1),this.geometryFunction_(e,n),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===A.POLYGON&&(e=this.sketchCoords_[0],e.splice(-2,1),t=this.sketchLine_.getGeometry(),t.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,n)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry();this.mode_===A.LINE_STRING?(t.pop(),this.geometryFunction_(t,n)):this.mode_===A.POLYGON&&(t[0].pop(),this.geometryFunction_(t,n),t=n.getCoordinates()),this.type_===f["a"].MULTI_POINT?e.setGeometry(new v["a"]([t])):this.type_===f["a"].MULTI_LINE_STRING?e.setGeometry(new g["a"]([t])):this.type_===f["a"].MULTI_POLYGON&&e.setGeometry(new _["a"]([t])),this.dispatchEvent(new O(T.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry(),n=t;this.sketchFeature_=e,this.sketchCoords_=n.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new O(T.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(w["b"]);function x(){var e=Object(E["b"])();return function(t,n){return e[t.getGeometry().getType()]}}function D(e){var t;return e===f["a"].POINT||e===f["a"].MULTI_POINT?t=A.POINT:e===f["a"].LINE_STRING||e===f["a"].MULTI_LINE_STRING?t=A.LINE_STRING:e===f["a"].POLYGON||e===f["a"].MULTI_POLYGON?t=A.POLYGON:e===f["a"].CIRCLE&&(t=A.CIRCLE),t}t["a"]=k},ac2a:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("9757"),c=n("3a92"),l=n("e1c6"),u=n("6923"),d=function(){function e(t,n){this.containerId=t,this.elementSchema=n,this.kind=e.KIND}return e.KIND="createElement",e}();t.CreateElementAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index.getById(this.action.containerId);return t instanceof c.SParentElement&&(this.container=t,this.newElement=e.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),e.root},t.prototype.undo=function(e){return this.container.remove(this.newElement),e.root},t.prototype.redo=function(e){return this.container.add(this.newElement),e.root},t.KIND=d.KIND,t=o([l.injectable(),a(0,l.inject(u.TYPES.Action)),r("design:paramtypes",[d])],t),t}(s.Command);t.CreateElementCommand=h},ac8e:function(e,t,n){},ace8:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},ad0b:function(e,t,n){"use strict";var i=n("d988"),o=n.n(i);o.a},ad71:function(e,t,n){"use strict";(function(t,i){var o=n("966d");e.exports=w;var r,a=n("e3db");w.ReadableState=M;n("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n("429b"),l=n("a8f0").Buffer,u=t.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof u}var p=Object.create(n("3a7c"));p.inherits=n("3fb5");var f=n(2),m=void 0;m=f&&f.debuglog?f.debuglog("stream"):function(){};var g,v=n("5e1a"),_=n("4681");p.inherits(w,c);var b=["error","close","destroy","pause","resume"];function y(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function M(e,t){r=r||n("b19a"),e=e||{};var i=t instanceof r;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function w(e){if(r=r||n("b19a"),!(this instanceof w))return new w(e);this._readableState=new M(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function L(e,t,n,i,o){var r,a=e._readableState;null===t?(a.reading=!1,k(e,a)):(o||(r=C(a,t)),r?e.emit("error",r):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=d(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):R(e,a)):S(e,a,t,!1))):i||(a.reading=!1));return E(a)}function S(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),R(e,t)}function C(e,t){var n;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(e){return!e.ended&&(e.needReadable||e.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(D,e):D(e))}function D(e){m("emit readable"),e.emit("readable"),j(e)}function R(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(z,e,t))}function z(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=H(e,t.buffer,t.decoder),n);var n}function H(e,t,n){var i;return er.length?r.length:e;if(a===r.length?o+=r:o+=r.slice(0,e),e-=a,0===e){a===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(a));break}++i}return t.length-=i,o}function q(e,t){var n=l.allocUnsafe(e),i=t.head,o=1;i.data.copy(n),e-=i.data.length;while(i=i.next){var r=i.data,a=e>r.length?r.length:e;if(r.copy(n,n.length-e,0,a),e-=a,0===e){a===r.length?(++o,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=r.slice(a));break}++o}return t.length-=o,n}function F(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(X,t,e))}function X(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):x(this),null;if(e=O(e,t),0===e&&t.ended)return 0===t.length&&F(this),null;var i,o=t.needReadable;return m("need readable",o),(0===t.length||t.length-e0?Y(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==i&&this.emit("data",i),i},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,m("pipe count=%d opts=%j",r.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,c=a?u:M;function l(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){m("onend"),e.end()}r.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",l);var d=P(n);e.on("drain",d);var h=!1;function p(){m("cleanup"),e.removeListener("close",_),e.removeListener("finish",b),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",M),n.removeListener("data",g),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}var f=!1;function g(t){m("ondata"),f=!1;var i=e.write(t);!1!==i||f||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==U(r.pipes,e))&&!h&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function v(t){m("onerror",t),M(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",b),M()}function b(){m("onfinish"),e.removeListener("close",_),M()}function M(){m("unpipe"),n.unpipe(e)}return n.on("data",g),y(e,"error",v),e.once("close",_),e.once("finish",b),e.emit("pipe",n),r.flowing||(m("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("66f9"),a=function(){function e(){}return Object.defineProperty(e.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),e.prototype.snap=function(e,t){return t&&r.isBoundsAware(t)?{x:Math.round((e.x+.5*t.bounds.width)/this.gridX)*this.gridX-.5*t.bounds.width,y:Math.round((e.y+.5*t.bounds.height)/this.gridY)*this.gridY-.5*t.bounds.height}:{x:Math.round(e.x/this.gridX)*this.gridX,y:Math.round(e.y/this.gridY)*this.gridY}},e=i([o.injectable()],e),e}();t.CenterGridSnapper=a},aff7:function(e,t,n){"use strict";var i=n("7bae"),o=n.n(i);o.a},b093:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),a=n("6923"),s=n("0d7a"),c=n("e45b"),l=function(){function e(){}return e.prototype.decorate=function(e,t){var n=c.getAttrs(e);return void 0!==n.id&&this.logger.warn(e,"Overriding id of vnode ("+n.id+"). Make sure not to set it manually in view."),n.id=this.domHelper.createUniqueDOMElementId(t),e.key||(e.key=t.id),e},e.prototype.postUpdate=function(){},i([r.inject(a.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(a.TYPES.DOMHelper),o("design:type",s.DOMHelper)],e.prototype,"domHelper",void 0),e=i([r.injectable()],e),e}();t.IdPostprocessor=l},b175:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t})},b19a:function(e,t,n){"use strict";var i=n("966d"),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var r=Object.create(n("3a7c"));r.inherits=n("3fb5");var a=n("ad71"),s=n("dc14");r.inherits(d,a);for(var c=o(s.prototype),l=0;lt.getMaxResolution()||v=0?e:"children"}}]),l}(e);return window["ol"]&&window["ol"]["control"]&&(window["ol"]["control"]["LayerSwitcher"]=l),l})},b485:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3b4c"),r=n("3623"),a=n("1f89"),s=function(){function e(t){this.elementId=t,this.kind=e.KIND}return e.KIND="open",e}();t.OpenAction=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=r.findParentByFeature(e,a.isOpenable);return void 0!==n?[new s(n.id)]:[]},t}(o.MouseListener);t.OpenMouseListener=c},b669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fba3");function o(e,t){for(var n=[],o=2;o=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e||"ctrlCmd"===e})>=0)return!1}else{if(e.ctrlKey!==n.findIndex(function(e){return"ctrl"===e||"ctrlCmd"===e})>=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e})>=0)return!1}return e.altKey===n.findIndex(function(e){return"alt"===e})>=0&&e.shiftKey===n.findIndex(function(e){return"shift"===e})>=0}function r(e){if(e.keyCode){var t=a[e.keyCode];if(void 0!==t)return t}return e.code}t.matchesKeystroke=o,t.getActualCode=r;var a=new Array(256);(function(){function e(e,t){void 0===a[t]&&(a[t]=e)}e("Pause",3),e("Backspace",8),e("Tab",9),e("Enter",13),e("ShiftLeft",16),e("ShiftRight",16),e("ControlLeft",17),e("ControlRight",17),e("AltLeft",18),e("AltRight",18),e("CapsLock",20),e("Escape",27),e("Space",32),e("PageUp",33),e("PageDown",34),e("End",35),e("Home",36),e("ArrowLeft",37),e("ArrowUp",38),e("ArrowRight",39),e("ArrowDown",40),e("Insert",45),e("Delete",46),e("Digit1",49),e("Digit2",50),e("Digit3",51),e("Digit4",52),e("Digit5",53),e("Digit6",54),e("Digit7",55),e("Digit8",56),e("Digit9",57),e("Digit0",48),e("KeyA",65),e("KeyB",66),e("KeyC",67),e("KeyD",68),e("KeyE",69),e("KeyF",70),e("KeyG",71),e("KeyH",72),e("KeyI",73),e("KeyJ",74),e("KeyK",75),e("KeyL",76),e("KeyM",77),e("KeyN",78),e("KeyO",79),e("KeyP",80),e("KeyQ",81),e("KeyR",82),e("KeyS",83),e("KeyT",84),e("KeyU",85),e("KeyV",86),e("KeyW",87),e("KeyX",88),e("KeyY",89),e("KeyZ",90),e("OSLeft",91),e("MetaLeft",91),e("OSRight",92),e("MetaRight",92),e("ContextMenu",93),e("Numpad0",96),e("Numpad1",97),e("Numpad2",98),e("Numpad3",99),e("Numpad4",100),e("Numpad5",101),e("Numpad6",102),e("Numpad7",103),e("Numpad8",104),e("Numpad9",105),e("NumpadMultiply",106),e("NumpadAdd",107),e("NumpadSeparator",108),e("NumpadSubtract",109),e("NumpadDecimal",110),e("NumpadDivide",111),e("F1",112),e("F2",113),e("F3",114),e("F4",115),e("F5",116),e("F6",117),e("F7",118),e("F8",119),e("F9",120),e("F10",121),e("F11",122),e("F12",123),e("F13",124),e("F14",125),e("F15",126),e("F16",127),e("F17",128),e("F18",129),e("F19",130),e("F20",131),e("F21",132),e("F22",133),e("F23",134),e("F24",135),e("NumLock",144),e("ScrollLock",145),e("Semicolon",186),e("Equal",187),e("Comma",188),e("Minus",189),e("Period",190),e("Slash",191),e("Backquote",192),e("IntlRo",193),e("BracketLeft",219),e("Backslash",220),e("BracketRight",221),e("Quote",222),e("IntlYen",255)})()},b7b8:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t1)){var n=this.route(e);if(!(n.length<2)){for(var i=[],o=0,r=0;r1e-8&&c>=s){var u=Math.max(0,s-a)/i[r];return{segmentStart:n[r],segmentEnd:n[r+1],lambda:u}}a=c}return{segmentEnd:n.pop(),segmentStart:n.pop(),lambda:1}}}},e.prototype.addHandle=function(e,t,n,i){var o=new u.SRoutingHandle;return o.kind=t,o.pointIndex=i,o.type=n,"target"===t&&e.id===u.edgeInProgressID&&(o.id=u.edgeInProgressTargetHandleID),e.add(o),o},e.prototype.getHandlePosition=function(e,t,n){switch(n.kind){case"source":return e.source instanceof u.SDanglingAnchor?e.source.position:t[0];case"target":return e.target instanceof u.SDanglingAnchor?e.target.position:t[t.length-1];default:var i=this.getInnerHandlePosition(e,t,n);if(void 0!==i)return i;if(n.pointIndex>=0&&n.pointIndexr(i))&&(i=c),l>n&&(void 0===o||l0&&this.applyInnerHandleMoves(e,n),this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)},e.prototype.cleanupRoutingPoints=function(e,t,n,i){var o=new p(e.source,e.parent,"source"),r=new p(e.target,e.parent,"target");this.resetRoutingPointsOnReconnect(e,t,n,o,r)},e.prototype.resetRoutingPointsOnReconnect=function(e,t,n,i,o){if(0===t.length||e.source instanceof u.SDanglingAnchor||e.target instanceof u.SDanglingAnchor){var a=this.getOptions(e),s=this.calculateDefaultCorners(e,i,o,a);if(t.splice.apply(t,r([0,t.length],s)),n){var c=-2;e.children.forEach(function(n){n instanceof u.SRoutingHandle&&("target"===n.kind?n.pointIndex=t.length:"line"===n.kind&&n.pointIndex>=t.length?e.remove(n):c=Math.max(n.pointIndex,c))});for(var l=c;l-1&&(e.routingPoints=[],this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)))},e.prototype.takeSnapshot=function(e){return{routingPoints:e.routingPoints.slice(),routingHandles:e.children.filter(function(e){return e instanceof u.SRoutingHandle}).map(function(e){return e}),routedPoints:this.route(e),router:this,source:e.source,target:e.target}},e.prototype.applySnapshot=function(e,t){e.routingPoints=t.routingPoints,e.removeAll(function(e){return e instanceof u.SRoutingHandle}),e.routerKind=t.router.kind,t.routingHandles.forEach(function(t){return e.add(t)}),t.source&&(e.sourceId=t.source.id),t.target&&(e.targetId=t.target.id),e.root.index.remove(e),e.root.index.add(e)},e.prototype.calculateDefaultCorners=function(e,t,n,i){var o=this.getSelfEdgeIndex(e);if(o>=0){var r=i.standardDistance,s=i.selfEdgeOffset*Math.min(t.bounds.width,t.bounds.height);switch(o%4){case 0:return[{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y+s},{x:t.get(a.RIGHT).x+r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.BOTTOM).x+s,y:t.get(a.BOTTOM).y+r}];case 1:return[{x:t.get(a.BOTTOM).x-s,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y+s}];case 2:return[{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y-s},{x:t.get(a.LEFT).x-r,y:t.get(a.TOP).y-r},{x:t.get(a.TOP).x-s,y:t.get(a.TOP).y-r}];case 3:return[{x:t.get(a.TOP).x+s,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y-s}]}}return[]},e.prototype.getSelfEdgeIndex=function(e){return e.source&&e.source===e.target?e.source.outgoingEdges.filter(function(t){return t.target===e.source}).indexOf(e):-1},i([s.inject(d.AnchorComputerRegistry),o("design:type",d.AnchorComputerRegistry)],e.prototype,"anchorRegistry",void 0),e=i([s.injectable()],e),e}();t.LinearEdgeRouter=f},b7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("46cc"),a=n("d8f5"),s=n("9a1f"),c=n("ab71"),l=n("869e"),u=n("168d"),d=new i.ContainerModule(function(e){e(u.EdgeRouterRegistry).toSelf().inSingletonScope(),e(l.AnchorComputerRegistry).toSelf().inSingletonScope(),e(r.ManhattanEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(r.ManhattanEdgeRouter),e(o.TYPES.IAnchorComputer).to(s.ManhattanEllipticAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(s.ManhattanRectangularAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(s.ManhattanDiamondAnchor).inSingletonScope(),e(a.PolylineEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(a.PolylineEdgeRouter),e(o.TYPES.IAnchorComputer).to(c.EllipseAnchor),e(o.TYPES.IAnchorComputer).to(c.RectangleAnchor),e(o.TYPES.IAnchorComputer).to(c.DiamondAnchor)});t.default=d},b7d1:function(e,t,n){(function(t){function n(e,t){if(i("noDeprecation"))return e;var n=!1;function o(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b878:function(e,t,n){},b8c1:function(e,t,n){"use strict";t["a"]={data:function(){return{timer:null,prevent:!1,delay:200}},methods:{onClick:function(e,t){var n=this;this.timer=setTimeout(function(){n.prevent||t(e),n.prevent=!1},this.delay)},onDblClick:function(e,t){clearTimeout(this.timer),this.prevent=!0,t(e)}}}},b933:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return n})},b967:function(e,t,n){"use strict";var i=n("0505"),o=n.n(i);o.a},ba33:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){if("function"===typeof e){var t=e;return t.name}if("symbol"===typeof e)return e.toString();t=e;return t}function r(e,t,n){var i="",o=n(e,t);return 0!==o.length&&(i="\nRegistered bindings:",o.forEach(function(e){var t="Object";null!==e.implementationType&&(t=u(e.implementationType)),i=i+"\n "+t,e.constraint.metaData&&(i=i+" - "+e.constraint.metaData)})),i}function a(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||a(e.parentRequest,t))}function s(e){function t(e,n){void 0===n&&(n=[]);var i=o(e.serviceIdentifier);return n.push(i),null!==e.parentRequest?t(e.parentRequest,n):n}var n=t(e);return n.reverse().join(" --\x3e ")}function c(e){e.childRequests.forEach(function(e){if(a(e,e.serviceIdentifier)){var t=s(e);throw new Error(i.CIRCULAR_DEPENDENCY+" "+t)}c(e)})}function l(e,t){if(t.isTagged()||t.isNamed()){var n="",i=t.getNamedTag(),o=t.getCustomTags();return null!==i&&(n+=i.toString()+"\n"),null!==o&&o.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e}function u(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=r,t.circularDependencyToException=c,t.listMetadataForTarget=l,t.getFunctionName=u},ba8b:function(e,t,n){},bab1:function(e,t,n){},bafd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.context||document;if(!e)return null;var i=[],r=u((0,o.default)(e),i,n),a=void 0;return a=r?1===r.length?r[0]:r:d({type:"text",content:e},i,n),t.hooks&&t.hooks.create&&i.forEach(function(e){t.hooks.create(e)}),a};var i=n("861d"),o=c(i),r=n("2eed"),a=c(r),s=n("6592");function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return e instanceof Array&&e.length>0?e.map(function(e){return d(e,t,n)}):void 0}function d(e,t,n){var i=void 0;return i="text"===e.type?(0,s.createTextVNode)(e.content,n):(0,a.default)(e.name,h(e,n),u(e.children,t,n)),t.push(i),i}function h(e,t){var n={};if(!e.attrs)return n;var i=Object.keys(e.attrs).reduce(function(n,i){if("style"!==i&&"class"!==i){var o=(0,s.unescapeEntities)(e.attrs[i],t);n?n[i]=o:n=l({},i,o)}return n},null);i&&(n.attrs=i);var o=p(e);o&&(n.style=o);var r=f(e);return r&&(n.class=r),n}function p(e){try{return e.attrs.style.split(";").reduce(function(e,t){var n=t.split(":"),i=(0,s.transformName)(n[0].trim());if(i){var o=n[1].replace("!important","").trim();e?e[i]=o:e=l({},i,o)}return e},null)}catch(e){return null}}function f(e){try{return e.attrs.class.split(" ").reduce(function(e,t){return t=t.trim(),t&&(e?e[t]=!0:e=l({},t,!0)),e},null)}catch(e){return null}}},bb33:function(e,t,n){"use strict";var i=n("bee8"),o=n.n(i);o.a},bb59:function(e,t,n){},bb82:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return t})},bc63:function(e,t,n){},bcbd:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),c=n("510b"),l=n("9757"),u=n("2f3a"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("1417"),m=n("3b4c"),g=n("e45b"),v=n("fba3"),_=n("e629"),b=n("b669"),y=n("70d9"),M=n("38e8"),w=n("a5f4"),L=n("3585"),S=n("3585"),C=n("3ada"),E=n("4c18"),A=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.selectedElementsIDs=t,this.deselectedElementsIDs=n,this.kind=e.KIND}return e.KIND="elementSelected",e}();t.SelectAction=A;var T=function(){function e(t){void 0===t&&(t=!0),this.select=t,this.kind=e.KIND}return e.KIND="allSelected",e}();t.SelectAllAction=T;var O=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getSelection",e}();t.GetSelectionAction=O;var k=function(){function e(t,n){void 0===t&&(t=[]),this.selectedElementsIDs=t,this.responseId=n,this.kind=e.KIND}return e.KIND="selectionResult",e}();t.SelectionResult=k;var x=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n.deselected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.selectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.selected.push(i)}),this.action.deselectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.deselected.push(i)}),this.redo(e)},t.prototype.undo=function(e){for(var t=0,n=this.selected;t0&&n.push(new w.SwitchEditModeAction([],a))}else{n.push(new A([],r.map(function(e){return e.id})));a=r.filter(function(e){return e instanceof S.SRoutableElement}).map(function(e){return e.id});a.length>0&&n.push(new w.SwitchEditModeAction([],a))}}}return n},t.prototype.mouseMove=function(e,t){return this.hasDragged=!0,[]},t.prototype.mouseUp=function(e,t){if(0===t.button&&!this.hasDragged){var n=h.findParentByFeature(e,E.isSelectable);if(void 0!==n&&this.wasSelected)return[new A([n.id],[])]}return this.hasDragged=!1,[]},t.prototype.decorate=function(e,t){var n=h.findParentByFeature(t,E.isSelectable);return void 0!==n&&g.setClass(e,"selected",n.selected),e},o([s.inject(y.ButtonHandlerRegistry),s.optional(),r("design:type",y.ButtonHandlerRegistry)],t.prototype,"buttonHandlerRegistry",void 0),t}(m.MouseListener);t.SelectMouseListener=R;var z=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.previousSelection={},n}return i(t,e),t.prototype.retrieveResult=function(e){var t=e.root.index.all().filter(function(e){return E.isSelectable(e)&&e.selected}).map(function(e){return e.id});return new k(_.toArray(t),this.action.requestId)},t.KIND=O.KIND,t=o([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[O])],t),t}(u.ModelRequestCommand);t.GetSelectionCommand=z;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return b.matchesKeystroke(t,"KeyA","ctrlCmd")?[new T]:[]},t}(f.KeyListener);t.SelectKeyboardListener=P},bcc9:function(e,t,n){"use strict";var i,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;nv&&(r.top=v-a),u<_?r.left=_:d>b&&(r.left=b-s),r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"}(i||(i={})),t.Draggable={bind:function(e,n,i,o){t.Draggable.update(e,n,i,o)},update:function(e,t,n,s){if(!t.value||!t.value.stopDragging){var c=t.value&&t.value.handle&&r(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(g(),_()),c.getAttribute("draggable")||(e.removeEventListener("mousedown",e["listener"]),c.addEventListener("mousedown",p),e.removeEventListener("touchstart",e["listener"]),c.addEventListener("touchstart",p,{passive:!1}),c.setAttribute("draggable","true"),e["listener"]=p,g(),_())}function l(n){n.preventDefault();var i=t.value&&t.value.stopDragging;if(!i){var o=b();o.startDragPosition&&o.initialMousePos||(g(n),o=b());var r=f(n),s=r.left-o.initialMousePos.left,c=r.top-o.initialMousePos.top,l={left:o.startDragPosition.left+s,top:o.startDragPosition.top+c},h=u(),p=e.getBoundingClientRect();h&&p&&(l=a(p,h,l.left,l.top,t.value.boundingRectMargin)),v({currentDragPosition:l}),d(),_(n)}}function u(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function d(){var t=b();t.currentDragPosition&&(e.style.touchAction="none",e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}function h(e){e.preventDefault(),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",l),document.removeEventListener("touchend",h);var t=m();v({initialMousePos:void 0,startDragPosition:t,currentDragPosition:t}),_(e,i.End)}function p(e){v({initialMousePos:f(e)}),_(e,i.Start),document.addEventListener("mousemove",l),document.addEventListener("mouseup",h),document.addEventListener("touchmove",l),document.addEventListener("touchend",h)}function f(e){if(e instanceof MouseEvent)return{left:e.clientX,top:e.clientY};if(e instanceof TouchEvent){var t=e.changedTouches[e.changedTouches.length-1];return{left:t.clientX,top:t.clientY}}}function m(){var t=e.getBoundingClientRect();if(t.height&&t.width)return{left:t.left,top:t.top}}function g(e){var n=b(),i=t&&t.value&&t.value.initialPosition,o=n.initialPosition,r=m(),a=i||o||r;v({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialMousePos:f(e)}),d()}function v(e){var t=b(),n=o(o({},t),e);c.setAttribute("draggable-state",JSON.stringify(n))}function _(e,n){var r=b(),a={x:0,y:0};r.currentDragPosition&&r.startDragPosition&&(a.x=r.currentDragPosition.left-r.startDragPosition.left,a.y=r.currentDragPosition.top-r.startDragPosition.top);var s=r.currentDragPosition&&o({},r.currentDragPosition);n===i.End?t.value&&t.value.onDragEnd&&r&&t.value.onDragEnd(a,s,e):n===i.Start?t.value&&t.value.onDragStart&&r&&t.value.onDragStart(a,s,e):t.value&&t.value.onPositionChange&&r&&t.value.onPositionChange(a,s,e)}function b(){return JSON.parse(c.getAttribute("draggable-state"))||{}}}}},be02:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),c=n("6923"),l=n("3864"),u=n("7b39"),d=function(e){function t(t,n){var i=e.call(this)||this;return t.forEach(function(e){return i.register(e.actionKind,e.factory())}),n.forEach(function(e){return i.initializeActionHandler(e)}),i}return i(t,e),t.prototype.initializeActionHandler=function(e){e.initialize(this)},t=o([s.injectable(),a(0,s.multiInject(c.TYPES.ActionHandlerRegistration)),a(0,s.optional()),a(1,s.multiInject(c.TYPES.IActionHandlerInitializer)),a(1,s.optional()),r("design:paramtypes",[Array,Array])],t),t}(l.MultiInstanceRegistry);function h(e,t,n){if("function"===typeof n){if(!u.isInjectable(n))throw new Error("Action handlers should be @injectable: "+n.name);e.isBound(n)||e.bind(n).toSelf()}e.bind(c.TYPES.ActionHandlerRegistration).toDynamicValue(function(e){return{actionKind:t,factory:function(){return e.container.get(n)}}})}t.ActionHandlerRegistry=d,t.configureActionHandler=h},be99:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t})},bee8:function(e,t,n){},c146:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("987d"),r=function(){function e(e,t){void 0===t&&(t=o.easeInOut),this.context=e,this.ease=t}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){var i=void 0,o=0,r=function(n){var a;o++,void 0===i?(i=n,a=0):a=n-i;var s=Math.min(1,a/e.context.duration),c=e.tween(e.ease(s),e.context);e.context.modelChanged.update(c),1===s?(e.context.logger.log(e,1e3*o/e.context.duration+" fps"),t(c)):e.context.syncer.onNextFrame(r)};if(e.context.syncer.isAvailable())e.context.syncer.onNextFrame(r);else{var a=e.tween(1,e.context);t(a)}})},e}();t.Animation=r;var a=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r=o.easeInOut);var a=e.call(this,n,r)||this;return a.model=t,a.context=n,a.components=i,a.ease=r,a}return i(t,e),t.prototype.include=function(e){return this.components.push(e),this},t.prototype.tween=function(e,t){for(var n=0,i=this.components;n=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},c31b:function(e,t,n){"use strict";var i=n("66a6"),o=n.n(i);o.a},c3ea:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+function t(e,t,n,i){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"a "+e:"an "+e}function i(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return o(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return o(e)}return e/=1e3,o(e)}var r=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:i,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r})},c444:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("dd02"),c=n("510b"),l=n("9757"),u=n("c146"),d=n("5eb6"),h=n("e1c6"),p=n("6923"),f=n("2f3a"),m=function(){function e(t,n,i){this.elementId=t,this.newViewport=n,this.animate=i,this.kind=e.KIND}return e.KIND="viewport",e}();t.SetViewportAction=m;var g=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getViewport",e}();t.GetViewportAction=g;var v=function(){function e(t,n,i){this.viewport=t,this.canvasBounds=n,this.responseId=i,this.kind=e.KIND}return e.KIND="viewportResult",e}();t.ViewportResult=v;var _=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.newViewport=t.newViewport,n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=e.root,n=t.index.getById(this.action.elementId);if(n&&d.isViewport(n)){if(this.element=n,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new y(this.element,this.oldViewport,this.newViewport,e).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return t},t.prototype.undo=function(e){return new y(this.element,this.newViewport,this.oldViewport,e).start()},t.prototype.redo=function(e){return new y(this.element,this.oldViewport,this.newViewport,e).start()},t.prototype.merge=function(e,t){return!this.action.animate&&e instanceof n&&this.element===e.element&&(this.newViewport=e.newViewport,!0)},t.KIND=m.KIND,t=n=o([h.injectable(),a(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[m])],t),t}(l.MergeableCommand);t.SetViewportCommand=_;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.retrieveResult=function(e){var t,n=e.root;return t=d.isViewport(n)?{scroll:n.scroll,zoom:n.zoom}:{scroll:s.ORIGIN_POINT,zoom:1},new v(t,n.canvasBounds,this.action.requestId)},t.KIND=g.KIND,t=o([a(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[g])],t),t}(f.ModelRequestCommand);t.GetViewportCommand=b;var y=function(e){function t(t,n,i,o){var r=e.call(this,o)||this;return r.element=t,r.oldViewport=n,r.newViewport=i,r.context=o,r.zoomFactor=Math.log(i.zoom/n.zoom),r}return i(t,e),t.prototype.tween=function(e,t){return this.element.scroll={x:(1-e)*this.oldViewport.scroll.x+e*this.newViewport.scroll.x,y:(1-e)*this.oldViewport.scroll.y+e*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(e*this.zoomFactor),t.root},t}(u.Animation);t.ViewportAnimation=y},c4e6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("bcbd"),a=n("842c"),s=new i.ContainerModule(function(e,t,n){a.configureCommand({bind:e,isBound:n},r.SelectCommand),a.configureCommand({bind:e,isBound:n},r.SelectAllCommand),a.configureCommand({bind:e,isBound:n},r.GetSelectionCommand),e(o.TYPES.KeyListener).to(r.SelectKeyboardListener),e(o.TYPES.MouseListener).to(r.SelectMouseListener)});t.default=s},c4ec:function(e,t,n){var i=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n("4047");e.exports=function(e){var t,n=0,r=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(i,function(i){if("="===i)return r=!0,void n++;r?0===n?((o[i]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=i):(a.attrs[t]=i.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=i),n++,r=!1}),a}},c51d:function(e,t,n){},c58e:function(e,t,n){},c5f4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},c612:function(e,t,n){"use strict";var i=n("8b1b"),o=n.n(i);o.a},c622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("77d3"),o=function(){function e(e,t,n,o,r){this.id=i.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=r,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,i){var o=new e(t,this.parentContext,this,n,i);return this.childRequests.push(o),o},e}();t.Request=o},c661:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){}return e.prototype.isAllowed=function(e){return!0},e=i([o.injectable()],e),e}();t.DefaultDiagramLocker=r},c7c3:function(e,t,n){"use strict";var i=n("3e33"),o=n.n(i);o.a},c807:function(e,t,n){"use strict";var i=n("1300"),o=n("e300"),r=n("183a"),a=n("4cdf"),s=n("0b2d"),c=n("9f5e"),l=n("a568"),u=n("1e8d"),d=n("cef7"),h=n("01d4"),p=n("06f8"),f=n("0af5"),m=n("f623"),g=n("f403"),v=n("4105"),_=n("3e6b"),b=n("5831"),y=n("a43f"),M=n("4a7d"),w=n("6c77"),L=0,S=1,C={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},E=function(e){function t(t,n,i){e.call(this,t),this.features=n,this.mapBrowserEvent=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(d["a"]),A=function(e){function t(t){var n;if(e.call(this,t),this.condition_=t.condition?t.condition:p["h"],this.defaultDeleteCondition_=function(e){return Object(p["a"])(e)&&Object(p["j"])(e)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:p["c"],this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new M["a"],this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new _["a"]({source:new b["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:x(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,t.source?(this.source_=t.source,n=new o["a"](this.source_.getFeatures()),Object(u["a"])(this.source_,y["a"].ADDFEATURE,this.handleSourceAdd_,this),Object(u["a"])(this.source_,y["a"].REMOVEFEATURE,this.handleSourceRemove_,this)):n=t.features,!n)throw new Error("The modify interaction requires features or a source");this.features_=n,this.features_.forEach(this.addFeature_.bind(this)),Object(u["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(u["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature_=function(e){var t=e.getGeometry();t&&t.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[t.getType()].call(this,e,t);var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),Object(u["a"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.willModifyFeatures_=function(e){this.modified_||(this.modified_=!0,this.dispatchEvent(new E(C.MODIFYSTART,this.features_,e)))},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(u["c"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(var i=n.length-1;i>=0;--i)t.remove(n[i])},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),i={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),i)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),i=0,o=n.length;i=0;--y)this.insertVertex_.apply(this,o[y])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var n=this.dragSegments_[t][0],i=n.geometry;if(i.getType()===m["a"].CIRCLE){var o=i.getCenter(),r=n.featureSegments[0],a=n.featureSegments[1];r.segment[0]=r.segment[1]=o,a.segment[0]=a.segment[1]=o,this.rBush_.update(Object(f["m"])(o),r),this.rBush_.update(i.getExtent(),a)}else this.rBush_.update(Object(f["b"])(n.segment),n)}return this.modified_&&(this.dispatchEvent(new E(C.MODIFYEND,this.features_,e)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map)},t.prototype.handlePointerAtPixel_=function(e,t){var n=t.getCoordinateFromPixel(e),o=function(e,t){return O(n,e)-O(n,t)},r=Object(f["c"])(Object(f["m"])(n),t.getView().getResolution()*this.pixelTolerance_),a=this.rBush_,s=a.getInExtent(r);if(s.length>0){s.sort(o);var c=s[0],u=c.segment,d=k(n,c),h=t.getPixelFromCoordinate(d),p=Object(l["d"])(e,h);if(p<=this.pixelTolerance_){var g={};if(c.geometry.getType()===m["a"].CIRCLE&&c.index===S)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d);else{var v=t.getPixelFromCoordinate(u[0]),_=t.getPixelFromCoordinate(u[1]),b=Object(l["h"])(h,v),y=Object(l["h"])(h,_);p=Math.sqrt(Math.min(b,y)),this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(d=b>y?u[1]:u[0]),this.createOrUpdateVertexFeature_(d);for(var M=1,w=s.length;M=0;--r)n=h[r],u=n[0],d=Object(i["c"])(u.feature),u.depth&&(d+="-"+u.depth.join("-")),d in p||(p[d]={}),0===n[1]?(p[d].right=u,p[d].index=u.index):1==n[1]&&(p[d].left=u,p[d].index=u.index+1);for(d in p){switch(l=p[d].right,s=p[d].left,a=p[d].index,c=a-1,u=void 0!==s?s:l,c<0&&(c=0),o=u.geometry,t=o.getCoordinates(),e=t,g=!1,o.getType()){case m["a"].MULTI_LINE_STRING:t[u.depth[0]].length>2&&(t[u.depth[0]].splice(a,1),g=!0);break;case m["a"].LINE_STRING:t.length>2&&(t.splice(a,1),g=!0);break;case m["a"].MULTI_POLYGON:e=e[u.depth[1]];case m["a"].POLYGON:e=e[u.depth[0]],e.length>4&&(a==e.length-1&&(a=0),e.splice(a,1),g=!0,0===a&&(e.pop(),e.push(e[0]),c=e.length-1));break;default:}if(g){this.setGeometryCoordinates_(o,t);var v=[];if(void 0!==s&&(this.rBush_.remove(s),v.push(s.segment[0])),void 0!==l&&(this.rBush_.remove(l),v.push(l.segment[1])),void 0!==s&&void 0!==l){var _={depth:u.depth,feature:u.feature,geometry:u.geometry,index:c,segment:v};this.rBush_.insert(Object(f["b"])(_.segment),_)}this.updateSegmentIndices_(o,a,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return g},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,n,i){this.rBush_.forEachInExtent(e.getExtent(),function(o){o.geometry===e&&(void 0===n||void 0===o.depth||Object(c["b"])(o.depth,n))&&o.index>t&&(o.index+=i)})},t}(v["b"]);function T(e,t){return e.index-t.index}function O(e,t){var n=t.geometry;if(n.getType()===m["a"].CIRCLE){var i=n;if(t.index===S){var o=Object(l["h"])(i.getCenter(),e),r=Math.sqrt(o)-i.getRadius();return r*r}}return Object(l["i"])(e,t.segment)}function k(e,t){var n=t.geometry;return n.getType()===m["a"].CIRCLE&&t.index===S?n.getClosestPoint(e):Object(l["b"])(e,t.segment)}function x(){var e=Object(w["b"])();return function(t,n){return e[m["a"].POINT]}}t["a"]=A},c862:function(e,t,n){},c8c0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.parentContext=e,this.rootRequest=t}return e}();t.Plan=i},c95e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("f4cb"),a=n("0bd8"),s=n("842c"),c=n("be02"),l=n("ed4f"),u=n("c444"),d=n("559d"),h=new i.ContainerModule(function(e,t,n){e(o.TYPES.PopupVNodePostprocessor).to(a.PopupPositionUpdater).inSingletonScope(),e(o.TYPES.MouseListener).to(r.HoverMouseListener),e(o.TYPES.PopupMouseListener).to(r.PopupHoverMouseListener),e(o.TYPES.KeyListener).to(r.HoverKeyListener),e(o.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),e(r.ClosePopupActionHandler).toSelf().inSingletonScope();var i={bind:e,isBound:n};s.configureCommand(i,r.HoverFeedbackCommand),s.configureCommand(i,r.SetPopupModelCommand),c.configureActionHandler(i,r.SetPopupModelCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.FitToScreenCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.CenterCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,u.SetViewportCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,d.MoveCommand.KIND,r.ClosePopupActionHandler)});t.default=h},c998:function(e,t,n){"use strict";var i=n("a16f"),o=n.n(i);o.a},c9c0:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+function t(e){return e%100===11||e%10!==1}function n(e,n,i,o){var r=e+" ";switch(i){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||o?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}var i=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},c9f0:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t})},cac6:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t})},cb6e:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0})]}})})},t.prototype.getViewport=function(){return a(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,this.actionDispatcher.request(g.GetViewportAction.create())];case 1:return e=t.sent(),[2,{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}]}})})},t.prototype.submitModel=function(e,t,n){return a(this,void 0,void 0,function(){var i,o;return s(this,function(r){switch(r.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(m.RequestBoundsAction.create(e))]:[3,3];case 1:return i=r.sent(),o=this.computedBoundsApplicator.apply(this.currentRoot,i),[4,this.doSubmitModel(e,!0,n,o)];case 2:return r.sent(),[3,5];case 3:return[4,this.doSubmitModel(e,t,n)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.doSubmitModel=function(e,t,n,i){return a(this,void 0,void 0,function(){var o,r,a,c,l;return s(this,function(s){switch(s.label){case 0:if(void 0===this.layoutEngine)return[3,6];s.label=1;case 1:return s.trys.push([1,5,,6]),o=this.layoutEngine.layout(e,i),o instanceof Promise?[4,o]:[3,3];case 2:return e=s.sent(),[3,4];case 3:void 0!==o&&(e=o),s.label=4;case 4:return[3,6];case 5:return r=s.sent(),this.logger.error(this,r.toString(),r.stack),[3,6];case 6:return a=this.lastSubmittedModelType,this.lastSubmittedModelType=e.type,n&&n.kind===d.RequestModelAction.KIND&&n.requestId?(c=n,[4,this.actionDispatcher.dispatch(new d.SetModelAction(e,c.requestId))]):[3,8];case 7:return s.sent(),[3,12];case 8:return t&&e.type===a?(l=Array.isArray(t)?t:e,[4,this.actionDispatcher.dispatch(new y.UpdateModelAction(l,!0,n))]):[3,10];case 9:return s.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new d.SetModelAction(e))];case 11:s.sent(),s.label=12;case 12:return[2]}})})},t.prototype.applyMatches=function(e){var t=this.currentRoot;return b.applyMatches(t,e),this.submitModel(t,e)},t.prototype.addElements=function(e){for(var t=[],n=0,i=e;n=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e45b"),r=n("e1c6"),a=n("3623"),s=function(){function e(){}return e.prototype.decorate=function(e,t){if(t.cssClasses)for(var n=0,i=t.cssClasses;n=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("3b4c"),h=n("1417"),p=n("b669"),f=n("4c18"),m=n("e629"),g=n("cc26"),v=function(){function e(t){this.labelId=t,this.kind=e.KIND}return e.KIND="EditLabel",e}();function _(e){return c.isAction(e)&&e.kind===v.KIND&&"labelId"in e}t.EditLabelAction=v,t.isEditLabelAction=_;var b=function(){function e(t,n){this.labelId=t,this.text=n,this.kind=e.KIND}return e.KIND="applyLabelEdit",e}();t.ApplyLabelEditAction=b;var y=function(){function e(){}return e}();t.ResolvedLabelEdit=y;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index,n=t.getById(this.action.labelId);return n&&g.isEditableLabel(n)&&(this.resolvedLabelEdit={label:n,oldLabel:n.text,newLabel:this.action.text},n.text=this.action.text),e.root},t.prototype.undo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),e.root},t.prototype.redo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),e.root},t.KIND=b.KIND,t=o([a(0,s.inject(u.TYPES.Action)),r("design:paramtypes",[b])],t),t}(l.Command);t.ApplyLabelEditCommand=M;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=S(e);return n?[new v(n.id)]:[]},t}(d.MouseListener);t.EditLabelMouseListener=w;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){if(p.matchesKeystroke(t,"F2")){var n=m.toArray(e.index.all().filter(function(e){return f.isSelectable(e)&&e.selected})).map(S).filter(function(e){return void 0!==e});if(1===n.length)return[new v(n[0].id)]}return[]},t}(h.KeyListener);function S(e){return g.isEditableLabel(e)?e:g.isWithEditableLabel(e)&&e.editableLabel?e.editableLabel:void 0}t.EditLabelKeyListener=L,t.getEditableLabel=S},ce70:function(e,t,n){},cf13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t="",n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=i},cf61:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),c=n("dd02"),l=n("c146"),u=n("9757"),d=n("e7fa"),h=n("3a92"),p=n("559d"),f=n("7d36"),m=n("a0af"),g=n("66f9"),v=n("3b62"),_=n("4c18"),b=n("d084"),y=n("0f4c"),M=n("6923"),w=n("5eb6"),L=n("168d"),S=n("3585"),C=function(){function e(t,n,i){void 0===n&&(n=!0),this.animate=n,this.cause=i,this.kind=e.KIND,void 0!==t.id?this.newRoot=t:this.matches=t}return e.KIND="updateModel",e}();t.UpdateModelAction=C;var E=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t;return void 0!==this.action.newRoot?t=e.modelFactory.createRoot(this.action.newRoot):(t=e.modelFactory.createRoot(e.root),void 0!==this.action.matches&&this.applyMatches(t,this.action.matches,e)),this.oldRoot=e.root,this.newRoot=t,this.performUpdate(this.oldRoot,this.newRoot,e)},t.prototype.performUpdate=function(e,t,n){if(void 0!==this.action.animate&&!this.action.animate||e.id!==t.id)return e.type===t.type&&c.isValidDimension(e.canvasBounds)&&(t.canvasBounds=e.canvasBounds),w.isViewport(e)&&w.isViewport(t)&&(t.zoom=e.zoom,t.scroll=e.scroll),t;var i=void 0;if(void 0===this.action.matches){var o=new b.ModelMatcher;i=o.match(e,t)}else i=this.convertToMatchResult(this.action.matches,e,t);var r=this.computeAnimation(t,i,n);return r instanceof l.Animation?r.start():r},t.prototype.applyMatches=function(e,t,n){for(var i=e.index,o=0,r=t;o=2?new l.CompoundAnimation(e,n,r):1===r.length?r[0]:e},t.prototype.updateElement=function(e,t,n){if(m.isLocateable(e)&&m.isLocateable(t)){var i=e.position,o=t.position;c.almostEquals(i.x,o.x)&&c.almostEquals(i.y,o.y)||(void 0===n.moves&&(n.moves=[]),n.moves.push({element:t,fromPosition:i,toPosition:o}),t.position=i)}g.isSizeable(e)&&g.isSizeable(t)&&(c.isValidDimension(t.bounds)?c.almostEquals(e.bounds.width,t.bounds.width)&&c.almostEquals(e.bounds.height,t.bounds.height)||(void 0===n.resizes&&(n.resizes=[]),n.resizes.push({element:t,fromDimension:{width:e.bounds.width,height:e.bounds.height},toDimension:{width:t.bounds.width,height:t.bounds.height}})):t.bounds={x:t.bounds.x,y:t.bounds.y,width:e.bounds.width,height:e.bounds.height}),e instanceof S.SRoutableElement&&t instanceof S.SRoutableElement&&this.edgeRouterRegistry&&(void 0===n.edgeMementi&&(n.edgeMementi=[]),n.edgeMementi.push({edge:t,before:this.takeSnapshot(e),after:this.takeSnapshot(t)})),_.isSelectable(e)&&_.isSelectable(t)&&(t.selected=e.selected),e instanceof h.SModelRoot&&t instanceof h.SModelRoot&&(t.canvasBounds=e.canvasBounds),e instanceof v.ViewportRootElement&&t instanceof v.ViewportRootElement&&(t.scroll=e.scroll,t.zoom=e.zoom)},t.prototype.takeSnapshot=function(e){var t=this.edgeRouterRegistry.get(e.routerKind);return t.takeSnapshot(e)},t.prototype.createAnimations=function(e,t,n){var i=[];if(e.fades.length>0&&i.push(new d.FadeAnimation(t,e.fades,n,!0)),void 0!==e.moves&&e.moves.length>0){for(var o=new Map,r=0,a=e.moves;r0){for(var c=new Map,l=0,u=e.resizes;l0&&i.push(new p.MorphEdgesAnimation(t,e.edgeMementi,n,!1)),i},t.prototype.undo=function(e){return this.performUpdate(this.newRoot,this.oldRoot,e)},t.prototype.redo=function(e){return this.performUpdate(this.oldRoot,this.newRoot,e)},t.KIND=C.KIND,o([s.inject(L.EdgeRouterRegistry),s.optional(),r("design:type",L.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([s.injectable(),a(0,s.inject(M.TYPES.Action)),r("design:paramtypes",[C])],t),t}(u.Command);t.UpdateModelCommand=E},cf611:function(e,t,n){"use strict";var i=n("8e08"),o=n.n(i);o.a},cf7c:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,r=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return r})},cf81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("451f"),r=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){var t=null!==e.target&&!e.target.isNamed()&&!e.target.isTagged();return t},new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new i.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=r},cf98:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("3b4c"),a=n("3623"),s=n("c444"),c=n("5eb6"),l=n("a0af"),u=n("3585");function d(e){return"scroll"in e}t.isScrollable=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseDown=function(e,t){var n=a.findParentByFeature(e,l.isMoveable);if(void 0===n&&!(e instanceof u.SRoutingHandle)){var i=a.findParentByFeature(e,c.isViewport);this.lastScrollPosition=i?{x:t.pageX,y:t.pageY}:void 0}return[]},t.prototype.mouseMove=function(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){var n=a.findParentByFeature(e,c.isViewport);if(n){var i=(t.pageX-this.lastScrollPosition.x)/n.zoom,o=(t.pageY-this.lastScrollPosition.y)/n.zoom,r={scroll:{x:n.scroll.x-i,y:n.scroll.y-o},zoom:n.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new s.SetViewportAction(n.id,r,!1)]}}return[]},t.prototype.mouseEnter=function(e,t){return e instanceof o.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){return this.lastScrollPosition=void 0,[]},t}(r.MouseListener);t.ScrollMouseListener=h},cfbe:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t})},d084:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}t.forEachMatch=o;var r=function(){function e(){}return e.prototype.match=function(e,t){var n={};return this.matchLeft(e,n),this.matchRight(t,n),n},e.prototype.matchLeft=function(e,t,n){var o=t[e.id];if(void 0!==o?(o.left=e,o.leftParentId=n):(o={left:e,leftParentId:n},t[e.id]=o),i.isParent(e))for(var r=0,a=e.children;r=0&&(void 0!==a.right&&a.leftParentId===a.rightParentId?(c.children.splice(l,1,a.right),s=!0):c.children.splice(l,1)),n.remove(a.left)}}if(!s&&void 0!==a.right&&void 0!==a.rightParentId){var u=n.getById(a.rightParentId);void 0!==u&&(void 0===u.children&&(u.children=[]),u.children.push(a.right))}}}t.ModelMatcher=r,t.applyMatches=a},d0af:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}});return i})},d0b3:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},d14a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("a406"),a=n("0a28"),s=new i.ContainerModule(function(e){e(a.CommandPalette).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(a.CommandPalette),e(o.TYPES.KeyListener).to(a.CommandPaletteKeyListener),e(r.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),e(o.TYPES.ICommandPaletteActionProviderRegistry).toService(r.CommandPaletteActionProviderRegistry)});t.default=s},d17b:function(e,t,n){e.exports=n("e372").Transform},d18c:function(e,t,n){"use strict";var i=n("943d"),o=n.n(i);o.a},d204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("1979"),o=n("66d7");function r(e,t){return function(n,r,a){var s=new i.Metadata(e,t);"number"===typeof a?o.tagParameter(n,r,a,s):o.tagProperty(n,r,s)}}t.tagged=r},d485:function(e,t,n){e.exports=r;var i=n("faa1").EventEmitter,o=n("3fb5");function r(){i.call(this)}o(r,i),r.Readable=n("e372"),r.Writable=n("2c63"),r.Duplex=n("0960"),r.Transform=n("d17b"),r.PassThrough=n("c2ae"),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",r),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",o),e.removeListener("drain",r),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d631:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function o(e,t,n,o){var r=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?r+(i(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?r+(i(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?r+(i(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?r+(i(e)?"dni":"dní"):r+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?r+(i(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?r+(i(e)?"roky":"rokov"):r+"rokmi"}}var r=e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r})},d662:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t})},d675:function(e,t,n){},d6b8:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},d6e2:function(e,t,n){"use strict";var i=n("bab1"),o=n.n(i);o.a},d741:function(e,t,n){},d752:function(e,t,n){var i=n("7726").parseFloat,o=n("aa77").trim;e.exports=1/i(n("fdef")+"-0")!==-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},d7e6:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,i){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i?o[n][0]:t?o[n][0]:o[n][1]}return t})},d8f5:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),s=n("dd02"),c=n("3585"),l=n("869e"),u=n("b7b8"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"kind",{get:function(){return n.KIND},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(e){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},t.prototype.route=function(e){var t,n,i=e.source,o=e.target;if(void 0===i||void 0===o)return[];var r=this.getOptions(e),a=e.routingPoints.length>0?e.routingPoints:[];this.cleanupRoutingPoints(e,a,!1,!1);var c=void 0!==a?a.length:0;if(0===c){var l=s.center(o.bounds);t=this.getTranslatedAnchor(i,l,o.parent,e,e.sourceAnchorCorrection);var u=s.center(i.bounds);n=this.getTranslatedAnchor(o,u,i.parent,e,e.targetAnchorCorrection)}else{var d=a[0];t=this.getTranslatedAnchor(i,d,e.parent,e,e.sourceAnchorCorrection);var h=a[c-1];n=this.getTranslatedAnchor(o,h,e.parent,e,e.targetAnchorCorrection)}var p=[];p.push({kind:"source",x:t.x,y:t.y});for(var f=0;f0&&f=r.minimalPointDistance+(e.sourceAnchorCorrection||0)||f===c-1&&s.maxDistance(m,n)>=r.minimalPointDistance+(e.targetAnchorCorrection||0))&&p.push({kind:"linear",x:m.x,y:m.y,pointIndex:f})}return p.push({kind:"target",x:n.x,y:n.y}),this.filterEditModeHandles(p,e,r)},t.prototype.filterEditModeHandles=function(e,t,n){if(0===t.children.length)return e;var i=0,o=function(){var o=e[i];if(void 0!==o.pointIndex){var r=t.children.find(function(e){return e instanceof c.SRoutingHandle&&"junction"===e.kind&&e.pointIndex===o.pointIndex});if(void 0!==r&&r.editMode&&i>0&&ir)&&e.pointIndex++}),n.addHandle(e,"line","volatile-routing-point",r),n.addHandle(e,"line","volatile-routing-point",r+1),r++),r>=0&&r-1?setImmediate:o.nextTick;b.WritableState=_;var c=Object.create(n("3a7c"));c.inherits=n("3fb5");var l={deprecate:n("b7d1")},u=n("429b"),d=n("a8f0").Buffer,h=i.Uint8Array||function(){};function p(e){return d.from(e)}function f(e){return d.isBuffer(e)||e instanceof h}var m,g=n("4681");function v(){}function _(e,t){a=a||n("b19a"),e=e||{};var i=t instanceof a;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,s=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){A(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function b(e){if(a=a||n("b19a"),!m.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new _(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}function M(e,t,n,i){var r=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(i,a),r=!1),r}function w(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n)),t}function L(e,t,n,i,o,r){if(!n){var a=w(t,i,o);i!==a&&(n=!0,o="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||P(this,i,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dc23b:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},dd02:function(e,t,n){"use strict";function i(e,t){return{x:e.x+t.x,y:e.y+t.y}}function o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r(e){return e.width>=0&&e.height>=0}function a(e){return"x"in e&&"y"in e&&"width"in e&&"height"in e}function s(e,n){if(!r(e))return r(n)?n:t.EMPTY_BOUNDS;if(!r(n))return e;var i=Math.min(e.x,n.x),o=Math.min(e.y,n.y),a=Math.max(e.x+(e.width>=0?e.width:0),n.x+(n.width>=0?n.width:0)),s=Math.max(e.y+(e.height>=0?e.height:0),n.y+(n.height>=0?n.height:0));return{x:i,y:o,width:a-i,height:s-o}}function c(e,t){return{x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}}function l(e){return{x:e.x+(e.width>=0?.5*e.width:0),y:e.y+(e.height>=0?.5*e.height:0)}}function u(e,t){var n={x:e.x>t.x?t.x:e.x,y:e.y>t.y?t.y:e.y,width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)};return l(n)}function d(e,t){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function h(e,t){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}function p(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function f(e,t){return Math.max(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}function m(e){return Math.atan2(e.y,e.x)}function g(e,t){var n=Math.sqrt((e.x*e.x+e.y*e.y)*(t.x*t.x+t.y*t.y));if(isNaN(n)||0===n)return NaN;var i=e.x*t.x+e.y*t.y;return Math.acos(i/n)}function v(e,t,n){var r=o(t,e),a=_(r),s={x:a.x*n,y:a.y*n};return i(e,s)}function _(e){var n=b(e);return 0===n||1===n?t.ORIGIN_POINT:{x:e.x/n,y:e.y/n}}function b(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function y(e){return 180*e/Math.PI}function M(e){return e*Math.PI/180}function w(e,t){return Math.abs(e-t)<.001}function L(e,t,n){return{x:(1-n)*e.x+n*t.x,y:(1-n)*e.y+n*t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.ORIGIN_POINT=Object.freeze({x:0,y:0}),t.add=i,t.subtract=o,t.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),t.isValidDimension=r,t.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),t.isBounds=a,t.combine=s,t.translate=c,t.center=l,t.centerOfLine=u,t.includes=d,function(e){e[e["left"]=0]="left",e[e["right"]=1]="right",e[e["up"]=2]="up",e[e["down"]=3]="down"}(t.Direction||(t.Direction={})),t.euclideanDistance=h,t.manhattanDistance=p,t.maxDistance=f,t.angleOfPoint=m,t.angleBetweenPoints=g,t.shiftTowards=v,t.normalize=_,t.magnitude=b,t.toDegrees=y,t.toRadians=M,t.almostEquals=w,t.linear=L;var S=function(){function e(e){this.bounds=e}return Object.defineProperty(e.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRightSideLine",{get:function(){return new C(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeftSideLine",{get:function(){return new C(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRightSideLine",{get:function(){return new C(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeftSideLine",{get:function(){return new C(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),e.prototype.closestSideLine=function(e){var t=l(this.bounds);return e.x>t.x?e.y>t.y?this.bottomRightSideLine:this.topRightSideLine:e.y>t.y?this.bottomLeftSideLine:this.topLeftSideLine},e}();t.Diamond=S;var C=function(){function e(e,t){this.p1=e,this.p2=t}return Object.defineProperty(e.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),e}();function E(e,t){return{x:(e.c*t.b-t.c*e.b)/(e.a*t.b-t.a*e.b),y:(e.a*t.c-t.a*e.c)/(e.a*t.b-t.a*e.b)}}t.PointToPointLine=C,t.intersection=E},dd7b:function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}n.r(t);var o=i,r=Array.isArray;function a(e){return"string"===typeof e||"number"===typeof e}function s(e){return document.createElement(e)}function c(e,t){return document.createElementNS(e,t)}function l(e){return document.createTextNode(e)}function u(e){return document.createComment(e)}function d(e,t,n){e.insertBefore(t,n)}function h(e,t){e.removeChild(t)}function p(e,t){e.appendChild(t)}function f(e){return e.parentNode}function m(e){return e.nextSibling}function g(e){return e.tagName}function v(e,t){e.textContent=t}function _(e){return e.textContent}function b(e){return 1===e.nodeType}function y(e){return 3===e.nodeType}function M(e){return 8===e.nodeType}var w={createElement:s,createElementNS:c,createTextNode:l,createComment:u,insertBefore:d,removeChild:h,appendChild:p,parentNode:f,nextSibling:m,tagName:g,setTextContent:v,getTextContent:_,isElement:b,isText:y,isComment:M},L=w;function S(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(var i=0;i0?u:l.length,f=d>0?d:l.length,m=-1!==u||-1!==d?l.slice(0,Math.min(p,f)):l,g=e.elm=x(i)&&x(n=i.ns)?c.createElementNS(n,m):c.createElement(m);for(p0&&g.setAttribute("class",l.slice(f+1).replace(/\./g," ")),n=0;nd?(s=null==n[_+1]?null:n[_+1].elm,p(e,s,n,u,_,i)):m(e,t,l,d))}function v(e,t,n){var i,o;x(i=t.data)&&x(o=i.hook)&&x(i=o.prepatch)&&i(e,t);var r=t.elm=e.elm,a=e.children,l=t.children;if(e!==t){if(void 0!==t.data){for(i=0;i=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),s=n("6923"),c=n("1590"),l=n("1417"),u=n("b669"),d=function(){function e(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(e.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),e.prototype.disableActiveTools=function(){this.actives.forEach(function(e){return e.disable()}),this.actives.splice(0,this.actives.length)},e.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map(function(e){return e.id}))},e.prototype.enable=function(e){var t=this;this.disableActiveTools();var n=e.map(function(e){return t.tool(e)});n.forEach(function(e){void 0!==e&&(e.enable(),t.actives.push(e))})},e.prototype.tool=function(e){return this.managedTools.find(function(t){return t.id===e})},e.prototype.registerDefaultTools=function(){for(var e=[],t=0;t=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),a=n("302f"),s=n("3a92"),c=n("3623"),l=n("47b7"),u=n("38e8"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultGraphFeatures=a.createFeatureSet(l.SGraph.DEFAULT_FEATURES),t.defaultNodeFeatures=a.createFeatureSet(l.SNode.DEFAULT_FEATURES),t.defaultPortFeatures=a.createFeatureSet(l.SPort.DEFAULT_FEATURES),t.defaultEdgeFeatures=a.createFeatureSet(l.SEdge.DEFAULT_FEATURES),t.defaultLabelFeatures=a.createFeatureSet(l.SLabel.DEFAULT_FEATURES),t.defaultCompartmentFeatures=a.createFeatureSet(l.SCompartment.DEFAULT_FEATURES),t.defaultButtonFeatures=a.createFeatureSet(u.SButton.DEFAULT_FEATURES),t}return i(t,e),t.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof s.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else this.isNodeSchema(e)?(n=new l.SNode,n.features=this.defaultNodeFeatures):this.isPortSchema(e)?(n=new l.SPort,n.features=this.defaultPortFeatures):this.isEdgeSchema(e)?(n=new l.SEdge,n.features=this.defaultEdgeFeatures):this.isLabelSchema(e)?(n=new l.SLabel,n.features=this.defaultLabelFeatures):this.isCompartmentSchema(e)?(n=new l.SCompartment,n.features=this.defaultCompartmentFeatures):this.isButtonSchema(e)?(n=new u.SButton,n.features=this.defaultButtonFeatures):n=new s.SChildElement;return this.initializeChild(n,e,t)},t.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof s.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else this.isGraphSchema(e)?(t=new l.SGraph,t.features=this.defaultGraphFeatures):t=new s.SModelRoot;return this.initializeRoot(t,e)},t.prototype.isGraphSchema=function(e){return"graph"===c.getBasicType(e)},t.prototype.isNodeSchema=function(e){return"node"===c.getBasicType(e)},t.prototype.isPortSchema=function(e){return"port"===c.getBasicType(e)},t.prototype.isEdgeSchema=function(e){return"edge"===c.getBasicType(e)},t.prototype.isLabelSchema=function(e){return"label"===c.getBasicType(e)},t.prototype.isCompartmentSchema=function(e){return"comp"===c.getBasicType(e)},t.prototype.isButtonSchema=function(e){return"button"===c.getBasicType(e)},t=o([r.injectable()],t),t}(a.SModelFactory);t.SGraphFactory=d},e00b:function(e,t,n){"use strict";var i=function(){var e,t,n=this,i=n.$createElement,o=n._self._c||i;return null!==n.dataSummary?o("div",{staticClass:"hv-histogram-container",class:"hv-histogram-"+n.direction,style:(e={},e["min-"+n.colormapStyle]=Math.max(4*n.dataSummary.histogram.length,256)+"px",e),on:{mouseleave:function(e){n.tooltips&&n.setInfoShowed(null)}}},[n.isHorizontal?[n.hasHistogram?o("div",{staticClass:"hv-histogram",class:[null!==n.colormap?"k-with-colormap":""]},n._l(n.dataSummary.histogram,function(e,t){return o("div",{key:t,staticClass:"hv-histogram-col",style:{width:n.histogramWidth+"%"},on:{mouseover:function(e){n.infoShowed={index:t,categories:n.dataSummary.categories,values:n.dataSummary.histogram}}}},[o("q-tooltip",{attrs:{offset:[0,10],delay:500}},[n._v(n._s(n.infoShowed.values[n.infoShowed.index]))]),o("div",{staticClass:"hv-histogram-val",style:{height:n.getHistogramDataHeight(e)+"%"}})],1)})):o("div",{staticClass:"hv-histogram-nodata"},[n._v(n._s(n.$t("label.noHistogramData")))])]:n._e(),n.dataSummary.categories.length>0?o("div",{staticClass:"hv-colormap-container",class:["hv-colormap-container-"+n.direction]},[null!==n.colormap?o("div",{staticClass:"hv-colormap",class:["hv-colormap-"+n.direction],style:(t={},t["min-"+n.colormapStyle]=Math.min(n.colormap.colors.length,256)+"px",t)},n._l(n.colormap.colors,function(e,t){var i;return o("div",{key:t,staticClass:"hv-colormap-col",style:(i={},i[n.colormapStyle]=n.colormapWidth+"%",i["background-color"]=e,i),on:{mouseover:function(e){n.tooltips&&(n.infoShowed={index:t,categories:[],values:n.colormap.labels})}}})})):n._e(),n.legend&&n.dataSummary.categories.length>0?o("div",{staticClass:"hv-legend hv-categories full-height"},[n._l(n.dataSummary.categories,function(e,t){return o("div",{key:t,staticClass:"hv-category",style:{"line-height":n.calculateFontSize()+"px","font-size":n.calculateFontSize()+"px"}},[n.dataSummary.categorized?o("span",{class:{"hv-zero-category":0===n.dataSummary.histogram[t]}},[n._v(n._s(e))]):o("span",[n._v(n._s(e.split(" ")[0]))])])}),n.dataSummary.categorized?n._e():o("div",{staticClass:"hv-category"},[n._v(n._s(n.histogramMax))])],2):n._e()]):n._e(),n.tooltips?o("div",{staticClass:"hv-data-details-container",class:{"hv-details-nodata":!n.hasHistogram&&null==n.colormap}},[o("div",{staticClass:"hv-histogram-min hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmin"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMin)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmin"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmin${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMin))])],1),-1===n.infoShowed.index?[o("div",{staticClass:"hv-data-nodetail hv-data-details"},[n._v(n._s(n.$t("label.noInfoValues")))])]:[o("div",{staticClass:"hv-data-value hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hdata"+n.id+"-"+n.infoShowed.index)}}},[n._v("\n "+n._s(n.infoShowedText)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hdata"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hdata${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip",attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[n._v("\n "+n._s(n.infoShowedText)+"\n ")])],1)],o("div",{staticClass:"hv-histogram-max hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmax"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMax)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmax"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmax${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMax))])],1)],2):n._e()],2):n._e()},o=[];i._withStripped=!0;var r=n("3156"),a=n.n(r),s=(n("ac6a"),n("cadf"),n("2cee")),c=n("7cca"),l=n("abcf"),u=l["b"].height,d={name:"HistogramViewer",props:{dataSummary:{type:Object,required:!0},colormap:Object,id:{type:String,default:""},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},tooltips:{type:Boolean,default:!0},legend:{type:Boolean,default:!1}},mixins:[s["a"]],data:function(){return{infoShowed:{index:-1,categories:[],values:[]}}},computed:{hasHistogram:function(){return this.dataSummary.histogram.length>0},isHorizontal:function(){return"horizontal"===this.direction},maxHistogramValue:function(){return Math.max.apply(null,this.dataSummary.histogram)},histogramWidth:function(){return 100/this.dataSummary.histogram.length},histogramMin:function(){return"NaN"===this.dataSummary.minValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.minValue)/100},histogramMax:function(){return"NaN"===this.dataSummary.maxValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.maxValue)/100},colormapWidth:function(){return 100/this.colormap.colors.length},infoShowedText:function(){var e;return this.infoShowed.categories.length>0&&(e=this.infoShowed.categories[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:this.infoShowed.values.length>0&&(e=this.infoShowed.values[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:""},colormapStyle:function(){return"horizontal"===this.direction?"width":"height"},categoryHeight:function(){return console.warn(100/this.dataSummary.categories.length+(this.dataSummary.categorized?0:2)),100/(this.dataSummary.categories.length+(this.dataSummary.categorized?0:2))}},methods:{getHistogramDataHeight:function(e){return 100*e/this.maxHistogramValue},setInfoShowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.infoShowed=null===e?{index:-1,categories:[],values:[]}:a()({},e)},calculateFontSize:function(){var e=document.querySelector(".hv-categories");if(e){var t=u(e);return Math.min(Math.max(t/this.dataSummary.categories.length,6),12)}return 12}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_DATA_INFO,this.setInfoShowed)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_DATA_INFO,this.setInfoShowed)}},h=d,p=(n("4c12"),n("2877")),f=Object(p["a"])(h,i,o,!1,null,null,null);f.options.__file="HistogramViewer.vue";t["a"]=f.exports},e027:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],i=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return i})},e0d9:function(e,t,n){"use strict";var i=n("ce70"),o=n.n(i);o.a},e0ea:function(e,t,n){(function(e,t){t(n("f333"))})(0,function(e){"use strict";
+//! moment.js locale configuration
+var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t})},e1c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4");t.METADATA_KEY=i;var o=n("f457");t.Container=o.Container;var r=n("155f");t.BindingScopeEnum=r.BindingScopeEnum,t.BindingTypeEnum=r.BindingTypeEnum,t.TargetTypeEnum=r.TargetTypeEnum;var a=n("771c");t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=n("719e");t.injectable=s.injectable;var c=n("d204");t.tagged=c.tagged;var l=n("6730");t.named=l.named;var u=n("624f");t.inject=u.inject,t.LazyServiceIdentifer=u.LazyServiceIdentifer;var d=n("8d8c");t.optional=d.optional;var h=n("9f62");t.unmanaged=h.unmanaged;var p=n("8c88");t.multiInject=p.multiInject;var f=n("a1a5");t.targetName=f.targetName;var m=n("4a4f");t.postConstruct=m.postConstruct;var g=n("c278");t.MetadataReader=g.MetadataReader;var v=n("77d3");t.id=v.id;var _=n("66d7");t.decorate=_.decorate;var b=n("451f");t.traverseAncerstors=b.traverseAncerstors,t.taggedConstraint=b.taggedConstraint,t.namedConstraint=b.namedConstraint,t.typeConstraint=b.typeConstraint;var y=n("ba33");t.getServiceIdentifierAsString=y.getServiceIdentifierAsString;var M=n("efc5");t.multiBindToService=M.multiBindToService},e1cb:function(e,t,n){"use strict";function i(e){return e.hasFeature(t.nameFeature)}function o(e){return i(e)?e.name:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.nameFeature=Symbol("nameableFeature"),t.isNameable=i,t.name=o},e2d7:function(e,t,n){"use strict";var i=n("8ef3"),o=n.n(i);o.a},e325:function(t,n,o){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if(0===i)return!1;var o=0|t,r=Math.max(o>=0?o:i-Math.abs(o),0);function a(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}while(rn?(t=e-n,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},a.prototype.generateColumnsFromRowData=function(e){var t,n,i=[],o=this.table.options.autoColumnsDefinitions;if(e&&e.length){for(var a in t=e[0],t){var s={field:a,title:a},c=t[a];switch("undefined"===typeof c?"undefined":r(c)){case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Array.isArray(c)?"array":"string";break;default:n=isNaN(c)||""===c?c.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number";break}s.sorter=n,i.push(s)}if(o)switch("undefined"===typeof o?"undefined":r(o)){case"function":this.table.options.columns=o.call(this.table,i);break;case"object":Array.isArray(o)?i.forEach(function(e){var t=o.find(function(t){return t.field===e.field});t&&Object.assign(e,t)}):i.forEach(function(e){o[e.field]&&Object.assign(e,o[e.field])}),this.table.options.columns=i;break}else this.table.options.columns=i;this.setColumns(this.table.options.columns)}},a.prototype.setColumns=function(e,t){var n=this;while(n.headersElement.firstChild)n.headersElement.removeChild(n.headersElement.firstChild);n.columns=[],n.columnsByIndex=[],n.columnsByField={},n.table.modExists("frozenColumns")&&n.table.modules.frozenColumns.reset(),e.forEach(function(e,t){n._addColumn(e)}),n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),n.redraw(!0)},a.prototype._addColumn=function(e,t,n){var i=new c(e,this),o=i.getElement(),r=n?this.findColumnIndex(n):n;if(n&&r>-1){var a=this.columns.indexOf(n.getTopColumn()),s=n.getElement();t?(this.columns.splice(a,0,i),s.parentNode.insertBefore(o,s)):(this.columns.splice(a+1,0,i),s.parentNode.insertBefore(o,s.nextSibling))}else t?(this.columns.unshift(i),this.headersElement.insertBefore(i.getElement(),this.headersElement.firstChild)):(this.columns.push(i),this.headersElement.appendChild(i.getElement())),i.columnRendered();return i},a.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},a.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},a.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},a.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var n;e.clearVerticalAlign(),n=e.getHeight(),n>t&&(t=n)}),e.columns.forEach(function(n){n.verticalAlign(e.table.options.columnHeaderVertAlign,t)}),e.rowManager.adjustTableSize()},a.prototype.findColumn=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e)))return this.columnsByField[e]||!1;if(e instanceof c)return e;if(e instanceof s)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var n=t.columns.find(function(t){return t.element===e});return n||!1}return!1},a.prototype.getColumnByField=function(e){return this.columnsByField[e]},a.prototype.getColumnsByFieldRoot=function(e){var t=this,n=[];return Object.keys(this.columnsByField).forEach(function(i){var o=i.split(".")[0];o===e&&n.push(t.columnsByField[i])}),n},a.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},a.prototype.getFirstVisibileColumn=function(e){e=this.columnsByIndex.findIndex(function(e){return e.visible});return e>-1&&this.columnsByIndex[e]},a.prototype.getColumns=function(){return this.columns},a.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},a.prototype.getRealColumns=function(){return this.columnsByIndex},a.prototype.traverse=function(e){var t=this;t.columnsByIndex.forEach(function(t,n){e(t,n)})},a.prototype.getDefinitions=function(e){var t=this,n=[];return t.columnsByIndex.forEach(function(t){(!e||e&&t.visible)&&n.push(t.getDefinition())}),n},a.prototype.getDefinitionTree=function(){var e=this,t=[];return e.columns.forEach(function(e){t.push(e.getDefinition(!0))}),t},a.prototype.getComponents=function(e){var t=this,n=[],i=e?t.columns:t.columnsByIndex;return i.forEach(function(e){n.push(e.getComponent())}),n},a.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},a.prototype.moveColumn=function(e,t,n){this.moveColumnActual(e,t,n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t.element.parentNode.insertBefore(e.element,t.element),n&&t.element.parentNode.insertBefore(t.element,e.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},a.prototype.moveColumnActual=function(e,t,n){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,n):this._moveColumnInArray(this.columns,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},a.prototype._moveColumnInArray=function(e,t,n,i,o){var r,a=this,s=e.indexOf(t),c=[];s>-1&&(e.splice(s,1),r=e.indexOf(n),r>-1?i&&(r+=1):r=s,e.splice(r,0,t),o&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach(function(e){c=c.concat(a.table.modules.dataTree.getTreeChildren(e,!1,!0))}),c=c.concat(this.table.rowManager.rows),c.forEach(function(e){if(e.cells.length){var t=e.cells.splice(s,1)[0];e.cells.splice(r,0,t)}})))},a.prototype.scrollToColumn=function(e,t,n){var i=this,o=0,r=0,a=0,s=e.getElement();return new Promise(function(c,l){if("undefined"===typeof t&&(t=i.table.options.scrollToColumnPosition),"undefined"===typeof n&&(n=i.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":a=-i.element.clientWidth/2;break;case"right":a=s.clientWidth-i.headersElement.clientWidth;break}if(!n&&(r=s.offsetLeft,r>0&&r+s.offsetWidthe.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var o,r,a;i.visible&&(o=i.definition.width||0,r="undefined"==typeof i.minWidth?e.table.options.columnMinWidth:parseInt(i.minWidth),a="string"==typeof o?o.indexOf("%")>-1?t/100*parseInt(o):parseInt(o):o,n+=a>r?a:r)}),n},a.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var a=i._addColumn(e,t,n);i._reIndexColumns(),i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout",!0)&&i.table.modules.responsiveLayout.initialize(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.redraw(!0),"fitColumns"!=i.table.modules.layout.getMode()&&a.reinitializeWidth(),i._verticalAlignHeaders(),i.table.rowManager.reinitialize(),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(),o(a)})},a.prototype.deregisterColumn=function(e){var t,n=e.getField();n&&delete this.columnsByField[n],t=this.columnsByIndex.indexOf(e),t>-1&&this.columnsByIndex.splice(t,1),t=this.columns.indexOf(e),t>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},a.prototype.redraw=function(e){e&&(g.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var s=function(e){this._column=e,this.type="ColumnComponent"};s.prototype.getElement=function(){return this._column.getElement()},s.prototype.getDefinition=function(){return this._column.getDefinition()},s.prototype.getField=function(){return this._column.getField()},s.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},s.prototype.isVisible=function(){return this._column.visible},s.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},s.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},s.prototype.toggle=function(){this._column.visible?this.hide():this.show()},s.prototype.delete=function(){return this._column.delete()},s.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getParentColumn=function(){return this._column.parent instanceof c&&this._column.parent.getComponent()},s.prototype._getSelf=function(){return this._column},s.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},s.prototype.getTable=function(){return this._column.table},s.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},s.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},s.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},s.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},s.prototype.move=function(e,t){var n=this._column.table.columnManager.findColumn(e);n?this._column.table.columnManager.moveColumn(this._column,n,t):console.warn("Move Error - No matching column found:",n)},s.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},s.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()},s.prototype.updateDefinition=function(e){return this._column.updateDefinition(e)},s.prototype.getWidth=function(){return this._column.getWidth()},s.prototype.setWidth=function(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),t},s.prototype.validate=function(){return this._column.validate()};var c=function e(t,n){var i=this;this.table=n.table,this.definition=t,this.parent=n,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,n){var o=new e(t,i);i.attachColumn(o)}),i.checkColumnVisibility()):n.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},c.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},c.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},c.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},c.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},c.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},c.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},c.prototype._mapDepricatedFunctionality=function(){"undefined"!==typeof this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),"undefined"!==typeof this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),"undefined"!==typeof this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},c.prototype.setTooltip=function(){var e=this,t=e.definition,n=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;n?!0===n?t.field?e.table.modules.localize.bind("columns|"+t.field,function(n){e.element.setAttribute("title",n||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof n&&(n=n(e.getComponent()),!1===n&&(n="")),e.element.setAttribute("title",n)):e.element.setAttribute("title","")},c.prototype._buildHeader=function(){var e=this,t=e.definition;while(e.element.firstChild)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&("undefined"!==typeof t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.table.modExists("persistence")&&e.table.modules.persistence.config.columns&&e.table.modules.persistence.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},c.prototype._bindEvents=function(){var e,t,n,i=this,o=i.definition;"function"==typeof o.headerClick&&i.element.addEventListener("click",function(e){o.headerClick(e,i.getComponent())}),"function"==typeof o.headerDblClick&&i.element.addEventListener("dblclick",function(e){o.headerDblClick(e,i.getComponent())}),"function"==typeof o.headerContext&&i.element.addEventListener("contextmenu",function(e){o.headerContext(e,i.getComponent())}),"function"==typeof o.headerTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&o.headerTap(e,i.getComponent()),n=!1})),"function"==typeof o.headerDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,o.headerDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof o.headerTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,o.headerTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof o.cellClick&&(i.cellEvents.cellClick=o.cellClick),"function"==typeof o.cellDblClick&&(i.cellEvents.cellDblClick=o.cellDblClick),"function"==typeof o.cellContext&&(i.cellEvents.cellContext=o.cellContext),"function"==typeof o.cellMouseEnter&&(i.cellEvents.cellMouseEnter=o.cellMouseEnter),"function"==typeof o.cellMouseLeave&&(i.cellEvents.cellMouseLeave=o.cellMouseLeave),"function"==typeof o.cellMouseOver&&(i.cellEvents.cellMouseOver=o.cellMouseOver),"function"==typeof o.cellMouseOut&&(i.cellEvents.cellMouseOut=o.cellMouseOut),"function"==typeof o.cellMouseMove&&(i.cellEvents.cellMouseMove=o.cellMouseMove),"function"==typeof o.cellTap&&(i.cellEvents.cellTap=o.cellTap),"function"==typeof o.cellDblTap&&(i.cellEvents.cellDblTap=o.cellDblTap),"function"==typeof o.cellTapHold&&(i.cellEvents.cellTapHold=o.cellTapHold),"function"==typeof o.cellEdited&&(i.cellEvents.cellEdited=o.cellEdited),"function"==typeof o.cellEditing&&(i.cellEvents.cellEditing=o.cellEditing),"function"==typeof o.cellEditCancelled&&(i.cellEvents.cellEditCancelled=o.cellEditCancelled)},c.prototype._buildColumnHeader=function(){var e=this,t=this.definition,n=this.table;if(n.modExists("sort")&&n.modules.sort.initializeColumn(this,this.titleHolderElement),(t.headerContextMenu||t.headerClickMenu||t.headerMenu)&&n.modExists("menu")&&n.modules.menu.initializeColumnHeader(this),n.modExists("format")&&n.modules.format.initializeColumn(this),"undefined"!=typeof t.editor&&n.modExists("edit")&&n.modules.edit.initializeColumn(this),"undefined"!=typeof t.validator&&n.modExists("validate")&&n.modules.validate.initializeColumn(this),n.modExists("mutator")&&n.modules.mutator.initializeColumn(this),n.modExists("accessor")&&n.modules.accessor.initializeColumn(this),r(n.options.responsiveLayout)&&n.modExists("responsiveLayout")&&n.modules.responsiveLayout.initializeColumn(this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass){var i=t.cssClass.split(" ");i.forEach(function(t){e.element.classList.add(t)})}t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth("undefined"==typeof t.minWidth?this.table.options.columnMinWidth:parseInt(t.minWidth)),(t.maxWidth||this.table.options.columnMaxWidth)&&!1!==t.maxWidth&&this.setMaxWidth("undefined"==typeof t.maxWidth?this.table.options.columnMaxWidth:parseInt(t.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign="undefined"==typeof this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign="undefined"==typeof this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},c.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e},c.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,n=e.table,i=document.createElement("div");if(i.classList.add("tabulator-col-title"),t.editableTitle){var o=document.createElement("input");o.classList.add("tabulator-title-editor"),o.addEventListener("click",function(e){e.stopPropagation(),o.focus()}),o.addEventListener("change",function(){t.title=o.value,n.options.columnTitleChanged.call(e.table,e.getComponent())}),i.appendChild(o),t.field?n.modules.localize.bind("columns|"+t.field,function(e){o.value=e||t.title||" "}):o.value=t.title||" "}else t.field?n.modules.localize.bind("columns|"+t.field,function(n){e._formatColumnHeaderTitle(i,n||t.title||" ")}):e._formatColumnHeaderTitle(i,t.title||" ");return i},c.prototype._formatColumnHeaderTitle=function(e,t){var n,i,o,a,s,c=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(n=this.table.modules.format.getFormatter(this.definition.titleFormatter),s=function(e){c.titleFormatterRendered=e},a={getValue:function(){return t},getElement:function(){return e}},o=this.definition.titleFormatterParams||{},o="function"===typeof o?o():o,i=n.call(this.table.modules.format,a,o,s),"undefined"===typeof i?"undefined":r(i)){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=i}else e.innerHTML=t},c.prototype._buildGroupHeader=function(){var e=this;if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var t=this.definition.cssClass.split(" ");t.forEach(function(t){e.element.classList.add(t)})}(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},c.prototype._getFlatData=function(e){return e[this.field]},c.prototype._getNestedData=function(e){for(var t,n=e,i=this.fieldStructure,o=i.length,r=0;r-1&&this.columns.splice(t,1),this.columns.length||this.delete()},c.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},c.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},c.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},c.prototype.getWidth=function(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e},c.prototype.getHeight=function(){return this.element.offsetHeight},c.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},c.prototype.setMaxWidth=function(e){this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(e){e.setMaxWidth()})},c.prototype.delete=function(){var e=this;return new Promise(function(t,n){e.isGroup&&e.columns.forEach(function(e){e.delete()}),e.table.modExists("edit")&&e.table.modules.edit.currentCell.column===e&&e.table.modules.edit.cancelEdit();for(var i=e.cells.length,o=0;o-1&&this._nextVisibleColumn(e+1)},c.prototype._nextVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)},c.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)},c.prototype._prevVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)},c.prototype.reinitializeWidth=function(e){this.widthFixed=!1,"undefined"===typeof this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},c.prototype.fitToData=function(){var e=this;this.widthFixed||(this.element.style.width="",e.cells.forEach(function(e){e.clearWidth()}));var t=this.element.offsetWidth;e.width&&this.widthFixed||(e.cells.forEach(function(e){var n=e.getWidth();n>t&&(t=n)}),t&&e.setWidthActual(t+1))},c.prototype.updateDefinition=function(e){var t=this;return new Promise(function(n,i){var o;t.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):t.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(o=Object.assign({},t.getDefinition()),o=Object.assign(o,e),t.table.columnManager.addColumn(o,!1,t).then(function(e){o.field==t.field&&(t.field=!1),t.delete().then(function(){n(e.getComponent())}).catch(function(e){i(e)})}).catch(function(e){i(e)}))})},c.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},c.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],c.prototype.getComponent=function(){return this.component||(this.component=new s(this)),this.component};var l=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};l.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},l.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},l.prototype.getElement=function(){return this.element},l.prototype.getTableElement=function(){return this.tableElement},l.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},l.prototype.setColumnManager=function(e){this.columnManager=e},l.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t),e.table.options.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,n=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(n),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t),e.table.options.scrollVertical(t)):e.scrollTop=t})},l.prototype.findRow=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e))){if("undefined"==typeof e||null===e)return!1;var n=t.rows.find(function(n){return n.data[t.table.options.index]==e});return n||!1}if(e instanceof h)return e;if(e instanceof d)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var i=t.rows.find(function(t){return t.getElement()===e});return i||!1}return!1},l.prototype.getRowFromDataObject=function(e){var t=this.rows.find(function(t){return t.data===e});return t||!1},l.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},l.prototype.scrollToRow=function(e,t,n){var i,o=this,r=this.getDisplayRows().indexOf(e),a=e.getElement(),s=0;return new Promise(function(e,c){if(r>-1){if("undefined"===typeof t&&(t=o.table.options.scrollToRowPosition),"undefined"===typeof n&&(n=o.table.options.scrollToRowIfVisible),"nearest"===t)switch(o.renderMode){case"classic":i=g.prototype.helpers.elOffset(a).top,t=Math.abs(o.element.scrollTop-i)>Math.abs(o.element.scrollTop+o.element.clientHeight-i)?"bottom":"top";break;case"virtual":t=Math.abs(o.vDomTop-r)>Math.abs(o.vDomBottom-r)?"bottom":"top";break}if(!n&&g.prototype.helpers.elVisible(a)&&(s=g.prototype.helpers.elOffset(a).top-g.prototype.helpers.elOffset(o.element).top,s>0&&s-1&&this.activeRows.splice(i,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),t||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},l.prototype.addRow=function(e,t,n,i){var o=this.addRowActual(e,t,n,i);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",o,{data:e,pos:t,index:n}),o},l.prototype.addRows=function(e,t,n){var i=this,o=this,r=[];return new Promise(function(a,s){t=i.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,("undefined"==typeof n&&t||"undefined"!==typeof n&&!t)&&e.reverse(),e.forEach(function(e,i){var a=o.addRow(e,t,n,!0);r.push(a)}),i.table.options.groupBy&&i.table.modExists("groupRows")?i.table.modules.groupRows.updateGroupRows(!0):i.table.options.pagination&&i.table.modExists("page")?i.refreshActiveData(!1,!1,!0):i.reRenderInPosition(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.regenerateRowNumbers(),a(r)})},l.prototype.findAddRowPos=function(e){return"undefined"===typeof e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},l.prototype.addRowActual=function(e,t,n,i){var o,r,a=e instanceof h?e:new h(e||{},this),s=this.findAddRowPos(t),c=-1;if(!n&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),s?r.length?n=r[0]:this.activeRows.length&&(n=this.activeRows[this.activeRows.length-1],s=!1):r.length&&(n=r[r.length-1],s=!(r.length1&&(!n||n&&-1==l.indexOf(n)?s?l[0]!==a&&(n=l[0],this._moveRowInArray(a.getGroup().rows,a,n,!s)):l[l.length-1]!==a&&(n=l[l.length-1],this._moveRowInArray(a.getGroup().rows,a,n,!s)):this._moveRowInArray(a.getGroup().rows,a,n,!s))}return n&&(c=this.rows.indexOf(n)),n&&c>-1?(o=this.activeRows.indexOf(n),this.displayRowIterator(function(e){var t=e.indexOf(n);t>-1&&e.splice(s?t:t+1,0,a)}),o>-1&&this.activeRows.splice(s?o:o+1,0,a),this.rows.splice(s?c:c+1,0,a)):s?(this.displayRowIterator(function(e){e.unshift(a)}),this.activeRows.unshift(a),this.rows.unshift(a)):(this.displayRowIterator(function(e){e.push(a)}),this.activeRows.push(a),this.rows.push(a)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,a.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),i||this.reRenderInPosition(),a},l.prototype.moveRow=function(e,t,n){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{posFrom:this.getRowPosition(e),posTo:this.getRowPosition(t),to:t,after:n}),this.moveRowActual(e,t,n),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,e.getComponent())},l.prototype.moveRowActual=function(e,t,n){var i=this;if(this._moveRowInArray(this.rows,e,t,n),this._moveRowInArray(this.activeRows,e,t,n),this.displayRowIterator(function(o){i._moveRowInArray(o,e,t,n)}),this.table.options.groupBy&&this.table.modExists("groupRows")){!n&&t instanceof N&&(t=this.table.rowManager.prevDisplayRow(e)||t);var o=t.getGroup(),r=e.getGroup();o===r?this._moveRowInArray(o.rows,e,t,n):(r&&r.removeRow(e),o.insertRow(e,t,n))}},l.prototype._moveRowInArray=function(e,t,n,i){var o,r,a,s;if(t!==n&&(o=e.indexOf(t),o>-1&&(e.splice(o,1),r=e.indexOf(n),r>-1?i?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(o,0,t)),e===this.getDisplayRows())){a=oo?r:o+1;for(var c=a;c<=s;c++)e[c]&&this.styleRow(e[c],c)}},l.prototype.clearData=function(){this.setData([])},l.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},l.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},l.prototype.nextDisplayRow=function(e,t){var n=this.getDisplayRowIndex(e),i=!1;return!1!==n&&n-1))&&n},l.prototype.getData=function(e,t){var n=[],i=this.getRows(e);return i.forEach(function(e){"row"==e.type&&n.push(e.getData(t||"data"))}),n},l.prototype.getComponents=function(e){var t=[],n=this.getRows(e);return n.forEach(function(e){t.push(e.getComponent())}),t},l.prototype.getDataCount=function(e){var t=this.getRows(e);return t.length},l.prototype._genRemoteRequest=function(){var e=this,t=this.table,n=t.options,i={};if(t.modExists("page")){if(n.ajaxSorting){var o=this.table.modules.sort.getSort();o.forEach(function(e){delete e.column}),i[this.table.modules.page.paginationDataSentNames.sorters]=o}if(n.ajaxFiltering){var r=this.table.modules.filter.getFilters(!0,!0);i[this.table.modules.page.paginationDataSentNames.filters]=r}this.table.modules.ajax.setParams(i,!0)}t.modules.ajax.sendRequest().then(function(t){e._setDataActual(t,!0)}).catch(function(e){})},l.prototype.filterRefresh=function(){var e=this.table,t=e.options,n=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(n)},l.prototype.sorterRefresh=function(e){var t=this.table,n=this.table.options,i=this.scrollLeft;n.ajaxSorting?("remote"==n.pagination||n.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):n.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(i)},l.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},l.prototype.refreshActiveData=function(e,t,n){var i,o=this,r=this.table,a=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||a.indexOf(e)=0))break;r=s}else if(t-a[s].getElement().offsetTop>=0)o=s;else{if(i=!0,!(n-a[s].getElement().offsetTop>=0))break;r=s}}else o=this.vDomTop,r=this.vDomBottom;return a.slice(o,r+1)},l.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},l.prototype.getRows=function(e){var t;switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!0);break;case"selected":t=this.table.modules.selectRow.selectedRows;break;default:t=this.rows}return t},l.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode())if(this.redrawBlock)e?e():this.redrawBlockRederInPosition=!0;else{for(var t=this.element.scrollTop,n=!1,i=!1,o=this.scrollLeft,r=this.getDisplayRows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(r[a]){var s=t-r[a].getElement().offsetTop;if(!(!1===i||Math.abs(s)this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*m),"group"!==f.type&&(u=!1),i.vDomBottom++,l++}e?(i.vDomTopPad=t?i.vDomRowHeight*this.vDomTop+n:i.scrollTop-c,i.vDomBottomPad=i.vDomBottom==i.displayRowsCount-1?0:Math.max(i.vDomScrollHeight-i.vDomTopPad-s-c,0)):(this.vDomTopPad=0,i.vDomRowHeight=Math.floor((s+c)/l),i.vDomBottomPad=i.vDomRowHeight*(i.displayRowsCount-i.vDomBottom-1),i.vDomScrollHeight=c+s+i.vDomBottomPad-i.height),o.style.paddingTop=i.vDomTopPad+"px",o.style.paddingBottom=i.vDomBottomPad+"px",t&&(this.scrollTop=i.vDomTopPad+c+n-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,o.style.minWidth=u?i.table.columnManager.getWidth()+"px":"",i.table.options.groupBy&&"fitDataFill"!=i.table.modules.layout.getMode()&&i.displayRowsCount==i.table.modules.groupRows.countGroups()&&(i.tableElement.style.minWidth=i.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},l.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,n=this.scrollTop-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer;if(-t>i||n>i){var o=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(o)}else e?(t<0&&this._addTopRow(-t),n<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-n):this.vDomScrollPosBottom=this.scrollTop)):(t>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(t):this.vDomScrollPosTop=this.scrollTop),n>=0&&this._addBottomRow(n))},l.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomTop){var o=this.vDomTop-1,r=i[o],a=r.getHeight()||this.vDomRowHeight;e>=a&&(this.styleRow(r,o),n.insertBefore(r.getElement(),n.firstChild),r.initialized&&r.heightInitialized||(this.vDomTopNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomTopPad-=a,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o||(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=a,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},l.prototype._removeTopRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomTop],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode.removeChild(o),this.vDomTopPad+=i,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?i:i+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},l.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomBottom=a&&(this.styleRow(r,o),n.appendChild(r.getElement()),r.initialized&&r.heightInitialized||(this.vDomBottomNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomBottomPad-=a,(this.vDomBottomPad<0||o==this.displayRowsCount-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=a,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},l.prototype._removeBottomRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomBottom],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode&&o.parentNode.removeChild(o),this.vDomBottomPad+=i,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=i,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},l.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},l.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},l.prototype.adjustTableSize=function(){var e,t=this.element.clientHeight;if("virtual"===this.renderMode){var n=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+n+"px)",this.element.style.height="calc(100% - "+n+"px)",this.element.style.maxHeight="calc(100% - "+n+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-n+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||t==this.element.clientHeight||(e=this.table.modExists("resizeTable"),(e&&!this.table.modules.resizeTable.autoResize||!e)&&this.redraw())}},l.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize(!0)})},l.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},l.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},l.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},l.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var u=function(e){this.table=e,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};u.prototype.compatabilityCheck=function(){var e=this.table.options,t=!1,n=!0;return"fitDataTable"==e.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),n=!1),e.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),n=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),n=!1),e.columns&&(t=e.columns.find(function(e){return e.frozen}),t&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),n=!1)),n||(e.virtualDomHoz=!1),n},u.prototype.initialize=function(){var e=this;this.holderEl.addEventListener("scroll",function(){var t=e.holderEl.scrollLeft;e.scrollLeft!=t&&(e.scrollLeft=t,e.scroll(t-(e.vDomScrollPosLeft+e.window)))})},u.prototype.deinitialize=function(){this.initialized=!1},u.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},u.prototype.dataChange=function(){var e,t,n,i=!1,o=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach(function(e){!e.definition.width&&e.visible&&(i=!0)}),i&&i&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,this.table.options.groupBy?(e=this.table.modules.groupRows.getGroups(!1)[0],t=e.getRows(!1)[0]):t=this.table.rowManager.getDisplayRows()[0],t)){n=t.getElement(),t.generateCells(),this.element.appendChild(n);for(r=0;rthis.vDomScrollPosRight)break}for(n.parentNode.removeChild(n),this.fitDataColAvg=Math.floor(o/(r+1)),r;rn.vDomScrollPosLeft&&o.8*this.holderEl.clientWidth?this.reinitialize():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},u.prototype.colPositionAdjust=function(e,t,n){for(var i=e;i=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},u.prototype.addColLeft=function(){var e=this.columns[this.leftCol-1];if(e&&e.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){var t=this.table.rowManager.getVisibleRows();t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().prepend(n.getElement()),n.cellRendered()}}),this.leftCol?this.vDomPadLeft-=e.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft()}},u.prototype.removeColRight=function(e){var t;e=this.columns[this.rightCol];e&&e.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(t=this.table.rowManager.getVisibleRows(),e.modules.vdomHoz.visible=!1,t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().removeChild(n.getElement())}}),this.vDomPadRight+=e.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},u.prototype.removeColLeft=function(){var e,t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos-1}return!1},d.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},d.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},d.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},d.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},d.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},d.prototype.addTreeChild=function(e,t,n){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,e,t,n)},d.prototype.reformat=function(){return this._row.reinitialize()},d.prototype.getGroup=function(){return this._row.getGroup().getComponent()},d.prototype.getTable=function(){return this._row.table},d.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},d.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=t.table,this.parent=t,this.data={},this.type=n,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(e)};h.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},h.prototype.createElement=function(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e},h.prototype.getElement=function(){return this.create(),this.element},h.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},h.prototype.generateElement=function(){var e,t,n,i=this;this.createElement(),!1!==i.table.options.selectable&&i.table.modExists("selectRow")&&i.table.modules.selectRow.initializeRow(this),!1!==i.table.options.movableRows&&i.table.modExists("moveRow")&&i.table.modules.moveRow.initializeRow(this),!1!==i.table.options.dataTree&&i.table.modExists("dataTree")&&i.table.modules.dataTree.initializeRow(this),"collapse"===i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout")&&i.table.modules.responsiveLayout.initializeRow(this),(i.table.options.rowContextMenu||i.table.options.rowClickMenu)&&this.table.modExists("menu")&&i.table.modules.menu.initializeRow(this),i.table.options.rowClick&&i.element.addEventListener("click",function(e){i.table.options.rowClick(e,i.getComponent())}),i.table.options.rowDblClick&&i.element.addEventListener("dblclick",function(e){i.table.options.rowDblClick(e,i.getComponent())}),i.table.options.rowContext&&i.element.addEventListener("contextmenu",function(e){i.table.options.rowContext(e,i.getComponent())}),i.table.options.rowMouseEnter&&i.element.addEventListener("mouseenter",function(e){i.table.options.rowMouseEnter(e,i.getComponent())}),i.table.options.rowMouseLeave&&i.element.addEventListener("mouseleave",function(e){i.table.options.rowMouseLeave(e,i.getComponent())}),i.table.options.rowMouseOver&&i.element.addEventListener("mouseover",function(e){i.table.options.rowMouseOver(e,i.getComponent())}),i.table.options.rowMouseOut&&i.element.addEventListener("mouseout",function(e){i.table.options.rowMouseOut(e,i.getComponent())}),i.table.options.rowMouseMove&&i.element.addEventListener("mousemove",function(e){i.table.options.rowMouseMove(e,i.getComponent())}),i.table.options.rowTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&i.table.options.rowTap(e,i.getComponent()),n=!1})),i.table.options.rowDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,i.table.options.rowDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),i.table.options.rowTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,i.table.options.rowTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},h.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},h.prototype.initialize=function(e){var t=this;if(this.create(),!this.initialized||e){this.deleteCells();while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},h.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},h.prototype.reinitialize=function(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach(function(e){e.reinitialize(!0)})},h.prototype.calcHeight=function(e){var t=0,n=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var n=e.getHeight();n>t&&(t=n)}),this.height=e?Math.max(t,n):this.manualHeight?this.height:Math.max(t,n),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},h.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},h.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},h.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},h.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},h.prototype.getHeight=function(){return this.outerHeight},h.prototype.getWidth=function(){return this.element.offsetWidth},h.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},h.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},h.prototype.updateData=function(e){var t,n=this,i=this.element&&g.prototype.helpers.elVisible(this.element),o={};return new Promise(function(r,a){for(var s in"string"===typeof e&&(e=JSON.parse(e)),n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.block(),n.table.modExists("mutator")?(o=Object.assign(o,n.data),o=Object.assign(o,e),t=n.table.modules.mutator.transformRow(o,"data",e)):t=e,t)n.data[s]=t[s];for(var s in n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.unblock(),e){var c=n.table.columnManager.getColumnsByFieldRoot(s);c.forEach(function(e){var o=n.getCell(e.getField());if(o){var r=e.getFieldValue(t);o.getValue()!=r&&(o.setValueProcessData(r),i&&o.cellRendered())}})}n.table.options.groupUpdateOnCellEdit&&n.table.options.groupBy&&n.table.modExists("groupRows")&&n.table.modules.groupRows.reassignRowToGroup(n.row),i?(n.normalizeHeight(!0),n.table.options.rowFormatter&&n.table.options.rowFormatter(n.getComponent())):(n.initialized=!1,n.height=0,n.heightStyled=""),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.redrawNeeded(e)&&(n.table.modules.dataTree.initializeRow(n),i&&(n.table.modules.dataTree.layoutRow(n),n.table.rowManager.refreshActiveData("tree",!1,!0))),n.table.options.rowUpdated.call(n.table,n.getComponent()),n.table.options.dataChanged&&n.table.options.dataChanged.call(n.table,n.table.rowManager.getData()),r()})},h.prototype.getData=function(e){return e&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,e):this.data},h.prototype.getCell=function(e){var t=!1;return e=this.table.columnManager.findColumn(e),t=this.cells.find(function(t){return t.column===e}),t},h.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},h.prototype.findNextEditableCell=function(e){var t=!1;if(e0)for(var n=e-1;n>=0;n--){var i=this.cells[n],o=!0;if(i.column.modules.edit&&g.prototype.helpers.elVisible(i.getElement())&&("function"==typeof i.column.modules.edit.check&&(o=i.column.modules.edit.check(i.getComponent())),o)){t=i;break}}return t},h.prototype.getCells=function(){return this.cells},h.prototype.nextRow=function(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1},h.prototype.prevRow=function(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1},h.prototype.moveToRow=function(e,t){var n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},h.prototype.validate=function(){var e=[];return this.cells.forEach(function(t){t.validate()||e.push(t.getComponent())}),!e.length||e},h.prototype.delete=function(){var e=this;return new Promise(function(t,n){var i,o;e.table.options.history&&e.table.modExists("history")&&(e.table.options.groupBy&&e.table.modExists("groupRows")?(o=e.getGroup().rows,i=o.indexOf(e),i&&(i=o[i-1])):(i=e.table.rowManager.getRowIndex(e),i&&(i=e.table.rowManager.rows[i-1])),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!i,index:i})),e.deleteActual(),t()})},h.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},h.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},h.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},g.prototype.initializeOptions=function(e){if(!1!==e.invalidOptionWarnings)for(var t in e)"undefined"===typeof this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=Object.assign([],this.defaultOptions[t]):"object"===r(this.defaultOptions[t])&&null!==this.defaultOptions[t]?this.options[t]=Object.assign({},this.defaultOptions[t]):this.options[t]=this.defaultOptions[t]},g.prototype.initializeElement=function(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"===typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},g.prototype.rtlCheck=function(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},g.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),"undefined"!==typeof this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},g.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},g.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new a(this),this.rowManager=new l(this),this.footerManager=new m(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new u(this)),this._buildElement(),this._loadInitialData()},g.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},g.prototype._buildElement=function(){var e=this,t=this.element,n=this.modules,i=this.options;i.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");while(t.firstChild)t.removeChild(t.firstChild);for(var o in i.height&&(i.height=isNaN(i.height)?i.height:i.height+"px",t.style.height=i.height),!1!==i.minHeight&&(i.minHeight=isNaN(i.minHeight)?i.minHeight:i.minHeight+"px",t.style.minHeight=i.minHeight),!1!==i.maxHeight&&(i.maxHeight=isNaN(i.maxHeight)?i.maxHeight:i.maxHeight+"px",t.style.maxHeight=i.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&n.layout.initialize(i.layout),n.localize.initialize(),!1!==i.headerFilterPlaceholder&&n.localize.setHeaderFilterPlaceholder(i.headerFilterPlaceholder),i.langs)n.localize.installLang(o,i.langs[o]);if(n.localize.setLocale(i.locale),"string"==typeof i.placeholder){var r=document.createElement("div");r.classList.add("tabulator-placeholder");var a=document.createElement("span");a.innerHTML=i.placeholder,r.appendChild(a),i.placeholder=r}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),i.footerElement&&this.footerManager.activate(),i.persistence&&this.modExists("persistence",!0)&&n.persistence.initialize(),i.movableRows&&this.modExists("moveRow")&&n.moveRow.initialize(),i.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&n.columnCalcs.initialize(),this.columnManager.setColumns(i.columns),i.dataTree&&this.modExists("dataTree",!0)&&n.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort||i.initialSort)&&this.modExists("sort",!0)){var s=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort?(s=n.persistence.load("sort"),!1===s&&i.initialSort&&(s=i.initialSort)):i.initialSort&&(s=i.initialSort),n.sort.setSort(s)}if((i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter||i.initialFilter)&&this.modExists("filter",!0)){var c=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter?(c=n.persistence.load("filter"),!1===c&&i.initialFilter&&(c=i.initialFilter)):i.initialFilter&&(c=i.initialFilter),n.filter.setFilter(c)}i.initialHeaderFilter&&this.modExists("filter",!0)&&i.initialHeaderFilter.forEach(function(t){var i=e.columnManager.findColumn(t.field);if(!i)return console.warn("Column Filter Error - No matching column found:",t.field),!1;n.filter.setHeaderFilterValue(i,t.value)}),this.modExists("ajax")&&n.ajax.initialize(),i.pagination&&this.modExists("page",!0)&&n.page.initialize(),i.groupBy&&this.modExists("groupRows",!0)&&n.groupRows.initialize(),this.modExists("keybindings")&&n.keybindings.initialize(),this.modExists("selectRow")&&n.selectRow.clearSelectionData(!0),i.autoResize&&this.modExists("resizeTable")&&n.resizeTable.initialize(),this.modExists("clipboard")&&n.clipboard.initialize(),i.printAsHtml&&this.modExists("print")&&n.print.initialize(),i.tableBuilt.call(this)},g.prototype._loadInitialData=function(){var e=this;if(e.options.pagination&&e.modExists("page"))if(e.modules.page.reset(!0,!0),"local"==e.options.pagination){if(e.options.data.length)e.rowManager.setData(e.options.data,!1,!0);else{if((e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax"))return void e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)});e.rowManager.setData(e.options.data,!1,!0)}e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)}else e.options.ajaxURL?e.modules.page.setPage(e.options.paginationInitialPage).then(function(){}).catch(function(){}):e.rowManager.setData([],!1,!0);else e.options.data.length?e.rowManager.setData(e.options.data):(e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax")?e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){}):e.rowManager.setData(e.options.data,!1,!0)},g.prototype.destroy=function(){var e=this.element;g.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();while(e.firstChild)e.removeChild(e.firstChild);e.classList.remove("tabulator")},g.prototype._detectBrowser=function(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},g.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},g.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},g.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(n,i){var o=document.createElement("input");o.type="file",o.accept=e||".json,application/json",o.addEventListener("change",function(e){var r,a=o.files[0],s=new FileReader;s.readAsText(a),s.onload=function(e){try{r=JSON.parse(s.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void i(e)}t.setData(r).then(function(e){n(e)}).catch(function(e){n(e)})},s.onerror=function(e){console.warn("File Load Error - Unable to read file"),i()}}),o.click()})},g.prototype.setData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!1,!0)},g.prototype._setData=function(e,t,n,i,o){var r=this;return"string"!==typeof e?e?r.rowManager.setData(e,i,o):r.modExists("ajax")&&(r.modules.ajax.getUrl||r.options.ajaxURLGenerator)?"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o):r.rowManager.setData([],i,o):0==e.indexOf("{")||0==e.indexOf("[")?r.rowManager.setData(JSON.parse(e),i,o):r.modExists("ajax",!0)?(t&&r.modules.ajax.setParams(t),n&&r.modules.ajax.setConfig(n),r.modules.ajax.setUrl(e),"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o)):void 0},g.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},g.prototype.getData=function(e){return!0===e&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getData(e)},g.prototype.getDataCount=function(e){return!0===e&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getDataCount(e)},g.prototype.searchRows=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,n)},g.prototype.searchData=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,n)},g.prototype.getHtml=function(e,t,n){if(this.modExists("export",!0))return this.modules.export.getHtml(e,t,n)},g.prototype.print=function(e,t,n){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,n)},g.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},g.prototype.replaceData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!0)},g.prototype.updateData=function(e){var t=this,n=this,i=0;return new Promise(function(o,r){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);t&&(i++,t.updateData(e).then(function(){i--,i||o()}))}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.addData=function(e,t,n){var i=this;return new Promise(function(o,r){i.modExists("ajax")&&i.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?i.rowManager.addRows(e,t,n).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),o(t)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.updateOrAddData=function(e){var t=this,n=this,i=[],o=0;return new Promise(function(r,a){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);o++,t?t.updateData(e).then(function(){o--,i.push(t.getComponent()),o||r(i)}):n.rowManager.addRows(e).then(function(e){o--,i.push(e[0].getComponent()),o||r(i)})}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})},g.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.getRowFromPosition=function(e,t){var n=this.rowManager.getRowFromPosition(e,t);return n?n.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.deleteRow=function(e){var t=this;return new Promise(function(n,i){var o=t,r=0,a=0,s=[];function c(){r++,r==e.length&&a&&(o.rowManager.reRenderInPosition(),n())}Array.isArray(e)||(e=[e]),e.forEach(function(e){var n=t.rowManager.findRow(e,!0);n?s.push(n):(console.warn("Delete Error - No matching row found:",e),i("Delete Error - No matching row found"),c())}),s.sort(function(e,n){return t.rowManager.rows.indexOf(e)>t.rowManager.rows.indexOf(n)?1:-1}),s.forEach(function(e){e.delete().then(function(){a++,c()}).catch(function(e){c(),i(e)})})})},g.prototype.addRow=function(e,t,n){var i=this;return new Promise(function(o,r){"string"===typeof e&&(e=JSON.parse(e)),i.rowManager.addRows(e,t,n).then(function(e){i.modExists("columnCalcs")&&i.modules.columnCalcs.recalc(i.rowManager.activeRows),o(e[0].getComponent())})})},g.prototype.updateOrAddRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(r.getComponent())}).catch(function(e){o(e)}):r=n.rowManager.addRows(t).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(e[0].getComponent())}).catch(function(e){o(e)})})},g.prototype.updateRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){i(r.getComponent())}).catch(function(e){o(e)}):(console.warn("Update Error - No matching row found:",e),o("Update Error - No matching row found"))})},g.prototype.scrollToRow=function(e,t,n){var i=this;return new Promise(function(o,r){var a=i.rowManager.findRow(e);a?i.rowManager.scrollToRow(a,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching row found:",e),r("Scroll Error - No matching row found"))})},g.prototype.moveRow=function(e,t,n){var i=this.rowManager.findRow(e);i?i.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)},g.prototype.getRows=function(e){return!0===e&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getComponents(e)},g.prototype.getRowPosition=function(e,t){var n=this.rowManager.findRow(e);return n?this.rowManager.getRowPosition(n,t):(console.warn("Position Error - No matching row found:",e),!1)},g.prototype.copyToClipboard=function(e){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e)},g.prototype.setColumns=function(e){this.columnManager.setColumns(e)},g.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},g.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},g.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},g.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},g.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},g.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},g.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var a=i.columnManager.findColumn(n);i.columnManager.addColumn(e,t,a).then(function(e){o(e.getComponent())}).catch(function(e){r(e)})})},g.prototype.deleteColumn=function(e){var t=this;return new Promise(function(n,i){var o=t.columnManager.findColumn(e);o?o.delete().then(function(){n()}).catch(function(e){i(e)}):(console.warn("Column Delete Error - No matching column found:",e),i())})},g.prototype.updateColumnDefinition=function(e,t){var n=this;return new Promise(function(i,o){var r=n.columnManager.findColumn(e);r?r.updateDefinition(t).then(function(e){i(e)}).catch(function(e){o(e)}):(console.warn("Column Update Error - No matching column found:",e),o())})},g.prototype.moveColumn=function(e,t,n){var i=this.columnManager.findColumn(e),o=this.columnManager.findColumn(t);i?o?this.columnManager.moveColumn(i,o,n):console.warn("Move Error - No matching column found:",o):console.warn("Move Error - No matching column found:",e)},g.prototype.scrollToColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var a=i.columnManager.findColumn(e);a?i.columnManager.scrollToColumn(a,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching column found:",e),r("Scroll Error - No matching column found"))})},g.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},g.prototype.getLocale=function(){return this.modules.localize.getLocale()},g.prototype.getLang=function(e){return this.modules.localize.getLang(e)},g.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},g.prototype.setHeight=function(e){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},g.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},g.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},g.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},g.prototype.setFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},g.prototype.addFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},g.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},g.prototype.getHeaderFilterValue=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(t)return this.modules.filter.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}},g.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var n=this.columnManager.findColumn(e);if(!n)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(n,t)}},g.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},g.prototype.removeFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,n),this.rowManager.filterRefresh())},g.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},g.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},g.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&(!0===e&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),e="active"),this.modules.selectRow.selectRows(e))},g.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},g.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},g.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},g.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},g.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},g.prototype.clearCellValidation=function(e){var t=this;this.modExists("validate",!0)&&(e||(e=this.modules.validate.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.validate.clearValidation(e._getSelf())}))},g.prototype.validate=function(e){var t=[];return this.rowManager.rows.forEach(function(e){var n=e.validate();!0!==n&&(t=t.concat(n))}),!t.length||t},g.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},g.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},g.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){t.options.pagination&&t.modExists("page")?(e=t.rowManager.findRow(e),e?t.modules.page.setPageToRow(e).then(function(){n()}).catch(function(){i()}):i()):i()})},g.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},g.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},g.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},g.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},g.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},g.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},g.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupValues=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},g.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},g.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},g.prototype.clearCellEdited=function(e){var t=this;this.modExists("edit",!0)&&(e||(e=this.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.edit.clearEdited(e._getSelf())}))},g.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},g.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},g.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().prev()},g.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().next()},g.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().left())},g.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().right())},g.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().up())},g.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().down())},g.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},g.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},g.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},g.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},g.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},g.prototype.download=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i)},g.prototype.downloadToTab=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i,!0)},g.prototype.tableComms=function(e,t,n,i){this.modules.comms.receive(e,t,n,i)},g.prototype.moduleBindings={},g.prototype.extendModule=function(e,t,n){if(g.prototype.moduleBindings[e]){var i=g.prototype.moduleBindings[e].prototype[t];if(i)if("object"==("undefined"===typeof n?"undefined":r(n)))for(var o in n)i[o]=n[o];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},g.prototype.registerModule=function(e,t){g.prototype.moduleBindings[e]=t},g.prototype.bindModules=function(){for(var e in this.modules={},g.prototype.moduleBindings)this.modules[e]=new g.prototype.moduleBindings[e](this)},g.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},g.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Object.assign(Array.isArray(e)?[]:{},e);for(var n in e)null!=e[n]&&"object"===r(e[n])&&(e[n]instanceof Date?t[n]=new Date(e[n]):t[n]=this.deepClone(e[n]));return t}},g.prototype.comms={tables:[],register:function(e){g.prototype.comms.tables.push(e)},deregister:function(e){var t=g.prototype.comms.tables.indexOf(e);t>-1&&g.prototype.comms.tables.splice(t,1)},lookupTable:function(e,t){var n,i,o=[];if("string"===typeof e){if(n=document.querySelectorAll(e),n.length)for(var r=0;r0?r.setWidth(o):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t=this,n=t.table.element.clientWidth,i=0,o=0,r=0,a=0,s=[],c=[],l=0,u=0,d=0;function h(e){var t;return t="string"==typeof e?e.indexOf("%")>-1?n/100*parseInt(e):parseInt(e):e,t}function p(e,t,n,i){var o=[],a=0,s=0,c=0,l=r,u=0,d=0,f=[];function m(e){return n*(e.column.definition.widthGrow||1)}function g(e){return h(e.width)-n*(e.column.definition.widthShrink||0)}return e.forEach(function(e,r){var a=i?g(e):m(e);e.column.minWidth>=a?o.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(n-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,n,o;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(o=h(t),i+=o>n?o:n,e.definition.widthShrink&&(c.push({column:e,width:o>n?o:n}),l+=e.definition.widthShrink)):(s.push({column:e,width:0}),r+=e.definition.widthGrow||1))}),o=n-i,a=Math.floor(o/r);d=p(s,o,a,!1);s.length&&d>0&&(s[s.length-1].width+=+d),s.forEach(function(e){o-=e.width}),u=Math.abs(d)+o,u>0&&l&&(d=p(c,u,Math.floor(u/l),!0)),c.length&&(c[c.length-1].width-=d),s.forEach(function(e){e.column.setWidth(e.width)}),c.forEach(function(e){e.column.setWidth(e.width)})}},g.prototype.registerModule("layout",v);var _=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};_.prototype.initialize=function(){this.langList=g.prototype.helpers.deepClone(this.langs)},_.prototype.setHeaderFilterPlaceholder=function(e){this.langList.default.headerFilters.default=e},_.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langList.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},_.prototype.installLang=function(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t},_.prototype._setLangProp=function(e,t){for(var n in t)e[n]&&"object"==r(e[n])?this._setLangProp(e[n],t[n]):e[n]=t[n]},_.prototype.setLocale=function(e){var t=this;function n(e,t){for(var i in e)"object"==r(e[i])?(t[i]||(t[i]={}),n(e[i],t[i])):t[i]=e[i]}if(e=e||"default",!0===e&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!t.langList[e]){var i=e.split("-")[0];t.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}t.locale=e,t.lang=g.prototype.helpers.deepClone(t.langList.default||{}),"default"!=e&&n(t.langList[e],t.lang),t.table.options.localized.call(t.table,t.locale,t.lang),t._executeBindings()},_.prototype.getLocale=function(e){return self.locale},_.prototype.getLang=function(e){return e?this.langList[e]:this.lang},_.prototype.getText=function(e,t){e=t?e+"|"+t:e;var n=e.split("|"),i=this._getLangElement(n,this.locale);return i||""},_.prototype._getLangElement=function(e,t){var n=this,i=n.lang;return e.forEach(function(e){var t;i&&(t=i[e],i="undefined"!=typeof t&&t)}),i},_.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},_.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(n){n(e.getText(t),e.lang)})};for(var n in e.bindings)t(n)},_.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},g.prototype.registerModule("localize",_);var b=function(e){this.table=e};b.prototype.getConnections=function(e){var t,n=this,i=[];return t=g.prototype.comms.lookupTable(e),t.forEach(function(e){n.table!==e&&i.push(e)}),i},b.prototype.send=function(e,t,n,i){var o=this,r=this.getConnections(e);r.forEach(function(e){e.tableComms(o.table.element,t,n,i)}),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},b.prototype.receive=function(e,t,n,i){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,n,i);console.warn("Inter-table Comms Error - no such module:",t)},g.prototype.registerModule("comms",b);var y=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};y.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,a="accessor"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[a]&&(r=t.lookupAccessor(e.definition[a]),r&&(n=!0,i[a]={accessor:r,params:e.definition[a+"Params"]||{}}))}),n&&(e.modules.accessor=i)},y.prototype.lookupAccessor=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t},y.prototype.transformRow=function(e,t){var n="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),i=e.getComponent(),o=g.prototype.helpers.deepClone(e.data||{});return this.table.columnManager.traverse(function(e){var r,a,s,c;e.modules.accessor&&(a=e.modules.accessor[n]||e.modules.accessor.accessor||!1,a&&(r=e.getFieldValue(o),"undefined"!=r&&(c=e.getComponent(),s="function"===typeof a.params?a.params(r,o,t,c,i):a.params,e.setFieldValue(o,a.accessor(r,o,t,s,c,i)))))}),o},y.prototype.accessors={},g.prototype.registerModule("accessor",y);var M=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};M.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},M.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},M.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},M.prototype.setParams=function(e,t){if(t)for(var n in this.params=this.params||{},e)this.params[n]=e[n];else this.params=e},M.prototype.getParams=function(){return this.params||{}},M.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},M.prototype._loadDefaultConfig=function(e){var t=this;if(!t.config||e)for(var n in t.config={},t.defaultConfig)t.config[n]=t.defaultConfig[n]},M.prototype.setUrl=function(e){this.url=e},M.prototype.getUrl=function(){return this.url},M.prototype.loadData=function(e,t){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e,t)},M.prototype.nextPage=function(e){var t;this.loading||(t=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight,ei||null===i)&&(i=e)}),null!==i?!1!==o?i.toFixed(o):i:""},min:function(e,t,n){var i=null,o="undefined"!==typeof n.precision&&n.precision;return e.forEach(function(e){e=Number(e),(e"),n.dataTreeExpandElement?"string"===typeof n.dataTreeExpandElement?(e=document.createElement("div"),e.innerHTML=n.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=n.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),r(n.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return n.dataTreeStartExpanded};break;case"function":this.startOpen=n.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return n.dataTreeStartExpanded[t]};break}},C.prototype.initializeRow=function(e){var t=e.getData()[this.field],n=Array.isArray(t),i=n||!n&&"object"===("undefined"===typeof t?"undefined":r(t))&&null!==t;!i&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!i&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!i&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:i}},C.prototype.layoutRow=function(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],n=t.getElement(),i=e.modules.dataTree;i.branchEl&&(i.branchEl.parentNode&&i.branchEl.parentNode.removeChild(i.branchEl),i.branchEl=!1),i.controlEl&&(i.controlEl.parentNode&&i.controlEl.parentNode.removeChild(i.controlEl),i.controlEl=!1),this.generateControlElement(e,n),e.getElement().classList.add("tabulator-tree-level-"+i.index),i.index&&(this.branchEl?(i.branchEl=this.branchEl.cloneNode(!0),n.insertBefore(i.branchEl,n.firstChild),this.table.rtl?i.branchEl.style.marginRight=(i.branchEl.offsetWidth+i.branchEl.style.marginLeft)*(i.index-1)+i.index*this.indent+"px":i.branchEl.style.marginLeft=(i.branchEl.offsetWidth+i.branchEl.style.marginRight)*(i.index-1)+i.index*this.indent+"px"):this.table.rtl?n.style.paddingRight=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-right"))+i.index*this.indent+"px":n.style.paddingLeft=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+i.index*this.indent+"px")},C.prototype.generateControlElement=function(e,t){var n=this,i=e.modules.dataTree,o=(t=t||e.getCells()[0].getElement(),i.controlEl);!1!==i.children&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.expandRow(e)})),i.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),o&&o.parentNode===t?o.parentNode.replaceChild(i.controlEl,o):t.insertBefore(i.controlEl,t.firstChild))},C.prototype.setDisplayIndex=function(e){this.displayIndex=e},C.prototype.getDisplayIndex=function(){return this.displayIndex},C.prototype.getRows=function(e){var t=this,n=[];return e.forEach(function(e,i){var o,r;n.push(e),e instanceof h&&(e.create(),o=e.modules.dataTree.children,o.index||!1===o.children||(r=t.getChildren(e),r.forEach(function(e){e.create(),n.push(e)})))}),n},C.prototype.getChildren=function(e,t){var n=this,i=e.modules.dataTree,o=[],r=[];return!1!==i.children&&(i.open||t)&&(Array.isArray(i.children)||(i.children=this.generateChildren(e)),o=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(i.children):i.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(o),o.forEach(function(e){r.push(e);var t=n.getChildren(e);t.forEach(function(e){r.push(e)})})),r},C.prototype.generateChildren=function(e){var t=this,n=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(function(i){var o=new h(i||{},t.table.rowManager);o.create(),o.modules.dataTree.index=e.modules.dataTree.index+1,o.modules.dataTree.parent=e,o.modules.dataTree.children&&(o.modules.dataTree.open=t.startOpen(o.getComponent(),o.modules.dataTree.index)),n.push(o)}),n},C.prototype.expandRow=function(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},C.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},C.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},C.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},C.prototype.getFilteredTreeChildren=function(e){var t,n=e.modules.dataTree,i=[];return n.children&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),t=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,t.forEach(function(e){e instanceof h&&i.push(e)})),i},C.prototype.rowDelete=function(e){var t,n=e.modules.dataTree.parent;n&&(t=this.findChildIndex(e,n),!1!==t&&n.data[this.field].splice(t,1),n.data[this.field].length||delete n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.table.rowManager.refreshActiveData("tree",!1,!0)},C.prototype.addTreeChildRow=function(e,t,n,i){var o=!1;"string"===typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),"undefined"!==typeof i&&(o=this.findChildIndex(i,e),!1!==o&&e.data[this.field].splice(n?o:o+1,0,t)),!1===o&&(n?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)},C.prototype.findChildIndex=function(e,t){var n=this,i=!1;return"object"==("undefined"===typeof e?"undefined":r(e))?e instanceof h?i=e.data:e instanceof d?i=e._getSelf().data:"undefined"!==typeof HTMLElement&&e instanceof HTMLElement&&t.modules.dataTree&&(i=t.modules.dataTree.children.find(function(t){return t instanceof h&&t.element===e}),i&&(i=i.data)):i="undefined"!=typeof e&&null!==e&&t.data[this.field].find(function(t){return t.data[n.table.options.index]==e}),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),-1==i&&(i=!1)),i},C.prototype.getTreeChildren=function(e,t,n){var i=this,o=e.modules.dataTree,r=[];return o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),o.children.forEach(function(e){e instanceof h&&(r.push(t?e.getComponent():e),n&&(r=r.concat(i.getTreeChildren(e,t,n))))})),r},C.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||e.row.reinitialize()},C.prototype.getChildField=function(){return this.field},C.prototype.redrawNeeded=function(e){return!!this.field&&"undefined"!==typeof e[this.field]||!!this.elementField&&"undefined"!==typeof e[this.elementField]},g.prototype.registerModule("dataTree",C);var E=function(e){this.table=e};E.prototype.download=function(e,t,n,i,o){var r=this,a=!1;function s(n,i){o?!0===o?r.triggerDownload(n,i,e,t,!0):o(n):r.triggerDownload(n,i,e,t)}if("function"==typeof e?a=e:r.downloaders[e]?a=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),a){var c=this.generateExportList(i);a.call(this.table,c,n||{},s)}},E.prototype.generateExportList=function(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDownload;return n&&!Array.isArray(n)&&(n=[n]),t.forEach(function(e){var t;"group"===e.type&&(t=e.columns[0],n&&n[e.indent]&&(t.value=n[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))}),t},E.prototype.triggerDownload=function(e,t,n,i,o){var r=document.createElement("a"),a=new Blob([e],{type:t});i=i||"Tabulator."+("function"===typeof n?"txt":n);a=this.table.options.downloadReady.call(this.table,e,a),a&&(o?window.open(window.URL.createObjectURL(a)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,i):(r.setAttribute("href",window.URL.createObjectURL(a)),r.setAttribute("download",i),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},E.prototype.commsReceived=function(e,t,n){switch(t){case"intercept":this.download(n.type,"",n.options,n.active,n.intercept);break}},E.prototype.downloaders={csv:function(e,t,n){var i=t&&t.delimiter?t.delimiter:",",o=[],a=[];e.forEach(function(e){var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(function(e,t){e&&1===e.depth&&(a[t]="undefined"==typeof e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')});break;case"row":e.columns.forEach(function(e){if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}t.push('"'+String(e.value).split('"').join('""')+'"')}}),o.push(t.join(i));break}}),a.length&&o.unshift(a.join(i)),o=o.join("\n"),t.bom&&(o="\ufeff"+o),n(o,"text/csv")},json:function(e,t,n){var i=[];e.forEach(function(e){var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach(function(e){e&&(t[e.component.getField()]=e.value)}),i.push(t);break}}),i=JSON.stringify(i,null,"\t"),n(i,"application/json")},pdf:function(e,t,n){var i=[],o=[],a={},s=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},l=t.jsPDF||{},u=t&&t.title?t.title:"";function d(e,t){var n=[];return e.columns.forEach(function(e){var i;if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}i={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(i.styles=t),n.push(i)}else n.push("")}),n}l.orientation||(l.orientation=t.orientation||"landscape"),l.unit||(l.unit="pt"),e.forEach(function(e){switch(e.type){case"header":i.push(d(e));break;case"group":o.push(d(e,s));break;case"calc":o.push(d(e,c));break;case"row":o.push(d(e));break}});var h=new jsPDF(l);t&&t.autoTable&&(a="function"===typeof t.autoTable?t.autoTable(h)||{}:t.autoTable),u&&(a.addPageContent=function(e){h.text(u,40,30)}),a.head=i,a.body=o,h.autoTable(a),t&&t.documentProcessing&&t.documentProcessing(h),n(h.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n){var i,o=this,a=t.sheetName||"Sheet1",s=XLSX.utils.book_new();function c(){var t=[],n=[],i={},o={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(function(e,t){return e+(t&&t.width?t.width:1)},0):0,r:e.length}};return e.forEach(function(e,i){var o=[];e.columns.forEach(function(e,t){e?(o.push(e.value instanceof Date||"object"!==r(e.value)?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&n.push({s:{r:i,c:t},e:{r:i+e.height-1,c:t+e.width-1}})):o.push("")}),t.push(o)}),XLSX.utils.sheet_add_aoa(i,t),i["!ref"]=XLSX.utils.encode_range(o),n.length&&(i["!merges"]=n),i}if(s.SheetNames=[],s.Sheets={},t.sheetOnly)n(c());else{if(t.sheets)for(var l in t.sheets)!0===t.sheets[l]?(s.SheetNames.push(l),s.Sheets[l]=c()):(s.SheetNames.push(l),this.modules.comms.send(t.sheets[l],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:o.active,intercept:function(e){s.Sheets[l]=e}}));else s.SheetNames.push(a),s.Sheets[a]=c();t.documentProcessing&&(s=t.documentProcessing(s)),i=XLSX.write(s,{bookType:"xlsx",bookSST:!0,type:"binary"}),n(u(i),"application/octet-stream")}function u(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}},html:function(e,t,n){this.modExists("export",!0)&&n(this.modules.export.genereateHTMLTable(e),"text/html")}},g.prototype.registerModule("download",E);var A=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};A.prototype.initializeColumn=function(e){var t=this,n={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(r(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.editor]?n.editor=t.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":n.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!==typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.formatter]?n.editor=t.editors[e.definition.formatter]:n.editor=t.editors["input"]):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter));break}n.editor&&(e.modules.edit=n)},A.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},A.prototype.clearEditor=function(e){var t,n=this.currentCell;if(this.invalidEdit=!1,n){this.currentCell=!1,t=n.getElement(),e?n.validate():t.classList.remove("tabulator-validation-fail"),t.classList.remove("tabulator-editing");while(t.firstChild)t.removeChild(t.firstChild);n.row.getElement().classList.remove("tabulator-row-editing")}},A.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},A.prototype.bindEditor=function(e){var t=this,n=e.getElement(!0);n.setAttribute("tabindex",0),n.addEventListener("click",function(e){n.classList.contains("tabulator-editing")||n.focus({preventScroll:!0})}),n.addEventListener("mousedown",function(e){2===e.button?e.preventDefault():t.mouseClick=!0}),n.addEventListener("focus",function(n){t.recursionBlock||t.edit(e,n,!1)})},A.prototype.focusCellNoEvent=function(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},A.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},A.prototype.focusScrollAdjust=function(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,i=e.row.getElement();i.offsetTop;i.offsetTopn&&(this.table.rowManager.element.scrollTop+=i.offsetTop+i.offsetHeight-n);var o=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,a=e.getElement();a.offsetLeft;this.table.modExists("frozenColumns")&&(o+=parseInt(this.table.modules.frozenColumns.leftMargin),r-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(o-=parseInt(this.table.vdomHoz.vDomPadLeft),r-=parseInt(this.table.vdomHoz.vDomPadLeft)),a.offsetLeftr&&(this.table.rowManager.element.scrollLeft+=a.offsetLeft+a.offsetWidth-r)}},A.prototype.edit=function(e,t,n){var i,o,a,s=this,c=!0,l=function(){},u=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,u.blur(),!1;switch(t&&t.stopPropagation(),r(e.column.modules.edit.check)){case"function":c=e.column.modules.edit.check(e.getComponent());break;case"boolean":c=e.column.modules.edit.check;break}if(c||n){if(s.cancelEdit(),s.currentCell=e,this.focusScrollAdjust(e),o=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,o)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,o),s.table.options.cellEditing.call(this.table,o),a="function"===typeof e.column.modules.edit.params?e.column.modules.edit.params(o):e.column.modules.edit.params,i=e.column.modules.edit.editor.call(s,o,m,p,f,a),!1===i)return u.blur(),!1;if(!(i instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",i),u.blur(),!1;u.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");while(u.firstChild)u.removeChild(u.firstChild);u.appendChild(i),l();for(var d=u.children,h=0;h46){if(a>=n.length)return t.preventDefault(),t.stopPropagation(),!1,!1;switch(n[a]){case i:if(s.toUpperCase()==s.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1,!1;break;case o:if(isNaN(s))return t.preventDefault(),t.stopPropagation(),!1,!1;break;case r:break;default:if(s!==n[a])return t.preventDefault(),t.stopPropagation(),!1,!1}!0}}),e.addEventListener("keyup",function(n){n.keyCode>46&&t.maskAutoFill&&a(e.value.length)}),e.placeholder||(e.placeholder=n),t.maskAutoFill&&a(e.value.length)},A.prototype.getEditedCells=function(){var e=[];return this.editedCells.forEach(function(t){e.push(t.getComponent())}),e},A.prototype.clearEdited=function(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,e.modules.validate&&(e.modules.validate.invalid=!1)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)},A.prototype.editors={input:function(e,t,n,i,o){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type",o.search?"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+o.elementAttributes["+"+c])):s.setAttribute(c,o.elementAttributes[c]);function l(e){(null===a||"undefined"===typeof a)&&""!==s.value||s.value!==a?n(s.value)&&(a=s.value):i()}return s.value="undefined"!==typeof a?a:"",t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("change",l),s.addEventListener("blur",l),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l(e);break;case 27:i();break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(s,o),s},textarea:function(e,t,n,i,o){var a=e.getValue(),s=o.verticalNavigation||"hybrid",c=String(null!==a&&"undefined"!==typeof a?a:""),l=((c.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),u=0;if(l.style.display="block",l.style.padding="2px",l.style.height="100%",l.style.width="100%",l.style.boxSizing="border-box",l.style.whiteSpace="pre-wrap",l.style.resize="none",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+o.elementAttributes["+"+d])):l.setAttribute(d,o.elementAttributes[d]);function h(t){(null===a||"undefined"===typeof a)&&""!==l.value||l.value!==a?(n(l.value)&&(a=l.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):i()}return l.value=c,t(function(){l.focus({preventScroll:!0}),l.style.height="100%",l.scrollHeight,l.style.height=l.scrollHeight+"px",e.getRow().normalizeHeight()}),l.addEventListener("change",h),l.addEventListener("blur",h),l.addEventListener("keyup",function(){l.style.height="";var t=l.scrollHeight;l.style.height=t+"px",t!=u&&(u=t,e.getRow().normalizeHeight())}),l.addEventListener("keydown",function(e){switch(e.keyCode){case 27:i();break;case 38:("editor"==s||"hybrid"==s&&l.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==s||"hybrid"==s&&l.selectionStart!==l.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(l,o),l},number:function(e,t,n,i,o){var a=e.getValue(),s=o.verticalNavigation||"editor",c=document.createElement("input");if(c.setAttribute("type","number"),"undefined"!=typeof o.max&&c.setAttribute("max",o.max),"undefined"!=typeof o.min&&c.setAttribute("min",o.min),"undefined"!=typeof o.step&&c.setAttribute("step",o.step),c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var l in o.elementAttributes)"+"==l.charAt(0)?(l=l.slice(1),c.setAttribute(l,c.getAttribute(l)+o.elementAttributes["+"+l])):c.setAttribute(l,o.elementAttributes[l]);c.value=a;var u=function(e){d()};function d(){var e=c.value;isNaN(e)||""===e||(e=Number(e)),e!==a?n(e)&&(a=e):i()}return t(function(){c.removeEventListener("blur",u),c.focus({preventScroll:!0}),c.style.height="100%",c.addEventListener("blur",u)}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(c,o),c},range:function(e,t,n,i,o){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),"undefined"!=typeof o.max&&s.setAttribute("max",o.max),"undefined"!=typeof o.min&&s.setAttribute("min",o.min),"undefined"!=typeof o.step&&s.setAttribute("step",o.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+o.elementAttributes["+"+c])):s.setAttribute(c,o.elementAttributes[c]);function l(){var e=s.value;isNaN(e)||""===e||(e=Number(e)),e!=a?n(e)&&(a=e):i()}return s.value=a,t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("blur",function(e){l()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l();break;case 27:i();break}}),s},select:function(e,t,n,i,o){var a=this,s=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?Array.isArray(l)?l:[l]:"undefined"!==typeof o.defaultValue?o.defaultValue:[],h=document.createElement("input"),p=document.createElement("div"),f=o.multiselect,m=[],v={},_=[],b=[],y=!0,M=!1,w="",L=null;function S(t){var n,i={},o=s.table.getData();return n=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?o.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}):console.warn("unable to find matching column to create select lookup list:",t),Object.keys(i)}function C(t,n){var i=[],a=[];function s(e){e={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1};return n.indexOf(e.value)>-1&&T(e),i.push(e),a.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===("undefined"===typeof e?"undefined":r(e))?e.options?(t={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1},a.push(t),e.options.forEach(function(e){s(e)})):s(e):(t={label:e,value:e,element:!1},n.indexOf(t.value)>-1&&T(t),i.push(t),a.push(t))});else for(var c in t){var l={label:t[c],value:c,element:!1};n.indexOf(l.value)>-1&&T(l),i.push(l),a.push(l)}o.sortValuesList&&(i.sort(function(e,t){return e.labelt.label?1:0}),a.sort(function(e,t){return e.labelt.label?1:0}),"asc"!==o.sortValuesList&&(i.reverse(),a.reverse())),m=i,_=a,E()}function E(){while(p.firstChild)p.removeChild(p.firstChild);_.forEach(function(t){var n=t.element;if(!n){if(n=document.createElement("div"),t.label=o.listItemFormatter?o.listItemFormatter(t.value,t.label,e,n,t.itemParams):t.label,t.group?(n.classList.add("tabulator-edit-select-list-group"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label):(n.classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label,n.addEventListener("click",function(){M=!0,setTimeout(function(){M=!1},10),f?(k(t),h.focus()):x(t)}),b.indexOf(t)>-1&&n.classList.add("active")),t.elementAttributes&&"object"==r(t.elementAttributes))for(var i in t.elementAttributes)"+"==i.charAt(0)?(i=i.slice(1),n.setAttribute(i,h.getAttribute(i)+t.elementAttributes["+"+i])):n.setAttribute(i,t.elementAttributes[i]);n.addEventListener("mousedown",function(){y=!1,setTimeout(function(){y=!0},10)}),t.element=n}p.appendChild(n)})}function A(e,t){!f&&v&&v.element&&v.element.classList.remove("active"),v&&v.element&&v.element.classList.remove("focused"),v=e,e.element&&(e.element.classList.add("focused"),t&&e.element.classList.add("active")),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function T(e){var t=b.indexOf(e);-1==t&&(b.push(e),A(e,!0)),R()}function O(e){var t=b[e];e>-1&&(b.splice(e,1),t.element&&t.element.classList.remove("active"))}function k(e){e||(e=v);var t=b.indexOf(e);t>-1?O(t):(!0!==f&&b.length>=f&&O(0),T(e)),R()}function x(e){I(),e||(e=v),e&&(h.value=e.label,n(e.value)),d=[e.value]}function D(e){e||I();var t=[];b.forEach(function(e){t.push(e.value)}),d=t,n(t)}function R(){var e=[];b.forEach(function(t){e.push(t.label)}),h.value=e.join(", "),!1===s.currentCell&&D(!0)}function z(){for(var e=b.length,t=0;t0&&A(m[t-1],!f));break;case 40:t=m.indexOf(v),("editor"==u||"hybrid"==u&&t=38&&e.keyCode<=90&&j(e.keyCode)}}),h.addEventListener("blur",function(e){y&&(f?D():P())}),h.addEventListener("focus",function(e){M||N()}),p=document.createElement("div"),p.classList.add("tabulator-edit-select-list"),t(function(){h.style.height="100%",h.focus({preventScroll:!0})}),setTimeout(function(){a.table.rowManager.element.addEventListener("scroll",P)},10),h},autocomplete:function(e,t,n,i,o){var a=this,s=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?l:"undefined"!==typeof o.defaultValue?o.defaultValue:"",h=document.createElement("input"),p=document.createElement("div"),f=[],m=!1,v=!0,_=!1;if(h.setAttribute("type","search"),h.style.padding="4px",h.style.width="100%",h.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var b in o.elementAttributes)"+"==b.charAt(0)?(b=b.slice(1),h.setAttribute(b,h.getAttribute(b)+o.elementAttributes["+"+b])):h.setAttribute(b,o.elementAttributes[b]);function y(){!0===o.values?_=M():"string"===typeof o.values&&(_=M(o.values))}function M(t){var n,i={},r=s.table.getData();return n=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?(r.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}),i=o.sortValuesList?"asc"==o.sortValuesList?Object.keys(i).sort():Object.keys(i).sort().reverse():Object.keys(i)):console.warn("unable to find matching column to create autocomplete lookup list:",t),i}function w(e,t){var n,i,r=[];n=_||(o.values||[]),o.searchFunc?(r=o.searchFunc(e,n),r instanceof Promise?(L("undefined"!==typeof o.searchingPlaceholder?o.searchingPlaceholder:"Searching..."),r.then(function(e){E(S(e),t)}).catch(function(e){console.err("error in autocomplete search promise:",e)})):E(S(r),t)):(i=S(n),""===e?o.showListOnEmpty&&(r=i):i.forEach(function(t){null===t.value&&"undefined"===typeof t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&r.push(t)}),E(r,t))}function L(e){var t=document.createElement("div");C(),!1!==e&&(t.classList.add("tabulator-edit-select-list-notice"),t.tabIndex=0,e instanceof Node?t.appendChild(e):t.innerHTML=e,p.appendChild(t))}function S(e){var t=[];if(Array.isArray(e))e.forEach(function(e){var n={};"object"===("undefined"===typeof e?"undefined":r(e))?(n.title=o.listItemFormatter?o.listItemFormatter(e.value,e.label):e.label,n.value=e.value):(n.title=o.listItemFormatter?o.listItemFormatter(e,e):e,n.value=e),t.push(n)});else for(var n in e){var i={title:o.listItemFormatter?o.listItemFormatter(n,e[n]):e[n],value:n};t.push(i)}return t}function C(){while(p.firstChild)p.removeChild(p.firstChild)}function E(e,t){e.length?A(e,t):o.emptyPlaceholder&&L(o.emptyPlaceholder)}function A(e,t){var n=!1;C(),f=e,f.forEach(function(e){var i=e.element;i||(i=document.createElement("div"),i.classList.add("tabulator-edit-select-list-item"),i.tabIndex=0,i.innerHTML=e.title,i.addEventListener("click",function(t){k(e),T()}),i.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),e.element=i,t&&e.value==l&&(h.value=e.title,e.element.classList.add("active"),n=!0),e===m&&(e.element.classList.add("active"),n=!0)),p.appendChild(i)}),n||k(!1)}function T(){x(),m?l!==m.value?(l=m.value,h.value=m.title,n(m.value)):i():o.freetext?(l=h.value,n(h.value)):o.allowEmpty&&""===h.value?(l=h.value,n(h.value)):i()}function O(){if(!p.parentNode){console.log("show",d);while(p.firstChild)p.removeChild(p.firstChild);var e=g.prototype.helpers.elOffset(c);p.style.minWidth=c.offsetWidth+"px",p.style.top=e.top+c.offsetHeight+"px",p.style.left=e.left+"px",document.body.appendChild(p)}}function k(e,t){m&&m.element&&m.element.classList.remove("active"),m=e,e&&e.element&&e.element.classList.add("active"),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function x(){p.parentNode&&p.parentNode.removeChild(p),R()}function D(){x(),i()}function R(){s.table.rowManager.element.removeEventListener("scroll",D)}return p.classList.add("tabulator-edit-select-list"),p.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),h.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),k(t>0&&f[t-1]));break;case 40:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t '):("ie"==a.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML=' ')})}function m(e){var t=document.createElement("span"),i=p.cloneNode(!0);d.push(i),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),f(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),n(e),s.blur()}),t.appendChild(i),h.appendChild(t)}function g(e){c=e,f(e)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOverflow="ellipsis",h.style.verticalAlign="middle",h.style.display="inline-block",h.style.padding="4px",p.setAttribute("width",u),p.setAttribute("height",u),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",o.elementAttributes&&"object"==r(o.elementAttributes))for(var v in o.elementAttributes)"+"==v.charAt(0)?(v=v.slice(1),h.setAttribute(v,h.getAttribute(v)+o.elementAttributes["+"+v])):h.setAttribute(v,o.elementAttributes[v]);for(var _=1;_<=l;_++)m(_);return c=Math.min(parseInt(c),l),f(c),h.addEventListener("mousemove",function(e){f(0)}),h.addEventListener("click",function(e){n(0)}),s.addEventListener("blur",function(e){i()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 39:g(c+1);break;case 37:g(c-1);break;case 13:n(c);break;case 27:i();break}}),h},progress:function(e,t,n,i,o){var a,s,c=e.getElement(),l="undefined"===typeof o.max?c.getElementsByTagName("div")[0].getAttribute("max")||100:o.max,u="undefined"===typeof o.min?c.getElementsByTagName("div")[0].getAttribute("min")||0:o.min,d=(l-u)/100,h=e.getValue()||0,p=document.createElement("div"),f=document.createElement("div");function m(){var e=window.getComputedStyle(c,null),t=d*Math.round(f.offsetWidth/((c.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+u;n(t),c.setAttribute("aria-valuenow",t),c.setAttribute("aria-label",h)}if(p.style.position="absolute",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.width="5px",p.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",o.elementAttributes&&"object"==r(o.elementAttributes))for(var g in o.elementAttributes)"+"==g.charAt(0)?(g=g.slice(1),f.setAttribute(g,f.getAttribute(g)+o.elementAttributes["+"+g])):f.setAttribute(g,o.elementAttributes[g]);return c.style.padding="4px 4px",h=Math.min(parseFloat(h),l),h=Math.max(parseFloat(h),u),h=Math.round((h-u)/d),f.style.width=h+"%",c.setAttribute("aria-valuemin",u),c.setAttribute("aria-valuemax",l),f.appendChild(p),p.addEventListener("mousedown",function(e){a=e.screenX,s=f.offsetWidth}),p.addEventListener("mouseover",function(){p.style.cursor="ew-resize"}),c.addEventListener("mousemove",function(e){a&&(f.style.width=s+e.screenX-a+"px")}),c.addEventListener("mouseup",function(e){a&&(e.stopPropagation(),e.stopImmediatePropagation(),a=!1,s=!1,m())}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 39:e.preventDefault(),f.style.width=f.clientWidth+c.clientWidth/100+"px";break;case 37:e.preventDefault(),f.style.width=f.clientWidth-c.clientWidth/100+"px";break;case 9:case 13:m();break;case 27:i();break}}),c.addEventListener("blur",function(){i()}),f},tickCross:function(e,t,n,i,o){var a=e.getValue(),s=document.createElement("input"),c=o.tristate,l="undefined"===typeof o.indeterminateValue?null:o.indeterminateValue,u=!1;if(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),s.setAttribute(d,s.getAttribute(d)+o.elementAttributes["+"+d])):s.setAttribute(d,o.elementAttributes[d]);function h(e){return c?e?u?l:s.checked:s.checked&&!u?(s.checked=!1,s.indeterminate=!0,u=!0,l):(u=!1,s.checked):s.checked}return s.value=a,!c||"undefined"!==typeof a&&a!==l&&""!==a||(u=!0,s.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){s.focus({preventScroll:!0})}),s.checked=!0===a||"true"===a||"True"===a||1===a,t(function(){s.focus()}),s.addEventListener("change",function(e){n(h())}),s.addEventListener("blur",function(e){n(h(!0))}),s.addEventListener("keydown",function(e){13==e.keyCode&&n(h()),27==e.keyCode&&i()}),s}},g.prototype.registerModule("edit",A);var T=function(e,t,n,i){this.type=e,this.columns=t,this.component=n||!1,this.indent=i||0},O=function(e,t,n,i,o){this.value=e,this.component=t||!1,this.width=n,this.height=i,this.depth=o},k=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};k.prototype.generateExportList=function(e,t,n,i){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=i;var o=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],r=this.bodyToExportRows(this.rowLookup(n));return o.concat(r)},k.prototype.genereateTable=function(e,t,n,i){var o=this.generateExportList(e,t,n,i);return this.genereateTableElement(o)},k.prototype.rowLookup=function(e){var t=this,n=[];if("function"==typeof e)e.call(this.table).forEach(function(e){e=t.table.rowManager.findRow(e),e&&n.push(e)});else switch(e){case!0:case"visible":n=this.table.rowManager.getVisibleRows(!0);break;case"all":n=this.table.rowManager.rows;break;case"selected":n=this.table.modules.selectRow.selectedRows;break;case"active":default:n=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],n)},k.prototype.generateColumnGroupHeaders=function(){var e=this,t=[],n=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex;return n.forEach(function(n){var i=e.processColumnGroup(n);i&&t.push(i)}),t},k.prototype.processColumnGroup=function(e){var t=this,n=e.columns,i=0,o=e.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||e.definition.title,r={title:o,column:e,depth:1};if(n.length){if(r.subGroups=[],r.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n&&(r.width+=n.width,r.subGroups.push(n),n.depth>i&&(i=n.depth))}),r.depth+=i,!r.width)return!1}else{if(!this.columnVisCheck(e))return!1;r.width=1}return r},k.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},k.prototype.headersToExportRows=function(e){var t=[],n=0,i=[];function o(e,i){var r=n-i;if("undefined"===typeof t[i]&&(t[i]=[]),e.height=e.subGroups?1:r-e.depth+1,t[i].push(e),e.height>1)for(var a=1;a1)for(var s=1;sn&&(n=e.depth)}),e.forEach(function(e){o(e,0)}),t.forEach(function(e){var t=[];e.forEach(function(e){e?t.push(new O(e.title,e.column.getComponent(),e.width,e.height,e.depth)):t.push(null)}),i.push(new T("header",t))}),i},k.prototype.bodyToExportRows=function(e){var t=this,n=[],i=[];return this.table.columnManager.columnsByIndex.forEach(function(e){t.columnVisCheck(e)&&n.push(e.getComponent())}),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(function(e){switch(e.type){case"group":return!1!==t.config.rowGroups;case"calc":return!1!==t.config.columnCalcs;case"row":return!(t.table.options.dataTree&&!1===t.config.dataTree&&e.modules.dataTree.parent)}return!0}),e.forEach(function(e,o){var r=e.getData(t.colVisProp),a=[],s=0;switch(e.type){case"group":s=e.level,a.push(new O(e.key,e.getComponent(),n.length,1));break;case"calc":case"row":n.forEach(function(e){a.push(new O(e._column.getFieldValue(r),e,1,1))}),t.table.options.dataTree&&!1!==t.config.dataTree&&(s=e.modules.dataTree.index);break}i.push(new T(e.type,a,e.getComponent(),s))}),i},k.prototype.genereateTableElement=function(e){var t=this,n=document.createElement("table"),i=document.createElement("thead"),o=document.createElement("tbody"),r=this.lookupTableStyles(),a=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s={};return s.rowFormatter=null!==a?a:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(s.treeElementField=this.table.modules.dataTree.elementField),s.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s.groupHeader&&!Array.isArray(s.groupHeader)&&(s.groupHeader=[s.groupHeader]),n.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(function(e,n){switch(e.type){case"header":i.appendChild(t.genereateHeaderElement(e,s,r));break;case"group":o.appendChild(t.genereateGroupElement(e,s,r));break;case"calc":o.appendChild(t.genereateCalcElement(e,s,r));break;case"row":var a=t.genereateRowElement(e,s,r);t.mapElementStyles(n%2&&r.evenRow?r.evenRow:r.oddRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),o.appendChild(a);break}}),i.innerHTML&&n.appendChild(i),n.appendChild(o),this.mapElementStyles(this.table.element,n,["border-top","border-left","border-right","border-bottom"]),n},k.prototype.lookupTableStyles=function(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e},k.prototype.genereateHeaderElement=function(e,t,n){var i=this,o=document.createElement("tr");return e.columns.forEach(function(e){if(e){var t=document.createElement("th"),n=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,i.cloneTableStyle&&(t.style.boxSizing="border-box"),n.forEach(function(e){t.classList.add(e)}),i.mapElementStyles(e.component.getElement(),t,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),i.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?i.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&i.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]),o.appendChild(t)}}),o},k.prototype.genereateGroupElement=function(e,t,n){var i=document.createElement("tr"),o=document.createElement("td"),r=e.columns[0];return i.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1===t.groupHeader?r.value=r.value:r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component),o.colSpan=r.width,o.innerHTML=r.value,i.classList.add("tabulator-print-table-group"),i.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&i.classList.add("tabulator-group-visible"),this.mapElementStyles(n.firstGroup,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(n.firstGroup,o,["padding-top","padding-left","padding-right","padding-bottom"]),i.appendChild(o),i},k.prototype.genereateCalcElement=function(e,t,n){var i=this.genereateRowElement(e,t,n);return i.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(n.calcRow,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),i},k.prototype.genereateRowElement=function(e,t,n){var o=this,a=document.createElement("tr");return a.classList.add("tabulator-print-table-row"),e.columns.forEach(function(s){if(s){var c=document.createElement("td"),l=s.component._column,u=s.value,d={modules:{},getValue:function(){return u},getField:function(){return l.definition.field},getElement:function(){return c},getColumn:function(){return l.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getComponent:function(){return d},column:l},h=l.definition.cssClass?l.definition.cssClass.split(" "):[];if(h.forEach(function(e){c.classList.add(e)}),o.table.modExists("format")&&!1!==o.config.formatCells)u=o.table.modules.format.formatExportValue(d,o.colVisProp);else switch("undefined"===typeof u?"undefined":r(u)){case"object":u=JSON.stringify(u);break;case"undefined":case"null":u="";break;default:u=u}u instanceof Node?c.appendChild(u):c.innerHTML=u,n.firstCell&&(o.mapElementStyles(n.firstCell,c,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),l.definition.align&&(c.style.textAlign=l.definition.align)),o.table.options.dataTree&&!1!==o.config.dataTree&&(t.treeElementField&&t.treeElementField==l.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&c.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),c.firstChild),e.component._row.modules.dataTree.branchEl&&c.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),c.firstChild)),a.appendChild(c),d.modules.format&&d.modules.format.renderedCallback&&d.modules.format.renderedCallback(),t.rowFormatter&&!1!==o.config.formatCells&&t.rowFormatter(e.component)}}),a},k.prototype.genereateHTMLTable=function(e){var t=document.createElement("div");return t.appendChild(this.genereateTableElement(e)),t.innerHTML},k.prototype.getHtml=function(e,t,n,i){var o=this.generateExportList(n||this.table.options.htmlOutputConfig,t,e,i||"htmlOutput");return this.genereateHTMLTable(o)},k.prototype.mapElementStyles=function(e,t,n){if(this.cloneTableStyle&&e&&t){var i={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var o=window.getComputedStyle(e);n.forEach(function(e){t.style[i[e]]=o.getPropertyValue(e)})}}},g.prototype.registerModule("export",k);var x=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};x.prototype.initializeColumn=function(e,t){var n,i=this,o=e.getField();function a(t){var a,s="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",c="",l="";if("undefined"===typeof e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete i.headerFilters[o];else{switch(e.modules.filter.value=t,r(e.definition.headerFilterFunc)){case"string":i.filters[e.definition.headerFilterFunc]?(c=e.definition.headerFilterFunc,a=function(n){var o=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(n);return o="function"===typeof o?o(t,r,n):o,i.filters[e.definition.headerFilterFunc](t,r,n,o)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":a=function(n){var i=e.definition.headerFilterFuncParams||{},o=e.getFieldValue(n);return i="function"===typeof i?i(t,o,n):i,e.definition.headerFilterFunc(t,o,n,i)},c=a;break}if(!a)switch(s){case"partial":a=function(n){var i=e.getFieldValue(n);return"undefined"!==typeof i&&null!==i&&String(i).toLowerCase().indexOf(String(t).toLowerCase())>-1},c="like";break;default:a=function(n){return e.getFieldValue(n)==t},c="="}i.headerFilters[o]={value:t,func:a,type:c,params:n||{}}}l=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==l&&(i.prevHeaderFilterChangeCheck=l,i.changed=!0,i.table.rowManager.filterRefresh())}return!0}e.modules.filter={success:a,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},x.prototype.generateHeaderFilterElement=function(e,t,n){var i,o,a,s,c,l,u,d=this,h=this,p=e.modules.filter.success,f=e.getField();function m(){}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),f){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e&&0!==e},i=document.createElement("div"),i.classList.add("tabulator-header-filter"),r(e.definition.headerFilter)){case"string":h.table.modules.edit.editors[e.definition.headerFilter]?(o=h.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":o=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?o=e.modules.edit.editor:e.definition.formatter&&h.table.modules.edit.editors[e.definition.formatter]?(o=h.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):o=h.table.modules.edit.editors["input"];break}if(o){if(s={getValue:function(){return"undefined"!==typeof t?t:""},getField:function(){return e.definition.field},getElement:function(){return i},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},u=e.definition.headerFilterParams||{},u="function"===typeof u?u.call(h.table):u,a=o.call(this.table.modules.edit,s,function(){},p,m,u),!a)return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor returned a value of false");if(!(a instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor should return an instance of Node, the editor returned:",a);f?h.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){a.setAttribute("placeholder","undefined"!==typeof e&&e?e:h.table.modules.localize.getText("headerFilters|default"))}):h.table.modules.localize.bind("headerFilters|default",function(e){a.setAttribute("placeholder","undefined"!==typeof h.column.definition.headerFilterPlaceholder&&h.column.definition.headerFilterPlaceholder?h.column.definition.headerFilterPlaceholder:e)}),a.addEventListener("click",function(e){e.stopPropagation(),a.focus()}),a.addEventListener("focus",function(e){var t=d.table.columnManager.element.scrollLeft;t!==d.table.rowManager.element.scrollLeft&&(d.table.rowManager.scrollHorizontal(t),d.table.columnManager.scrollHorizontal(t))}),c=!1,l=function(e){c&&clearTimeout(c),c=setTimeout(function(){p(a.value)},h.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=a,e.modules.filter.attrType=a.hasAttribute("type")?a.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=a.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(a.addEventListener("keyup",l),a.addEventListener("search",l),"number"==e.modules.filter.attrType&&a.addEventListener("change",function(e){p(a.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&a.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||a.addEventListener("mousedown",function(e){e.stopPropagation()})),i.appendChild(a),e.contentElement.appendChild(i),n||h.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},x.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})},x.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})},x.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},x.prototype.getHeaderFilterValue=function(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())},x.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},x.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},x.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},x.prototype.setFilter=function(e,t,n,i){var o=this;o.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),o.addFilter(e)},x.prototype.addFilter=function(e,t,n,i){var o=this;Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),e.forEach(function(e){e=o.findFilter(e),e&&(o.filterList.push(e),o.changed=!0)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},x.prototype.findFilter=function(e){var t,n=this;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return"function"==typeof e.field?i=function(t){return e.field(t,e.type||{})}:n.filters[e.type]?(t=n.table.columnManager.getColumnByField(e.field),i=t?function(i){return n.filters[e.type](e.value,t.getFieldValue(i),i,e.params||{})}:function(t){return n.filters[e.type](e.value,t[e.field],t,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,!!e.func&&e},x.prototype.findSubFilters=function(e){var t=this,n=[];return e.forEach(function(e){e=t.findFilter(e),e&&n.push(e)}),!!n.length&&n},x.prototype.getFilters=function(e,t){var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),n=n.concat(this.filtersToArray(this.filterList,t)),n},x.prototype.filtersToArray=function(e,t){var n=this,i=[];return e.forEach(function(e){var o;Array.isArray(e)?i.push(n.filtersToArray(e,t)):(o={field:e.field,type:e.type,value:e.value},t&&"function"==typeof o.type&&(o.type="function"),i.push(o))}),i},x.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},x.prototype.removeFilter=function(e,t,n){var i=this;Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach(function(e){var t=-1;t="object"==r(e.field)?i.filterList.findIndex(function(t){return e===t}):i.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}),t>-1?(i.filterList.splice(t,1),i.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},x.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},x.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},e.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(function(t){"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,e.reloadHeaderFilter(t)}),this.changed=!0},x.prototype.search=function(e,t,n,i){var o=this,r=[],a=[];return Array.isArray(t)||(t=[{field:t,type:n,value:i}]),t.forEach(function(e){e=o.findFilter(e),e&&a.push(e)}),this.table.rowManager.rows.forEach(function(t){var n=!0;a.forEach(function(e){o.filterRecurse(e,t.getData())||(n=!1)}),n&&r.push("data"===e?t.getData("data"):t.getComponent())}),r},x.prototype.filter=function(e,t){var n=this,i=[],o=[];return n.table.options.dataFiltering&&n.table.options.dataFiltering.call(n.table,n.getFilters()),n.table.options.ajaxFiltering||!n.filterList.length&&!Object.keys(n.headerFilters).length?i=e.slice(0):e.forEach(function(e){n.filterRow(e)&&i.push(e)}),n.table.options.dataFiltered&&(i.forEach(function(e){o.push(e.getComponent())}),n.table.options.dataFiltered.call(n.table,n.getFilters(),o)),i},x.prototype.filterRow=function(e,t){var n=this,i=!0,o=e.getData();for(var r in n.filterList.forEach(function(e){n.filterRecurse(e,o)||(i=!1)}),n.headerFilters)n.headerFilters[r].func(o)||(i=!1);return i},x.prototype.filterRecurse=function(e,t){var n=this,i=!1;return Array.isArray(e)?e.forEach(function(e){n.filterRecurse(e,t)&&(i=!0)}):i=e.func(t),i},x.prototype.filters={"=":function(e,t,n,i){return t==e},"<":function(e,t,n,i){return t":function(e,t,n,i){return t>e},">=":function(e,t,n,i){return t>=e},"!=":function(e,t,n,i){return t!=e},regex:function(e,t,n,i){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,n,i){var o=e.toLowerCase().split("undefined"===typeof i.separator?" ":i.separator),r=String(null===t||"undefined"===typeof t?"":t).toLowerCase(),a=[];return o.forEach(function(e){r.includes(e)&&a.push(!0)}),i.matchAll?a.length===o.length:!!a.length},starts:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,n,i){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},g.prototype.registerModule("filter",x);var D=function(e){this.table=e};D.prototype.initializeColumn=function(e){e.modules.format=this.lookupFormatter(e,""),"undefined"!==typeof e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Print")),"undefined"!==typeof e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter(e,"Clipboard")),"undefined"!==typeof e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatter(e,"HtmlOutput"))},D.prototype.lookupFormatter=function(e,t){var n={params:e.definition["formatter"+t+"Params"]||{}},i=e.definition["formatter"+t];switch("undefined"===typeof i?"undefined":r(i)){case"string":"tick"===i&&(i="tickCross","undefined"==typeof n.params.crossElement&&(n.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[i]?n.formatter=this.formatters[i]:(console.warn("Formatter Error - No such formatter found: ",i),n.formatter=this.formatters.plaintext);break;case"function":n.formatter=i;break;default:n.formatter=this.formatters.plaintext;break}return n},D.prototype.cellRendered=function(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)},D.prototype.formatValue=function(e){var t=e.getComponent(),n="function"===typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;function i(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,n,i)},D.prototype.formatExportValue=function(e,t){var n,i=e.column.modules.format[t];if(i){var o=function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1};return n="function"===typeof i.params?i.params(component):i.params,i.formatter.call(this,e.getComponent(),n,o)}return this.formatValue(e)},D.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},D.prototype.emptyToSpace=function(e){return null===e||"undefined"===typeof e||""===e?" ":e},D.prototype.getFormatter=function(e){switch("undefined"===typeof e?"undefined":r(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext;break}return e},D.prototype.formatters={plaintext:function(e,t,n){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var i,o,r,a,s=parseFloat(e.getValue()),c=t.decimal||".",l=t.thousand||",",u=t.symbol||"",d=!!t.symbolAfter,h="undefined"!==typeof t.precision?t.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));i=!1!==h?s.toFixed(h):s,i=String(i).split("."),o=i[0],r=i.length>1?c+i[1]:"",a=/(\d+)(\d{3})/;while(a.test(o))o=o.replace(a,"$1"+l+"$2");return d?o+r+u:u+o+r},link:function(e,t,n){var i,o=e.getValue(),a=t.urlPrefix||"",s=t.download,c=o,l=document.createElement("a");if(t.labelField&&(i=e.getData(),c=i[t.labelField]),t.label)switch(r(t.label)){case"string":c=t.label;break;case"function":c=t.label(e);break}if(c){if(t.urlField&&(i=e.getData(),o=i[t.urlField]),t.url)switch(r(t.url)){case"string":o=t.url;break;case"function":o=t.url(e);break}return l.setAttribute("href",a+o),t.target&&l.setAttribute("target",t.target),t.download&&(s="function"==typeof s?s(e):!0===s?"":s,l.setAttribute("download",s)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(c)),l}return" "},image:function(e,t,n){var i=document.createElement("img"),o=e.getValue();switch(t.urlPrefix&&(o=t.urlPrefix+e.getValue()),t.urlSuffix&&(o+=t.urlSuffix),i.setAttribute("src",o),r(t.height)){case"number":i.style.height=t.height+"px";break;case"string":i.style.height=t.height;break}switch(r(t.width)){case"number":i.style.width=t.width+"px";break;case"string":i.style.width=t.width;break}return i.addEventListener("load",function(){e.getRow().normalizeHeight()}),i},tickCross:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t.allowEmpty,a=t.allowTruthy,s="undefined"!==typeof t.tickElement?t.tickElement:' ',c="undefined"!==typeof t.crossElement?t.crossElement:' ';return a&&i||!0===i||"true"===i||"True"===i||1===i||"1"===i?(o.setAttribute("aria-checked",!0),s||""):!r||"null"!==i&&""!==i&&null!==i&&"undefined"!==typeof i?(o.setAttribute("aria-checked",!1),c||""):(o.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o=t.outputFormat||"DD/MM/YYYY hh:mm:ss",r="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",a=e.getValue(),s=moment(a,i);return s.isValid()?t.timezone?s.tz(t.timezone).format(o):s.format(o):!0===r?a:"function"===typeof r?r(a):r},datetimediff:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",r="undefined"!==typeof t.suffix&&t.suffix,a="undefined"!==typeof t.unit?t.unit:void 0,s="undefined"!==typeof t.humanize&&t.humanize,c="undefined"!==typeof t.date?t.date:moment(),l=e.getValue(),u=moment(l,i);return u.isValid()?s?moment.duration(u.diff(c)).humanize(r):u.diff(c,a)+(r?" "+r:""):!0===o?l:"function"===typeof o?o(l):o},lookup:function(e,t,n){var i=e.getValue();return"undefined"===typeof t[i]?(console.warn("Missing display value for "+i),i):t[i]},star:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t&&t.stars?t.stars:5,a=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=' ',l=' ';a.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,r));for(var u=1;u<=r;u++){var d=s.cloneNode(!0);d.innerHTML=u<=i?c:l,a.appendChild(d)}return o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.setAttribute("aria-label",i),a},traffic:function(e,t,n){var i,o,a=this.sanitizeHTML(e.getValue())||0,s=document.createElement("span"),c=t&&t.max?t.max:100,l=t&&t.min?t.min:0,u=t&&"undefined"!==typeof t.color?t.color:["red","orange","green"],d="#666666";if(!isNaN(a)&&"undefined"!==typeof e.getValue()){switch(s.classList.add("tabulator-traffic-light"),o=parseFloat(a)<=c?parseFloat(a):c,o=parseFloat(o)>=l?parseFloat(o):l,i=(c-l)/100,o=Math.round((o-l)/i),"undefined"===typeof u?"undefined":r(u)){case"string":d=u;break;case"function":d=u(a);break;case"object":if(Array.isArray(u)){var h=100/u.length,p=Math.floor(o/h);p=Math.min(p,u.length-1),p=Math.max(p,0),d=u[p];break}}return s.style.backgroundColor=d,s}},progress:function(e,t,n){var i,o,a,s,c,l=this.sanitizeHTML(e.getValue())||0,u=e.getElement(),d=t&&t.max?t.max:100,h=t&&t.min?t.min:0,f=t&&t.legendAlign?t.legendAlign:"center";switch(o=parseFloat(l)<=d?parseFloat(l):d,o=parseFloat(o)>=h?parseFloat(o):h,i=(d-h)/100,o=Math.round((o-h)/i),r(t.color)){case"string":a=t.color;break;case"function":a=t.color(l);break;case"object":if(Array.isArray(t.color)){var m=100/t.color.length,g=Math.floor(o/m);g=Math.min(g,t.color.length-1),g=Math.max(g,0),a=t.color[g];break}default:a="#2DC214"}switch(r(t.legend)){case"string":s=t.legend;break;case"function":s=t.legend(l);break;case"boolean":s=l;break;default:s=!1}switch(r(t.legendColor)){case"string":c=t.legendColor;break;case"function":c=t.legendColor(l);break;case"object":if(Array.isArray(t.legendColor)){m=100/t.legendColor.length,g=Math.floor(o/m);g=Math.min(g,t.legendColor.length-1),g=Math.max(g,0),c=t.legendColor[g]}break;default:c="#000"}u.style.minWidth="30px",u.style.position="relative",u.setAttribute("aria-label",o);var v=document.createElement("div");if(v.style.display="inline-block",v.style.position="relative",v.style.width=o+"%",v.style.backgroundColor=a,v.style.height="100%",v.setAttribute("data-max",d),v.setAttribute("data-min",h),s){var _=document.createElement("div");_.style.position="absolute",_.style.top="4px",_.style.left=0,_.style.textAlign=f,_.style.width="100%",_.style.color=c,_.innerHTML=s}return n(function(){if(!(e instanceof p)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",u.appendChild(t),u=t}u.appendChild(v),s&&u.appendChild(_)}),""},color:function(e,t,n){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,n){return' '},buttonCross:function(e,t,n){return' '},rownum:function(e,t,n){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,n){return e.getElement().classList.add("tabulator-row-handle"),""},responsiveCollapse:function(e,t,n){var i=document.createElement("div"),o=e.getRow()._row.modules.responsiveLayout;function r(e){var t=o.element;o.open=e,t&&(o.open?(i.classList.add("open"),t.style.display=""):(i.classList.remove("open"),t.style.display="none"))}return i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML="+ - ",e.getElement().classList.add("tabulator-row-handle"),i.addEventListener("click",function(e){e.stopImmediatePropagation(),r(!o.open)}),r(o.open),i},rowSelection:function(e,t,n){var i=this,o=document.createElement("input");if(o.type="checkbox",this.table.modExists("selectRow",!0))if(o.addEventListener("click",function(e){e.stopPropagation()}),"function"==typeof e.getRow){var r=e.getRow();r instanceof d?(o.addEventListener("change",function(e){r.toggleSelect()}),o.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,o)):o=""}else o.addEventListener("change",function(e){i.table.modules.selectRow.selectedRows.length?i.table.deselectRow():i.table.selectRow(t.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(o);return o}},g.prototype.registerModule("format",D);var R=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};R.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},R.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")},R.prototype.frozenCheck=function(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen},R.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},R.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},R.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},R.prototype.layoutColumnPosition=function(e){var t=this,n=[];this.leftColumns.forEach(function(i,o){if(i.modules.frozen.margin=t._calcSpace(t.leftColumns,o)+t.table.columnManager.scrollLeft+"px",o==t.leftColumns.length-1?i.modules.frozen.edge=!0:i.modules.frozen.edge=!1,i.parent.isGroup){var r=t.getColGroupParentElement(i);n.includes(r)||(t.layoutElement(r,i),n.push(r)),i.modules.frozen.edge&&r.classList.add("tabulator-frozen-"+i.modules.frozen.position)}else t.layoutElement(i.getElement(),i);e&&i.cells.forEach(function(e){t.layoutElement(e.getElement(!0),i)})}),this.rightColumns.forEach(function(n,i){n.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,i+1)+"px",i==t.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?t.layoutElement(t.getColGroupParentElement(n),n):t.layoutElement(n.getElement(),n),e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(!0),n)})})},R.prototype.getColGroupParentElement=function(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()},R.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},R.prototype.layoutRow=function(e){var t=this,n=e.getElement();n.style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)}),this.rightColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)})},R.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},R.prototype._calcSpace=function(e,t){for(var n=0,i=0;i-1&&t.splice(n,1)}),t},z.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},z.prototype.unfreezeRow=function(e){this.rows.indexOf(e);e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},z.prototype.detachRow=function(e){var t=this.rows.indexOf(e);if(t>-1){var n=e.getElement();n.parentNode.removeChild(n),this.rows.splice(t,1)}},z.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,n){t.table.rowManager.styleRow(e,n)})},g.prototype.registerModule("frozenRows",z);var P=function(e){this._group=e,this.type="GroupComponent"};P.prototype.getKey=function(){return this._group.key},P.prototype.getField=function(){return this._group.field},P.prototype.getElement=function(){return this._group.element},P.prototype.getRows=function(){return this._group.getRows(!0)},P.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},P.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},P.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},P.prototype.isVisible=function(){return this._group.visible},P.prototype.show=function(){this._group.show()},P.prototype.hide=function(){this._group.hide()},P.prototype.toggle=function(){this._group.toggleVisibility()},P.prototype._getSelf=function(){return this._group},P.prototype.getTable=function(){return this._group.groupManager.table};var N=function(e,t,n,i,o,r,a){this.groupManager=e,this.parent=t,this.key=i,this.level=n,this.field=o,this.hasSubGroups=n-1?n?this.rows.splice(o+1,0,e):this.rows.splice(o,0,e):n?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},N.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},N.prototype.getRowIndex=function(e){},N.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},N.prototype.removeRow=function(e){var t=this.rows.indexOf(e),n=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},N.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},N.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(n){t=t.concat(n.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},N.prototype.getData=function(e,t){var n=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){n.push(e.getData(t||"data"))}),n},N.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},N.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},N.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){var t=e.getHeadersAndRows();t.forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},N.prototype.show=function(){var e=this;if(e.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=e.getElement();this.groupList.length?this.groupList.forEach(function(e){var n=e.getHeadersAndRows();n.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n})}):e.rows.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},N.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},N.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}):this.rows.find(function(t){return t===e})&&(t=this),t},N.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},N.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(n){t.push(e?n.getComponent():n)}),t},N.prototype.generateGroupHeaderContents=function(){var e=[];this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());while(this.element.firstChild)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},N.prototype.getPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.unshift(this.key),this.parent&&this.parent.getPath(e),e},N.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;ei.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,n){e.headerGenerator[0]=function(e,i,o){return("undefined"===typeof e?"":e)+"("+i+" "+(1===i?t:n.groups.items)+") "}}),this.groupIDLookups=[],Array.isArray(t)||t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs){var o=this.table.columnManager.getRealColumns();o.forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(t)||(t=[t]),t.forEach(function(t,n){var i,o;"function"==typeof t?i=t:(o=e.table.columnManager.getColumnByField(t),i=o?function(e){return o.getFieldValue(e)}:function(e){return e[t]}),e.groupIDLookups.push({field:"function"!==typeof t&&t,func:i,values:!!e.allowedValues&&e.allowedValues[n]})}),n&&(Array.isArray(n)||(n=[n]),n.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=n),i&&(e.headerGenerator=Array.isArray(i)?i:[i]),this.initialized=!0},I.prototype.setDisplayIndex=function(e){this.displayIndex=e},I.prototype.getDisplayIndex=function(){return this.displayIndex},I.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},I.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},I.prototype.getChildGroups=function(e){var t=this,n=[];return e||(e=this),e.groupList.forEach(function(e){e.groupList.length?n=n.concat(t.getChildGroups(e)):n.push(e)}),n},I.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},I.prototype.pullGroupListData=function(e){var t=this,n=[];return e.forEach(function(e){var i={level:0,rowCount:0,headerContent:""},o=[];e.hasSubGroups?(o=t.pullGroupListData(e.groupList),i.level=e.level,i.rowCount=o.length-e.groupList.length,i.headerContent=e.generator(e.key,i.rowCount,e.rows,e),n.push(i),n=n.concat(o)):(i.level=e.level,i.headerContent=e.generator(e.key,e.rows.length,e.rows,e),i.rowCount=e.getRows().length,n.push(i),e.getRows().forEach(function(e){n.push(e.getData("data"))}))}),n},I.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},I.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}),t},I.prototype.countGroups=function(){return this.groupList.length},I.prototype.generateGroups=function(e){var t=this,n=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,n)}),e.forEach(function(e){t.assignRowToExistingGroup(e,n)})):e.forEach(function(e){t.assignRowToGroup(e,n)})},I.prototype.createGroup=function(e,t,n){var i,o=t+"_"+e;n=n||[],i=new N(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[o]),this.groups[o]=i,this.groupList.push(i)},I.prototype.assignRowToExistingGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i="0_"+n;this.groups[i]&&this.groups[i].addRow(e)},I.prototype.assignRowToGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i=!this.groups["0_"+n];return i&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!i},I.prototype.reassignRowToGroup=function(e){var t=e.getGroup(),n=t.getPath(),i=this.getExpectedPath(e),o=!0;o=n.length==i.length&&n.every(function(e,t){return e===i[t]});o||(t.removeRow(e),this.assignRowToGroup(e,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},I.prototype.getExpectedPath=function(e){var t=[],n=e.getData();return this.groupIDLookups.forEach(function(e){t.push(e.func(n))}),t},I.prototype.updateGroupRows=function(e){var t=this,n=[];if(t.groupList.forEach(function(e){n=n.concat(e.getHeadersAndRows())}),e){var i=t.table.rowManager.setDisplayRows(n,this.getDisplayIndex());!0!==i&&this.setDisplayIndex(i),t.table.rowManager.refreshActiveData("group",!0,!0)}return n},I.prototype.scrollHeaders=function(e){this.table.options.virtualDomHoz&&(e-=this.table.vdomHoz.vDomPadLeft),e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},I.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1))},g.prototype.registerModule("groupRows",I);var B=function(e){this.table=e,this.history=[],this.index=-1};B.prototype.clear=function(){this.history=[],this.index=-1},B.prototype.action=function(e,t,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:n}),this.index++},B.prototype.getHistoryUndoSize=function(){return this.index+1},B.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},B.prototype.clearComponentHistory=function(e){var t=this.history.findIndex(function(t){return t.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))},B.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},B.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},B.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posFrom],!e.data.after),this.table.rowManager.redraw()}},B.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posTo],e.data.after),this.table.rowManager.redraw()}},B.prototype._rebindRow=function(e,t){this.history.forEach(function(n){if(n.component instanceof h)n.component===e&&(n.component=t);else if(n.component instanceof f&&n.component.row===e){var i=n.component.column.getField();i&&(n.component=t.getCell(i))}})},g.prototype.registerModule("history",B);var j=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};j.prototype.parseTable=function(){var e=this,t=e.table.element,n=e.table.options,i=(n.columns,t.getElementsByTagName("th")),o=t.getElementsByTagName("tbody")[0],a=[];e.hasIndex=!1,e.table.options.htmlImporting.call(this.table),o=o?o.getElementsByTagName("tr"):[],e._extractOptions(t,n),i.length?e._extractHeaders(i,o):e._generateBlankHeaders(i,o);for(var s=0;s-1&&e.pressedKeys.splice(o,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},Y.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},Y.prototype.checkBinding=function(e,t){var n=this,i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach(function(e){var t=n.pressedKeys.indexOf(e);-1==t&&(i=!1)}),i&&t.action.call(n,e),!0)},Y.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},Y.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,n=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,n=t.scrollTop+t.height,i=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n<=i?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().prev()))},navNext:function(e){var t,n=!1,i=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(n=this.table.modules.edit.currentCell,n&&(e.preventDefault(),t=n.nav(),t.next()||i&&(n.getElement().firstChild.blur(),i=!0===i?this.table.addRow({}):"function"==typeof i?this.table.addRow(i(n.row.getComponent())):this.table.addRow(Object.assign({},i)),i.then(function(){setTimeout(function(){t.next()})}))))},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().left()))},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().right()))},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().up()))},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().down()))},undo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},g.prototype.registerModule("keybindings",Y);var H=function(e){this.table=e,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};H.prototype.initializeColumnHeader=function(e){var t,n=this;e.definition.headerContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.definition.headerContextMenu)),this.tapHold(e,e.definition.headerContextMenu)),e.definition.headerMenu&&(t=document.createElement("span"),t.classList.add("tabulator-header-menu-button"),t.innerHTML="⋮",t.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),n.LoadMenuEvent(e,e.definition.headerMenu,t)}),e.titleElement.insertBefore(t,e.titleElement.firstChild))},H.prototype.LoadMenuEvent=function(e,t,n){t="function"==typeof t?t.call(this.table,e.getComponent(),n):t,this.loadMenu(n,e,t)},H.prototype.tapHold=function(e,t){var n=this,i=e.getElement(),o=null,r=!1;i.addEventListener("touchstart",function(i){clearTimeout(o),r=!1,o=setTimeout(function(){clearTimeout(o),o=null,r=!0,n.LoadMenuEvent(e,t,i)},1e3)},{passive:!0}),i.addEventListener("touchend",function(e){clearTimeout(o),o=null,r&&e.preventDefault()})},H.prototype.initializeCell=function(e){e.column.definition.contextMenu&&(e.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.column.definition.contextMenu)),this.tapHold(e,e.column.definition.contextMenu)),e.column.definition.clickMenu&&e.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,e,e.column.definition.clickMenu))},H.prototype.initializeRow=function(e){this.table.options.rowContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.rowContextMenu)),this.tapHold(e,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.rowClickMenu))},H.prototype.initializeGroup=function(e){this.table.options.groupContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.groupContextMenu)),this.tapHold(e,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.groupClickMenu))},H.prototype.loadMenu=function(e,t,n,i){var o=this,r=!(e instanceof MouseEvent),a=document.createElement("div");if(a.classList.add("tabulator-menu"),r||e.preventDefault(),n&&n.length){if(!i){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout(function(){o.nestedMenuBlock=!1},100);this.hideMenu(),this.menuElements=[]}n.forEach(function(e){var n=document.createElement("div"),i=e.label,r=e.disabled;e.separator?n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-item"),"function"==typeof i&&(i=i.call(o.table,t.getComponent())),i instanceof Node?n.appendChild(i):n.innerHTML=i,"function"==typeof r&&(r=r.call(o.table,t.getComponent())),r?(n.classList.add("tabulator-menu-item-disabled"),n.addEventListener("click",function(e){e.stopPropagation()})):e.menu&&e.menu.length?n.addEventListener("click",function(i){i.stopPropagation(),o.hideOldSubMenus(a),o.loadMenu(i,t,e.menu,n)}):e.action&&n.addEventListener("click",function(n){e.action(n,t.getComponent())}),e.menu&&e.menu.length&&n.classList.add("tabulator-menu-item-submenu")),a.appendChild(n)}),a.addEventListener("click",function(e){o.hideMenu()}),this.menuElements.push(a),this.positionMenu(a,i,r,e)}},H.prototype.hideOldSubMenus=function(e){var t=this.menuElements.indexOf(e);if(t>-1)for(var n=this.menuElements.length-1;n>t;n--){var i=this.menuElements[n];i.parentNode&&i.parentNode.removeChild(i),this.menuElements.pop()}},H.prototype.positionMenu=function(e,t,n,i){var o,r,a,s=this,c=Math.max(document.body.offsetHeight,window.innerHeight);t?(a=g.prototype.helpers.elOffset(t),o=a.left+t.offsetWidth,r=a.top-1):(o=n?i.touches[0].pageX:i.pageX,r=n?i.touches[0].pageY:i.pageY,this.positionReversedX=!1),e.style.top=r+"px",e.style.left=o+"px",setTimeout(function(){s.table.rowManager.element.addEventListener("scroll",s.blurEvent),document.body.addEventListener("click",s.blurEvent),document.body.addEventListener("contextmenu",s.blurEvent),window.addEventListener("resize",s.blurEvent),document.body.addEventListener("keydown",s.escEvent)},100),document.body.appendChild(e),r+e.offsetHeight>=c&&(e.style.top="",e.style.bottom=t?c-a.top-t.offsetHeight-1+"px":c-r+"px"),(o+e.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(e.style.left="",e.style.right=t?document.documentElement.offsetWidth-a.left+"px":document.documentElement.offsetWidth-o+"px",this.positionReversedX=!0)},H.prototype.isOpen=function(){return!!this.menuElements.length},H.prototype.escMenu=function(e){27==e.keyCode&&this.hideMenu()},H.prototype.hideMenu=function(){this.menuElements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},H.prototype.menus={},g.prototype.registerModule("menu",H);var W=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};W.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},W.prototype.initializeColumn=function(e){var t,n=this,i={};e.modules.frozen||(t=e.getElement(),i.mousemove=function(i){e.parent===n.moving.parent&&((n.touchMove?i.touches[0].pageX:i.pageX)-g.prototype.helpers.elOffset(t).left+n.table.columnManager.element.scrollLeft>e.getWidth()/2?n.toCol===e&&n.toColAfter||(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):(n.toCol!==e||n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!1)))}.bind(n),t.addEventListener("mousedown",function(t){n.touchMove=!1,1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),n.bindTouchEvents(e)),e.modules.moveColumn=i},W.prototype.bindTouchEvents=function(e){var t,n,i,o,r,a,s=this,c=e.getElement(),l=!1;c.addEventListener("touchstart",function(c){s.checkTimeout=setTimeout(function(){s.touchMove=!0,e,t=e.nextColumn(),i=t?t.getWidth()/2:0,n=e.prevColumn(),o=n?n.getWidth()/2:0,r=0,a=0,l=!1,s.startMove(c,e)},s.checkPeriod)},{passive:!0}),c.addEventListener("touchmove",function(c){var u,d;s.moving&&(s.moveHover(c),l||(l=c.touches[0].pageX),u=c.touches[0].pageX-l,u>0?t&&u-r>i&&(d=t,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(s.placeholderElement,d.getElement().nextSibling),s.moveColumn(d,!0))):n&&-u-a>o&&(d=n,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(s.placeholderElement,d.getElement()),s.moveColumn(d,!1))),d&&(d,t=d.nextColumn(),r=i,i=t?t.getWidth()/2:0,n=d.prevColumn(),a=o,o=n?n.getWidth()/2:0))},{passive:!0}),c.addEventListener("touchend",function(e){s.checkTimeout&&clearTimeout(s.checkTimeout),s.moving&&s.endMove(e)})},W.prototype.startMove=function(e,t){var n=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},W.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},W.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},W.prototype.moveColumn=function(e,t){var n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i.nextSibling)}):e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i)})},W.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},W.prototype.moveHover=function(e){var t,n=this,i=n.table.columnManager.getElement(),o=i.scrollLeft,r=(n.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(i).left+o;n.hoverElement.style.left=r-n.startX+"px",r-oe.getHeight()/2){if(t.toRow!==e||!t.toRowAfter){var i=e.getElement();i.parentNode.insertBefore(t.placeholderElement,i.nextSibling),t.moveRow(e,!0)}}else if(t.toRow!==e||t.toRowAfter){i=e.getElement();i.previousSibling&&(i.parentNode.insertBefore(t.placeholderElement,i),t.moveRow(e,!1))}}.bind(t),e.modules.moveRow=n},q.prototype.initializeRow=function(e){var t,n=this,i={};i.mouseup=function(t){n.tableRowDrop(t,e)}.bind(n),i.mousemove=function(t){var i=e.getElement();t.pageY-g.prototype.helpers.elOffset(i).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?n.toRow===e&&n.toRowAfter||(i.parentNode.insertBefore(n.placeholderElement,i.nextSibling),n.moveRow(e,!0)):(n.toRow!==e||n.toRowAfter)&&(i.parentNode.insertBefore(n.placeholderElement,i),n.moveRow(e,!1))}.bind(n),this.hasHandle||(t=e.getElement(),t.addEventListener("mousedown",function(t){1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i},q.prototype.initializeCell=function(e){var t=this,n=e.getElement(!0);n.addEventListener("mousedown",function(n){1===n.which&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e.row)},t.checkPeriod))}),n.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,n)},q.prototype.bindTouchEvents=function(e,t){var n,i,o,r,a,s,c=this,l=!1;t.addEventListener("touchstart",function(t){c.checkTimeout=setTimeout(function(){c.touchMove=!0,e,n=e.nextRow(),o=n?n.getHeight()/2:0,i=e.prevRow(),r=i?i.getHeight()/2:0,a=0,s=0,l=!1,c.startMove(t,e)},c.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var u,d;c.moving&&(t.preventDefault(),c.moveHover(t),l||(l=t.touches[0].pageY),u=t.touches[0].pageY-l,u>0?n&&u-a>o&&(d=n,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement().nextSibling),c.moveRow(d,!0))):i&&-u-s>r&&(d=i,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement()),c.moveRow(d,!1))),d&&(d,n=d.nextRow(),a=o,o=n?n.getHeight()/2:0,i=d.prevRow(),s=r,r=i?i.getHeight()/2:0))}),t.addEventListener("touchend",function(e){c.checkTimeout&&clearTimeout(c.checkTimeout),c.moving&&(c.endMove(e),c.touchMove=!1)})},q.prototype._bindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},q.prototype._unbindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},q.prototype.startMove=function(e,t){var n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},q.prototype.setStartPosition=function(e,t){var n,i,o=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?(i=n.getBoundingClientRect(),this.startX=i.left-o+window.pageXOffset,this.startY=i.top-r+window.pageYOffset):this.startY=r-n.getBoundingClientRect().top},q.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},q.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},q.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},q.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,i=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+n;this.hoverElement.style.top=i-this.startY+"px"},q.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},q.prototype.elementRowDrop=function(e,t,n){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(e,t,!!n&&n.getComponent())},q.prototype.connectToTables=function(e){var t,n=this;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(function(e){"string"===typeof e?n.connectionElements=n.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):n.connectionElements.push(e)}),this.connectionElements.forEach(function(e){var t=function(t){n.elementRowDrop(t,e,n.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")}))},q.prototype.disconnectFromTables=function(){var e;this.connectionSelectorsTables&&(e=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(function(e){e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent})},q.prototype.connect=function(e,t){var n=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),n.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),n.tableRowDropEvent=n.tableRowDrop.bind(n),n.table.element.addEventListener("mouseup",n.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},q.prototype.disconnect=function(e){var t=this;e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),t.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),t.table.element.removeEventListener("mouseup",t.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},q.prototype.dropComplete=function(e,t,n){var i=!1;if(n){switch(r(this.table.options.movableRowsSender)){case"string":i=this.senders[this.table.options.movableRowsSender];break;case"function":i=this.table.options.movableRowsSender;break}i?i.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},q.prototype.tableRowDrop=function(e,t){var n=!1,i=!1;switch(e.stopImmediatePropagation(),r(this.table.options.movableRowsReceiver)){case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver;break}n?i=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),i?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:i})},q.prototype.receivers={insert:function(e,t,n){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},q.prototype.senders={delete:function(e,t,n){e.delete()}},q.prototype.commsReceived=function(e,t,n){switch(t){case"connect":return this.connect(e,n.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,n.row,n.success)}},g.prototype.registerModule("moveRow",q);var F=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};F.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,a="mutator"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[a]&&(r=t.lookupMutator(e.definition[a]),r&&(n=!0,i[a]={mutator:r,params:e.definition[a+"Params"]||{}}))}),n&&(e.modules.mutate=i)},F.prototype.lookupMutator=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t},F.prototype.transformRow=function(e,t,n){var i,o=this,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&o.table.columnManager.traverse(function(o){var a,s,c;o.modules.mutate&&(a=o.modules.mutate[r]||o.modules.mutate.mutator||!1,a&&(i=o.getFieldValue("undefined"!==typeof n?n:e),"data"!=t&&"undefined"===typeof i||(c=o.getComponent(),s="function"===typeof a.params?a.params(i,e,t,c):a.params,o.setFieldValue(e,a.mutator(i,e,t,s,c)))))}),e},F.prototype.transformCell=function(e,t){var n=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,i={};return n?(i=Object.assign(i,e.row.getData()),e.column.setFieldValue(i,t),n.mutator(t,i,"edit",n.params,e.getComponent())):t},F.prototype.enable=function(){this.enabled=!0},F.prototype.disable=function(){this.enabled=!1},F.prototype.mutators={},g.prototype.registerModule("mutator",F);var X=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};X.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},X.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var n=1;n<5;n++)t.push(this.size*n);this.pageSizes=t}else t=this.pageSizes;while(this.pageSizeSelect.firstChild)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var n=document.createElement("option");n.value=t,!0===t?e.table.modules.localize.bind("pagination|all",function(e){n.innerHTML=e}):n.innerHTML=t,e.pageSizeSelect.appendChild(n)}),this.pageSizeSelect.value=this.size}},X.prototype.initialize=function(e){var t,n,i,o=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),o.table.modules.localize.bind("pagination|first",function(e){o.firstBut.innerHTML=e}),o.table.modules.localize.bind("pagination|first_title",function(e){o.firstBut.setAttribute("aria-label",e),o.firstBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|prev",function(e){o.prevBut.innerHTML=e}),o.table.modules.localize.bind("pagination|prev_title",function(e){o.prevBut.setAttribute("aria-label",e),o.prevBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|next",function(e){o.nextBut.innerHTML=e}),o.table.modules.localize.bind("pagination|next_title",function(e){o.nextBut.setAttribute("aria-label",e),o.nextBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|last",function(e){o.lastBut.innerHTML=e}),o.table.modules.localize.bind("pagination|last_title",function(e){o.lastBut.setAttribute("aria-label",e),o.lastBut.setAttribute("title",e)}),o.firstBut.addEventListener("click",function(){o.setPage(1).then(function(){}).catch(function(){})}),o.prevBut.addEventListener("click",function(){o.previousPage().then(function(){}).catch(function(){})}),o.nextBut.addEventListener("click",function(){o.nextPage().then(function(){}).catch(function(){})}),o.lastBut.addEventListener("click",function(){o.setPage(o.max).then(function(){}).catch(function(){})}),o.table.options.paginationElement&&(o.element=o.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),o.table.modules.localize.bind("pagination|page_size",function(e){o.pageSizeSelect.setAttribute("aria-label",e),o.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),o.element.appendChild(t),o.element.appendChild(o.pageSizeSelect),o.pageSizeSelect.addEventListener("change",function(e){o.setPageSize("true"==o.pageSizeSelect.value||o.pageSizeSelect.value),o.setPage(1).then(function(){}).catch(function(){})})),o.element.appendChild(o.firstBut),o.element.appendChild(o.prevBut),o.element.appendChild(o.pagesElement),o.element.appendChild(o.nextBut),o.element.appendChild(o.lastBut),o.table.options.paginationElement||e||o.table.footerManager.append(o.element,o),o.mode=o.table.options.pagination,o.table.options.paginationSize?o.size=o.table.options.paginationSize:(n=document.createElement("div"),n.classList.add("tabulator-row"),n.style.visibility=e,i=document.createElement("div"),i.classList.add("tabulator-cell"),i.innerHTML="Page Row Test",n.appendChild(i),o.table.rowManager.getTableElement().appendChild(n),o.size=Math.floor(o.table.rowManager.getElement().clientHeight/n.offsetHeight),o.table.rowManager.getTableElement().removeChild(n)),o.count=o.table.options.paginationButtonCount,o.generatePageSizeSelectList()},X.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},X.prototype.setDisplayIndex=function(e){this.displayIndex=e},X.prototype.getDisplayIndex=function(){return this.displayIndex},X.prototype.setMaxRows=function(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},X.prototype.reset=function(e,t){return("local"==this.mode||e)&&(this.page=1),t&&(this.initialLoad=!0),!0},X.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},X.prototype.setPage=function(e){var t=this,n=this;switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise(function(i,o){e=parseInt(e),e>0&&e<=t.max||"local"!==t.mode?(t.page=e,t.trigger().then(function(){i()}).catch(function(){o()}),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.page&&n.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),o())})},X.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){var o=t.table.rowManager.getDisplayRows(t.displayIndex-1),r=o.indexOf(e);if(r>-1){var a=!0===t.size?1:Math.ceil((r+1)/t.size);t.setPage(a).then(function(){n()}).catch(function(){i()})}else console.warn("Pagination Error - Requested row is not visible"),i()})},X.prototype.setPageSize=function(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},X.prototype._setPageButtons=function(){var e=this,t=Math.floor((this.count-1)/2),n=Math.ceil((this.count-1)/2),i=this.max-this.page+t+10&&r<=e.max&&e.pagesElement.appendChild(e._generatePageButton(r));this.footerRedraw()},X.prototype._generatePageButton=function(e){var t=this,n=document.createElement("button");return n.classList.add("tabulator-page"),e==t.page&&n.classList.add("active"),n.setAttribute("type","button"),n.setAttribute("role","button"),t.table.modules.localize.bind("pagination|page_title",function(t){n.setAttribute("aria-label",t+" "+e),n.setAttribute("title",t+" "+e)}),n.setAttribute("data-page",e),n.textContent=e,n.addEventListener("click",function(n){t.setPage(e).then(function(){}).catch(function(){})}),n},X.prototype.previousPage=function(){var e=this;return new Promise(function(t,n){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){n()}),e.table.options.persistence&&e.table.modExists("persistence",!0)&&e.table.modules.persistence.config.page&&e.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),n())})},X.prototype.nextPage=function(){var e=this;return new Promise(function(t,n){e.pageo?i.splice(o,0,e):i.push(e))}),i},U.prototype._findColumn=function(e,t){var n=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(n){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},U.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)},U.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},U.prototype.getGroupConfig=function(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e},U.prototype.getPageConfig=function(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e},U.prototype.parseColumns=function(e){var t=this,n=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(function(e){var o,r={},a=e.getDefinition();e.isGroup?(r.title=a.title,r.columns=t.parseColumns(e.getColumns())):(r.field=e.getField(),!0===t.config.columns||void 0==t.config.columns?(o=Object.keys(a),o.push("width")):o=t.config.columns,o.forEach(function(t){switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!==typeof a[t]&&-1===i.indexOf(t)&&(r[t]=a[t])}})),n.push(r)}),n},U.prototype.readers={local:function(e,t){var n=localStorage.getItem(e+"-"+t);return!!n&&JSON.parse(n)},cookie:function(e,t){var n,i,o=document.cookie,r=e+"-"+t,a=o.indexOf(r+"=");return a>-1&&(o=o.substr(a),n=o.indexOf(";"),n>-1&&(o=o.substr(0,n)),i=o.replace(r+"=","")),!!i&&JSON.parse(i)}},U.prototype.writers={local:function(e,t,n){localStorage.setItem(e+"-"+t,JSON.stringify(n))},cookie:function(e,t,n){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(n)+"; expires="+i.toUTCString()}},g.prototype.registerModule("persistence",U);var V=function(e){this.table=e,this.element=!1,this.manualBlock=!1};V.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},V.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},V.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},V.prototype.printFullscreen=function(e,t,n){var i,o,r=window.scrollX,a=window.scrollY,s=document.createElement("div"),c=document.createElement("div"),l=this.table.modules.export.genereateTable("undefined"!=typeof n?n:this.table.options.printConfig,"undefined"!=typeof t?t:this.table.options.printStyled,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),i="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof i?s.innerHTML=i:s.appendChild(i),this.element.appendChild(s)),this.element.appendChild(l),this.table.options.printFooter&&(c.classList.add("tabulator-print-footer"),o="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof o?c.innerHTML=o:c.appendChild(o),this.element.appendChild(c)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,l),window.print(),this.cleanup(),window.scrollTo(r,a),this.manualBlock=!1},g.prototype.registerModule("print",V);var G=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};G.prototype.watchData=function(e){var t,n=this;this.currentVersion++,t=this.currentVersion,n.unwatchData(),n.data=e,n.origFuncs.push=e.push,Object.defineProperty(n.data,"push",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!1)}),n.origFuncs.push.apply(e,arguments)}}),n.origFuncs.unshift=e.unshift,Object.defineProperty(n.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!0)}),n.origFuncs.unshift.apply(e,arguments)}}),n.origFuncs.shift=e.shift,Object.defineProperty(n.data,"shift",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[0]),i&&i.deleteActual()),n.origFuncs.shift.call(e)}}),n.origFuncs.pop=e.pop,Object.defineProperty(n.data,"pop",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]),i&&i.deleteActual()),n.origFuncs.pop.call(e)}}),n.origFuncs.splice=e.splice,Object.defineProperty(n.data,"splice",{enumerable:!1,configurable:!0,value:function(){var i,o=Array.from(arguments),r=o[0]<0?e.length+o[0]:o[0],a=o[1],s=!!o[2]&&o.slice(2);if(!n.blocked&&t===n.currentVersion){if(s&&(i=!!e[r]&&n.table.rowManager.getRowFromDataObject(e[r]),i?s.forEach(function(e){n.table.rowManager.addRowActual(e,!0,i,!0)}):(s=s.slice().reverse(),s.forEach(function(e){n.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==a){var c=e.slice(r,"undefined"===typeof o[1]?o[1]:r+a);c.forEach(function(e,t){var i=n.table.rowManager.getRowFromDataObject(e);i&&i.deleteActual(t!==c.length-1)})}(s||0!==a)&&n.table.rowManager.reRenderInPosition()}return n.origFuncs.splice.apply(e,arguments)}})},G.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},G.prototype.watchRow=function(e){var t=e.getData();for(var n in this.blocked=!0,t)this.watchKey(e,t,n);this.table.options.dataTree&&this.watchTreeChildren(e),this.blocked=!1},G.prototype.watchTreeChildren=function(e){var t=this,n=e.getData()[this.table.options.dataTreeChildField],i={};function o(){t.table.modules.dataTree.initializeRow(e),t.table.modules.dataTree.layoutRow(e),t.table.rowManager.refreshActiveData("tree",!1,!0)}n&&(i.push=n.push,Object.defineProperty(n,"push",{enumerable:!1,configurable:!0,value:function(){var e=i.push.apply(n,arguments);return o(),e}}),i.unshift=n.unshift,Object.defineProperty(n,"unshift",{enumerable:!1,configurable:!0,value:function(){var e=i.unshift.apply(n,arguments);return o(),e}}),i.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!1,configurable:!0,value:function(){var e=i.shift.call(n);return o(),e}}),i.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!0,value:function(){var e=i.pop.call(n);return o(),e}}),i.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!1,configurable:!0,value:function(){var e=i.splice.apply(n,arguments);return o(),e}}))},G.prototype.watchKey=function(e,t,n){var i=this,o=Object.getOwnPropertyDescriptor(t,n),r=t[n],a=this.currentVersion;Object.defineProperty(t,n,{set:function(t){if(r=t,!i.blocked&&a===i.currentVersion){var s={};s[n]=t,e.updateData(s)}o.set&&o.set(t)},get:function(){return o.get&&o.get(),r}})},G.prototype.unwatchRow=function(e){var t=e.getData();for(var n in t)Object.defineProperty(t,n,{value:t[n]})},G.prototype.block=function(){this.blocked=!0},G.prototype.unblock=function(){this.blocked=!1},g.prototype.registerModule("reactiveData",G);var K=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};K.prototype.initializeColumn=function(e,t,n){var i=this,o=!1,r=this.table.options.resizableColumns;if("header"===e&&(o="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:o}),!0===r||r==e){var a=document.createElement("div");a.className="tabulator-col-resize-handle";var s=document.createElement("div");s.className="tabulator-col-resize-handle prev",a.addEventListener("click",function(e){e.stopPropagation()});var c=function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(i.startColumn=t,i._mouseDown(e,n,a))};a.addEventListener("mousedown",c),a.addEventListener("touchstart",c,{passive:!0}),a.addEventListener("dblclick",function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(e.stopPropagation(),n.reinitializeWidth(!0))}),s.addEventListener("click",function(e){e.stopPropagation()});var l=function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(i.startColumn=t,i._mouseDown(e,r,s)))};s.addEventListener("mousedown",l),s.addEventListener("touchstart",l,{passive:!0}),s.addEventListener("dblclick",function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(e.stopPropagation(),r.reinitializeWidth(!0)))}),n.appendChild(a),n.appendChild(s)}},K.prototype._checkResizability=function(e){return"undefined"!=typeof e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},K.prototype._mouseDown=function(e,t,n){var i=this;function o(e){i.table.rtl?t.setWidth(i.startWidth-(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)):t.setWidth(i.startWidth+(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(!0),!i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function r(e){i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!1),i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.persistence&&i.table.modExists("persistence",!0)&&i.table.modules.persistence.config.columns&&i.table.modules.persistence.save("columns"),i.table.options.columnResized.call(i.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!0),i.startX="undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX,i.startWidth=t.getWidth(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeColumns",K);var $=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};$.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=document.createElement("div");i.className="tabulator-row-resize-handle";var o=document.createElement("div");o.className="tabulator-row-resize-handle prev",i.addEventListener("click",function(e){e.stopPropagation()});var r=function(n){t.startRow=e,t._mouseDown(n,e,i)};i.addEventListener("mousedown",r),i.addEventListener("touchstart",r,{passive:!0}),o.addEventListener("click",function(e){e.stopPropagation()});var a=function(n){var i=t.table.rowManager.prevDisplayRow(e);i&&(t.startRow=i,t._mouseDown(n,i,o))};o.addEventListener("mousedown",a),o.addEventListener("touchstart",a,{passive:!0}),n.appendChild(i),n.appendChild(o)},$.prototype._mouseDown=function(e,t,n){var i=this;function o(e){t.setHeight(i.startHeight+(("undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY)-i.startY))}function r(e){document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.rowResized.call(this.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startY="undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY,i.startHeight=t.getHeight(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeRows",$);var J=function(e){this.table=e,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};J.prototype.initialize=function(e){var t,n=this,i=this.table;this.tableHeight=i.element.clientHeight,this.tableWidth=i.element.clientWidth,i.element.parentNode&&(this.containerHeight=i.element.parentNode.clientHeight,this.containerWidth=i.element.parentNode.clientWidth),"undefined"!==typeof ResizeObserver&&"virtual"===i.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.tableHeight==t&&n.tableWidth==o||(n.tableHeight=t,n.tableWidth=o,i.element.parentNode&&(n.containerHeight=i.element.parentNode.clientHeight,n.containerWidth=i.element.parentNode.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())}}),this.observer.observe(i.element),t=window.getComputedStyle(i.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.containerHeight==t&&n.containerWidth==o||(n.containerHeight=t,n.containerWidth=o,n.tableHeight=i.element.clientHeight,n.tableWidth=i.element.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw()}}),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell)&&(i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())},window.addEventListener("resize",this.binding))},J.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},g.prototype.registerModule("resizeTable",J);var Z=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};Z.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(n,i){n.modules.responsive&&n.modules.responsive.order&&n.modules.responsive.visible&&(n.modules.responsive.index=i,t.push(n),n.visible||"collapse"!==e.mode||e.hiddenColumns.push(n))}),t=t.reverse(),t=t.sort(function(e,t){var n=t.modules.responsive.order-e.modules.responsive.order;return n||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();var n=this.table.columnManager.columnsByIndex,i=Array.isArray(n),o=0;for(n=i?n:n[Symbol.iterator]();;){var r;if(i){if(o>=n.length)break;r=n[o++]}else{if(o=n.next(),o.done)break;r=o.value}var a=r;if("responsiveCollapse"==a.definition.formatter){this.collapseHandleColumn=a;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},Z.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:"undefined"===typeof t.responsive?1:t.responsive,visible:!1!==t.visible}},Z.prototype.initializeRow=function(e){var t;"calc"!==e.type&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))},Z.prototype.layoutRow=function(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))},Z.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},Z.prototype.hideColumn=function(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())},Z.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},Z.prototype.update=function(){var e=this,t=!0;while(t){var n="fitColumns"==e.table.modules.layout.getMode()?e.table.columnManager.getFlexBaseWidth():e.table.columnManager.getWidth(),i=(e.table.options.headerVisible?e.table.columnManager.element.clientWidth:e.table.element.clientWidth)-n;if(i<0){var o=e.columns[e.index];o?(e.hideColumn(o),e.index++):t=!1}else{var r=e.columns[e.index-1];r&&i>0&&i>=r.getWidth()?(e.showColumn(r),e.index--):t=!1}e.table.rowManager.activeRowsCount||e.table.rowManager.renderEmptyScroll()}},Z.prototype.generateCollapsedContent=function(){var e=this,t=this.table.rowManager.getDisplayRows();t.forEach(function(t){e.generateCollapsedRowContent(t)})},Z.prototype.generateCollapsedRowContent=function(e){var t,n;if(e.modules.responsiveLayout){t=e.modules.responsiveLayout.element;while(t.firstChild)t.removeChild(t.firstChild);n=this.collapseFormatter(this.generateCollapsedRowData(e)),n&&t.appendChild(n)}},Z.prototype.generateCollapsedRowData=function(e){var t,n=this,i=e.getData(),o=[];return this.hiddenColumns.forEach(function(r){var a=r.getFieldValue(i);r.definition.title&&r.field&&(r.modules.format&&n.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return a},getData:function(){return i},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()}},o.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(n.table.modules.format,t,r.modules.format.params)})):o.push({field:r.field,title:r.definition.title,value:a}))}),o},Z.prototype.formatCollapsedData=function(e){var t=document.createElement("table");return e.forEach(function(e){var n,i=document.createElement("tr"),o=document.createElement("td"),r=document.createElement("td"),a=document.createElement("strong");o.appendChild(a),this.table.modules.localize.bind("columns|"+e.field,function(t){a.innerText=t||e.title}),e.value instanceof Node?(n=document.createElement("div"),n.appendChild(e.value),r.appendChild(n)):r.innerHTML=e.value,i.appendChild(o),i.appendChild(r),t.appendChild(i)},this),Object.keys(e).length?t:""},g.prototype.registerModule("responsiveLayout",Z);var Q=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};Q.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},Q.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(n.classList.add("tabulator-selectable"),n.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?n.addEventListener("click",function(n){if(n.shiftKey){t.table._clearSelection(),t.lastClickedRow=t.lastClickedRow||e;var i=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),o=t.table.rowManager.getDisplayRowIndex(e),r=i<=o?i:o,a=i>=o?i:o,s=t.table.rowManager.getDisplayRows().slice(0),c=s.splice(r,a-r+1);n.ctrlKey||n.metaKey?(c.forEach(function(n){n!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(n):t.selectedRows.lengtht.table.options.selectable&&(c=c.slice(0,t.table.options.selectable)),t.selectRows(c)),t.table._clearSelection()}else n.ctrlKey||n.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(void 0,!0),t.selectRows(e),t.lastClickedRow=e)}):(n.addEventListener("click",function(n){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)}),n.addEventListener("mousedown",function(n){if(n.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",i),document.body.addEventListener("keyup",i),t.toggleRow(e),!1}),n.addEventListener("mouseenter",function(n){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),n.addEventListener("mouseout",function(n){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(n.classList.add("tabulator-unselectable"),n.classList.remove("tabulator-selectable"))},Q.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},Q.prototype.selectRows=function(e){var t,n=this;switch("undefined"===typeof e?"undefined":r(e)){case"undefined":this.table.rowManager.rows.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;case"string":t=this.table.rowManager.findRow(e),t?this._selectRow(t,!0,!0):this.table.rowManager.getRows(e).forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;default:Array.isArray(e)?(e.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged()):this._selectRow(e,!1,!0);break}},Q.prototype._selectRow=function(e,t,n){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!n&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var i=this.table.rowManager.findRow(e);i?-1==this.selectedRows.indexOf(i)&&(i.getElement().classList.add("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!0,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!0),this.selectedRows.push(i),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!0),t||this.table.options.rowSelected.call(this.table,i.getComponent()),this._rowSelectionChanged(t)):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},Q.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},Q.prototype.deselectRows=function(e,t){var n,i=this;if("undefined"==typeof e){n=i.selectedRows.length;for(var o=0;o