diff --git a/dist/vue-pivottable.common.js b/dist/vue-pivottable.common.js index edff86b..8acf4e3 100644 --- a/dist/vue-pivottable.common.js +++ b/dist/vue-pivottable.common.js @@ -227351,7 +227351,9 @@ utils_PivotData.defaultProps = { }, locales: { type: Object, - default: locales + default: function _default() { + return locales; + } }, rowTotal: { type: Boolean, @@ -227709,14 +227711,14 @@ function makeRenderer() { attrs: { key: "pvtVal".concat(i, "-").concat(j) }, - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(aggregator.value(), rowKey, colKey) } : {} }, aggregator.format(aggregator.value())); }), _this.rowTotal ? h('td', { staticClass: ['pvtTotal'], style: colTotalColors(totalAggregator.value()), - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(totalAggregator.value(), rowKey, []) } : {} }, totalAggregator.format(totalAggregator.value())) : undefined]); @@ -227733,13 +227735,13 @@ function makeRenderer() { attrs: { key: "total".concat(i) }, - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(totalAggregator.value(), [], colKey) } : {} }, totalAggregator.format(totalAggregator.value())); }) : undefined, this.colTotal && this.rowTotal ? h('td', { staticClass: ['pvtGrandTotal'], - on: getClickHandler ? { + on: this.tableOptions.clickCallback ? { click: getClickHandler(grandTotalAggregator.value(), [], []) } : {} }, grandTotalAggregator.format(grandTotalAggregator.value())) : undefined])])]); diff --git a/dist/vue-pivottable.umd.js b/dist/vue-pivottable.umd.js index 9f9127a..1f9343f 100644 --- a/dist/vue-pivottable.umd.js +++ b/dist/vue-pivottable.umd.js @@ -227360,7 +227360,9 @@ utils_PivotData.defaultProps = { }, locales: { type: Object, - default: locales + default: function _default() { + return locales; + } }, rowTotal: { type: Boolean, @@ -227718,14 +227720,14 @@ function makeRenderer() { attrs: { key: "pvtVal".concat(i, "-").concat(j) }, - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(aggregator.value(), rowKey, colKey) } : {} }, aggregator.format(aggregator.value())); }), _this.rowTotal ? h('td', { staticClass: ['pvtTotal'], style: colTotalColors(totalAggregator.value()), - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(totalAggregator.value(), rowKey, []) } : {} }, totalAggregator.format(totalAggregator.value())) : undefined]); @@ -227742,13 +227744,13 @@ function makeRenderer() { attrs: { key: "total".concat(i) }, - on: getClickHandler ? { + on: _this.tableOptions.clickCallback ? { click: getClickHandler(totalAggregator.value(), [], colKey) } : {} }, totalAggregator.format(totalAggregator.value())); }) : undefined, this.colTotal && this.rowTotal ? h('td', { staticClass: ['pvtGrandTotal'], - on: getClickHandler ? { + on: this.tableOptions.clickCallback ? { click: getClickHandler(grandTotalAggregator.value(), [], []) } : {} }, grandTotalAggregator.format(grandTotalAggregator.value())) : undefined])])]); diff --git a/dist/vue-pivottable.umd.min.js b/dist/vue-pivottable.umd.min.js index fe177ca..13441f6 100644 --- a/dist/vue-pivottable.umd.min.js +++ b/dist/vue-pivottable.umd.min.js @@ -56,4 +56,4 @@ var n=r("1fb5"),i=r("9152"),a=r("2335");function o(){try{var t=new Uint8Array(1) * @author owenm * @license MIT */ -function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(){return a=Object.assign||function(t){for(var e=1;e=0||(i[r]=t[r]);return i}function l(t,e){if(null==t)return{};var r,n,i=s(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function c(t){return u(t)||f(t)||h()}function u(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(r){return!1}return!1}}function A(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function M(t,e,r,n){if(t){r=r||document;do{if(null!=e&&(">"===e[0]?t.parentNode===r&&k(t,e):k(t,e))||n&&t===r)return t;if(t===r)break}while(t=A(t))}return null}var S,E=/\s+/g;function C(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(E," ")}}function L(t,e,r){var n=t&&t.style;if(n){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),void 0===e?r:r[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=r+("string"===typeof r?"":"px")}}function O(t,e){var r="";if("string"===typeof t)r=t;else do{var n=L(t,"transform");n&&"none"!==n&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function P(t,e,r){if(t){var n=t.getElementsByTagName(e),i=0,a=n.length;if(r)for(;i=a:i<=a,!o)return n;if(n===I())break;n=V(n,!1)}return!1}function R(t,e,r){var n=0,i=0,a=t.children;while(i2&&void 0!==arguments[2]?arguments[2]:{},n=r.evt,i=l(r,["evt"]);rt.pluginEvent.bind($t)(t,e,o({dragEl:ot,parentEl:st,ghostEl:lt,rootEl:ct,nextEl:ut,lastDownEl:ft,cloneEl:ht,cloneHidden:pt,dragStarted:Mt,putSortable:xt,activeSortable:$t.active,originalEvent:n,oldIndex:dt,oldDraggableIndex:gt,newIndex:vt,newDraggableIndex:yt,hideGhostForTarget:Xt,unhideGhostForTarget:Zt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){at({sortable:e,name:t,originalEvent:n})}},i))};function at(t){nt(o({putSortable:xt,cloneEl:ht,targetEl:ot,rootEl:ct,oldIndex:dt,oldDraggableIndex:gt,newIndex:vt,newDraggableIndex:yt},t))}var ot,st,lt,ct,ut,ft,ht,pt,dt,vt,gt,yt,mt,xt,bt,_t,wt,Tt,kt,At,Mt,St,Et,Ct,Lt,Ot=!1,Pt=!1,It=[],Dt=!1,zt=!1,Rt=[],Ft=!1,Nt=[],Bt="undefined"!==typeof document,jt=x,Vt=g||v?"cssFloat":"float",Ut=Bt&&!b&&!x&&"draggable"in document.createElement("div"),qt=function(){if(Bt){if(v)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var r=L(t),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=R(t,0,e),a=R(t,1,e),o=i&&L(i),s=a&&L(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+D(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(a).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===r[Vt]||a&&"none"===r[Vt]&&l+c>n)?"vertical":"horizontal"},Gt=function(t,e,r){var n=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,o=r?e.left:e.top,s=r?e.right:e.bottom,l=r?e.width:e.height;return n===o||i===s||n+a/2===o+l/2},Yt=function(t,e){var r;return It.some((function(n){if(!F(n)){var i=D(n),a=n[J].options.emptyInsertThreshold,o=t>=i.left-a&&t<=i.right+a,s=e>=i.top-a&&e<=i.bottom+a;return a&&o&&s?r=n:void 0}})),r},Wt=function(t){function e(t,r){return function(n,i,a,o){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(r||s))return!0;if(null==t||!1===t)return!1;if(r&&"clone"===t)return t;if("function"===typeof t)return e(t(n,i,a,o),r)(n,i,a,o);var l=(r?n:i).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var r={},i=t.group;i&&"object"==n(i)||(i={name:i}),r.name=i.name,r.checkPull=e(i.pull,!0),r.checkPut=e(i.put),r.revertClone=i.revertClone,t.group=r},Xt=function(){!qt&<&&L(lt,"display","none")},Zt=function(){!qt&<&&L(lt,"display","")};Bt&&document.addEventListener("click",(function(t){if(Pt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Pt=!1,!1}),!0);var Jt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=Yt(t.clientX,t.clientY);if(e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.target=r.rootEl=e,r.preventDefault=void 0,r.stopPropagation=void 0,e[J]._onDragOver(r)}}},Kt=function(t){ot&&ot.parentNode[J]._isOutsideThisEl(t.target)};function $t(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[J]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ht(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$t.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in rt.initializePlugins(this,t,r),r)!(n in e)&&(e[n]=r[n]);for(var i in Wt(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Ut,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),It.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,K())}function Qt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,r,n,i,a,o,s){var l,c,u=t[J],f=u.options.onMove;return!window.CustomEvent||v||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=r,l.draggedRect=n,l.related=i||e,l.relatedRect=a||D(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),f&&(c=f.call(u,l,o)),c}function ee(t){t.draggable=!1}function re(){Ft=!1}function ne(t,e,r){var n=D(F(r.el,r.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}function ie(t,e,r,n,i,a,o,s){var l=n?t.clientY:t.clientX,c=n?r.height:r.width,u=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o)if(s&&Ctu+c*a/2:lf-Ct)return-Et}else if(l>u+c*(1-i)/2&&lf-c*a/2)?l>u+c/2?1:-1:0}function ae(t){return N(ot)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&ee(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,e?"touchmove":"mousemove",this._onTouchMove):(w(ot,"dragend",this),w(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(r){}},_dragStarted:function(t,e){if(Ot=!1,ct&&ot){it("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Kt);var r=this.options;!t&&C(ot,r.dragClass,!1),C(ot,r.ghostClass,!0),$t.active=this,t&&this._appendGhost(),at({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(_t){this._lastX=_t.clientX,this._lastY=_t.clientY,Xt();var t=document.elementFromPoint(_t.clientX,_t.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(_t.clientX,_t.clientY),t===e)break;e=t}if(ot.parentNode[J]._isOutsideThisEl(t),e)do{if(e[J]){var r=void 0;if(r=e[J]._onDragOver({clientX:_t.clientX,clientY:_t.clientY,target:t,rootEl:e}),r&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Zt()}},_onTouchMove:function(t){if(bt){var e=this.options,r=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,a=lt&&O(lt,!0),o=lt&&a&&a.a,s=lt&&a&&a.d,l=jt&&Lt&&B(Lt),c=(i.clientX-bt.clientX+n.x)/(o||1)+(l?l[0]-Rt[0]:0)/(o||1),u=(i.clientY-bt.clientY+n.y)/(s||1)+(l?l[1]-Rt[1]:0)/(s||1);if(!$t.active&&!Ot){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(at({rootEl:st,name:"add",toEl:st,fromEl:ct,originalEvent:t}),at({sortable:this,name:"remove",toEl:st,originalEvent:t}),at({rootEl:st,name:"sort",toEl:st,fromEl:ct,originalEvent:t}),at({sortable:this,name:"sort",toEl:st,originalEvent:t})),xt&&xt.save()):vt!==dt&&vt>=0&&(at({sortable:this,name:"update",toEl:st,originalEvent:t}),at({sortable:this,name:"sort",toEl:st,originalEvent:t})),$t.active&&(null!=vt&&-1!==vt||(vt=dt,yt=gt),at({sortable:this,name:"end",toEl:st,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){it("nulling",this),ct=ot=st=lt=ut=ht=ft=pt=bt=_t=Mt=vt=yt=dt=gt=St=Et=xt=mt=$t.dragged=$t.ghost=$t.clone=$t.active=null,Nt.forEach((function(t){t.checked=!0})),Nt.length=wt=Tt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),Qt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],r=this.el.children,n=0,i=r.length,a=this.options;n1&&(Ie.forEach((function(t){n.addAnimationState({target:t,rect:Re?D(t):i}),Z(t),t.fromRect=i,e.removeAnimationState(t)})),Re=!1,Be(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(t){var e=t.sortable,r=t.isOwner,n=t.insertion,i=t.activeSortable,a=t.parentEl,o=t.putSortable,s=this.options;if(n){if(r&&i._hideClone(),ze=!1,s.animation&&Ie.length>1&&(Re||!r&&!i.options.sort&&!o)){var l=D(Le,!1,!0,!0);Ie.forEach((function(t){t!==Le&&(X(t,l),a.appendChild(t))})),Re=!0}if(!r)if(Re||Ve(),Ie.length>1){var c=Pe;i._showClone(e),i.options.animation&&!Pe&&c&&De.forEach((function(t){i.addAnimationState({target:t,rect:Oe}),t.fromRect=Oe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,r=t.isOwner,n=t.activeSortable;if(Ie.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!r&&n.multiDrag.isMultiDrag){Oe=a({},e);var i=O(Le,!0);Oe.top-=i.f,Oe.left-=i.e}},dragOverAnimationComplete:function(){Re&&(Re=!1,Ve())},drop:function(t){var e=t.originalEvent,r=t.rootEl,n=t.parentEl,i=t.sortable,a=t.dispatchSortableEvent,o=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=n.children;if(!Fe)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(Le,c.selectedClass,!~Ie.indexOf(Le)),~Ie.indexOf(Le))Ie.splice(Ie.indexOf(Le),1),Ee=null,nt({sortable:i,rootEl:r,name:"deselect",targetEl:Le,originalEvt:e});else{if(Ie.push(Le),nt({sortable:i,rootEl:r,name:"select",targetEl:Le,originalEvt:e}),e.shiftKey&&Ee&&i.el.contains(Ee)){var f,h,p=N(Ee),d=N(Le);if(~p&&~d&&p!==d)for(d>p?(h=p,f=d):(h=d,f=p+1);h1){var v=D(Le),g=N(Le,":not(."+this.options.selectedClass+")");if(!ze&&c.animation&&(Le.thisAnimationDuration=null),l.captureAnimationState(),!ze&&(c.animation&&(Le.fromRect=v,Ie.forEach((function(t){if(t.thisAnimationDuration=null,t!==Le){var e=Re?D(t):v;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ve(),Ie.forEach((function(t){u[g]?n.insertBefore(t,u[g]):n.appendChild(t),g++})),o===N(Le))){var y=!1;Ie.forEach((function(t){t.sortableIndex===N(t)||(y=!0)})),y&&a("update")}Ie.forEach((function(t){Z(t)})),l.animateAll()}Ce=l}(r===n||s&&"clone"!==s.lastPutMode)&&De.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Fe=!1,De.length=0},destroyGlobal:function(){this._deselectMultiDrag(),T(document,"pointerup",this._deselectMultiDrag),T(document,"mouseup",this._deselectMultiDrag),T(document,"touchend",this._deselectMultiDrag),T(document,"keydown",this._checkKeyDown),T(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Fe||!Fe)&&Ce===this.sortable&&(!t||!M(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ie.length){var e=Ie[0];C(e,this.options.selectedClass,!1),Ie.shift(),nt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[J];e&&e.options.multiDrag&&!~Ie.indexOf(t)&&(Ce&&Ce!==e&&(Ce.multiDrag._deselectMultiDrag(),Ce=e),C(t,e.options.selectedClass,!0),Ie.push(t))},deselect:function(t){var e=t.parentNode[J],r=Ie.indexOf(t);e&&e.options.multiDrag&&~r&&(C(t,e.options.selectedClass,!1),Ie.splice(r,1))}},eventProperties:function(){var t=this,e=[],r=[];return Ie.forEach((function(n){var i;e.push({multiDragElement:n,index:n.sortableIndex}),i=Re&&n!==Le?-1:Re?N(n,":not(."+t.options.selectedClass+")"):N(n),r.push({multiDragElement:n,index:i})})),{items:c(Ie),clones:[].concat(De),oldIndicies:e,newIndicies:r}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Be(t,e){Ie.forEach((function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)}))}function je(t,e){De.forEach((function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)}))}function Ve(){Ie.forEach((function(t){t!==Le&&t.parentNode&&t.parentNode.removeChild(t)}))}$t.mount(new me),$t.mount(Ae,ke),e["default"]=$t},aa77:function(t,e,r){var n=r("5ca1"),i=r("be13"),a=r("79e5"),o=r("fdef"),s="["+o+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),f=function(t,e,r){var i={},s=a((function(){return!!o[t]()||l[t]()!=l})),c=i[t]=s?e(h):o[t];r&&(i[r]=c),n(n.P+n.F*s,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=f},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),a=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},ac4d:function(t,e,r){r("3a72")("asyncIterator")},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),a=r("2aba"),o=r("7726"),s=r("32e9"),l=r("84f2"),c=r("2b4c"),u=c("iterator"),f=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v0?i(n(t),9007199254740991):0}},b76a:function(t,e,r){(function(e,n){t.exports=n(r("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"01f9":function(t,e,r){"use strict";var n=r("2d00"),i=r("5ca1"),a=r("2aba"),o=r("32e9"),s=r("84f2"),l=r("41a0"),c=r("7f20"),u=r("38fd"),f=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",g=function(){return this};t.exports=function(t,e,r,y,m,x,b){l(r,e,y);var _,w,T,k=function(t){if(!h&&t in E)return E[t];switch(t){case d:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},A=e+" Iterator",M=m==v,S=!1,E=t.prototype,C=E[f]||E[p]||m&&E[m],L=C||k(m),O=m?M?k("entries"):L:void 0,P="Array"==e&&E.entries||C;if(P&&(T=u(P.call(new t)),T!==Object.prototype&&T.next&&(c(T,A,!0),n||"function"==typeof T[f]||o(T,f,g))),M&&C&&C.name!==v&&(S=!0,L=function(){return C.call(this)}),n&&!b||!h&&!S&&E[f]||o(E,f,L),s[e]=L,s[A]=g,m)if(_={values:M?L:k(v),keys:x?L:k(d),entries:O},b)for(w in _)w in E||a(E,w,_[w]);else i(i.P+i.F*(h||S),e,_);return _}},"02f4":function(t,e,r){var n=r("4588"),i=r("be13");t.exports=function(t){return function(e,r){var a,o,s=String(i(e)),l=n(r),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},"0390":function(t,e,r){"use strict";var n=r("02f4")(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"0bfb":function(t,e,r){"use strict";var n=r("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,r){var n=r("ce10"),i=r("e11e");t.exports=Object.keys||function(t){return n(t,i)}},1495:function(t,e,r){var n=r("86cc"),i=r("cb7c"),a=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(t,e){i(t);var r,o=a(e),s=o.length,l=0;while(s>l)n.f(t,r=o[l++],e[r]);return t}},"214f":function(t,e,r){"use strict";r("b0c5");var n=r("2aba"),i=r("32e9"),a=r("79e5"),o=r("be13"),s=r("2b4c"),l=r("520a"),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var h=s(t),p=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!a((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[c]=function(){return r}),r[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!u||"split"===t&&!f){var v=/./[h],g=r(o,h,""[t],(function(t,e,r,n,i){return e.exec===l?p&&!i?{done:!0,value:v.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),y=g[0],m=g[1];n(String.prototype,t,y),i(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},"230e":function(t,e,r){var n=r("d3f4"),i=r("7726").document,a=n(i)&&n(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},"23c6":function(t,e,r){var n=r("2d95"),i=r("2b4c")("toStringTag"),a="Arguments"==n(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=o(e=Object(t),i))?r:a?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,r){var n=r("7726"),i=r("32e9"),a=r("69a8"),o=r("ca5a")("src"),s=r("fa5b"),l="toString",c=(""+s).split(l);r("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,r,s){var l="function"==typeof r;l&&(a(r,"name")||i(r,"name",e)),t[e]!==r&&(l&&(a(r,o)||i(r,o,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:s?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(t,e,r){var n=r("cb7c"),i=r("1495"),a=r("e11e"),o=r("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=r("230e")("iframe"),n=a.length,i="<",o=">";e.style.display="none",r("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+o+"document.F=Object"+i+"/script"+o),t.close(),c=t.F;while(n--)delete c[l][a[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(s[l]=n(t),r=new s,s[l]=null,r[o]=t):r=c(),void 0===e?r:i(r,e)}},"2b4c":function(t,e,r){var n=r("5537")("wks"),i=r("ca5a"),a=r("7726").Symbol,o="function"==typeof a,s=t.exports=function(t){return n[t]||(n[t]=o&&a[t]||(o?a:i)("Symbol."+t))};s.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"2fdb":function(t,e,r){"use strict";var n=r("5ca1"),i=r("d2c8"),a="includes";n(n.P+n.F*r("5147")(a),"String",{includes:function(t){return!!~i(this,t,a).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,r){var n=r("86cc"),i=r("4630");t.exports=r("9e1e")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},"38fd":function(t,e,r){var n=r("69a8"),i=r("4bf8"),a=r("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"41a0":function(t,e,r){"use strict";var n=r("2aeb"),i=r("4630"),a=r("7f20"),o={};r("32e9")(o,r("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(o,{next:i(1,r)}),a(t,e+" Iterator")}},"456d":function(t,e,r){var n=r("4bf8"),i=r("0d58");r("5eda")("keys",(function(){return function(t){return i(n(t))}}))},4588:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,r){var n=r("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,r){var n=r("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(i){}}return!0}},"520a":function(t,e,r){"use strict";var n=r("0bfb"),i=RegExp.prototype.exec,a=String.prototype.replace,o=i,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(o=function(t){var e,r,o,u,f=this;return c&&(r=new RegExp("^"+f.source+"$(?!\\s)",n.call(f))),l&&(e=f[s]),o=i.call(f,t),l&&o&&(f[s]=f.global?o.index+o[0].length:e),c&&o&&o.length>1&&a.call(o[0],r,(function(){for(u=1;u1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(t,e,r){var n=r("626a"),i=r("be13");t.exports=function(t){return n(i(t))}},"69a8":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"6a99":function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,r){"use strict";var n=r("0d58"),i=r("2621"),a=r("52a7"),o=r("4bf8"),s=r("626a"),l=Object.assign;t.exports=!l||r("79e5")((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n}))?function(t,e){var r=o(t),l=arguments.length,c=1,u=i.f,f=a.f;while(l>c){var h,p=s(arguments[c++]),d=u?n(p).concat(u(p)):n(p),v=d.length,g=0;while(v>g)f.call(p,h=d[g++])&&(r[h]=p[h])}return r}:l},7726:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},"77f1":function(t,e,r){var n=r("4588"),i=Math.max,a=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):a(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,r){var n=r("86cc").f,i=r("69a8"),a=r("2b4c")("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},8378:function(t,e){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,r){var n=r("cb7c"),i=r("c69a"),a=r("6a99"),o=Object.defineProperty;e.f=r("9e1e")?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),i)try{return o(t,e,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},"9b43":function(t,e,r){var n=r("d8e8");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,r){var n=r("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&r("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9def":function(t,e,r){var n=r("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,r){t.exports=!r("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,r){e.exports=t},a481:function(t,e,r){"use strict";var n=r("cb7c"),i=r("4bf8"),a=r("9def"),o=r("4588"),s=r("0390"),l=r("5f1b"),c=Math.max,u=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};r("214f")("replace",2,(function(t,e,r,v){return[function(n,i){var a=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,i):r.call(String(a),n,i)},function(t,e){var i=v(r,t,this,e);if(i.done)return i.value;var f=n(t),h=String(this),p="function"===typeof e;p||(e=String(e));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}var x=[];while(1){var b=l(f,h);if(null===b)break;if(x.push(b),!y)break;var _=String(b[0]);""===_&&(f.lastIndex=s(h,a(f.lastIndex),m))}for(var w="",T=0,k=0;k=T&&(w+=h.slice(T,M)+O,T=M+A.length)}return w+h.slice(T)}];function g(t,e,n,a,o,s){var l=n+t.length,c=a.length,u=p;return void 0!==o&&(o=i(o),u=h),r.call(s,u,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return r;if(u>c){var h=f(u/10);return 0===h?r:h<=c?void 0===a[h-1]?i.charAt(1):a[h-1]+i.charAt(1):r}s=a[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),a=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),a=r("2aba"),o=r("7726"),s=r("32e9"),l=r("84f2"),c=r("2b4c"),u=c("iterator"),f=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;vu)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}}},c649:function(t,e,r){"use strict";(function(t){r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return i})),r.d(e,"d",(function(){return l}));r("a481");function n(){return"undefined"!==typeof window?window.console:t.console}var i=n();function a(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}}var o=/-(\w)/g,s=a((function(t){return t.replace(o,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,r){var n=0===r?t.children[0]:t.children[r-1].nextSibling;t.insertBefore(e,n)}}).call(this,r("c8ba"))},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")((function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),a=r("84f2"),o=r("6821");t.exports=r("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),a=r("c366")(!1),o=r("613b")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},d2c8:function(t,e,r){var n=r("aae3"),i=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,r){"use strict";var n=r("5ca1"),i=r("9def"),a=r("d2c8"),o="startsWith",s=""[o];n(n.P+n.F*r("5147")(o),"String",{startsWith:function(t){var e=a(this,t,o),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,r):e.slice(r,r+n.length)===n}})},f6fd:function(t,e){(function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})})(document)},f751:function(t,e,r){var n=r("5ca1");n(n.S+n.F,"Object",{assign:r("7333")})},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";var n;(r.r(e),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));r("f751"),r("f559"),r("ac6a"),r("cadf"),r("456d");function i(t){if(Array.isArray(t))return t}function a(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),e&&r.length===e)break}catch(l){i=!0,a=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(i)throw a}}return r}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=a?i.length:i.indexOf(t)}));return r?o.filter((function(t){return-1!==t})):o}function b(t,e){var r=this;this.$nextTick((function(){return r.$emit(t.toLowerCase(),e)}))}function _(t){var e=this;return function(r){null!==e.realList&&e["onDrag"+t](r),b.call(e,t,r)}}function w(t){return["transition-group","TransitionGroup"].includes(t)}function T(t){if(!t||1!==t.length)return!1;var e=c(t,1),r=e[0].componentOptions;return!!r&&w(r.tag)}function k(t,e,r){return t[r]||(e[r]?e[r]():void 0)}function A(t,e,r){var n=0,i=0,a=k(e,r,"header");a&&(n=a.length,t=t?[].concat(p(a),p(t)):p(a));var o=k(e,r,"footer");return o&&(i=o.length,t=t?[].concat(p(t),p(o)):p(o)),{children:t,headerOffset:n,footerOffset:i}}function M(t,e){var r=null,n=function(t,e){r=y(r,t,e)},i=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,r){return e[r]=t[r],e}),{});if(n("attrs",i),!e)return r;var a=e.on,o=e.props,s=e.attrs;return n("on",a),n("props",o),Object.assign(r.attrs,s),r}var S=["Start","Add","Remove","Update","End"],E=["Choose","Unchoose","Sort","Filter","Clone"],C=["Move"].concat(S,E).map((function(t){return"on"+t})),L=null,O={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},P={name:"draggable",inheritAttrs:!1,props:O,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=T(e);var r=A(e,this.$slots,this.$scopedSlots),n=r.children,i=r.headerOffset,a=r.footerOffset;this.headerOffset=i,this.footerOffset=a;var o=M(this.$attrs,this.componentData);return t(this.getTag(),o,n)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};S.forEach((function(r){e["on"+r]=_.call(t,r)})),E.forEach((function(r){e["on"+r]=b.bind(t,r)}));var r=Object.keys(this.$attrs).reduce((function(e,r){return e[Object(g["a"])(r)]=t.$attrs[r],e}),{}),n=Object.assign({},this.options,r,e,{onMove:function(e,r){return t.onDragMove(e,r)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new v.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var r=Object(g["a"])(e);-1===C.indexOf(r)&&this._sortable.option(r,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=x(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=m(this.getChildrenNodes()||[],t);if(-1===e)return null;var r=this.realList[e];return{index:e,element:r}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&w(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var r=function(r){return r.splice(e,0,r.splice(t,1)[0])};this.alterList(r)},getRelatedContextFromMoveEvent:function(t){var e=t.to,r=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var i=n.realList,a={list:i,component:n};if(e!==r&&i&&n.getUnderlyingVm){var o=n.getUnderlyingVm(r);if(o)return Object.assign(o,a)}return a},getVmIndex:function(t){var e=this.visibleIndexes,r=e.length;return t>r-1?r:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var r=this.getComponent();r.children=[],r.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),L=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(g["d"])(t.item);var r=this.getVmIndex(t.newIndex);this.spliceList(r,0,e),this.computeIndexes();var n={element:e,newIndex:r};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(g["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var r={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:r})}else Object(g["d"])(t.clone)},onDragUpdate:function(t){Object(g["d"])(t.item),Object(g["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,r=this.getVmIndex(t.newIndex);this.updatePosition(e,r);var n={element:this.context.element,oldIndex:e,newIndex:r};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var r=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),n=r.indexOf(e.related),i=t.component.getVmIndex(n),a=-1!==r.indexOf(L);return a||!e.willInsertAfter?i:i+1},onDragMove:function(t,e){var r=this.move;if(!r||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),i=this.context,a=this.computeFutureIndex(n,t);Object.assign(i,{futureIndex:a});var o=Object.assign({},t,{relatedContext:n,draggedContext:i});return r(o,e)},onDragEnd:function(){this.computeIndexes(),L=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",P);var I=P;e["default"]=I}})["default"]}))},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,r){var n=r("355d"),i=r("aebd"),a=r("36c3"),o=r("1bc3"),s=r("07e3"),l=r("794b"),c=Object.getOwnPropertyDescriptor;e.f=r("8e60")?c:function(t,e){if(t=a(t),e=o(e,!0),l)try{return c(t,e)}catch(r){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},c207:function(t,e){},c366:function(t,e,r){var n=r("6821"),i=r("9def"),a=r("77f1");t.exports=function(t){return function(e,r,o){var s,l=n(e),c=i(l.length),u=a(o,c);if(t&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}}},c367:function(t,e,r){"use strict";var n=r("8436"),i=r("50ed"),a=r("481b"),o=r("36c3");t.exports=r("30f1")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},c3a1:function(t,e,r){var n=r("e6f3"),i=r("1691");t.exports=Object.keys||function(t){return n(t,i)}},c5f6:function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),a=r("2d95"),o=r("5dbc"),s=r("6a99"),l=r("79e5"),c=r("9093").f,u=r("11e9").f,f=r("86cc").f,h=r("aa77").trim,p="Number",d=n[p],v=d,g=d.prototype,y=a(r("2aeb")(g))==p,m="trim"in String.prototype,x=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var r,n,i,a=e.charCodeAt(0);if(43===a||45===a){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var o,l=e.slice(2),c=0,u=l.length;ci)return NaN;return parseInt(l,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(y?l((function(){g.valueOf.call(r)})):a(r)!=p)?o(new v(x(e)),r,d):x(e)};for(var b,_=r("9e1e")?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(v,b=_[w])&&!i(d,b)&&f(d,b,u(v,b));d.prototype=g,g.constructor=d,r("2aba")(n,p,d)}},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")((function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),a=r("84f2"),o=r("6821");t.exports=r("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,r){e.f=r("5168")},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),a=r("c366")(!1),o=r("613b")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},d2c8:function(t,e,r){var n=r("aae3"),i=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},d2d5:function(t,e,r){r("1654"),r("549b"),t.exports=r("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d4c0:function(t,e,r){var n=r("0d58"),i=r("2621"),a=r("52a7");t.exports=function(t){var e=n(t),r=i.f;if(r){var o,s=r(t),l=a.f,c=0;while(s.length>c)l.call(t,o=s[c++])&&e.push(o)}return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,r){var n=r("79aa");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,r){r("1654"),r("6c1c"),t.exports=r("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,r){var n=r("e4ae"),i=r("794b"),a=r("1bc3"),o=Object.defineProperty;e.f=r("8e60")?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),i)try{return o(t,e,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},dbdb:function(t,e,r){var n=r("584a"),i=r("e53d"),a="__core-js_shared__",o=i[a]||(i[a]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,r){var n=r("f772");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},e6f3:function(t,e,r){var n=r("07e3"),i=r("36c3"),a=r("5b4e")(!1),o=r("5559")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},ebd6:function(t,e,r){var n=r("cb7c"),i=r("d8e8"),a=r("2b4c")("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},ebfd:function(t,e,r){var n=r("62a0")("meta"),i=r("f772"),a=r("07e3"),o=r("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!r("294c")((function(){return l(Object.preventExtensions({}))})),u=function(t){o(t,n,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},h=function(t,e){if(!a(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},p=function(t){return c&&d.NEED&&l(t)&&!a(t,n)&&u(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:f,getWeak:h,onFreeze:p}},f1ae:function(t,e,r){"use strict";var n=r("86cc"),i=r("4630");t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},f410:function(t,e,r){r("1af6"),t.exports=r("584a").Array.isArray},f751:function(t,e,r){var n=r("5ca1");n(n.S+n.F,"Object",{assign:r("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,r){r("014b"),r("c207"),r("69d3"),r("765d"),t.exports=r("584a").Symbol},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"VuePivottable",(function(){return rt})),r.d(e,"VuePivottableUi",(function(){return bt})),r.d(e,"PivotUtilities",(function(){return _t})),r.d(e,"Renderer",(function(){return wt})),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(r.p=a[1])}r("7f7f"),r("8e6e"),r("ac6a"),r("cadf"),r("456d");var o=r("85f2"),s=r.n(o);function l(t,e,r){return e in t?s()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("f751");function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r+n[1]:"",o=/(\d+)(\d{3})/;while(o.test(i))i=i.replace(o,"$1".concat(e,"$2"));return i+a},O=function(t){var e={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:""},r=Object.assign({},e,t);return function(t){if(isNaN(t)||!isFinite(t))return"";var e=L((r.scaler*t).toFixed(r.digitsAfterDecimal),r.thousandsSep,r.decimalSep);return"".concat(r.prefix).concat(e).concat(r.suffix)}},P=/(\d+)|(\D+)/g,I=/\d/,D=/^0/,z=function(t,e){if(null!==e&&null===t)return-1;if(null!==t&&null===e)return 1;if("number"===typeof t&&isNaN(t))return-1;if("number"===typeof e&&isNaN(e))return 1;var r=Number(t),n=Number(e);if(rn)return 1;if("number"===typeof t&&"number"!==typeof e)return-1;if("number"===typeof e&&"number"!==typeof t)return 1;if("number"===typeof t&&"number"===typeof e)return 0;if(isNaN(n)&&!isNaN(r))return-1;if(isNaN(r)&&!isNaN(n))return 1;var i=String(t),a=String(e);if(i===a)return 0;if(!I.test(i)||!I.test(a))return i>a?1:-1;i=i.match(P),a=a.match(P);while(i.length&&a.length){var o=i.shift(),s=a.shift();if(o!==s)return I.test(o)&&I.test(s)?o.replace(D,".0")-s.replace(D,".0"):o>s?1:-1}return i.length-a.length},R=function(t){var e={},r={};for(var n in t){var i=t[n];e[i]=n,"string"===typeof i&&(r[i.toLowerCase()]=n)}return function(t,n){return t in e&&n in e?e[t]-e[n]:t in e?-1:n in e?1:t in r&&n in r?r[t]-r[n]:t in r?-1:n in r?1:z(t,n)}},F=function(t,e){if(t)if("function"===typeof t){var r=t(e);if("function"===typeof r)return r}else if(e in t)return t[e];return z},N=O(),B=O({digitsAfterDecimal:0}),j=O({digitsAfterDecimal:1,scaler:100,suffix:"%"}),V={count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;return function(){return function(){return{count:0,push:function(){this.count++},value:function(){return this.count},format:t}}}},uniques:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;return function(r){var n=C(r,1),i=n[0];return function(){return{uniq:[],push:function(t){Array.from(this.uniq).includes(t[i])||this.uniq.push(t[i])},value:function(){return t(this.uniq)},format:e,numInputs:"undefined"!==typeof i?0:1}}}},sum:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return function(e){var r=C(e,1),n=r[0];return function(){return{sum:0,push:function(t){isNaN(parseFloat(t[n]))||(this.sum+=parseFloat(t[n]))},value:function(){return this.sum},format:t,numInputs:"undefined"!==typeof n?0:1}}}},extremes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function(r){var n=C(r,1),i=n[0];return function(r){return{val:null,sorter:F("undefined"!==typeof r?r.sorters:null,i),push:function(e){var r=e[i];["min","max"].includes(t)&&(r=parseFloat(r),isNaN(r)||(this.val=Math[t](r,null!==this.val?this.val:r))),"first"===t&&this.sorter(r,null!==this.val?this.val:r)<=0&&(this.val=r),"last"===t&&this.sorter(r,null!==this.val?this.val:r)>=0&&(this.val=r)},value:function(){return this.val},format:function(t){return isNaN(t)?t:e(t)},numInputs:"undefined"!==typeof i?0:1}}}},quantile:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function(r){var n=C(r,1),i=n[0];return function(){return{vals:[],push:function(t){var e=parseFloat(t[i]);isNaN(e)||this.vals.push(e)},value:function(){if(0===this.vals.length)return null;this.vals.sort((function(t,e){return t-e}));var e=(this.vals.length-1)*t;return(this.vals[Math.floor(e)]+this.vals[Math.ceil(e)])/2},format:e,numInputs:"undefined"!==typeof i?0:1}}}},runningStat:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mean",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;return function(n){var i=C(n,1),a=i[0];return function(){return{n:0,m:0,s:0,push:function(t){var e=parseFloat(t[a]);if(!isNaN(e)){this.n+=1,1===this.n&&(this.m=e);var r=this.m+(e-this.m)/this.n;this.s=this.s+(e-this.m)*(e-r),this.m=r}},value:function(){if("mean"===t)return 0===this.n?NaN:this.m;if(this.n<=e)return 0;switch(t){case"var":return this.s/(this.n-e);case"stdev":return Math.sqrt(this.s/(this.n-e));default:throw new Error("unknown mode for runningStat")}},format:r,numInputs:"undefined"!==typeof a?0:1}}}},sumOverSum:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return function(e){var r=C(e,2),n=r[0],i=r[1];return function(){return{sumNum:0,sumDenom:0,push:function(t){isNaN(parseFloat(t[n]))||(this.sumNum+=parseFloat(t[n])),isNaN(parseFloat(t[i]))||(this.sumDenom+=parseFloat(t[i]))},value:function(){return this.sumNum/this.sumDenom},format:t,numInputs:"undefined"!==typeof n&&"undefined"!==typeof i?0:2}}}},fractionOf:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"total",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;return function(){for(var n=arguments.length,i=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:G,a=r?"UTC":"";return function(r){var o=new Date(Date.parse(r[t]));return isNaN(o)?"":e.replace(/%(.)/g,(function(t,e){switch(e){case"y":return o["get".concat(a,"FullYear")]();case"m":return Y(o["get".concat(a,"Month")]()+1);case"n":return n[o["get".concat(a,"Month")]()];case"d":return Y(o["get".concat(a,"Date")]());case"w":return i[o["get".concat(a,"Day")]()];case"x":return o["get".concat(a,"Day")]();case"H":return Y(o["get".concat(a,"Hours")]());case"M":return Y(o["get".concat(a,"Minutes")]());case"S":return Y(o["get".concat(a,"Seconds")]());default:return"%".concat(e)}}))}}},X=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.props=Object.assign({},t.defaultProps,r),this.aggregator=this.props.aggregators[this.props.aggregatorName](this.props.vals),this.tree={},this.rowKeys=[],this.colKeys=[],this.rowTotals={},this.colTotals={},this.allTotal=this.aggregator(this,[],[]),this.sorted=!1,this.filteredData=[],t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){e.filter(t)&&(e.filteredData.push(t),e.processRecord(t))}))}return f(t,[{key:"filter",value:function(t){for(var e in this.props.valueFilter)if(t[e]in this.props.valueFilter[e])return!1;return!0}},{key:"forEachMatchingRecord",value:function(e,r){var n=this;return t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){if(n.filter(t)){for(var i in e){var a=e[i];if(a!==(i in t?t[i]:"null"))return}r(t)}}))}},{key:"arrSort",value:function(t){var e,r=this,n=function(){for(var n=[],i=0,a=Array.from(t);i0){i={};for(var l=0,c=Object.keys(t[0]||{});l=0}}},methods:{renderError:function(t){return t("span",this.locales[this.locale].localeStrings.renderError||"An error occurred rendering the PivotTable results.")},computeError:function(t){return t("span",this.locales[this.locale].localeStrings.computeError||"An error occurred computing the PivotTable results.")},uiRenderError:function(t){return t("span",this.locales[this.locale].localeStrings.uiRenderError||"An error occurred rendering the PivotTable UI.")}}};function J(t){var e=Math.min.apply(Math,t),r=Math.max.apply(Math,t);return function(t){var n=255-Math.round(255*(t-e)/(r-e));return{backgroundColor:"rgb(255,".concat(n,",").concat(n,")")}}}function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[Z],props:{heatmapMode:String,tableColorScaleGenerator:{type:Function,default:J},tableOptions:{type:Object,default:function(){return{clickCallback:null}}},localeStrings:{type:Object,default:function(){return{totals:"Totals"}}}},methods:{spanSize:function(t,e,r){var n;if(0!==e){var i,a,o=!0;for(n=0,a=r,i=a>=0;i?n<=a:n>=a;i?n++:n--)t[e-1][n]!==t[e][n]&&(o=!1);if(o)return-1}var s=0;while(e+s=0;l?n<=c:n>=c;l?n++:n--)t[e][n]!==t[e+s][n]&&(u=!0);if(u)break;s++}return s}},render:function(e){var r=this,n=null;try{n=new X(this.$props)}catch(b){if(console&&console.error(b.stack))return this.computeError(e)}var i=n.props.cols,a=n.props.rows,o=n.getRowKeys(),s=n.getColKeys(),l=n.getAggregator([],[]),c=function(){},u=function(){},f=function(){};if(t.heatmapMode){var h=this.tableColorScaleGenerator,p=s.map((function(t){return n.getAggregator([],t).value()}));u=h(p);var d=o.map((function(t){return n.getAggregator(t,[]).value()}));if(f=h(d),"full"===t.heatmapMode){var v=[];o.map((function(t){return s.map((function(e){return v.push(n.getAggregator(t,e).value())}))}));var g=h(v);c=function(t,e,r){return g(r)}}else if("row"===t.heatmapMode){var y={};o.map((function(t){var e=s.map((function(e){return n.getAggregator(t,e).value()}));y[t]=h(e)})),c=function(t,e,r){return y[t](r)}}else if("col"===t.heatmapMode){var m={};s.map((function(t){var e=o.map((function(e){return n.getAggregator(e,t).value()}));m[t]=h(e)})),c=function(t,e,r){return m[e](r)}}}var x=function(t,e,o){var s=r.tableOptions;if(s&&s.clickCallback){var l={},c={};for(var u in i)o.hasOwnProperty(u)&&(c=i[u],null!==o[u]&&(l[c]=o[u]));for(var f in a)e.hasOwnProperty(f)&&(c=a[f],null!==e[f]&&(l[c]=e[f]));return function(e){return s.clickCallback(e,t,l,n)}}};return e("table",{staticClass:["pvtTable"]},[e("thead",[i.map((function(t,n){return e("tr",{attrs:{key:"colAttrs".concat(n)}},[0===n&&0!==a.length?e("th",{attrs:{colSpan:a.length,rowSpan:i.length}}):void 0,e("th",{staticClass:["pvtAxisLabel"]},t),s.map((function(t,o){var l=r.spanSize(s,o,n);return-1===l?null:e("th",{staticClass:["pvtColLabel"],attrs:{key:"colKey".concat(o),colSpan:l,rowSpan:n===i.length-1&&0!==a.length?2:1}},t[n])})),0===n&&r.rowTotal?e("th",{staticClass:["pvtTotalLabel"],attrs:{rowSpan:i.length+(0===a.length?0:1)}},r.localeStrings.totals):void 0])})),0!==a.length?e("tr",[a.map((function(t,r){return e("th",{staticClass:["pvtAxisLabel"],attrs:{key:"rowAttr".concat(r)}},t)})),this.rowTotal?e("th",{staticClass:["pvtTotalLabel"]},0===i.length?this.localeStrings.totals:null):0===i.length?void 0:e("th",{staticClass:["pvtTotalLabel"]},null)]):void 0]),e("tbody",[o.map((function(t,l){var u=n.getAggregator(t,[]);return e("tr",{attrs:{key:"rowKeyRow".concat(l)}},[t.map((function(t,n){var s=r.spanSize(o,l,n);return-1===s?null:e("th",{staticClass:["pvtRowLabel"],attrs:{key:"rowKeyLabel".concat(l,"-").concat(n),rowSpan:s,colSpan:n===a.length-1&&0!==i.length?2:1}},t)})),s.map((function(r,i){var a=n.getAggregator(t,r);return e("td",{staticClass:["pvVal"],style:c(t,r,a.value()),attrs:{key:"pvtVal".concat(l,"-").concat(i)},on:x?{click:x(a.value(),t,r)}:{}},a.format(a.value()))})),r.rowTotal?e("td",{staticClass:["pvtTotal"],style:f(u.value()),on:x?{click:x(u.value(),t,[])}:{}},u.format(u.value())):void 0])})),e("tr",[this.colTotal?e("th",{staticClass:["pvtTotalLabel"],attrs:{colSpan:a.length+(0===i.length?0:1)}},this.localeStrings.totals):void 0,this.colTotal?s.map((function(t,r){var i=n.getAggregator([],t);return e("td",{staticClass:["pvtTotal"],style:u(i.value()),attrs:{key:"total".concat(r)},on:x?{click:x(i.value(),[],t)}:{}},i.format(i.value()))})):void 0,this.colTotal&&this.rowTotal?e("td",{staticClass:["pvtGrandTotal"],on:x?{click:x(l.value(),[],[])}:{}},l.format(l.value())):void 0])])])},renderError:function(t,e){return this.renderError(t)}};return e}var $={name:"tsv-export-renderers",mixins:[Z],render:function(t){var e=new X(this.$props),r=e.getRowKeys(),n=e.getColKeys();0===r.length&&r.push([]),0===n.length&&n.push([]);var i=e.props.rows.map((function(t){return t}));1===n.length&&0===n[0].length?i.push(this.aggregatorName):n.map((function(t){return i.push(t.join("-"))}));var a=r.map((function(t){var r=t.map((function(t){return t}));return n.map((function(n){var i=e.getAggregator(t,n).value();r.push(i||"")})),r}));return a.unshift(i),t("textarea",{style:{width:"100%",height:"".concat(window.innerHeight/2,"px")},attrs:{readOnly:!0},domProps:{value:a.map((function(t){return t.join("\t")})).join("\n")}})},renderError:function(t,e){return this.renderError(t)}},Q={Table:K({name:"vue-table"}),"Table Heatmap":K({heatmapMode:"full",name:"vue-table-heatmap"}),"Table Col Heatmap":K({heatmapMode:"col",name:"vue-table-col-heatmap"}),"Table Row Heatmap":K({heatmapMode:"row",name:"vue-table-col-heatmap"}),"Export Table TSV":$};function tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function et(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ft(t,e){if(t){if("string"===typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={name:t.name,mixins:[Z],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var i=new X(this.$props),a=i.getRowKeys(),o=i.getColKeys(),s=n?o:a;0===s.length&&s.push([]);var l=n?a:o;0===l.length&&l.push([]);var c=this.$props.aggregatorName,u=this.$props.aggregators[c]([])().numInputs||0;0!==u&&(c+=" of ".concat(this.$props.vals.slice(0,u).join(", ")));var f=s.map((function(t){var r,a=[],o=[],s=ut(l);try{for(s.s();!(r=s.n()).done;){var u=r.value,f=parseFloat(i.getAggregator(n?u:t,n?t:u).value());a.push(isFinite(f)?f:null),o.push(u.join("-")||" ")}}catch(p){s.e(p)}finally{s.f()}var h={name:t.join("-")||c};return"pie"===e.type?(h.values=a,h.labels=o.length>1?o:[c]):(h.x=n?a:o,h.y=n?o:a),Object.assign(h,e)})),h=c,p=n?this.$props.rows.join("-"):this.$props.cols.join("-"),d=n?this.$props.cols.join("-"):this.$props.rows.join("-");""!==p&&(h+=" vs ".concat(p)),""!==d&&(h+=" by ".concat(d));var v={title:h,hovermode:"closest",width:window.innerWidth/1.5,height:window.innerHeight/1.4-50};if("pie"===e.type){var g=Math.ceil(Math.sqrt(f.length)),y=Math.ceil(f.length/g);v.grid={columns:g,rows:y},f.forEach((function(t,e){t.domain={row:Math.floor(e/g),column:e-g*Math.floor(e/g)},f.length>1&&(t.title=t.name)})),1===f[0].labels.length&&(v.showlegend=!1)}else v.xaxis={title:n?c:null,automargin:!0},v.yaxis={title:n?null:c,automargin:!0};return t(st["Plotly"],{props:{data:f,layout:ct(ct(ct({},v),r),this.$props.plotlyOptions)}})}};return i}function dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[Z],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var e=new X(this.$props),r=e.getRowKeys(),n=e.getColKeys();0===r.length&&r.push([]),0===n.length&&n.push([]);var i={x:[],y:[],text:[],type:"scatter",mode:"markers"};r.map((function(t){n.map((function(r){var n=e.getAggregator(t,r).value();null!==n&&(i.x.push(r.join("-")),i.y.push(t.join("-")),i.text.push(n))}))}));var a={title:this.$props.rows.join("-")+" vs "+this.$props.cols.join("-"),hovermode:"closest",xaxis:{title:this.$props.cols.join("-"),automargin:!0},yaxis:{title:this.$props.rows.join("-"),automargin:!0},width:window.innerWidth/1.5,height:window.innerHeight/1.4-50};return t(st["Plotly"],{props:{data:[i],layout:ct(ct({},a),this.$props.plotlyOptions)}})}};return e}var vt={"Grouped Column Chart":pt({name:"vue-grouped-column-chart"},{type:"bar"},{barmode:"group"}),"Stacked Column Chart":pt({name:"vue-stacked-column-chart"},{type:"bar"},{barmode:"relative"}),"Grouped Bar Chart":pt({name:"groupd-bar-chart"},{type:"bar",orientation:"h"},{barmode:"group"},!0),"Stacked Bar Chart":pt({name:"vue-stacked-bar-chart"},{type:"bar",orientation:"h"},{barmode:"relative"},!0),"Line Chart":pt({name:"vue-line-chart"}),"Dot Chart":pt({name:"vue-dot-chart"},{mode:"markers"},{},!0),"Area Chart":pt({name:"vue-area-chart"},{stackgroup:1}),"Scatter Chart":dt({name:"vue-scatter-chart"}),"Multiple Pie Chart":pt({name:"vue-multiple-pie-chart"},{type:"pie",scalegroup:1,hoverinfo:"label+value",textinfo:"none"},{},!0)},gt=r("b76a"),yt=r.n(gt);function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e0?t:Object.keys(this.attrValues)},deep:!0},propsData:{handler:function(t){if(0!==this.pivotData.length){var e={derivedAttributes:this.derivedAttributes,hiddenAttributes:this.hiddenAttributes,hiddenFromAggregators:this.hiddenFromAggregators,hiddenFromDragDrop:this.hiddenFromDragDrop,sortonlyFromDragDrop:this.sortonlyFromDragDrop,disabledFromDragDrop:this.disabledFromDragDrop,menuLimit:this.menuLimit,rowLimit:this.rowLimit,colLimit:this.colLimit,attributes:t.attributes,unusedAttrs:this.unusedAttrs,sorters:this.sorters,data:this.materializedInput,rowOrder:t.rowOrder,colOrder:t.colOrder,valueFilter:t.valueFilter,rows:t.rows,cols:t.cols,rendererName:t.rendererName,aggregatorName:t.aggregatorName,aggregators:this.aggregatorItems,vals:t.vals};this.$emit("onRefresh",e)}},immediate:!1,deep:!0}},methods:{init:function(){var t=this;this.materializeInput(this.data),this.propsData.vals=this.vals.slice(),this.propsData.rows=this.rows,this.propsData.cols=this.cols,this.propsData.rowOrder=this.rowOrder,this.propsData.colOrder=this.colOrder,this.propsData.rendererName=this.rendererName,this.propsData.aggregatorName=this.aggregatorName,this.propsData.attributes=this.attributes.length>0?this.attributes:Object.keys(this.attrValues),this.unusedOrder=this.unusedAttrs,Object.keys(this.attrValues).forEach((function(e){var r={},n=t.valueFilter&&t.valueFilter[e];n&&Object.keys(n).length&&(r=t.valueFilter[e]),t.updateValueFilter({attribute:e,valueFilter:r})}))},assignValue:function(t){this.$set(this.propsData.valueFilter,t,{})},propUpdater:function(t){var e=this;return function(r){e.propsData[t]=r}},updateValueFilter:function(t){var e=t.attribute,r=t.valueFilter;this.$set(this.propsData.valueFilter,e,r)},moveFilterBoxToTop:function(t){var e=t.attribute;this.maxZIndex+=1,this.zIndices[e]=this.maxZIndex+1},openFilterBox:function(t){var e=t.attribute,r=t.open;this.openStatus[e]=r},closeFilterBox:function(t){this.openStatus={}},materializeInput:function(t){if(this.pivotData!==t){this.pivotData=t;var e={},r=[],n=0;X.forEachRecord(this.pivotData,this.derivedAttributes,(function(t){r.push(t);for(var i=0,a=Object.keys(t);i0&&(e[o].null=n))}for(var s in e){var l=s in t?t[s]:"null";l in e[s]||(e[s][l]=0),e[s][l]++}n++})),this.materializedInput=r,this.attrValues=e}},makeDnDCell:function(t,e,r,n){var i=this,a=this.$scopedSlots.pvtAttr;return n(yt.a,{attrs:{draggable:"li[data-id]",group:"sharted",ghostClass:".pvtPlaceholder",filter:".pvtFilterBox",preventOnFilter:!1,tag:"td"},props:{value:t},staticClass:r,on:{sort:e.bind(this)}},[t.map((function(t){var e;return n(at,(e={},l(e,a?"scopedSlots":void 0,{pvtAttr:function(t){return n("slot",a(t))}}),l(e,"props",{sortable:i.sortonlyFromDragDrop.includes(t)||!i.disabledFromDragDrop.includes(t),draggable:!i.sortonlyFromDragDrop.includes(t)&&!i.disabledFromDragDrop.includes(t),name:t,key:t,attrValues:i.attrValues[t],sorter:F(i.sorters,t),menuLimit:i.menuLimit,zIndex:i.zIndices[t]||i.maxZIndex,valueFilter:i.propsData.valueFilter[t],open:i.openStatus[t],async:i.async,unused:i.unusedAttrs.includes(t),localeStrings:i.locales[i.locale].localeStrings}),l(e,"domProps",{}),l(e,"on",{"update:filter":i.updateValueFilter,"moveToTop:filterbox":i.moveFilterBoxToTop,"open:filterbox":i.openFilterBox,"no:filterbox":function(){return i.$emit("no:filterbox")}}),e))}))])},rendererCell:function(t,e){var r=this;return this.$slots.rendererCell?e("td",{staticClass:["pvtRenderers pvtVals pvtText"]},this.$slots.rendererCell):e("td",{staticClass:["pvtRenderers"]},[e(ot,{props:{values:Object.keys(this.rendererItems),value:t},on:{input:function(t){r.propUpdater("rendererName")(t),r.propUpdater("renderer",r.rendererItems[r.rendererName])}}})])},aggregatorCell:function(t,e,r){var n=this;return this.$slots.aggregatorCell?r("td",{staticClass:["pvtVals pvtText"]},this.$slots.aggregatorCell):r("td",{staticClass:["pvtVals"]},[r("div",[r(ot,{style:{display:"inline-block"},props:{values:Object.keys(this.aggregatorItems),value:t},on:{input:function(t){n.propUpdater("aggregatorName")(t)}}}),r("a",{staticClass:["pvtRowOrder"],attrs:{role:"button"},on:{click:function(){n.propUpdater("rowOrder")(n.sortIcons[n.propsData.rowOrder].next)}}},this.sortIcons[this.propsData.rowOrder].rowSymbol),r("a",{staticClass:["pvtColOrder"],attrs:{role:"button"},on:{click:function(){n.propUpdater("colOrder")(n.sortIcons[n.propsData.colOrder].next)}}},this.sortIcons[this.propsData.colOrder].colSymbol)]),this.numValsAllowed>0?new Array(this.numValsAllowed).fill().map((function(t,i){return[r(ot,{props:{values:Object.keys(n.attrValues).filter((function(t){return!n.hiddenAttributes.includes(t)&&!n.hiddenFromAggregators.includes(t)})),value:e[i]},on:{input:function(t){n.propsData.vals.splice(i,1,t)}}})]})):void 0])},outputCell:function(t,e,r){return r("td",{staticClass:["pvtOutput"]},[e?r(vt[t.rendererName],{props:t}):r(rt,{props:xt(xt({},t),{},{tableMaxWidth:this.tableMaxWidth})})])}},render:function(t){var e=this;if(!(this.data.length<1)){var r=this.$scopedSlots.output,n=this.$slots.output,i=this.propsData.rendererName,a=this.propsData.aggregatorName,o=this.propsData.vals,s=this.makeDnDCell(this.unusedAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtUnused")&&t.to.classList.contains("pvtUnused"))&&(t.from.classList.contains("pvtUnused")&&(e.openFilterBox({attribute:r,open:!1}),e.unusedOrder.splice(t.oldIndex,1),e.$emit("dragged:unused",r)),t.to.classList.contains("pvtUnused")&&(e.openFilterBox({attribute:r,open:!1}),e.unusedOrder.splice(t.newIndex,0,r),e.$emit("dropped:unused",r)))}),"pvtAxisContainer pvtUnused pvtHorizList",t),l=this.makeDnDCell(this.colAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtCols")&&t.to.classList.contains("pvtCols"))&&(t.from.classList.contains("pvtCols")&&(e.propsData.cols.splice(t.oldIndex,1),e.$emit("dragged:cols",r)),t.to.classList.contains("pvtCols")&&(e.propsData.cols.splice(t.newIndex,0,r),e.$emit("dropped:cols",r)))}),"pvtAxisContainer pvtHorizList pvtCols",t),c=this.makeDnDCell(this.rowAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtRows")&&t.to.classList.contains("pvtRows"))&&(t.from.classList.contains("pvtRows")&&(e.propsData.rows.splice(t.oldIndex,1),e.$emit("dragged:rows",r)),t.to.classList.contains("pvtRows")&&(e.propsData.rows.splice(t.newIndex,0,r),e.$emit("dropped:rows",r)))}),"pvtAxisContainer pvtVertList pvtRows",t),u=xt(xt({},this.$props),{},{localeStrings:this.localeStrings,data:this.materializedInput,rowOrder:this.propsData.rowOrder,colOrder:this.propsData.colOrder,valueFilter:this.propsData.valueFilter,rows:this.propsData.rows,cols:this.propsData.cols,aggregators:this.aggregatorItems,rendererName:i,aggregatorName:a,vals:o}),f=null;try{f=new X(u)}catch(y){if(console&&console.error(y.stack))return this.computeError(t)}var h=r&&this.colLimit>0&&this.rowLimit>0&&(f.getColKeys().length>this.colLimit||f.getRowKeys().length>this.rowLimit),p=this.rendererCell(i,t),d=this.aggregatorCell(a,o,t),v=this.outputCell(u,i.indexOf("Chart")>-1,t),g=this.$slots.colGroup;return t("table",{staticClass:["pvtUi"]},[g,t("tbody",{on:{click:this.closeFilterBox}},[t("tr",[p,s]),t("tr",[d,l]),t("tr",[c,n?t("td",{staticClass:"pvtOutput"},n):h?t("td",{staticClass:"pvtOutput"},r({pivotData:new X(u)})):v])])])}},renderError:function(t,e){return this.uiRenderError(t)}},_t={aggregatorTemplates:V,aggregators:U,derivers:W,locales:q,naturalSort:z,numberFormat:O,getSort:F,sortAs:R,PivotData:X},wt={TableRenderer:Q,PlotlyRenderer:vt},Tt={VuePivottable:rt,VuePivottableUi:bt};"undefined"!==typeof window&&window.Vue&&window.Vue.use(rt);var kt=function(t){for(var e in Tt)t.component(Tt[e].name,Tt[e])};e["default"]=kt},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})["default"]})); \ No newline at end of file +function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(){return a=Object.assign||function(t){for(var e=1;e=0||(i[r]=t[r]);return i}function l(t,e){if(null==t)return{};var r,n,i=s(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function c(t){return u(t)||f(t)||h()}function u(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(r){return!1}return!1}}function A(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function M(t,e,r,n){if(t){r=r||document;do{if(null!=e&&(">"===e[0]?t.parentNode===r&&k(t,e):k(t,e))||n&&t===r)return t;if(t===r)break}while(t=A(t))}return null}var S,E=/\s+/g;function C(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(E," ")}}function L(t,e,r){var n=t&&t.style;if(n){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),void 0===e?r:r[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=r+("string"===typeof r?"":"px")}}function O(t,e){var r="";if("string"===typeof t)r=t;else do{var n=L(t,"transform");n&&"none"!==n&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function P(t,e,r){if(t){var n=t.getElementsByTagName(e),i=0,a=n.length;if(r)for(;i=a:i<=a,!o)return n;if(n===I())break;n=V(n,!1)}return!1}function R(t,e,r){var n=0,i=0,a=t.children;while(i2&&void 0!==arguments[2]?arguments[2]:{},n=r.evt,i=l(r,["evt"]);rt.pluginEvent.bind($t)(t,e,o({dragEl:ot,parentEl:st,ghostEl:lt,rootEl:ct,nextEl:ut,lastDownEl:ft,cloneEl:ht,cloneHidden:pt,dragStarted:Mt,putSortable:xt,activeSortable:$t.active,originalEvent:n,oldIndex:dt,oldDraggableIndex:gt,newIndex:vt,newDraggableIndex:yt,hideGhostForTarget:Xt,unhideGhostForTarget:Zt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){at({sortable:e,name:t,originalEvent:n})}},i))};function at(t){nt(o({putSortable:xt,cloneEl:ht,targetEl:ot,rootEl:ct,oldIndex:dt,oldDraggableIndex:gt,newIndex:vt,newDraggableIndex:yt},t))}var ot,st,lt,ct,ut,ft,ht,pt,dt,vt,gt,yt,mt,xt,bt,_t,wt,Tt,kt,At,Mt,St,Et,Ct,Lt,Ot=!1,Pt=!1,It=[],Dt=!1,zt=!1,Rt=[],Ft=!1,Nt=[],Bt="undefined"!==typeof document,jt=x,Vt=g||v?"cssFloat":"float",Ut=Bt&&!b&&!x&&"draggable"in document.createElement("div"),qt=function(){if(Bt){if(v)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var r=L(t),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=R(t,0,e),a=R(t,1,e),o=i&&L(i),s=a&&L(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+D(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(a).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===r[Vt]||a&&"none"===r[Vt]&&l+c>n)?"vertical":"horizontal"},Gt=function(t,e,r){var n=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,o=r?e.left:e.top,s=r?e.right:e.bottom,l=r?e.width:e.height;return n===o||i===s||n+a/2===o+l/2},Yt=function(t,e){var r;return It.some((function(n){if(!F(n)){var i=D(n),a=n[J].options.emptyInsertThreshold,o=t>=i.left-a&&t<=i.right+a,s=e>=i.top-a&&e<=i.bottom+a;return a&&o&&s?r=n:void 0}})),r},Wt=function(t){function e(t,r){return function(n,i,a,o){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(r||s))return!0;if(null==t||!1===t)return!1;if(r&&"clone"===t)return t;if("function"===typeof t)return e(t(n,i,a,o),r)(n,i,a,o);var l=(r?n:i).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var r={},i=t.group;i&&"object"==n(i)||(i={name:i}),r.name=i.name,r.checkPull=e(i.pull,!0),r.checkPut=e(i.put),r.revertClone=i.revertClone,t.group=r},Xt=function(){!qt&<&&L(lt,"display","none")},Zt=function(){!qt&<&&L(lt,"display","")};Bt&&document.addEventListener("click",(function(t){if(Pt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Pt=!1,!1}),!0);var Jt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=Yt(t.clientX,t.clientY);if(e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.target=r.rootEl=e,r.preventDefault=void 0,r.stopPropagation=void 0,e[J]._onDragOver(r)}}},Kt=function(t){ot&&ot.parentNode[J]._isOutsideThisEl(t.target)};function $t(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[J]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ht(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$t.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in rt.initializePlugins(this,t,r),r)!(n in e)&&(e[n]=r[n]);for(var i in Wt(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Ut,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),It.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,K())}function Qt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,r,n,i,a,o,s){var l,c,u=t[J],f=u.options.onMove;return!window.CustomEvent||v||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=r,l.draggedRect=n,l.related=i||e,l.relatedRect=a||D(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),f&&(c=f.call(u,l,o)),c}function ee(t){t.draggable=!1}function re(){Ft=!1}function ne(t,e,r){var n=D(F(r.el,r.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}function ie(t,e,r,n,i,a,o,s){var l=n?t.clientY:t.clientX,c=n?r.height:r.width,u=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o)if(s&&Ctu+c*a/2:lf-Ct)return-Et}else if(l>u+c*(1-i)/2&&lf-c*a/2)?l>u+c/2?1:-1:0}function ae(t){return N(ot)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&ee(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,e?"touchmove":"mousemove",this._onTouchMove):(w(ot,"dragend",this),w(ct,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(r){}},_dragStarted:function(t,e){if(Ot=!1,ct&&ot){it("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Kt);var r=this.options;!t&&C(ot,r.dragClass,!1),C(ot,r.ghostClass,!0),$t.active=this,t&&this._appendGhost(),at({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(_t){this._lastX=_t.clientX,this._lastY=_t.clientY,Xt();var t=document.elementFromPoint(_t.clientX,_t.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(_t.clientX,_t.clientY),t===e)break;e=t}if(ot.parentNode[J]._isOutsideThisEl(t),e)do{if(e[J]){var r=void 0;if(r=e[J]._onDragOver({clientX:_t.clientX,clientY:_t.clientY,target:t,rootEl:e}),r&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Zt()}},_onTouchMove:function(t){if(bt){var e=this.options,r=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,a=lt&&O(lt,!0),o=lt&&a&&a.a,s=lt&&a&&a.d,l=jt&&Lt&&B(Lt),c=(i.clientX-bt.clientX+n.x)/(o||1)+(l?l[0]-Rt[0]:0)/(o||1),u=(i.clientY-bt.clientY+n.y)/(s||1)+(l?l[1]-Rt[1]:0)/(s||1);if(!$t.active&&!Ot){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(at({rootEl:st,name:"add",toEl:st,fromEl:ct,originalEvent:t}),at({sortable:this,name:"remove",toEl:st,originalEvent:t}),at({rootEl:st,name:"sort",toEl:st,fromEl:ct,originalEvent:t}),at({sortable:this,name:"sort",toEl:st,originalEvent:t})),xt&&xt.save()):vt!==dt&&vt>=0&&(at({sortable:this,name:"update",toEl:st,originalEvent:t}),at({sortable:this,name:"sort",toEl:st,originalEvent:t})),$t.active&&(null!=vt&&-1!==vt||(vt=dt,yt=gt),at({sortable:this,name:"end",toEl:st,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){it("nulling",this),ct=ot=st=lt=ut=ht=ft=pt=bt=_t=Mt=vt=yt=dt=gt=St=Et=xt=mt=$t.dragged=$t.ghost=$t.clone=$t.active=null,Nt.forEach((function(t){t.checked=!0})),Nt.length=wt=Tt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),Qt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],r=this.el.children,n=0,i=r.length,a=this.options;n1&&(Ie.forEach((function(t){n.addAnimationState({target:t,rect:Re?D(t):i}),Z(t),t.fromRect=i,e.removeAnimationState(t)})),Re=!1,Be(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(t){var e=t.sortable,r=t.isOwner,n=t.insertion,i=t.activeSortable,a=t.parentEl,o=t.putSortable,s=this.options;if(n){if(r&&i._hideClone(),ze=!1,s.animation&&Ie.length>1&&(Re||!r&&!i.options.sort&&!o)){var l=D(Le,!1,!0,!0);Ie.forEach((function(t){t!==Le&&(X(t,l),a.appendChild(t))})),Re=!0}if(!r)if(Re||Ve(),Ie.length>1){var c=Pe;i._showClone(e),i.options.animation&&!Pe&&c&&De.forEach((function(t){i.addAnimationState({target:t,rect:Oe}),t.fromRect=Oe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,r=t.isOwner,n=t.activeSortable;if(Ie.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!r&&n.multiDrag.isMultiDrag){Oe=a({},e);var i=O(Le,!0);Oe.top-=i.f,Oe.left-=i.e}},dragOverAnimationComplete:function(){Re&&(Re=!1,Ve())},drop:function(t){var e=t.originalEvent,r=t.rootEl,n=t.parentEl,i=t.sortable,a=t.dispatchSortableEvent,o=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=n.children;if(!Fe)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(Le,c.selectedClass,!~Ie.indexOf(Le)),~Ie.indexOf(Le))Ie.splice(Ie.indexOf(Le),1),Ee=null,nt({sortable:i,rootEl:r,name:"deselect",targetEl:Le,originalEvt:e});else{if(Ie.push(Le),nt({sortable:i,rootEl:r,name:"select",targetEl:Le,originalEvt:e}),e.shiftKey&&Ee&&i.el.contains(Ee)){var f,h,p=N(Ee),d=N(Le);if(~p&&~d&&p!==d)for(d>p?(h=p,f=d):(h=d,f=p+1);h1){var v=D(Le),g=N(Le,":not(."+this.options.selectedClass+")");if(!ze&&c.animation&&(Le.thisAnimationDuration=null),l.captureAnimationState(),!ze&&(c.animation&&(Le.fromRect=v,Ie.forEach((function(t){if(t.thisAnimationDuration=null,t!==Le){var e=Re?D(t):v;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ve(),Ie.forEach((function(t){u[g]?n.insertBefore(t,u[g]):n.appendChild(t),g++})),o===N(Le))){var y=!1;Ie.forEach((function(t){t.sortableIndex===N(t)||(y=!0)})),y&&a("update")}Ie.forEach((function(t){Z(t)})),l.animateAll()}Ce=l}(r===n||s&&"clone"!==s.lastPutMode)&&De.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Fe=!1,De.length=0},destroyGlobal:function(){this._deselectMultiDrag(),T(document,"pointerup",this._deselectMultiDrag),T(document,"mouseup",this._deselectMultiDrag),T(document,"touchend",this._deselectMultiDrag),T(document,"keydown",this._checkKeyDown),T(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Fe||!Fe)&&Ce===this.sortable&&(!t||!M(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ie.length){var e=Ie[0];C(e,this.options.selectedClass,!1),Ie.shift(),nt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[J];e&&e.options.multiDrag&&!~Ie.indexOf(t)&&(Ce&&Ce!==e&&(Ce.multiDrag._deselectMultiDrag(),Ce=e),C(t,e.options.selectedClass,!0),Ie.push(t))},deselect:function(t){var e=t.parentNode[J],r=Ie.indexOf(t);e&&e.options.multiDrag&&~r&&(C(t,e.options.selectedClass,!1),Ie.splice(r,1))}},eventProperties:function(){var t=this,e=[],r=[];return Ie.forEach((function(n){var i;e.push({multiDragElement:n,index:n.sortableIndex}),i=Re&&n!==Le?-1:Re?N(n,":not(."+t.options.selectedClass+")"):N(n),r.push({multiDragElement:n,index:i})})),{items:c(Ie),clones:[].concat(De),oldIndicies:e,newIndicies:r}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Be(t,e){Ie.forEach((function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)}))}function je(t,e){De.forEach((function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)}))}function Ve(){Ie.forEach((function(t){t!==Le&&t.parentNode&&t.parentNode.removeChild(t)}))}$t.mount(new me),$t.mount(Ae,ke),e["default"]=$t},aa77:function(t,e,r){var n=r("5ca1"),i=r("be13"),a=r("79e5"),o=r("fdef"),s="["+o+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),f=function(t,e,r){var i={},s=a((function(){return!!o[t]()||l[t]()!=l})),c=i[t]=s?e(h):o[t];r&&(i[r]=c),n(n.P+n.F*s,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=f},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),a=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},ac4d:function(t,e,r){r("3a72")("asyncIterator")},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),a=r("2aba"),o=r("7726"),s=r("32e9"),l=r("84f2"),c=r("2b4c"),u=c("iterator"),f=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v0?i(n(t),9007199254740991):0}},b76a:function(t,e,r){(function(e,n){t.exports=n(r("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"01f9":function(t,e,r){"use strict";var n=r("2d00"),i=r("5ca1"),a=r("2aba"),o=r("32e9"),s=r("84f2"),l=r("41a0"),c=r("7f20"),u=r("38fd"),f=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",g=function(){return this};t.exports=function(t,e,r,y,m,x,b){l(r,e,y);var _,w,T,k=function(t){if(!h&&t in E)return E[t];switch(t){case d:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},A=e+" Iterator",M=m==v,S=!1,E=t.prototype,C=E[f]||E[p]||m&&E[m],L=C||k(m),O=m?M?k("entries"):L:void 0,P="Array"==e&&E.entries||C;if(P&&(T=u(P.call(new t)),T!==Object.prototype&&T.next&&(c(T,A,!0),n||"function"==typeof T[f]||o(T,f,g))),M&&C&&C.name!==v&&(S=!0,L=function(){return C.call(this)}),n&&!b||!h&&!S&&E[f]||o(E,f,L),s[e]=L,s[A]=g,m)if(_={values:M?L:k(v),keys:x?L:k(d),entries:O},b)for(w in _)w in E||a(E,w,_[w]);else i(i.P+i.F*(h||S),e,_);return _}},"02f4":function(t,e,r){var n=r("4588"),i=r("be13");t.exports=function(t){return function(e,r){var a,o,s=String(i(e)),l=n(r),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},"0390":function(t,e,r){"use strict";var n=r("02f4")(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"0bfb":function(t,e,r){"use strict";var n=r("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,r){var n=r("ce10"),i=r("e11e");t.exports=Object.keys||function(t){return n(t,i)}},1495:function(t,e,r){var n=r("86cc"),i=r("cb7c"),a=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(t,e){i(t);var r,o=a(e),s=o.length,l=0;while(s>l)n.f(t,r=o[l++],e[r]);return t}},"214f":function(t,e,r){"use strict";r("b0c5");var n=r("2aba"),i=r("32e9"),a=r("79e5"),o=r("be13"),s=r("2b4c"),l=r("520a"),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var h=s(t),p=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),d=p?!a((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[c]=function(){return r}),r[h](""),!e})):void 0;if(!p||!d||"replace"===t&&!u||"split"===t&&!f){var v=/./[h],g=r(o,h,""[t],(function(t,e,r,n,i){return e.exec===l?p&&!i?{done:!0,value:v.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),y=g[0],m=g[1];n(String.prototype,t,y),i(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},"230e":function(t,e,r){var n=r("d3f4"),i=r("7726").document,a=n(i)&&n(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},"23c6":function(t,e,r){var n=r("2d95"),i=r("2b4c")("toStringTag"),a="Arguments"==n(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=o(e=Object(t),i))?r:a?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,r){var n=r("7726"),i=r("32e9"),a=r("69a8"),o=r("ca5a")("src"),s=r("fa5b"),l="toString",c=(""+s).split(l);r("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,r,s){var l="function"==typeof r;l&&(a(r,"name")||i(r,"name",e)),t[e]!==r&&(l&&(a(r,o)||i(r,o,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:s?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(t,e,r){var n=r("cb7c"),i=r("1495"),a=r("e11e"),o=r("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=r("230e")("iframe"),n=a.length,i="<",o=">";e.style.display="none",r("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+o+"document.F=Object"+i+"/script"+o),t.close(),c=t.F;while(n--)delete c[l][a[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(s[l]=n(t),r=new s,s[l]=null,r[o]=t):r=c(),void 0===e?r:i(r,e)}},"2b4c":function(t,e,r){var n=r("5537")("wks"),i=r("ca5a"),a=r("7726").Symbol,o="function"==typeof a,s=t.exports=function(t){return n[t]||(n[t]=o&&a[t]||(o?a:i)("Symbol."+t))};s.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"2fdb":function(t,e,r){"use strict";var n=r("5ca1"),i=r("d2c8"),a="includes";n(n.P+n.F*r("5147")(a),"String",{includes:function(t){return!!~i(this,t,a).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,r){var n=r("86cc"),i=r("4630");t.exports=r("9e1e")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},"38fd":function(t,e,r){var n=r("69a8"),i=r("4bf8"),a=r("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"41a0":function(t,e,r){"use strict";var n=r("2aeb"),i=r("4630"),a=r("7f20"),o={};r("32e9")(o,r("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(o,{next:i(1,r)}),a(t,e+" Iterator")}},"456d":function(t,e,r){var n=r("4bf8"),i=r("0d58");r("5eda")("keys",(function(){return function(t){return i(n(t))}}))},4588:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,r){var n=r("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,r){var n=r("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(i){}}return!0}},"520a":function(t,e,r){"use strict";var n=r("0bfb"),i=RegExp.prototype.exec,a=String.prototype.replace,o=i,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(o=function(t){var e,r,o,u,f=this;return c&&(r=new RegExp("^"+f.source+"$(?!\\s)",n.call(f))),l&&(e=f[s]),o=i.call(f,t),l&&o&&(f[s]=f.global?o.index+o[0].length:e),c&&o&&o.length>1&&a.call(o[0],r,(function(){for(u=1;u1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(t,e,r){var n=r("626a"),i=r("be13");t.exports=function(t){return n(i(t))}},"69a8":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"6a99":function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,r){"use strict";var n=r("0d58"),i=r("2621"),a=r("52a7"),o=r("4bf8"),s=r("626a"),l=Object.assign;t.exports=!l||r("79e5")((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n}))?function(t,e){var r=o(t),l=arguments.length,c=1,u=i.f,f=a.f;while(l>c){var h,p=s(arguments[c++]),d=u?n(p).concat(u(p)):n(p),v=d.length,g=0;while(v>g)f.call(p,h=d[g++])&&(r[h]=p[h])}return r}:l},7726:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},"77f1":function(t,e,r){var n=r("4588"),i=Math.max,a=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):a(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,r){var n=r("86cc").f,i=r("69a8"),a=r("2b4c")("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},8378:function(t,e){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,r){var n=r("cb7c"),i=r("c69a"),a=r("6a99"),o=Object.defineProperty;e.f=r("9e1e")?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),i)try{return o(t,e,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},"9b43":function(t,e,r){var n=r("d8e8");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,r){var n=r("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&r("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9def":function(t,e,r){var n=r("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,r){t.exports=!r("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,r){e.exports=t},a481:function(t,e,r){"use strict";var n=r("cb7c"),i=r("4bf8"),a=r("9def"),o=r("4588"),s=r("0390"),l=r("5f1b"),c=Math.max,u=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};r("214f")("replace",2,(function(t,e,r,v){return[function(n,i){var a=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,i):r.call(String(a),n,i)},function(t,e){var i=v(r,t,this,e);if(i.done)return i.value;var f=n(t),h=String(this),p="function"===typeof e;p||(e=String(e));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}var x=[];while(1){var b=l(f,h);if(null===b)break;if(x.push(b),!y)break;var _=String(b[0]);""===_&&(f.lastIndex=s(h,a(f.lastIndex),m))}for(var w="",T=0,k=0;k=T&&(w+=h.slice(T,M)+O,T=M+A.length)}return w+h.slice(T)}];function g(t,e,n,a,o,s){var l=n+t.length,c=a.length,u=p;return void 0!==o&&(o=i(o),u=h),r.call(s,u,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return r;if(u>c){var h=f(u/10);return 0===h?r:h<=c?void 0===a[h-1]?i.charAt(1):a[h-1]+i.charAt(1):r}s=a[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),a=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),a=r("2aba"),o=r("7726"),s=r("32e9"),l=r("84f2"),c=r("2b4c"),u=c("iterator"),f=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;vu)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}}},c649:function(t,e,r){"use strict";(function(t){r.d(e,"c",(function(){return c})),r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return i})),r.d(e,"d",(function(){return l}));r("a481");function n(){return"undefined"!==typeof window?window.console:t.console}var i=n();function a(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}}var o=/-(\w)/g,s=a((function(t){return t.replace(o,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,r){var n=0===r?t.children[0]:t.children[r-1].nextSibling;t.insertBefore(e,n)}}).call(this,r("c8ba"))},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")((function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),a=r("84f2"),o=r("6821");t.exports=r("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),a=r("c366")(!1),o=r("613b")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},d2c8:function(t,e,r){var n=r("aae3"),i=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,r){"use strict";var n=r("5ca1"),i=r("9def"),a=r("d2c8"),o="startsWith",s=""[o];n(n.P+n.F*r("5147")(o),"String",{startsWith:function(t){var e=a(this,t,o),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,r):e.slice(r,r+n.length)===n}})},f6fd:function(t,e){(function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})})(document)},f751:function(t,e,r){var n=r("5ca1");n(n.S+n.F,"Object",{assign:r("7333")})},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";var n;(r.r(e),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));r("f751"),r("f559"),r("ac6a"),r("cadf"),r("456d");function i(t){if(Array.isArray(t))return t}function a(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),e&&r.length===e)break}catch(l){i=!0,a=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(i)throw a}}return r}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=a?i.length:i.indexOf(t)}));return r?o.filter((function(t){return-1!==t})):o}function b(t,e){var r=this;this.$nextTick((function(){return r.$emit(t.toLowerCase(),e)}))}function _(t){var e=this;return function(r){null!==e.realList&&e["onDrag"+t](r),b.call(e,t,r)}}function w(t){return["transition-group","TransitionGroup"].includes(t)}function T(t){if(!t||1!==t.length)return!1;var e=c(t,1),r=e[0].componentOptions;return!!r&&w(r.tag)}function k(t,e,r){return t[r]||(e[r]?e[r]():void 0)}function A(t,e,r){var n=0,i=0,a=k(e,r,"header");a&&(n=a.length,t=t?[].concat(p(a),p(t)):p(a));var o=k(e,r,"footer");return o&&(i=o.length,t=t?[].concat(p(t),p(o)):p(o)),{children:t,headerOffset:n,footerOffset:i}}function M(t,e){var r=null,n=function(t,e){r=y(r,t,e)},i=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,r){return e[r]=t[r],e}),{});if(n("attrs",i),!e)return r;var a=e.on,o=e.props,s=e.attrs;return n("on",a),n("props",o),Object.assign(r.attrs,s),r}var S=["Start","Add","Remove","Update","End"],E=["Choose","Unchoose","Sort","Filter","Clone"],C=["Move"].concat(S,E).map((function(t){return"on"+t})),L=null,O={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},P={name:"draggable",inheritAttrs:!1,props:O,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=T(e);var r=A(e,this.$slots,this.$scopedSlots),n=r.children,i=r.headerOffset,a=r.footerOffset;this.headerOffset=i,this.footerOffset=a;var o=M(this.$attrs,this.componentData);return t(this.getTag(),o,n)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};S.forEach((function(r){e["on"+r]=_.call(t,r)})),E.forEach((function(r){e["on"+r]=b.bind(t,r)}));var r=Object.keys(this.$attrs).reduce((function(e,r){return e[Object(g["a"])(r)]=t.$attrs[r],e}),{}),n=Object.assign({},this.options,r,e,{onMove:function(e,r){return t.onDragMove(e,r)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new v.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var r=Object(g["a"])(e);-1===C.indexOf(r)&&this._sortable.option(r,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=x(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=m(this.getChildrenNodes()||[],t);if(-1===e)return null;var r=this.realList[e];return{index:e,element:r}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&w(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var r=function(r){return r.splice(e,0,r.splice(t,1)[0])};this.alterList(r)},getRelatedContextFromMoveEvent:function(t){var e=t.to,r=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var i=n.realList,a={list:i,component:n};if(e!==r&&i&&n.getUnderlyingVm){var o=n.getUnderlyingVm(r);if(o)return Object.assign(o,a)}return a},getVmIndex:function(t){var e=this.visibleIndexes,r=e.length;return t>r-1?r:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var r=this.getComponent();r.children=[],r.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),L=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(g["d"])(t.item);var r=this.getVmIndex(t.newIndex);this.spliceList(r,0,e),this.computeIndexes();var n={element:e,newIndex:r};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(g["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var r={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:r})}else Object(g["d"])(t.clone)},onDragUpdate:function(t){Object(g["d"])(t.item),Object(g["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,r=this.getVmIndex(t.newIndex);this.updatePosition(e,r);var n={element:this.context.element,oldIndex:e,newIndex:r};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var r=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),n=r.indexOf(e.related),i=t.component.getVmIndex(n),a=-1!==r.indexOf(L);return a||!e.willInsertAfter?i:i+1},onDragMove:function(t,e){var r=this.move;if(!r||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),i=this.context,a=this.computeFutureIndex(n,t);Object.assign(i,{futureIndex:a});var o=Object.assign({},t,{relatedContext:n,draggedContext:i});return r(o,e)},onDragEnd:function(){this.computeIndexes(),L=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",P);var I=P;e["default"]=I}})["default"]}))},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,r){var n=r("355d"),i=r("aebd"),a=r("36c3"),o=r("1bc3"),s=r("07e3"),l=r("794b"),c=Object.getOwnPropertyDescriptor;e.f=r("8e60")?c:function(t,e){if(t=a(t),e=o(e,!0),l)try{return c(t,e)}catch(r){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},c207:function(t,e){},c366:function(t,e,r){var n=r("6821"),i=r("9def"),a=r("77f1");t.exports=function(t){return function(e,r,o){var s,l=n(e),c=i(l.length),u=a(o,c);if(t&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}}},c367:function(t,e,r){"use strict";var n=r("8436"),i=r("50ed"),a=r("481b"),o=r("36c3");t.exports=r("30f1")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},c3a1:function(t,e,r){var n=r("e6f3"),i=r("1691");t.exports=Object.keys||function(t){return n(t,i)}},c5f6:function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),a=r("2d95"),o=r("5dbc"),s=r("6a99"),l=r("79e5"),c=r("9093").f,u=r("11e9").f,f=r("86cc").f,h=r("aa77").trim,p="Number",d=n[p],v=d,g=d.prototype,y=a(r("2aeb")(g))==p,m="trim"in String.prototype,x=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var r,n,i,a=e.charCodeAt(0);if(43===a||45===a){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var o,l=e.slice(2),c=0,u=l.length;ci)return NaN;return parseInt(l,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(y?l((function(){g.valueOf.call(r)})):a(r)!=p)?o(new v(x(e)),r,d):x(e)};for(var b,_=r("9e1e")?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(v,b=_[w])&&!i(d,b)&&f(d,b,u(v,b));d.prototype=g,g.constructor=d,r("2aba")(n,p,d)}},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")((function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),a=r("84f2"),o=r("6821");t.exports=r("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,r){e.f=r("5168")},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),a=r("c366")(!1),o=r("613b")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},d2c8:function(t,e,r){var n=r("aae3"),i=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},d2d5:function(t,e,r){r("1654"),r("549b"),t.exports=r("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d4c0:function(t,e,r){var n=r("0d58"),i=r("2621"),a=r("52a7");t.exports=function(t){var e=n(t),r=i.f;if(r){var o,s=r(t),l=a.f,c=0;while(s.length>c)l.call(t,o=s[c++])&&e.push(o)}return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,r){var n=r("79aa");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,r){r("1654"),r("6c1c"),t.exports=r("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,r){var n=r("e4ae"),i=r("794b"),a=r("1bc3"),o=Object.defineProperty;e.f=r("8e60")?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),i)try{return o(t,e,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},dbdb:function(t,e,r){var n=r("584a"),i=r("e53d"),a="__core-js_shared__",o=i[a]||(i[a]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,r){var n=r("f772");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},e6f3:function(t,e,r){var n=r("07e3"),i=r("36c3"),a=r("5b4e")(!1),o=r("5559")("IE_PROTO");t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)r!=o&&n(s,r)&&c.push(r);while(e.length>l)n(s,r=e[l++])&&(~a(c,r)||c.push(r));return c}},ebd6:function(t,e,r){var n=r("cb7c"),i=r("d8e8"),a=r("2b4c")("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},ebfd:function(t,e,r){var n=r("62a0")("meta"),i=r("f772"),a=r("07e3"),o=r("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!r("294c")((function(){return l(Object.preventExtensions({}))})),u=function(t){o(t,n,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},h=function(t,e){if(!a(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},p=function(t){return c&&d.NEED&&l(t)&&!a(t,n)&&u(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:f,getWeak:h,onFreeze:p}},f1ae:function(t,e,r){"use strict";var n=r("86cc"),i=r("4630");t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},f410:function(t,e,r){r("1af6"),t.exports=r("584a").Array.isArray},f751:function(t,e,r){var n=r("5ca1");n(n.S+n.F,"Object",{assign:r("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,r){r("014b"),r("c207"),r("69d3"),r("765d"),t.exports=r("584a").Symbol},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"VuePivottable",(function(){return rt})),r.d(e,"VuePivottableUi",(function(){return bt})),r.d(e,"PivotUtilities",(function(){return _t})),r.d(e,"Renderer",(function(){return wt})),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(r.p=a[1])}r("7f7f"),r("8e6e"),r("ac6a"),r("cadf"),r("456d");var o=r("85f2"),s=r.n(o);function l(t,e,r){return e in t?s()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("f751");function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r+n[1]:"",o=/(\d+)(\d{3})/;while(o.test(i))i=i.replace(o,"$1".concat(e,"$2"));return i+a},O=function(t){var e={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:""},r=Object.assign({},e,t);return function(t){if(isNaN(t)||!isFinite(t))return"";var e=L((r.scaler*t).toFixed(r.digitsAfterDecimal),r.thousandsSep,r.decimalSep);return"".concat(r.prefix).concat(e).concat(r.suffix)}},P=/(\d+)|(\D+)/g,I=/\d/,D=/^0/,z=function(t,e){if(null!==e&&null===t)return-1;if(null!==t&&null===e)return 1;if("number"===typeof t&&isNaN(t))return-1;if("number"===typeof e&&isNaN(e))return 1;var r=Number(t),n=Number(e);if(rn)return 1;if("number"===typeof t&&"number"!==typeof e)return-1;if("number"===typeof e&&"number"!==typeof t)return 1;if("number"===typeof t&&"number"===typeof e)return 0;if(isNaN(n)&&!isNaN(r))return-1;if(isNaN(r)&&!isNaN(n))return 1;var i=String(t),a=String(e);if(i===a)return 0;if(!I.test(i)||!I.test(a))return i>a?1:-1;i=i.match(P),a=a.match(P);while(i.length&&a.length){var o=i.shift(),s=a.shift();if(o!==s)return I.test(o)&&I.test(s)?o.replace(D,".0")-s.replace(D,".0"):o>s?1:-1}return i.length-a.length},R=function(t){var e={},r={};for(var n in t){var i=t[n];e[i]=n,"string"===typeof i&&(r[i.toLowerCase()]=n)}return function(t,n){return t in e&&n in e?e[t]-e[n]:t in e?-1:n in e?1:t in r&&n in r?r[t]-r[n]:t in r?-1:n in r?1:z(t,n)}},F=function(t,e){if(t)if("function"===typeof t){var r=t(e);if("function"===typeof r)return r}else if(e in t)return t[e];return z},N=O(),B=O({digitsAfterDecimal:0}),j=O({digitsAfterDecimal:1,scaler:100,suffix:"%"}),V={count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;return function(){return function(){return{count:0,push:function(){this.count++},value:function(){return this.count},format:t}}}},uniques:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;return function(r){var n=C(r,1),i=n[0];return function(){return{uniq:[],push:function(t){Array.from(this.uniq).includes(t[i])||this.uniq.push(t[i])},value:function(){return t(this.uniq)},format:e,numInputs:"undefined"!==typeof i?0:1}}}},sum:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return function(e){var r=C(e,1),n=r[0];return function(){return{sum:0,push:function(t){isNaN(parseFloat(t[n]))||(this.sum+=parseFloat(t[n]))},value:function(){return this.sum},format:t,numInputs:"undefined"!==typeof n?0:1}}}},extremes:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function(r){var n=C(r,1),i=n[0];return function(r){return{val:null,sorter:F("undefined"!==typeof r?r.sorters:null,i),push:function(e){var r=e[i];["min","max"].includes(t)&&(r=parseFloat(r),isNaN(r)||(this.val=Math[t](r,null!==this.val?this.val:r))),"first"===t&&this.sorter(r,null!==this.val?this.val:r)<=0&&(this.val=r),"last"===t&&this.sorter(r,null!==this.val?this.val:r)>=0&&(this.val=r)},value:function(){return this.val},format:function(t){return isNaN(t)?t:e(t)},numInputs:"undefined"!==typeof i?0:1}}}},quantile:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function(r){var n=C(r,1),i=n[0];return function(){return{vals:[],push:function(t){var e=parseFloat(t[i]);isNaN(e)||this.vals.push(e)},value:function(){if(0===this.vals.length)return null;this.vals.sort((function(t,e){return t-e}));var e=(this.vals.length-1)*t;return(this.vals[Math.floor(e)]+this.vals[Math.ceil(e)])/2},format:e,numInputs:"undefined"!==typeof i?0:1}}}},runningStat:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mean",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;return function(n){var i=C(n,1),a=i[0];return function(){return{n:0,m:0,s:0,push:function(t){var e=parseFloat(t[a]);if(!isNaN(e)){this.n+=1,1===this.n&&(this.m=e);var r=this.m+(e-this.m)/this.n;this.s=this.s+(e-this.m)*(e-r),this.m=r}},value:function(){if("mean"===t)return 0===this.n?NaN:this.m;if(this.n<=e)return 0;switch(t){case"var":return this.s/(this.n-e);case"stdev":return Math.sqrt(this.s/(this.n-e));default:throw new Error("unknown mode for runningStat")}},format:r,numInputs:"undefined"!==typeof a?0:1}}}},sumOverSum:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return function(e){var r=C(e,2),n=r[0],i=r[1];return function(){return{sumNum:0,sumDenom:0,push:function(t){isNaN(parseFloat(t[n]))||(this.sumNum+=parseFloat(t[n])),isNaN(parseFloat(t[i]))||(this.sumDenom+=parseFloat(t[i]))},value:function(){return this.sumNum/this.sumDenom},format:t,numInputs:"undefined"!==typeof n&&"undefined"!==typeof i?0:2}}}},fractionOf:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"total",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j;return function(){for(var n=arguments.length,i=new Array(n),a=0;a2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:G,a=r?"UTC":"";return function(r){var o=new Date(Date.parse(r[t]));return isNaN(o)?"":e.replace(/%(.)/g,(function(t,e){switch(e){case"y":return o["get".concat(a,"FullYear")]();case"m":return Y(o["get".concat(a,"Month")]()+1);case"n":return n[o["get".concat(a,"Month")]()];case"d":return Y(o["get".concat(a,"Date")]());case"w":return i[o["get".concat(a,"Day")]()];case"x":return o["get".concat(a,"Day")]();case"H":return Y(o["get".concat(a,"Hours")]());case"M":return Y(o["get".concat(a,"Minutes")]());case"S":return Y(o["get".concat(a,"Seconds")]());default:return"%".concat(e)}}))}}},X=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.props=Object.assign({},t.defaultProps,r),this.aggregator=this.props.aggregators[this.props.aggregatorName](this.props.vals),this.tree={},this.rowKeys=[],this.colKeys=[],this.rowTotals={},this.colTotals={},this.allTotal=this.aggregator(this,[],[]),this.sorted=!1,this.filteredData=[],t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){e.filter(t)&&(e.filteredData.push(t),e.processRecord(t))}))}return f(t,[{key:"filter",value:function(t){for(var e in this.props.valueFilter)if(t[e]in this.props.valueFilter[e])return!1;return!0}},{key:"forEachMatchingRecord",value:function(e,r){var n=this;return t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){if(n.filter(t)){for(var i in e){var a=e[i];if(a!==(i in t?t[i]:"null"))return}r(t)}}))}},{key:"arrSort",value:function(t){var e,r=this,n=function(){for(var n=[],i=0,a=Array.from(t);i0){i={};for(var l=0,c=Object.keys(t[0]||{});l=0}}},methods:{renderError:function(t){return t("span",this.locales[this.locale].localeStrings.renderError||"An error occurred rendering the PivotTable results.")},computeError:function(t){return t("span",this.locales[this.locale].localeStrings.computeError||"An error occurred computing the PivotTable results.")},uiRenderError:function(t){return t("span",this.locales[this.locale].localeStrings.uiRenderError||"An error occurred rendering the PivotTable UI.")}}};function J(t){var e=Math.min.apply(Math,t),r=Math.max.apply(Math,t);return function(t){var n=255-Math.round(255*(t-e)/(r-e));return{backgroundColor:"rgb(255,".concat(n,",").concat(n,")")}}}function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[Z],props:{heatmapMode:String,tableColorScaleGenerator:{type:Function,default:J},tableOptions:{type:Object,default:function(){return{clickCallback:null}}},localeStrings:{type:Object,default:function(){return{totals:"Totals"}}}},methods:{spanSize:function(t,e,r){var n;if(0!==e){var i,a,o=!0;for(n=0,a=r,i=a>=0;i?n<=a:n>=a;i?n++:n--)t[e-1][n]!==t[e][n]&&(o=!1);if(o)return-1}var s=0;while(e+s=0;l?n<=c:n>=c;l?n++:n--)t[e][n]!==t[e+s][n]&&(u=!0);if(u)break;s++}return s}},render:function(e){var r=this,n=null;try{n=new X(this.$props)}catch(b){if(console&&console.error(b.stack))return this.computeError(e)}var i=n.props.cols,a=n.props.rows,o=n.getRowKeys(),s=n.getColKeys(),l=n.getAggregator([],[]),c=function(){},u=function(){},f=function(){};if(t.heatmapMode){var h=this.tableColorScaleGenerator,p=s.map((function(t){return n.getAggregator([],t).value()}));u=h(p);var d=o.map((function(t){return n.getAggregator(t,[]).value()}));if(f=h(d),"full"===t.heatmapMode){var v=[];o.map((function(t){return s.map((function(e){return v.push(n.getAggregator(t,e).value())}))}));var g=h(v);c=function(t,e,r){return g(r)}}else if("row"===t.heatmapMode){var y={};o.map((function(t){var e=s.map((function(e){return n.getAggregator(t,e).value()}));y[t]=h(e)})),c=function(t,e,r){return y[t](r)}}else if("col"===t.heatmapMode){var m={};s.map((function(t){var e=o.map((function(e){return n.getAggregator(e,t).value()}));m[t]=h(e)})),c=function(t,e,r){return m[e](r)}}}var x=function(t,e,o){var s=r.tableOptions;if(s&&s.clickCallback){var l={},c={};for(var u in i)o.hasOwnProperty(u)&&(c=i[u],null!==o[u]&&(l[c]=o[u]));for(var f in a)e.hasOwnProperty(f)&&(c=a[f],null!==e[f]&&(l[c]=e[f]));return function(e){return s.clickCallback(e,t,l,n)}}};return e("table",{staticClass:["pvtTable"]},[e("thead",[i.map((function(t,n){return e("tr",{attrs:{key:"colAttrs".concat(n)}},[0===n&&0!==a.length?e("th",{attrs:{colSpan:a.length,rowSpan:i.length}}):void 0,e("th",{staticClass:["pvtAxisLabel"]},t),s.map((function(t,o){var l=r.spanSize(s,o,n);return-1===l?null:e("th",{staticClass:["pvtColLabel"],attrs:{key:"colKey".concat(o),colSpan:l,rowSpan:n===i.length-1&&0!==a.length?2:1}},t[n])})),0===n&&r.rowTotal?e("th",{staticClass:["pvtTotalLabel"],attrs:{rowSpan:i.length+(0===a.length?0:1)}},r.localeStrings.totals):void 0])})),0!==a.length?e("tr",[a.map((function(t,r){return e("th",{staticClass:["pvtAxisLabel"],attrs:{key:"rowAttr".concat(r)}},t)})),this.rowTotal?e("th",{staticClass:["pvtTotalLabel"]},0===i.length?this.localeStrings.totals:null):0===i.length?void 0:e("th",{staticClass:["pvtTotalLabel"]},null)]):void 0]),e("tbody",[o.map((function(t,l){var u=n.getAggregator(t,[]);return e("tr",{attrs:{key:"rowKeyRow".concat(l)}},[t.map((function(t,n){var s=r.spanSize(o,l,n);return-1===s?null:e("th",{staticClass:["pvtRowLabel"],attrs:{key:"rowKeyLabel".concat(l,"-").concat(n),rowSpan:s,colSpan:n===a.length-1&&0!==i.length?2:1}},t)})),s.map((function(i,a){var o=n.getAggregator(t,i);return e("td",{staticClass:["pvVal"],style:c(t,i,o.value()),attrs:{key:"pvtVal".concat(l,"-").concat(a)},on:r.tableOptions.clickCallback?{click:x(o.value(),t,i)}:{}},o.format(o.value()))})),r.rowTotal?e("td",{staticClass:["pvtTotal"],style:f(u.value()),on:r.tableOptions.clickCallback?{click:x(u.value(),t,[])}:{}},u.format(u.value())):void 0])})),e("tr",[this.colTotal?e("th",{staticClass:["pvtTotalLabel"],attrs:{colSpan:a.length+(0===i.length?0:1)}},this.localeStrings.totals):void 0,this.colTotal?s.map((function(t,i){var a=n.getAggregator([],t);return e("td",{staticClass:["pvtTotal"],style:u(a.value()),attrs:{key:"total".concat(i)},on:r.tableOptions.clickCallback?{click:x(a.value(),[],t)}:{}},a.format(a.value()))})):void 0,this.colTotal&&this.rowTotal?e("td",{staticClass:["pvtGrandTotal"],on:this.tableOptions.clickCallback?{click:x(l.value(),[],[])}:{}},l.format(l.value())):void 0])])])},renderError:function(t,e){return this.renderError(t)}};return e}var $={name:"tsv-export-renderers",mixins:[Z],render:function(t){var e=new X(this.$props),r=e.getRowKeys(),n=e.getColKeys();0===r.length&&r.push([]),0===n.length&&n.push([]);var i=e.props.rows.map((function(t){return t}));1===n.length&&0===n[0].length?i.push(this.aggregatorName):n.map((function(t){return i.push(t.join("-"))}));var a=r.map((function(t){var r=t.map((function(t){return t}));return n.map((function(n){var i=e.getAggregator(t,n).value();r.push(i||"")})),r}));return a.unshift(i),t("textarea",{style:{width:"100%",height:"".concat(window.innerHeight/2,"px")},attrs:{readOnly:!0},domProps:{value:a.map((function(t){return t.join("\t")})).join("\n")}})},renderError:function(t,e){return this.renderError(t)}},Q={Table:K({name:"vue-table"}),"Table Heatmap":K({heatmapMode:"full",name:"vue-table-heatmap"}),"Table Col Heatmap":K({heatmapMode:"col",name:"vue-table-col-heatmap"}),"Table Row Heatmap":K({heatmapMode:"row",name:"vue-table-col-heatmap"}),"Export Table TSV":$};function tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function et(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ft(t,e){if(t){if("string"===typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={name:t.name,mixins:[Z],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var i=new X(this.$props),a=i.getRowKeys(),o=i.getColKeys(),s=n?o:a;0===s.length&&s.push([]);var l=n?a:o;0===l.length&&l.push([]);var c=this.$props.aggregatorName,u=this.$props.aggregators[c]([])().numInputs||0;0!==u&&(c+=" of ".concat(this.$props.vals.slice(0,u).join(", ")));var f=s.map((function(t){var r,a=[],o=[],s=ut(l);try{for(s.s();!(r=s.n()).done;){var u=r.value,f=parseFloat(i.getAggregator(n?u:t,n?t:u).value());a.push(isFinite(f)?f:null),o.push(u.join("-")||" ")}}catch(p){s.e(p)}finally{s.f()}var h={name:t.join("-")||c};return"pie"===e.type?(h.values=a,h.labels=o.length>1?o:[c]):(h.x=n?a:o,h.y=n?o:a),Object.assign(h,e)})),h=c,p=n?this.$props.rows.join("-"):this.$props.cols.join("-"),d=n?this.$props.cols.join("-"):this.$props.rows.join("-");""!==p&&(h+=" vs ".concat(p)),""!==d&&(h+=" by ".concat(d));var v={title:h,hovermode:"closest",width:window.innerWidth/1.5,height:window.innerHeight/1.4-50};if("pie"===e.type){var g=Math.ceil(Math.sqrt(f.length)),y=Math.ceil(f.length/g);v.grid={columns:g,rows:y},f.forEach((function(t,e){t.domain={row:Math.floor(e/g),column:e-g*Math.floor(e/g)},f.length>1&&(t.title=t.name)})),1===f[0].labels.length&&(v.showlegend=!1)}else v.xaxis={title:n?c:null,automargin:!0},v.yaxis={title:n?null:c,automargin:!0};return t(st["Plotly"],{props:{data:f,layout:ct(ct(ct({},v),r),this.$props.plotlyOptions)}})}};return i}function dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[Z],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var e=new X(this.$props),r=e.getRowKeys(),n=e.getColKeys();0===r.length&&r.push([]),0===n.length&&n.push([]);var i={x:[],y:[],text:[],type:"scatter",mode:"markers"};r.map((function(t){n.map((function(r){var n=e.getAggregator(t,r).value();null!==n&&(i.x.push(r.join("-")),i.y.push(t.join("-")),i.text.push(n))}))}));var a={title:this.$props.rows.join("-")+" vs "+this.$props.cols.join("-"),hovermode:"closest",xaxis:{title:this.$props.cols.join("-"),automargin:!0},yaxis:{title:this.$props.rows.join("-"),automargin:!0},width:window.innerWidth/1.5,height:window.innerHeight/1.4-50};return t(st["Plotly"],{props:{data:[i],layout:ct(ct({},a),this.$props.plotlyOptions)}})}};return e}var vt={"Grouped Column Chart":pt({name:"vue-grouped-column-chart"},{type:"bar"},{barmode:"group"}),"Stacked Column Chart":pt({name:"vue-stacked-column-chart"},{type:"bar"},{barmode:"relative"}),"Grouped Bar Chart":pt({name:"groupd-bar-chart"},{type:"bar",orientation:"h"},{barmode:"group"},!0),"Stacked Bar Chart":pt({name:"vue-stacked-bar-chart"},{type:"bar",orientation:"h"},{barmode:"relative"},!0),"Line Chart":pt({name:"vue-line-chart"}),"Dot Chart":pt({name:"vue-dot-chart"},{mode:"markers"},{},!0),"Area Chart":pt({name:"vue-area-chart"},{stackgroup:1}),"Scatter Chart":dt({name:"vue-scatter-chart"}),"Multiple Pie Chart":pt({name:"vue-multiple-pie-chart"},{type:"pie",scalegroup:1,hoverinfo:"label+value",textinfo:"none"},{},!0)},gt=r("b76a"),yt=r.n(gt);function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e0?t:Object.keys(this.attrValues)},deep:!0},propsData:{handler:function(t){if(0!==this.pivotData.length){var e={derivedAttributes:this.derivedAttributes,hiddenAttributes:this.hiddenAttributes,hiddenFromAggregators:this.hiddenFromAggregators,hiddenFromDragDrop:this.hiddenFromDragDrop,sortonlyFromDragDrop:this.sortonlyFromDragDrop,disabledFromDragDrop:this.disabledFromDragDrop,menuLimit:this.menuLimit,rowLimit:this.rowLimit,colLimit:this.colLimit,attributes:t.attributes,unusedAttrs:this.unusedAttrs,sorters:this.sorters,data:this.materializedInput,rowOrder:t.rowOrder,colOrder:t.colOrder,valueFilter:t.valueFilter,rows:t.rows,cols:t.cols,rendererName:t.rendererName,aggregatorName:t.aggregatorName,aggregators:this.aggregatorItems,vals:t.vals};this.$emit("onRefresh",e)}},immediate:!1,deep:!0}},methods:{init:function(){var t=this;this.materializeInput(this.data),this.propsData.vals=this.vals.slice(),this.propsData.rows=this.rows,this.propsData.cols=this.cols,this.propsData.rowOrder=this.rowOrder,this.propsData.colOrder=this.colOrder,this.propsData.rendererName=this.rendererName,this.propsData.aggregatorName=this.aggregatorName,this.propsData.attributes=this.attributes.length>0?this.attributes:Object.keys(this.attrValues),this.unusedOrder=this.unusedAttrs,Object.keys(this.attrValues).forEach((function(e){var r={},n=t.valueFilter&&t.valueFilter[e];n&&Object.keys(n).length&&(r=t.valueFilter[e]),t.updateValueFilter({attribute:e,valueFilter:r})}))},assignValue:function(t){this.$set(this.propsData.valueFilter,t,{})},propUpdater:function(t){var e=this;return function(r){e.propsData[t]=r}},updateValueFilter:function(t){var e=t.attribute,r=t.valueFilter;this.$set(this.propsData.valueFilter,e,r)},moveFilterBoxToTop:function(t){var e=t.attribute;this.maxZIndex+=1,this.zIndices[e]=this.maxZIndex+1},openFilterBox:function(t){var e=t.attribute,r=t.open;this.openStatus[e]=r},closeFilterBox:function(t){this.openStatus={}},materializeInput:function(t){if(this.pivotData!==t){this.pivotData=t;var e={},r=[],n=0;X.forEachRecord(this.pivotData,this.derivedAttributes,(function(t){r.push(t);for(var i=0,a=Object.keys(t);i0&&(e[o].null=n))}for(var s in e){var l=s in t?t[s]:"null";l in e[s]||(e[s][l]=0),e[s][l]++}n++})),this.materializedInput=r,this.attrValues=e}},makeDnDCell:function(t,e,r,n){var i=this,a=this.$scopedSlots.pvtAttr;return n(yt.a,{attrs:{draggable:"li[data-id]",group:"sharted",ghostClass:".pvtPlaceholder",filter:".pvtFilterBox",preventOnFilter:!1,tag:"td"},props:{value:t},staticClass:r,on:{sort:e.bind(this)}},[t.map((function(t){var e;return n(at,(e={},l(e,a?"scopedSlots":void 0,{pvtAttr:function(t){return n("slot",a(t))}}),l(e,"props",{sortable:i.sortonlyFromDragDrop.includes(t)||!i.disabledFromDragDrop.includes(t),draggable:!i.sortonlyFromDragDrop.includes(t)&&!i.disabledFromDragDrop.includes(t),name:t,key:t,attrValues:i.attrValues[t],sorter:F(i.sorters,t),menuLimit:i.menuLimit,zIndex:i.zIndices[t]||i.maxZIndex,valueFilter:i.propsData.valueFilter[t],open:i.openStatus[t],async:i.async,unused:i.unusedAttrs.includes(t),localeStrings:i.locales[i.locale].localeStrings}),l(e,"domProps",{}),l(e,"on",{"update:filter":i.updateValueFilter,"moveToTop:filterbox":i.moveFilterBoxToTop,"open:filterbox":i.openFilterBox,"no:filterbox":function(){return i.$emit("no:filterbox")}}),e))}))])},rendererCell:function(t,e){var r=this;return this.$slots.rendererCell?e("td",{staticClass:["pvtRenderers pvtVals pvtText"]},this.$slots.rendererCell):e("td",{staticClass:["pvtRenderers"]},[e(ot,{props:{values:Object.keys(this.rendererItems),value:t},on:{input:function(t){r.propUpdater("rendererName")(t),r.propUpdater("renderer",r.rendererItems[r.rendererName])}}})])},aggregatorCell:function(t,e,r){var n=this;return this.$slots.aggregatorCell?r("td",{staticClass:["pvtVals pvtText"]},this.$slots.aggregatorCell):r("td",{staticClass:["pvtVals"]},[r("div",[r(ot,{style:{display:"inline-block"},props:{values:Object.keys(this.aggregatorItems),value:t},on:{input:function(t){n.propUpdater("aggregatorName")(t)}}}),r("a",{staticClass:["pvtRowOrder"],attrs:{role:"button"},on:{click:function(){n.propUpdater("rowOrder")(n.sortIcons[n.propsData.rowOrder].next)}}},this.sortIcons[this.propsData.rowOrder].rowSymbol),r("a",{staticClass:["pvtColOrder"],attrs:{role:"button"},on:{click:function(){n.propUpdater("colOrder")(n.sortIcons[n.propsData.colOrder].next)}}},this.sortIcons[this.propsData.colOrder].colSymbol)]),this.numValsAllowed>0?new Array(this.numValsAllowed).fill().map((function(t,i){return[r(ot,{props:{values:Object.keys(n.attrValues).filter((function(t){return!n.hiddenAttributes.includes(t)&&!n.hiddenFromAggregators.includes(t)})),value:e[i]},on:{input:function(t){n.propsData.vals.splice(i,1,t)}}})]})):void 0])},outputCell:function(t,e,r){return r("td",{staticClass:["pvtOutput"]},[e?r(vt[t.rendererName],{props:t}):r(rt,{props:xt(xt({},t),{},{tableMaxWidth:this.tableMaxWidth})})])}},render:function(t){var e=this;if(!(this.data.length<1)){var r=this.$scopedSlots.output,n=this.$slots.output,i=this.propsData.rendererName,a=this.propsData.aggregatorName,o=this.propsData.vals,s=this.makeDnDCell(this.unusedAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtUnused")&&t.to.classList.contains("pvtUnused"))&&(t.from.classList.contains("pvtUnused")&&(e.openFilterBox({attribute:r,open:!1}),e.unusedOrder.splice(t.oldIndex,1),e.$emit("dragged:unused",r)),t.to.classList.contains("pvtUnused")&&(e.openFilterBox({attribute:r,open:!1}),e.unusedOrder.splice(t.newIndex,0,r),e.$emit("dropped:unused",r)))}),"pvtAxisContainer pvtUnused pvtHorizList",t),l=this.makeDnDCell(this.colAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtCols")&&t.to.classList.contains("pvtCols"))&&(t.from.classList.contains("pvtCols")&&(e.propsData.cols.splice(t.oldIndex,1),e.$emit("dragged:cols",r)),t.to.classList.contains("pvtCols")&&(e.propsData.cols.splice(t.newIndex,0,r),e.$emit("dropped:cols",r)))}),"pvtAxisContainer pvtHorizList pvtCols",t),c=this.makeDnDCell(this.rowAttrs,(function(t){var r=t.item.getAttribute("data-id");(!e.sortonlyFromDragDrop.includes(r)||t.from.classList.contains("pvtRows")&&t.to.classList.contains("pvtRows"))&&(t.from.classList.contains("pvtRows")&&(e.propsData.rows.splice(t.oldIndex,1),e.$emit("dragged:rows",r)),t.to.classList.contains("pvtRows")&&(e.propsData.rows.splice(t.newIndex,0,r),e.$emit("dropped:rows",r)))}),"pvtAxisContainer pvtVertList pvtRows",t),u=xt(xt({},this.$props),{},{localeStrings:this.localeStrings,data:this.materializedInput,rowOrder:this.propsData.rowOrder,colOrder:this.propsData.colOrder,valueFilter:this.propsData.valueFilter,rows:this.propsData.rows,cols:this.propsData.cols,aggregators:this.aggregatorItems,rendererName:i,aggregatorName:a,vals:o}),f=null;try{f=new X(u)}catch(y){if(console&&console.error(y.stack))return this.computeError(t)}var h=r&&this.colLimit>0&&this.rowLimit>0&&(f.getColKeys().length>this.colLimit||f.getRowKeys().length>this.rowLimit),p=this.rendererCell(i,t),d=this.aggregatorCell(a,o,t),v=this.outputCell(u,i.indexOf("Chart")>-1,t),g=this.$slots.colGroup;return t("table",{staticClass:["pvtUi"]},[g,t("tbody",{on:{click:this.closeFilterBox}},[t("tr",[p,s]),t("tr",[d,l]),t("tr",[c,n?t("td",{staticClass:"pvtOutput"},n):h?t("td",{staticClass:"pvtOutput"},r({pivotData:new X(u)})):v])])])}},renderError:function(t,e){return this.uiRenderError(t)}},_t={aggregatorTemplates:V,aggregators:U,derivers:W,locales:q,naturalSort:z,numberFormat:O,getSort:F,sortAs:R,PivotData:X},wt={TableRenderer:Q,PlotlyRenderer:vt},Tt={VuePivottable:rt,VuePivottableUi:bt};"undefined"!==typeof window&&window.Vue&&window.Vue.use(rt);var kt=function(t){for(var e in Tt)t.component(Tt[e].name,Tt[e])};e["default"]=kt},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})["default"]})); \ No newline at end of file