diff --git a/dist/vue-pivottable.common.js b/dist/vue-pivottable.common.js index 8af0767c..0d893b51 100644 --- a/dist/vue-pivottable.common.js +++ b/dist/vue-pivottable.common.js @@ -227537,6 +227537,7 @@ utils_PivotData.defaultProps = { }; // CONCATENATED MODULE: ./src/helper/defaultProps.js + /* harmony default export */ var defaultProps = ({ props: { data: { @@ -227550,6 +227551,17 @@ utils_PivotData.defaultProps = { return []; } }, + heatmapMode: String, + tableColorScaleGenerator: { + type: Function + }, + tableOptions: { + type: Object, + default: function _default() { + return {}; + } + }, + renderers: Function, rendererName: { type: String, default: 'Table' @@ -227587,7 +227599,7 @@ utils_PivotData.defaultProps = { } }, derivedAttributes: { - type: Object, + type: [Function, Object], default: function _default() { return {}; } @@ -227605,6 +227617,13 @@ utils_PivotData.defaultProps = { validator: function validator(value) { return ['key_a_to_z', 'value_a_to_z', 'value_z_to_a'].indexOf(value) !== -1; } + }, + tableMaxWidth: { + type: Number, + default: 0, + validator: function validator(value) { + return value >= 0; + } } } }); @@ -227977,17 +227996,16 @@ var TSVExportRenderer = { /* harmony default export */ var Pivottable = ({ name: 'vue-pivottable', - props: ['tableMaxWidth'], mixins: [defaultProps], computed: { - renderers: function renderers() { + defaultRenderers: function defaultRenderers() { return src_TableRenderer[this.rendererName in src_TableRenderer ? this.rendererName : Object.keys(src_TableRenderer)[0]]; } }, methods: { createPivottable: function createPivottable(h) { var props = this.$props; - return h(this.renderers, { + return h(this.renderers || this.defaultRenderers, { props: props }); }, @@ -228620,13 +228638,6 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt name: 'vue-pivottable-ui', mixins: [defaultProps], props: { - tableMaxWidth: { - type: Number, - default: 0, - validator: function validator(value) { - return value >= 0; - } - }, hiddenAttributes: { type: Array, default: function _default() { @@ -228663,7 +228674,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt } }, computed: { - renderers: function renderers() { + rendererItems: function rendererItems() { return Object.assign({}, src_TableRenderer, PlotlyRenderer); }, numValsAllowed: function numValsAllowed() { @@ -228689,6 +228700,29 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt return Object.keys(this.attrValues).filter(function (e) { return !_this3.propsData.rows.includes(e) && !_this3.propsData.cols.includes(e) && !_this3.hiddenAttributes.includes(e) && !_this3.hiddenFromDragDrop.includes(e); }).sort(sortAs(this.unusedOrder)); + }, + config: function config() { + return { + derivedAttributes: this.derivedAttributes, + hiddenAttributes: this.hiddenAttributes, + hiddenFromAggregators: [], + hiddenFromDragDrop: [], + menuLimit: 500, + cols: ['Party'], + rows: ['Province'], + vals: [], + rowOrder: 'key_a_to_z', + colOrder: 'key_a_to_z', + exclusions: {}, + inclusions: {}, + unusedAttrsVertical: 85, + autoSortUnusedAttrs: false, + showUI: true, + sorters: {}, + inclusionsInfo: {}, + aggregatorName: 'Count', + rendererName: 'Table' + }; } }, data: function data() { @@ -228740,6 +228774,12 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt watch: { data: function data() { this.init(); + }, + propsData: { + handler: function handler(value) { + this.$emit('onRefresh', value); + }, + deep: true } }, methods: { @@ -228867,7 +228907,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt staticClass: ['pvtRenderers'] }, [h(Dropdown, { props: { - values: Object.keys(this.renderers) + values: Object.keys(this.rendererItems) }, domProps: { value: rendererName @@ -228876,7 +228916,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt input: function input(value) { _this6.propUpdater('rendererName')(value); - _this6.propUpdater('renderer', _this6.renderers[value]); + _this6.propUpdater('renderer', _this6.rendererItems[value]); } } })]); @@ -229030,6 +229070,18 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt + +var PivotUtilities = { + aggregatorTemplates: aggregatorTemplates, + aggregators: aggregators, + derivers: derivers, + locales: locales, + naturalSort: naturalSort, + numberFormat: numberFormat, + getSort: getSort, + sortAs: sortAs, + PivotData: utils_PivotData +}; var components = { VuePivottable: Pivottable, VuePivottableUi: PivottableUi @@ -229044,6 +229096,7 @@ if (typeof window !== 'undefined' && window.Vue) window.Vue.use(Pivottable); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* concated harmony reexport VuePivottable */__webpack_require__.d(__webpack_exports__, "VuePivottable", function() { return Pivottable; }); /* concated harmony reexport VuePivottableUi */__webpack_require__.d(__webpack_exports__, "VuePivottableUi", function() { return PivottableUi; }); +/* concated harmony reexport PivotUtilities */__webpack_require__.d(__webpack_exports__, "PivotUtilities", function() { return PivotUtilities; }); /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); diff --git a/dist/vue-pivottable.umd.js b/dist/vue-pivottable.umd.js index 1c227f11..a5ae9d98 100644 --- a/dist/vue-pivottable.umd.js +++ b/dist/vue-pivottable.umd.js @@ -227546,6 +227546,7 @@ utils_PivotData.defaultProps = { }; // CONCATENATED MODULE: ./src/helper/defaultProps.js + /* harmony default export */ var defaultProps = ({ props: { data: { @@ -227559,6 +227560,17 @@ utils_PivotData.defaultProps = { return []; } }, + heatmapMode: String, + tableColorScaleGenerator: { + type: Function + }, + tableOptions: { + type: Object, + default: function _default() { + return {}; + } + }, + renderers: Function, rendererName: { type: String, default: 'Table' @@ -227596,7 +227608,7 @@ utils_PivotData.defaultProps = { } }, derivedAttributes: { - type: Object, + type: [Function, Object], default: function _default() { return {}; } @@ -227614,6 +227626,13 @@ utils_PivotData.defaultProps = { validator: function validator(value) { return ['key_a_to_z', 'value_a_to_z', 'value_z_to_a'].indexOf(value) !== -1; } + }, + tableMaxWidth: { + type: Number, + default: 0, + validator: function validator(value) { + return value >= 0; + } } } }); @@ -227986,17 +228005,16 @@ var TSVExportRenderer = { /* harmony default export */ var Pivottable = ({ name: 'vue-pivottable', - props: ['tableMaxWidth'], mixins: [defaultProps], computed: { - renderers: function renderers() { + defaultRenderers: function defaultRenderers() { return src_TableRenderer[this.rendererName in src_TableRenderer ? this.rendererName : Object.keys(src_TableRenderer)[0]]; } }, methods: { createPivottable: function createPivottable(h) { var props = this.$props; - return h(this.renderers, { + return h(this.renderers || this.defaultRenderers, { props: props }); }, @@ -228629,13 +228647,6 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt name: 'vue-pivottable-ui', mixins: [defaultProps], props: { - tableMaxWidth: { - type: Number, - default: 0, - validator: function validator(value) { - return value >= 0; - } - }, hiddenAttributes: { type: Array, default: function _default() { @@ -228672,7 +228683,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt } }, computed: { - renderers: function renderers() { + rendererItems: function rendererItems() { return Object.assign({}, src_TableRenderer, PlotlyRenderer); }, numValsAllowed: function numValsAllowed() { @@ -228698,6 +228709,29 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt return Object.keys(this.attrValues).filter(function (e) { return !_this3.propsData.rows.includes(e) && !_this3.propsData.cols.includes(e) && !_this3.hiddenAttributes.includes(e) && !_this3.hiddenFromDragDrop.includes(e); }).sort(sortAs(this.unusedOrder)); + }, + config: function config() { + return { + derivedAttributes: this.derivedAttributes, + hiddenAttributes: this.hiddenAttributes, + hiddenFromAggregators: [], + hiddenFromDragDrop: [], + menuLimit: 500, + cols: ['Party'], + rows: ['Province'], + vals: [], + rowOrder: 'key_a_to_z', + colOrder: 'key_a_to_z', + exclusions: {}, + inclusions: {}, + unusedAttrsVertical: 85, + autoSortUnusedAttrs: false, + showUI: true, + sorters: {}, + inclusionsInfo: {}, + aggregatorName: 'Count', + rendererName: 'Table' + }; } }, data: function data() { @@ -228749,6 +228783,12 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt watch: { data: function data() { this.init(); + }, + propsData: { + handler: function handler(value) { + this.$emit('onRefresh', value); + }, + deep: true } }, methods: { @@ -228876,7 +228916,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt staticClass: ['pvtRenderers'] }, [h(Dropdown, { props: { - values: Object.keys(this.renderers) + values: Object.keys(this.rendererItems) }, domProps: { value: rendererName @@ -228885,7 +228925,7 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt input: function input(value) { _this6.propUpdater('rendererName')(value); - _this6.propUpdater('renderer', _this6.renderers[value]); + _this6.propUpdater('renderer', _this6.rendererItems[value]); } } })]); @@ -229039,6 +229079,18 @@ function PivottableUi_objectSpread(target) { for (var i = 1; i < arguments.lengt + +var PivotUtilities = { + aggregatorTemplates: aggregatorTemplates, + aggregators: aggregators, + derivers: derivers, + locales: locales, + naturalSort: naturalSort, + numberFormat: numberFormat, + getSort: getSort, + sortAs: sortAs, + PivotData: utils_PivotData +}; var components = { VuePivottable: Pivottable, VuePivottableUi: PivottableUi @@ -229053,6 +229105,7 @@ if (typeof window !== 'undefined' && window.Vue) window.Vue.use(Pivottable); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js /* concated harmony reexport VuePivottable */__webpack_require__.d(__webpack_exports__, "VuePivottable", function() { return Pivottable; }); /* concated harmony reexport VuePivottableUi */__webpack_require__.d(__webpack_exports__, "VuePivottableUi", function() { return PivottableUi; }); +/* concated harmony reexport PivotUtilities */__webpack_require__.d(__webpack_exports__, "PivotUtilities", function() { return PivotUtilities; }); /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); diff --git a/dist/vue-pivottable.umd.min.js b/dist/vue-pivottable.umd.min.js index b4a830c7..ccf96cd0 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}},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}},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}))},c8bb:function(t,e,r){t.exports=r("54a1")},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))}},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)}}},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:"© 2019 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)}},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},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")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},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("7f7f"),r("ac6a"),r("cadf"),r("456d");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=r("85f2"),o=r.n(a);function s(t,e){for(var r=0;r1?r+n[1]:"",o=/(\d+)(\d{3})/;while(o.test(i))i=i.replace(o,"$1".concat(e,"$2"));return i+a},M=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=A((r.scaler*t).toFixed(r.digitsAfterDecimal),r.thousandsSep,r.decimalSep);return"".concat(r.prefix).concat(e).concat(r.suffix)}},S=/(\d+)|(\D+)/g,E=/\d/,C=/^0/,L=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(!E.test(i)||!E.test(a))return i>a?1:-1;i=i.match(S),a=a.match(S);while(i.length&&a.length){var o=i.shift(),s=a.shift();if(o!==s)return E.test(o)&&E.test(s)?o.replace(C,".0")-s.replace(C,".0"):o>s?1:-1}return i.length-a.length},O=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:L(t,n)}},P=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 L},I=M(),D=M({digitsAfterDecimal:0}),z=M({digitsAfterDecimal:1,scaler:100,suffix:"%"}),R={count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;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]:D;return function(r){var n=k(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]:I;return function(e){var r=k(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]:I;return function(r){var n=k(r,1),i=n[0];return function(r){return{val:null,sorter:P("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]:I;return function(r){var n=k(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]:I;return function(n){var i=k(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]:I;return function(e){var r=k(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]:z;return function(){for(var n=arguments.length,i=new Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};i(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,t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){e.filter(t)&&e.processRecord(t)}))}return l(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]||{});l0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[B],props:{heatmapMode:String,tableColorScaleGenerator:{type:Function,default:j},tableOptions:{type:Object,default:function(){return{}}}},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=new N(this.$props),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=this.tableOptions&&this.tableOptions.clickCallback?function(t,e,o){for(var s={},l=0,c=Object.keys(i||{});l0?this.createWrapperContainer(t):this.createPivottable(t)}};r("8e6e");function G(t,e,r){return e in t?o()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("6c7b");function Y(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 W(t){for(var e=1;e0&&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:[B],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var i=new N(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=F[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=!0,s=!1,u=void 0;try{for(var f,h=l[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var p=f.value,d=parseFloat(i.getAggregator(n?p:t,n?t:p).value());r.push(isFinite(d)?d:null),a.push(p.join("-")||" ")}}catch(g){s=!0,u=g}finally{try{o||null==h.return||h.return()}finally{if(s)throw u}}var v={name:t.join("-")||c};return"pie"===e.type?(v.values=r,v.labels=a.length>1?a:[c]):(v.x=n?r:a,v.y=n?a:r),Object.assign(v,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($["Plotly"],{props:{data:f,layout:tt({},v,{},r,{},this.$props.plotlyOptions)}})}};return i}function rt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[B],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var e=new N(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($["Plotly"],{props:{data:[i],layout:tt({},a,{},this.$props.plotlyOptions)}})}};return e}var nt={"Grouped Column Chart":et({name:"vue-grouped-column-chart"},{type:"bar"},{barmode:"group"}),"Stacked Column Chart":et({name:"vue-stacked-column-chart"},{type:"bar"},{barmode:"relative"}),"Grouped Bar Chart":et({name:"groupd-bar-chart"},{type:"bar",orientation:"h"},{barmode:"group"},!0),"Stacked Bar Chart":et({name:"vue-stacked-bar-chart"},{type:"bar",orientation:"h"},{barmode:"relative"},!0),"Line Chart":et({name:"vue-line-chart"}),"Dot Chart":et({name:"vue-dot-chart"},{mode:"markers"},{},!0),"Area Chart":et({name:"vue-area-chart"},{stackgroup:1}),"Scatter Chart":rt({name:"vue-scatter-chart"}),"Multiple Pie Chart":et({name:"vue-multiple-pie-chart"},{type:"pie",scalegroup:1,hoverinfo:"label+value",textinfo:"none"},{},!0)};function it(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 at(t){for(var e=1;e=0}},hiddenAttributes:{type:Array,default:function(){return[]}},hiddenFromAggregators:{type:Array,default:function(){return[]}},hiddenFromDragDrop:{type:Array,default:function(){return[]}},sortonlyFromDragDrop:{type:Array,default:function(){return[]}},disabledFromDragDrop:{type:Array,default:function(){return[]}},menuLimit:{type:Number,default:500}},computed:{renderers:function(){return Object.assign({},q,nt)},numValsAllowed:function(){return F[this.propsData.aggregatorName||this.aggregatorName]([])().numInputs||0},rowAttrs:function(){var t=this;return this.propsData.rows.filter((function(e){return!t.hiddenAttributes.includes(e)&&!t.hiddenFromDragDrop.includes(e)}))},colAttrs:function(){var t=this;return this.propsData.cols.filter((function(e){return!t.hiddenAttributes.includes(e)&&!t.hiddenFromDragDrop.includes(e)}))},unusedAttrs:function(){var t=this;return Object.keys(this.attrValues).filter((function(e){return!t.propsData.rows.includes(e)&&!t.propsData.cols.includes(e)&&!t.hiddenAttributes.includes(e)&&!t.hiddenFromDragDrop.includes(e)})).sort(O(this.unusedOrder))}},data:function(){return{propsData:{aggregatorName:"",rendererName:"",rowOrder:"key_a_to_z",colOrder:"key_a_to_z",data:[],vals:[],cols:[],rows:[],valueFilter:{},renderer:null},openStatus:{},attrValues:{},unusedOrder:[],zIndices:{},maxZIndex:1e3,openDropdown:!1,materializedInput:[],sortIcons:{key_a_to_z:{rowSymbol:"↕",colSymbol:"↔",next:"value_a_to_z"},value_a_to_z:{rowSymbol:"↓",colSymbol:"→",next:"value_z_to_a"},value_z_to_a:{rowSymbol:"↑",colSymbol:"←",next:"key_a_to_z"}}}},beforeUpdated:function(t){this.materializeInput(t.data)},created:function(){this.init()},watch:{data:function(){this.init()}},methods:{init:function(){this.materializeInput(this.data),this.propsData.vals=this.vals.slice(),this.propsData.rows=this.rows,this.propsData.cols=this.cols,this.unusedOrder=this.unusedAttrs,Object.keys(this.attrValues).map(this.assignValue),Object.keys(this.openStatus).map(this.assignValue)},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},materializeInput:function(t){if(this.propsData.data!==t){this.propsData.data=t;var e={},r=[],n=0;N.forEachRecord(this.data,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;return n(K.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){return n(X,{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:P(i.sorters,t),menuLimit:i.menuLimit,zIndex:i.zIndices[t]||i.maxZIndex,valueFilter:i.propsData.valueFilter[t],open:i.openStatus[t]},domProps:{},on:{"update:filter":i.updateValueFilter,"moveToTop:filterbox":i.moveFilterBoxToTop,"open:filterbox":i.openFilterBox}})}))])},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(Z,{props:{values:Object.keys(this.renderers)},domProps:{value:t},on:{input:function(t){r.propUpdater("rendererName")(t),r.propUpdater("renderer",r.renderers[t])}}})])},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(Z,{style:{display:"inline-block"},props:{values:Object.keys(F)},domProps:{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(Z,{props:{values:Object.keys(n.attrValues).filter((function(t){return!n.hiddenAttributes.includes(t)&&!n.hiddenFromAggregators.includes(t)}))},domProps:{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(nt[t.rendererName],{props:t}):r(H,{props:at({},t,{tableMaxWidth:this.tableMaxWidth})})])}},render:function(t){var e=this;if(!(this.data.length<1)){var r=this.propsData.rendererName||this.rendererName,n=this.propsData.aggregatorName||this.aggregatorName,i=this.propsData.vals,a=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.unusedOrder.splice(t.oldIndex,1),t.to.classList.contains("pvtUnused")&&e.unusedOrder.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtUnused pvtHorizList",t),o=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),t.to.classList.contains("pvtCols")&&e.propsData.cols.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtHorizList pvtCols",t),s=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),t.to.classList.contains("pvtRows")&&e.propsData.rows.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtVertList pvtRows",t),l=at({},this.$props,{data:this.materializedInput,rowOrder:this.propsData.rowOrder,colOrder:this.propsData.colOrder,valueFilter:this.propsData.valueFilter,rows:this.propsData.rows,cols:this.propsData.cols,rendererName:r,aggregatorName:n,vals:i}),c=this.rendererCell(r,t),u=this.aggregatorCell(n,i,t),f=this.outputCell(l,r.indexOf("Chart")>-1,t);return t("table",{staticClass:["pvtUi"]},[t("tbody",[t("tr",[c,a]),t("tr",[u,o]),t("tr",[s,f])])])}}},st={VuePivottable:H,VuePivottableUi:ot};"undefined"!==typeof window&&window.Vue&&window.Vue.use(H);var lt=function(t){for(var e in st)t.component(st[e].name,st[e])};r.d(e,"VuePivottable",(function(){return H})),r.d(e,"VuePivottableUi",(function(){return ot}));e["default"]=lt},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}},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}},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}))},c8bb:function(t,e,r){t.exports=r("54a1")},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))}},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)}}},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:"© 2019 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)}},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},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")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},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("7f7f"),r("ac6a"),r("cadf"),r("456d");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=r("85f2"),o=r.n(a);function s(t,e){for(var r=0;r1?r+n[1]:"",o=/(\d+)(\d{3})/;while(o.test(i))i=i.replace(o,"$1".concat(e,"$2"));return i+a},M=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=A((r.scaler*t).toFixed(r.digitsAfterDecimal),r.thousandsSep,r.decimalSep);return"".concat(r.prefix).concat(e).concat(r.suffix)}},S=/(\d+)|(\D+)/g,E=/\d/,C=/^0/,L=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(!E.test(i)||!E.test(a))return i>a?1:-1;i=i.match(S),a=a.match(S);while(i.length&&a.length){var o=i.shift(),s=a.shift();if(o!==s)return E.test(o)&&E.test(s)?o.replace(C,".0")-s.replace(C,".0"):o>s?1:-1}return i.length-a.length},O=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:L(t,n)}},P=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 L},I=M(),D=M({digitsAfterDecimal:0}),z=M({digitsAfterDecimal:1,scaler:100,suffix:"%"}),R={count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;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]:D;return function(r){var n=k(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]:I;return function(e){var r=k(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]:I;return function(r){var n=k(r,1),i=n[0];return function(r){return{val:null,sorter:P("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]:I;return function(r){var n=k(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]:I;return function(n){var i=k(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]:I;return function(e){var r=k(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]:z;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]:B,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:j,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 V(o["get".concat(a,"Month")]()+1);case"n":return n[o["get".concat(a,"Month")]()];case"d":return V(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 V(o["get".concat(a,"Hours")]());case"M":return V(o["get".concat(a,"Minutes")]());case"S":return V(o["get".concat(a,"Seconds")]());default:return"%".concat(e)}}))}}},q=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(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,t.forEachRecord(this.props.data,this.props.derivedAttributes,(function(t){e.filter(t)&&e.processRecord(t)}))}return l(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}}}};function G(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 Y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[H],props:{heatmapMode:String,tableColorScaleGenerator:{type:Function,default:G},tableOptions:{type:Object,default:function(){return{}}}},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=new q(this.$props),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=this.tableOptions&&this.tableOptions.clickCallback?function(t,e,o){for(var s={},l=0,c=Object.keys(i||{});l0?this.createWrapperContainer(t):this.createPivottable(t)}};r("8e6e");function J(t,e,r){return e in t?o()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("6c7b");function K(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 $(t){for(var e=1;e0&&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:[H],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var i=new q(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=F[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=!0,s=!1,u=void 0;try{for(var f,h=l[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var p=f.value,d=parseFloat(i.getAggregator(n?p:t,n?t:p).value());r.push(isFinite(d)?d:null),a.push(p.join("-")||" ")}}catch(g){s=!0,u=g}finally{try{o||null==h.return||h.return()}finally{if(s)throw u}}var v={name:t.join("-")||c};return"pie"===e.type?(v.values=r,v.labels=a.length>1?a:[c]):(v.x=n?r:a,v.y=n?a:r),Object.assign(v,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(nt["Plotly"],{props:{data:f,layout:at({},v,{},r,{},this.$props.plotlyOptions)}})}};return i}function st(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={name:t.name,mixins:[H],props:{plotlyOptions:{type:Object,default:function(){return{}}}},render:function(t){var e=new q(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(nt["Plotly"],{props:{data:[i],layout:at({},a,{},this.$props.plotlyOptions)}})}};return e}var lt={"Grouped Column Chart":ot({name:"vue-grouped-column-chart"},{type:"bar"},{barmode:"group"}),"Stacked Column Chart":ot({name:"vue-stacked-column-chart"},{type:"bar"},{barmode:"relative"}),"Grouped Bar Chart":ot({name:"groupd-bar-chart"},{type:"bar",orientation:"h"},{barmode:"group"},!0),"Stacked Bar Chart":ot({name:"vue-stacked-bar-chart"},{type:"bar",orientation:"h"},{barmode:"relative"},!0),"Line Chart":ot({name:"vue-line-chart"}),"Dot Chart":ot({name:"vue-dot-chart"},{mode:"markers"},{},!0),"Area Chart":ot({name:"vue-area-chart"},{stackgroup:1}),"Scatter Chart":st({name:"vue-scatter-chart"}),"Multiple Pie Chart":ot({name:"vue-multiple-pie-chart"},{type:"pie",scalegroup:1,hoverinfo:"label+value",textinfo:"none"},{},!0)};function ct(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 ut(t){for(var e=1;e0&&(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;return n(rt.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){return n(Q,{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:P(i.sorters,t),menuLimit:i.menuLimit,zIndex:i.zIndices[t]||i.maxZIndex,valueFilter:i.propsData.valueFilter[t],open:i.openStatus[t]},domProps:{},on:{"update:filter":i.updateValueFilter,"moveToTop:filterbox":i.moveFilterBoxToTop,"open:filterbox":i.openFilterBox}})}))])},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(tt,{props:{values:Object.keys(this.rendererItems)},domProps:{value:t},on:{input:function(t){r.propUpdater("rendererName")(t),r.propUpdater("renderer",r.rendererItems[t])}}})])},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(tt,{style:{display:"inline-block"},props:{values:Object.keys(F)},domProps:{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(tt,{props:{values:Object.keys(n.attrValues).filter((function(t){return!n.hiddenAttributes.includes(t)&&!n.hiddenFromAggregators.includes(t)}))},domProps:{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(lt[t.rendererName],{props:t}):r(Z,{props:ut({},t,{tableMaxWidth:this.tableMaxWidth})})])}},render:function(t){var e=this;if(!(this.data.length<1)){var r=this.propsData.rendererName||this.rendererName,n=this.propsData.aggregatorName||this.aggregatorName,i=this.propsData.vals,a=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.unusedOrder.splice(t.oldIndex,1),t.to.classList.contains("pvtUnused")&&e.unusedOrder.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtUnused pvtHorizList",t),o=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),t.to.classList.contains("pvtCols")&&e.propsData.cols.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtHorizList pvtCols",t),s=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),t.to.classList.contains("pvtRows")&&e.propsData.rows.splice(t.newIndex,0,r))}),"pvtAxisContainer pvtVertList pvtRows",t),l=ut({},this.$props,{data:this.materializedInput,rowOrder:this.propsData.rowOrder,colOrder:this.propsData.colOrder,valueFilter:this.propsData.valueFilter,rows:this.propsData.rows,cols:this.propsData.cols,rendererName:r,aggregatorName:n,vals:i}),c=this.rendererCell(r,t),u=this.aggregatorCell(n,i,t),f=this.outputCell(l,r.indexOf("Chart")>-1,t);return t("table",{staticClass:["pvtUi"]},[t("tbody",[t("tr",[c,a]),t("tr",[u,o]),t("tr",[s,f])])])}}},ht={aggregatorTemplates:R,aggregators:F,derivers:U,locales:N,naturalSort:L,numberFormat:M,getSort:P,sortAs:O,PivotData:q},pt={VuePivottable:Z,VuePivottableUi:ft};"undefined"!==typeof window&&window.Vue&&window.Vue.use(Z);var dt=function(t){for(var e in pt)t.component(pt[e].name,pt[e])};r.d(e,"VuePivottable",(function(){return Z})),r.d(e,"VuePivottableUi",(function(){return ft})),r.d(e,"PivotUtilities",(function(){return ht}));e["default"]=dt},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})["default"]})); \ No newline at end of file