!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build",n(n.s=87)}([function(e,t,n){"use strict";e.exports=n(44)},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,"a",function(){return o})},function(e,t,n){e.exports=n(55)()},function(e,t,n){var o;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return o})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(45)},function(e,t,n){"use strict";var o=function(){};e.exports=o},,function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n,i="#"===t[0],a="."===t[0],s=i||a?t.slice(1):t;if(o.test(s))return i?(e=e.getElementById?e:document,(n=e.getElementById(s))?[n]:[]):e.getElementsByClassName&&a?r(e.getElementsByClassName(s)):r(e.getElementsByTagName(t));return r(e.querySelectorAll(t))};var o=/^[\w-]*$/,r=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e,t,n){var o="",c="",d=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,a.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=n}Object.keys(d).forEach(function(t){var n=d[t];n||0===n?(0,u.default)(t)?c+=t+"("+n+") ":o+=(0,i.default)(t)+": "+n+";":(0,s.default)(e,(0,i.default)(t))}),c&&(o+=l.transform+": "+c+";");e.style.cssText+=";"+o};var r=o(n(28)),i=o(n(50)),a=o(n(52)),s=o(n(53)),l=n(29),u=o(n(54));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e){if((!r&&0!==r||e)&&i.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r};var r,i=o(n(11));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=n(36),r=n(76),i=n(77),a=n(17);e.exports={ReactTabulator:o.default,React15Tabulator:r.default,ReactTabulatorExample:i.default,reactFormatter:a.reactFormatter}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(0),r=n(7);t.clone=function(e){return JSON.parse(JSON.stringify(e))},t.isSameArray=function(e,t){var n=e.length;if(n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0},t.reactFormatter=function(e){return function(t,n,i){return i(function(){var n=t.getElement(),i=o.cloneElement(e,{cell:t});r.render(i,n.querySelector(".formatterCell"))}),'<div class="formatterCell"></div>'}}},function(e,t,n){var o,r;n(59),o=[n(58)],void 0===(r=function(e){return function(){var t,n,o,r=0,i={error:"error",info:"info",success:"success",warning:"warning"},a={clear:function(n,o){var r=d();t||s(r),l(n,r,o)||function(n){for(var o=t.children(),r=o.length-1;r>=0;r--)l(e(o[r]),n)}(r)},remove:function(n){var o=d();t||s(o),n&&0===e(":focus",n).length?p(n):t.children().length&&t.remove()},error:function(e,t,n){return c({type:i.error,iconClass:d().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:s,info:function(e,t,n){return c({type:i.info,iconClass:d().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return c({type:i.success,iconClass:d().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return c({type:i.warning,iconClass:d().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return a;function s(n,o){return n||(n=d()),(t=e("#"+n.containerId)).length?t:(o&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t)}function l(t,n,o){var r=!(!o||!o.force)&&o.force;return!(!t||!r&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){p(t)}}),0))}function u(e){n&&n(e)}function c(n){var i=d(),a=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),a=n.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===o)return!0;o=t.message}return!1}(i,n)){r++,t=s(i,!0);var l=null,c=e("<div/>"),h=e("<div/>"),f=e("<div/>"),m=e("<div/>"),g=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:r,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&c.addClass(i.toastClass).addClass(a),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=b(n.title)),h.append(e).addClass(i.titleClass),c.append(h)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=b(n.message)),f.append(e).addClass(i.messageClass),c.append(f)}}(),i.closeButton&&(g.addClass(i.closeClass).attr("role","button"),c.prepend(g)),i.progressBar&&(m.addClass(i.progressClass),c.prepend(m)),i.rtl&&c.addClass("rtl"),i.newestOnTop?t.prepend(c):t.append(c),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}c.attr("aria-live",e)}(),c.hide(),c[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(l=setTimeout(w,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(x,10))),i.closeOnHover&&c.hover(C,E),!i.onclick&&i.tapToDismiss&&c.click(w),i.closeButton&&g&&g.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),w(!0)}),i.onclick&&c.click(function(e){i.onclick(e),w()}),u(y),i.debug&&console&&console.log(y),c}function b(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,o=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,r=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",c).length||t)return clearTimeout(v.intervalId),c[n]({duration:o,easing:r,complete:function(){p(c),clearTimeout(l),i.onHidden&&"hidden"!==y.state&&i.onHidden(),y.state="hidden",y.endTime=new Date,u(y)}})}function E(){(i.timeOut>0||i.extendedTimeOut>0)&&(l=setTimeout(w,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function C(){clearTimeout(l),v.hideEta=0,c.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function x(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;m.width(e+"%")}}function d(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},a.options)}function p(e){t||(t=s()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),o=void 0))}}()}.apply(t,o))||(e.exports=r)},,function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=o(n(29)),i=o(n(13));function a(e,t,n){var o,i={target:e,currentTarget:e};function a(e){e.target===e.currentTarget&&(clearTimeout(o),e.target.removeEventListener(r.default.end,a),t.call(this))}r.default.end?null==n&&(n=l(e)||0):n=0,r.default.end?(e.addEventListener(r.default.end,a,!1),o=setTimeout(function(){return a(i)},1.5*(n||100))):setTimeout(a.bind(null,i),0)}a._parseDuration=l;var s=a;function l(e){var t=(0,i.default)(e,r.default.duration),n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}t.default=s,e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=o(n(30));t.on=r.default;var i=o(n(31));t.off=i.default;var a=o(n(60));t.filter=a.default;var s=o(n(33));t.listen=s.default;var l={on:r.default,off:i.default,filter:a.default,listen:s.default};t.default=l},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var d=0;d<s.length;d++)i.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),d=6;d<u;d++)c[d-6]=arguments[d];return e.apply(void 0,[n,o,s,i,l].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=a(n(0)),i=a(n(23));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(function(e,t,n,i,a){var s=e[t],l=void 0===s?"undefined":o(s);return r.default.isValidElement(s)?new Error("Invalid "+i+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+i+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=void 0===t?{}:t,o=n.propTypes,i=n.defaultProps,a=n.allowFallback,s=void 0!==a&&a,l=n.displayName,u=void 0===l?e.name||e.displayName:l,c=function(t,n){return e(t,n)};return Object.assign(r.default.forwardRef||!s?r.default.forwardRef(c):function(e){return c(e,null)},{displayName:u,propTypes:o,defaultProps:i})};var o,r=(o=n(0))&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(o,function(e,t){return t.toUpperCase()})};var o=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=l(n(65)),r=l(n(13)),i=l(n(15)),a=l(n(68)),s=n(70);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,o=void 0===n||n,r=t.handleContainerOverflow,a=void 0===r||r;this.hideSiblingNodes=o,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=(0,i.default)()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},o=-1,t.some(function(e,t){if(n(e,t))return o=t,!0}),o;var t,n,o},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,r.default)(t,"paddingRight")||0,10)+this.scrollbarSize+"px"),(0,r.default)(t,n)},t.removeContainerStyle=function(e,t){var n=e.style;Object.keys(n).forEach(function(e){t.style[e]=n[e]})},t.add=function(e,t,n){var r=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,s.hideSiblings)(t,e),-1!==i)return this.data[i].modals.push(e),r;var l={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,a.default)(t)};return this.handleContainerOverflow&&this.setContainerStyle(l,t),l.classes.forEach(o.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(l),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],i=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(o.default.removeClass.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(r,i),this.hideSiblingNodes&&(0,s.showSiblings)(i,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var a=r.modals[r.modals.length-1],l=a.backdrop,u=a.dialog;(0,s.ariaHidden)(!1,u),(0,s.ariaHidden)(!1,l)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=o(n(26)),i=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,a,s,l,u,c,d,p,h,f,m=o(n(11)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=f,t.animationTiming=h,t.animationDuration=p,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,o={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(o),i="",a=0;a<r.length;a++){var s=r[a];if(s+"TransitionProperty"in n){i="-"+s.toLowerCase(),e=o[s]("TransitionEnd"),t=o[s]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=s=r+"-transition-property",t.transitionDuration=l=r+"-transition-duration",t.transitionDelay=c=r+"-transition-delay",t.transitionTiming=u=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=p=r+"-animation-duration",t.animationTiming=h=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:s,timing:u,delay:c,duration:l};t.default=y},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(11)).default&&(r=document.addEventListener?function(e,t,n,o){return e.addEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)})}:void 0);var i=r;t.default=i,e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=function(){};o(n(11)).default&&(r=document.addEventListener?function(e,t,n,o){return e.removeEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var i=r;t.default=i,e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=o(n(11)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=o(n(11)),i=o(n(30)),a=o(n(31)),s=function(){};r.default&&(s=function(e,t,n,o){return(0,i.default)(e,t,n,o),function(){(0,a.default)(e,t,n,o)}});var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return null==e?t:(e="function"==typeof e?e():e,r.default.findDOMNode(e)||null)};var o,r=(o=n(7))&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};t.__esModule=!0;var a=n(0),s=n(7),l=n(37),u=n(38),c=n(17),d=n(39),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:[]},t.ref=null,t.htmlProps=null,t.mainId="tabulator-"+ +new Date+"-"+Math.floor(9999999*Math.random()),t.table=null,t.pickValidHTMLProps=function(){t.htmlProps||(t.htmlProps=l.pickHTMLProps(t.props),delete t.htmlProps.data,delete t.htmlProps.columns)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=s.findDOMNode(this.ref),t=this,n=this.props,o=n.columns,r=n.data,a=n.options,l=u.propsToOptions(this.props);new d(e,i({columns:o},l,{layout:"fitColumns",tableBuilding:function(){t.table=this,t.props.tableBuilding&&t.props.tableBuilding()},dataLoaded:function(){t.props.dataLoaded&&t.props.dataLoaded()}},a,{data:r})),r&&r.length>0&&this.setState({data:r})},t.prototype.componentWillUnmount=function(){this.table.destroy()},t.getDerivedStateFromProps=function(e,t){var n=!e.data||0===e.data.length;return!t&&n?null:t&&0===t.data.length&&0===e.data.length?null:t&&e.data&&!c.isSameArray(t.data,e.data)?i({},t,{data:e.data}):{}},t.prototype.componentDidUpdate=function(){this.table.setData(this.state.data)},t.prototype.render=function(){var e=this;this.pickValidHTMLProps();var t=this.props.className;return a.createElement("div",i({ref:function(t){return e.ref=t},"data-instance":this.mainId},this.htmlProps,{className:t}))},t}(a.Component);t.default=p},function(e,t){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickSVGProps=t.pickHTMLProps=void 0;var o=i(n(1)),r=i(n(5));function i(e){return e&&e.__esModule?e:{default:e}}t.pickHTMLProps=o.default,t.pickSVGProps=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=a(n(2)),i=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}var s=o({},r.default,["about","datatype","defaultChecked","defaultValue","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave","allowtransparency","charSet","ismap","typemustmatch","onBlur","onChange","onClick","onContextMenu","onCopy","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onScroll","onSubmit","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onWheel","onCompositionEnd","onCompositionStart","onCompositionUpdate","onInvalid","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"].reduce(function(e,t){return e[t]=t,e},{}));t.default=(0,i.default)(function(e){return Boolean(s[e])||/^(data|aria)-/.test(e)})},function(e,t){
/*!
   * html-attributes
   * https://github.com/alexmingoia/html-attributes
   */
"use strict";e.exports={abbr:"abbr",accept:"accept",acceptCharset:"accept-charset",accessKey:"accesskey",action:"action",allowFullScreen:"allowfullscreen",allowTransparency:"allowtransparency",alt:"alt",async:"async",autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",cellPadding:"cellpadding",cellSpacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"class",className:"class",cols:"cols",colSpan:"colspan",command:"command",content:"content",contentEditable:"contenteditable",contextMenu:"contextmenu",controls:"controls",coords:"coords",crossOrigin:"crossorigin",data:"data",dateTime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",encType:"enctype",for:"for",form:"form",formAction:"formaction",formEncType:"formenctype",formMethod:"formmethod",formNoValidate:"formnovalidate",formTarget:"formtarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hrefLang:"hreflang",htmlFor:"for",httpEquiv:"http-equiv",icon:"icon",id:"id",inputMode:"inputmode",isMap:"ismap",itemId:"itemid",itemProp:"itemprop",itemRef:"itemref",itemScope:"itemscope",itemType:"itemtype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxLength:"maxlength",media:"media",mediaGroup:"mediagroup",method:"method",min:"min",minLength:"minlength",multiple:"multiple",muted:"muted",name:"name",noValidate:"novalidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radioGroup:"radiogroup",readOnly:"readonly",rel:"rel",required:"required",role:"role",rows:"rows",rowSpan:"rowspan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellCheck:"spellcheck",src:"src",srcDoc:"srcdoc",srcSet:"srcset",start:"start",step:"step",style:"style",tabIndex:"tabindex",target:"target",title:"title",translate:"translate",type:"type",typeMustMatch:"typemustmatch",useMap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(4),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){return function(t){if(!(0,i.default)(t))throw new Error("props should be a plain object");var n={};for(var o in t)t.hasOwnProperty(o)&&e(o)&&(n[o]=t[o]);return n}}},function(e,t){var n="[object Object]";var o,r,i=Function.prototype,a=Object.prototype,s=i.toString,l=a.hasOwnProperty,u=s.call(Object),c=a.toString,d=(o=Object.getPrototypeOf,r=Object,function(e){return o(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||c.call(e)!=n||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=d(e);if(null===t)return!0;var o=l.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&s.call(o)==u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(3)),r=i(n(6));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(function(e){return Boolean(r.default[e])})},function(e,t){
/*!
   * svg-attributes
   * https://github.com/alexmingoia/svg-attributes
   */
"use strict";e.exports={accentHeight:"accent-height",accumulate:"accumulate",additive:"additive",alphabetic:"alphabetic",amplitude:"amplitude",arabicForm:"arabic-form",ascent:"ascent",attributeName:"attributeName",attributeType:"attributeType",azimuth:"azimuth",baseFrequency:"baseFrequency",baseProfile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcMode:"calcMode",capHeight:"cap-height",class:"class",clipPathUnits:"clipPathUnits",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cx:"cx",cy:"cy",d:"d",descent:"descent",diffuseConstant:"diffuseConstant",divisor:"divisor",dur:"dur",dx:"dx",dy:"dy",edgeMode:"edgeMode",elevation:"elevation",end:"end",exponent:"exponent",externalResourcesRequired:"externalResourcesRequired",fill:"fill",filterRes:"filterRes",filterUnits:"filterUnits",fontFamily:"font-family",fontSize:"font-size",fontStretch:"font-stretch",fontStyle:"font-style",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphame:"glyph-name",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:"hanging",height:"height",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",id:"id",ideographic:"ideographic",in:"in",in2:"in2",intercept:"intercept",k:"k",k1:"k1",k2:"k2",k3:"k3",k4:"k4",kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lang:"lang",lengthAdjust:"lengthAdjust",limitingConeAngle:"limitingConeAngle",local:"local",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:"mathematical",max:"max",media:"media",method:"method",min:"min",mode:"mode",name:"name",numOctaves:"numOctaves",offset:"offset",onAbort:"onabort",onActivate:"onactivate",onBegin:"onbegin",onClick:"onclick",onEnd:"onend",onError:"onerror",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onLoad:"onload",onMouseDown:"onmousedown",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onRepeat:"onrepeat",onResize:"onresize",onScroll:"onscroll",onUnload:"onunload",onZoom:"onzoom",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overlinePosition:"overline-position",overlineThickness:"overline-thickness",panose1:"panose-1",path:"path",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",points:"points",pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:"r",radius:"radius",refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:"restart",result:"result",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",seed:"seed",slope:"slope",spacing:"spacing",specularConstant:"specularConstant",specularExponent:"specularExponent",spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchTiles:"stitchTiles",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:"string",style:"style",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",target:"target",targetX:"targetX",targetY:"targetY",textLength:"textLength",title:"title",to:"to",transform:"transform",type:"type",u1:"u1",u2:"u2",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:"unicode",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:"values",version:"version",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",width:"width",widths:"widths",x:"x",xHeight:"x-height",x1:"x1",x2:"x2",xChannelSelector:"xChannelSelector",xlink:"xlink",xml:"xml",y:"y",y1:"y1",y2:"y2",yChannelSelector:"yChannelSelector",z:"z",zoomAndPan:"zoomAndPan",alignmentBaseline:"alignment-baseline",baselineShift:"baseline-shift",clipPath:"clip-path",clipRule:"clip-rule",clip:"clip",colorInterpolationFilters:"color-interpolation-filters",colorInterpolation:"color-interpolation",colorProfile:"color-profile",colorRendering:"color-rendering",color:"color",cursor:"cursor",direction:"direction",display:"display",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:"filter",floodColor:"flood-color",floodOpacity:"flood-opacity",fontSizeAdjust:"font-size-adjust",fontVariant:"font-variant",fontWeight:"font-weight",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",imageRendering:"image-rendering",kerning:"kerning",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",mask:"mask",opacity:"opacity",overflow:"overflow",pointerEvents:"pointer-events",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",stroke:"stroke",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",unicodeBidi:"unicode-bidi",visibility:"visibility",wordSpacing:"word-spacing",writingMode:"writing-mode"}}])},function(e,t,n){"use strict";t.__esModule=!0;var o=n(74),r=function(){};t.propsToOptions=function(e){for(var t={},n=0,i=["height","layout","layoutColumnsOnNewData","columnMinWidth","columnVertAlign","resizableColumns","resizableRows","autoResize","tooltips","tooltipsHeader","tooltipGenerationMode","initialSort","initialFilter","footerElement","index","keybindings","clipboard","clipboardCopyStyled","clipboardCopySelector","clipboardCopyFormatter","clipboardCopyHeader","clipboardPasteParser","clipboardPasteAction","rowFormatter","placeholder"];n<i.length;n++){var a=i[n];void 0!==e[a]&&(t[a]=e[a])}for(var s=0,l=["tableBuilt","rowClick","rowDblClick","rowContext","rowTap","rowDblTap","rowTapHold","rowAdded","rowDeleted","rowMoved","rowUpdated","rowSelectionChanged","rowSelected","rowDeselected","rowResized","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellEditing","cellEdited","cellEditCancelled","columnMoved","columnResized","columnTitleChanged","columnVisibilityChanged","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","htmlImporting","htmlImported","dataLoading","dataLoaded","dataEdited","ajaxRequesting","ajaxResponse","ajaxError","dataFiltering","dataFiltered","dataSorting","dataSorted","renderStarted","renderComplete","pageLoaded","localized","dataGrouping","dataGrouped","groupVisibilityChanged","groupClick","groupDblClick","groupContext","groupTap","groupDblTap","groupTapHold","movableRowsSendingStart","movableRowsSent","movableRowsSentFailed","movableRowsSendingStop","movableRowsReceivingStart","movableRowsReceived","movableRowsReceivedFailed","movableRowsReceivingStop","validationFailed","clipboardCopied","clipboardPasted","clipboardPasteError","downloadDataFormatter","downloadReady","downloadComplete"];s<l.length;s++){var u=l[s];t[u]=e[u]||r}return"object"==typeof e.footerElement&&(t.footerElement=o.renderToString(e.footerElement)),t}},function(t,n,o){var r,i,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a=function(){"use strict";Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var o=arguments[1],r=0;r<n;){var i=t[r];if(e.call(o,i,r,t))return r;r++}return-1}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var o=arguments[1],r=0;r<n;){var i=t[r];if(e.call(o,i,r,t))return i;r++}}});var t=function(e){this.table=e,this.blockHozScrollEvent=!1,this.headersElement=this.createHeadersElement(),this.element=this.createHeaderElement(),this.rowManager=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.element.insertBefore(this.headersElement,this.element.firstChild)};t.prototype.createHeadersElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e},t.prototype.createHeaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-header"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e},t.prototype.initialize=function(){},t.prototype.setRowManager=function(e){this.rowManager=e},t.prototype.getElement=function(){return this.element},t.prototype.getHeadersElement=function(){return this.headersElement},t.prototype.scrollHorizontal=function(e){var t=0,n=this.element.scrollWidth-this.table.element.clientWidth;this.element.scrollLeft=e,e>n?(t=e-n,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},t.prototype.generateColumnsFromRowData=function(e){var t,n,o=[];if(e&&e.length){for(var r in t=e[0]){var i={field:r,title:r},a=t[r];switch(void 0===a?"undefined":s(a)){case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Array.isArray(a)?"array":"string";break;default:n=isNaN(a)||""===a?a.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number"}i.sorter=n,o.push(i)}this.table.options.columns=o,this.setColumns(this.table.options.columns)}},t.prototype.setColumns=function(e,t){for(var n=this;n.headersElement.firstChild;)n.headersElement.removeChild(n.headersElement.firstChild);n.columns=[],n.columnsByIndex=[],n.columnsByField={},n.table.modExists("frozenColumns")&&n.table.modules.frozenColumns.reset(),e.forEach(function(e,t){n._addColumn(e)}),n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),n.redraw(!0)},t.prototype._addColumn=function(e,t,n){var r=new o(e,this),i=r.getElement(),a=n?this.findColumnIndex(n):n;if(n&&a>-1){var s=this.columns.indexOf(n.getTopColumn()),l=n.getElement();t?(this.columns.splice(s,0,r),l.parentNode.insertBefore(i,l)):(this.columns.splice(s+1,0,r),l.parentNode.insertBefore(i,l.nextSibling))}else t?(this.columns.unshift(r),this.headersElement.insertBefore(r.getElement(),this.headersElement.firstChild)):(this.columns.push(r),this.headersElement.appendChild(r.getElement()));return r},t.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},t.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},t.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},t.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var n;e.clearVerticalAlign(),(n=e.getHeight())>t&&(t=n)}),e.columns.forEach(function(n){n.verticalAlign(e.table.options.columnVertAlign,t)}),e.rowManager.adjustTableSize()},t.prototype.findColumn=function(e){return"object"!=(void 0===e?"undefined":s(e))?this.columnsByField[e]||!1:e instanceof o?e:e instanceof n?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&this.columns.find(function(t){return t.element===e})||!1},t.prototype.getColumnByField=function(e){return this.columnsByField[e]},t.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},t.prototype.getFirstVisibileColumn=function(e){return(e=this.columnsByIndex.findIndex(function(e){return e.visible}))>-1&&this.columnsByIndex[e]},t.prototype.getColumns=function(){return this.columns},t.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},t.prototype.getRealColumns=function(){return this.columnsByIndex},t.prototype.traverse=function(e){this.columnsByIndex.forEach(function(t,n){e(t,n)})},t.prototype.getDefinitions=function(e){var t=[];return this.columnsByIndex.forEach(function(n){(!e||e&&n.visible)&&t.push(n.getDefinition())}),t},t.prototype.getDefinitionTree=function(){var e=[];return this.columns.forEach(function(t){e.push(t.getDefinition(!0))}),e},t.prototype.getComponents=function(e){var t=[];return(e?this.columns:this.columnsByIndex).forEach(function(e){t.push(e.getComponent())}),t},t.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},t.prototype.moveColumn=function(e,t,n){this._moveColumnInArray(this.columns,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistentLayout&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("columns")},t.prototype._moveColumnInArray=function(e,t,n,o,r){var i,a=e.indexOf(t);a>-1&&(e.splice(a,1),(i=e.indexOf(n))>-1?o&&(i+=1):i=a,e.splice(i,0,t),r&&this.table.rowManager.rows.forEach(function(e){if(e.cells.length){var t=e.cells.splice(a,1)[0];e.cells.splice(i,0,t)}}))},t.prototype.scrollToColumn=function(e,t,n){var o=this,r=0,i=0,a=0,s=e.getElement();return new Promise(function(l,u){if(void 0===t&&(t=o.table.options.scrollToColumnPosition),void 0===n&&(n=o.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":a=-o.element.clientWidth/2;break;case"right":a=s.clientWidth-o.headersElement.clientWidth}if(!n&&(i=s.offsetLeft)>0&&i+s.offsetWidth<o.element.clientWidth)return!1;r=s.offsetLeft+o.element.scrollLeft+a,r=Math.max(Math.min(r,o.table.rowManager.element.scrollWidth-o.table.rowManager.element.clientWidth),0),o.table.rowManager.scrollHorizontal(r),o.scrollHorizontal(r),l()}else console.warn("Scroll Error - Column not visible"),u("Scroll Error - Column not visible")})},t.prototype.generateCells=function(e){var t=[];return this.columnsByIndex.forEach(function(n){t.push(n.generateCell(e))}),t},t.prototype.getFlexBaseWidth=function(){var e=this,t=e.table.element.clientWidth,n=0;return e.rowManager.element.scrollHeight>e.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(o){var r,i,a;o.visible&&(r=o.definition.width||0,i=void 0===o.minWidth?e.table.options.columnMinWidth:parseInt(o.minWidth),a="string"==typeof r?r.indexOf("%")>-1?t/100*parseInt(r):parseInt(r):r,n+=a>i?a:i)}),n},t.prototype.addColumn=function(e,t,n){var o=this._addColumn(e,t,n);this._reIndexColumns(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),this.redraw(),"fitColumns"!=this.table.modules.layout.getMode()&&o.reinitializeWidth(),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},t.prototype.deregisterColumn=function(e){var t,n=e.getField();n&&delete this.columnsByField[n],(t=this.columnsByIndex.indexOf(e))>-1&&this.columnsByIndex.splice(t,1),(t=this.columns.indexOf(e))>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.redraw()},t.prototype.redraw=function(e){e&&(d.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),"fitColumns"==this.table.modules.layout.getMode()?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistentLayout&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var n=function(e){this._column=e,this.type="ColumnComponent"};n.prototype.getElement=function(){return this._column.getElement()},n.prototype.getDefinition=function(){return this._column.getDefinition()},n.prototype.getField=function(){return this._column.getField()},n.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},n.prototype.getVisibility=function(){return this._column.visible},n.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},n.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},n.prototype.toggle=function(){this._column.visible?this.hide():this.show()},n.prototype.delete=function(){this._column.delete()},n.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},n.prototype.getParentColumn=function(){return this._column.parent instanceof o&&this._column.parent.getComponent()},n.prototype._getSelf=function(){return this._column},n.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},n.prototype.getTable=function(){return this._column.table},n.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},n.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},n.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},n.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},n.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()};var o=function e(t,n){var o=this;this.table=n.table,this.definition=t,this.parent=n,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.setField(this.definition.field),this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,n){var r=new e(t,o);o.attachColumn(r)}),o.checkColumnVisibility()):n.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader()};o.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},o.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},o.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},o.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNesteData:this._setFlatData},o.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},o.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},o.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},o.prototype._mapDepricatedFunctionality=function(){void 0!==this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is depricated, you should now use htmlOutput"))},o.prototype.setTooltip=function(){var e=this,t=e.definition,n=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;n?!0===n?t.field?e.table.modules.localize.bind("columns|"+t.field,function(n){e.element.setAttribute("title",n||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof n&&!1===(n=n(e.getComponent()))&&(n=""),e.element.setAttribute("title",n)):e.element.setAttribute("title","")},o.prototype._buildHeader=function(){for(var e=this,t=e.definition;e.element.firstChild;)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&(void 0!==t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},o.prototype._bindEvents=function(){var e,t,n,o=this,r=o.definition;"function"==typeof r.headerClick&&o.element.addEventListener("click",function(e){r.headerClick(e,o.getComponent())}),"function"==typeof r.headerDblClick&&o.element.addEventListener("dblclick",function(e){r.headerDblClick(e,o.getComponent())}),"function"==typeof r.headerContext&&o.element.addEventListener("contextmenu",function(e){r.headerContext(e,o.getComponent())}),"function"==typeof r.headerTap&&(n=!1,o.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),o.element.addEventListener("touchend",function(e){n&&r.headerTap(e,o.getComponent()),n=!1})),"function"==typeof r.headerDblTap&&(e=null,o.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,r.headerDblTap(t,o.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof r.headerTapHold&&(t=null,o.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,r.headerTapHold(e,o.getComponent())},1e3)},{passive:!0}),o.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof r.cellClick&&(o.cellEvents.cellClick=r.cellClick),"function"==typeof r.cellDblClick&&(o.cellEvents.cellDblClick=r.cellDblClick),"function"==typeof r.cellContext&&(o.cellEvents.cellContext=r.cellContext),"function"==typeof r.cellMouseEnter&&(o.cellEvents.cellMouseEnter=r.cellMouseEnter),"function"==typeof r.cellMouseLeave&&(o.cellEvents.cellMouseLeave=r.cellMouseLeave),"function"==typeof r.cellMouseOver&&(o.cellEvents.cellMouseOver=r.cellMouseOver),"function"==typeof r.cellMouseOut&&(o.cellEvents.cellMouseOut=r.cellMouseOut),"function"==typeof r.cellMouseMove&&(o.cellEvents.cellMouseMove=r.cellMouseMove),"function"==typeof r.cellTap&&(o.cellEvents.cellTap=r.cellTap),"function"==typeof r.cellDblTap&&(o.cellEvents.cellDblTap=r.cellDblTap),"function"==typeof r.cellTapHold&&(o.cellEvents.cellTapHold=r.cellTapHold),"function"==typeof r.cellEdited&&(o.cellEvents.cellEdited=r.cellEdited),"function"==typeof r.cellEditing&&(o.cellEvents.cellEditing=r.cellEditing),"function"==typeof r.cellEditCancelled&&(o.cellEvents.cellEditCancelled=r.cellEditCancelled)},o.prototype._buildColumnHeader=function(){var e=this,t=e.definition,n=e.table;(n.modExists("sort")&&n.modules.sort.initializeColumn(e,e.contentElement),n.modExists("format")&&n.modules.format.initializeColumn(e),void 0!==t.editor&&n.modExists("edit")&&n.modules.edit.initializeColumn(e),void 0!==t.validator&&n.modExists("validate")&&n.modules.validate.initializeColumn(e),n.modExists("mutator")&&n.modules.mutator.initializeColumn(e),n.modExists("accessor")&&n.modules.accessor.initializeColumn(e),s(n.options.responsiveLayout)&&n.modExists("responsiveLayout")&&n.modules.responsiveLayout.initializeColumn(e),void 0!==t.visible&&(t.visible?e.show(!0):e.hide(!0)),t.cssClass)&&t.cssClass.split(" ").forEach(function(t){e.element.classList.add(t)});t.field&&this.element.setAttribute("tabulator-field",t.field),e.setMinWidth(void 0===t.minWidth?e.table.options.columnMinWidth:parseInt(t.minWidth)),e.reinitializeWidth(),e.tooltip=e.definition.tooltip||!1===e.definition.tooltip?e.definition.tooltip:e.table.options.tooltips,e.hozAlign=void 0===e.definition.align?"":e.definition.align},o.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),e.appendChild(this._buildColumnHeaderTitle()),e},o.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,n=e.table,o=document.createElement("div");if(o.classList.add("tabulator-col-title"),t.editableTitle){var r=document.createElement("input");r.classList.add("tabulator-title-editor"),r.addEventListener("click",function(e){e.stopPropagation(),r.focus()}),r.addEventListener("change",function(){t.title=r.value,n.options.columnTitleChanged.call(e.table,e.getComponent())}),o.appendChild(r),t.field?n.modules.localize.bind("columns|"+t.field,function(e){r.value=e||t.title||"&nbsp"}):r.value=t.title||"&nbsp"}else t.field?n.modules.localize.bind("columns|"+t.field,function(n){e._formatColumnHeaderTitle(o,n||t.title||"&nbsp")}):e._formatColumnHeaderTitle(o,t.title||"&nbsp");return o},o.prototype._formatColumnHeaderTitle=function(e,t){var n,o,r,i;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(n=this.table.modules.format.getFormatter(this.definition.titleFormatter),i={getValue:function(){return t},getElement:function(){return e}},r="function"==typeof(r=this.definition.titleFormatterParams||{})?r():r,void 0===(o=n.call(this.table.modules.format,i,r))?"undefined":s(o)){case"object":o instanceof Node?e.appendChild(o):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",o));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=o}else e.innerHTML=t},o.prototype._buildGroupHeader=function(){this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.element.appendChild(this.groupElement)},o.prototype._getFlatData=function(e){return e[this.field]},o.prototype._getNestedData=function(e){for(var t,n=e,o=this.fieldStructure,r=o.length,i=0;i<r&&(t=n=n[o[i]],n);i++);return t},o.prototype._setFlatData=function(e,t){this.field&&(e[this.field]=t)},o.prototype._setNesteData=function(e,t){for(var n=e,o=this.fieldStructure,r=o.length,i=0;i<r;i++)i==r-1?n[o[i]]=t:(n[o[i]]||(n[o[i]]={}),n=n[o[i]])},o.prototype.attachColumn=function(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement())):console.warn("Column Warning - Column being attached to another column instead of column group")},o.prototype.verticalAlign=function(e,t){var n=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=n+"px",this.isGroup&&(this.groupElement.style.minHeight=n-this.contentElement.offsetHeight+"px"),this.isGroup||"top"===e||(this.element.style.paddingTop="bottom"===e?this.element.clientHeight-this.contentElement.offsetHeight+"px":(this.element.clientHeight-this.contentElement.offsetHeight)/2+"px"),this.columns.forEach(function(t){t.verticalAlign(e)})},o.prototype.clearVerticalAlign=function(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()})},o.prototype.getElement=function(){return this.element},o.prototype.getGroupElement=function(){return this.groupElement},o.prototype.getField=function(){return this.field},o.prototype.getFirstColumn=function(){return this.isGroup?!!this.columns.length&&this.columns[0].getFirstColumn():this},o.prototype.getLastColumn=function(){return this.isGroup?!!this.columns.length&&this.columns[this.columns.length-1].getLastColumn():this},o.prototype.getColumns=function(){return this.columns},o.prototype.getCells=function(){return this.cells},o.prototype.getTopColumn=function(){return this.parent.isGroup?this.parent.getTopColumn():this},o.prototype.getDefinition=function(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(e){t.push(e.getDefinition(!0))}),this.definition.columns=t),this.definition},o.prototype.checkColumnVisibility=function(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.parent.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1)):this.hide()},o.prototype.show=function(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(e){e.show()}),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager._verticalAlignHeaders(),this.table.options.persistentLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.persistence.save("columns"),!t&&this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(this,this.visible),e||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths())},o.prototype.hide=function(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager._verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(e){e.hide()}),this.table.options.persistentLayout&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("columns"),!t&&this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(this,this.visible),e||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths())},o.prototype.matchChildWidths=function(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px")},o.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},o.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},o.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},o.prototype.getWidth=function(){return this.width},o.prototype.getHeight=function(){return this.element.offsetHeight},o.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},o.prototype.delete=function(){this.isGroup&&this.columns.forEach(function(e){e.delete()});for(var e=this.cells.length,t=0;t<e;t++)this.cells[0].delete();this.element.parentNode.removeChild(this.element),this.table.columnManager.deregisterColumn(this)},o.prototype.generateCell=function(e){var t=new u(this,e);return this.cells.push(t),t},o.prototype.nextColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this.table.columnManager.getColumnByIndex(e+1)},o.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this.table.columnManager.getColumnByIndex(e-1)},o.prototype.reinitializeWidth=function(e){this.widthFixed=!1,void 0===this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},o.prototype.fitToData=function(){this.widthFixed||(this.element.style.width="",this.cells.forEach(function(e){e.clearWidth()}));var e=this.element.offsetWidth;this.width&&this.widthFixed||(this.cells.forEach(function(t){var n=t.getWidth();n>e&&(e=n)}),e&&this.setWidthActual(e+1))},o.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},o.prototype.defaultOptionList=["title","field","columns","visible","align","width","minWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print"],o.prototype.getComponent=function(){return new n(this)};var r=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="classic",this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]};r.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},r.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},r.prototype.getElement=function(){return this.element},r.prototype.getTableElement=function(){return this.tableElement},r.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},r.prototype.setColumnManager=function(e){this.columnManager=e},r.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,n=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(n),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t)):e.scrollTop=t})},r.prototype.findRow=function(e){var t=this;return"object"!=(void 0===e?"undefined":s(e))?null!=e&&(t.rows.find(function(n){return n.data[t.table.options.index]==e})||!1):e instanceof a?e:e instanceof i?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&t.rows.find(function(t){return t.element===e})||!1},r.prototype.getRowFromDataObject=function(e){return this.rows.find(function(t){return t.data===e})||!1},r.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},r.prototype.scrollToRow=function(e,t,n){var o,r=this,i=this.getDisplayRows().indexOf(e),a=e.getElement(),s=0;return new Promise(function(e,l){if(i>-1){if(void 0===t&&(t=r.table.options.scrollToRowPosition),void 0===n&&(n=r.table.options.scrollToRowIfVisible),"nearest"===t)switch(r.renderMode){case"classic":o=d.prototype.helpers.elOffset(a).top,t=Math.abs(r.element.scrollTop-o)>Math.abs(r.element.scrollTop+r.element.clientHeight-o)?"bottom":"top";break;case"virtual":t=Math.abs(r.vDomTop-i)>Math.abs(r.vDomBottom-i)?"bottom":"top"}if(!n&&d.prototype.helpers.elVisible(a)&&(s=d.prototype.helpers.elOffset(a).top-d.prototype.helpers.elOffset(r.element).top)>0&&s<r.element.clientHeight-a.offsetHeight)return!1;switch(r.renderMode){case"classic":r.element.scrollTop=d.prototype.helpers.elOffset(a).top-d.prototype.helpers.elOffset(r.element).top+r.element.scrollTop;break;case"virtual":r._virtualRenderFill(i,!0)}switch(t){case"middle":case"center":r.element.scrollTop=r.element.scrollTop-r.element.clientHeight/2;break;case"bottom":r.element.scrollTop=r.element.scrollTop-r.element.clientHeight+a.offsetHeight}e()}else console.warn("Scroll Error - Row not visible"),l("Scroll Error - Row not visible")})},r.prototype.setData=function(e,t){var n=this,o=this;return new Promise(function(r,i){t&&n.getDisplayRows().length?o.table.options.pagination?o._setDataActual(e,!0):n.reRenderInPosition(function(){o._setDataActual(e)}):(n.table.options.autoColumns&&n.table.columnManager.generateColumnsFromRowData(e),n.resetScroll(),n._setDataActual(e)),r()})},r.prototype._setDataActual=function(e,t){var n=this;n.table.options.dataLoading.call(this.table,e),this._wipeElements(),this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.clear(),Array.isArray(e)?(this.table.modExists("selectRow")&&this.table.modules.selectRow.clearSelectionData(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchData(e),e.forEach(function(e,t){if(e&&"object"===(void 0===e?"undefined":s(e))){var o=new a(e,n);n.rows.push(o)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",e)}),n.table.options.dataLoaded.call(this.table,e),n.refreshActiveData(!1,!1,t)):console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",void 0===e?"undefined":s(e),"\nData:     ",e)},r.prototype._wipeElements=function(){this.rows.forEach(function(e){e.wipe()}),this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.wipe(),this.rows=[]},r.prototype.deleteRow=function(e,t){var n=this.rows.indexOf(e),o=this.activeRows.indexOf(e);o>-1&&this.activeRows.splice(o,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),t||this.reRenderInPosition(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataEdited.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},r.prototype.addRow=function(e,t,n,o){var r=this.addRowActual(e,t,n,o);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",r,{data:e,pos:t,index:n}),r},r.prototype.addRows=function(e,t,n){var o=this,r=this,i=[];return new Promise(function(a,s){t=o.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,(void 0===n&&t||void 0!==n&&!t)&&e.reverse(),e.forEach(function(e,o){var a=r.addRow(e,t,n,!0);i.push(a)}),o.table.options.groupBy&&o.table.modExists("groupRows")?o.table.modules.groupRows.updateGroupRows(!0):o.table.options.pagination&&o.table.modExists("page")?o.refreshActiveData(!1,!1,!0):o.reRenderInPosition(),o.table.modExists("columnCalcs")&&o.table.modules.columnCalcs.recalc(o.table.rowManager.activeRows),a(i)})},r.prototype.findAddRowPos=function(e){return void 0===e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},r.prototype.addRowActual=function(e,t,n,o){var r,i=e instanceof a?e:new a(e||{},this),s=this.findAddRowPos(t);if(!n&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),s?r.length?n=r[0]:this.activeRows.length&&(n=this.activeRows[this.activeRows.length-1],s=!1):r.length&&(n=r[r.length-1],s=!(r.length<this.table.modules.page.getPageSize()))),n&&(n=this.findRow(n)),this.table.options.groupBy&&this.table.modExists("groupRows")){this.table.modules.groupRows.assignRowToGroup(i);var l=i.getGroup().rows;l.length>1&&(!n||n&&-1==l.indexOf(n)?s?l[0]!==i&&(n=l[0],this._moveRowInArray(i.getGroup().rows,i,n,s)):l[l.length-1]!==i&&(n=l[l.length-1],this._moveRowInArray(i.getGroup().rows,i,n,s)):this._moveRowInArray(i.getGroup().rows,i,n,s))}if(n){var u=this.rows.indexOf(n),c=this.activeRows.indexOf(n);this.displayRowIterator(function(e){var t=e.indexOf(n);t>-1&&e.splice(s?t:t+1,0,i)}),c>-1&&this.activeRows.splice(s?c:c+1,0,i),u>-1&&this.rows.splice(s?u:u+1,0,i)}else s?(this.displayRowIterator(function(e){e.unshift(i)}),this.activeRows.unshift(i),this.rows.unshift(i)):(this.displayRowIterator(function(e){e.push(i)}),this.activeRows.push(i),this.rows.push(i));return this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,i.getComponent()),this.table.options.dataEdited.call(this.table,this.getData()),o||this.reRenderInPosition(),i},r.prototype.moveRow=function(e,t,n){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{pos:this.getRowPosition(e),to:t,after:n}),this.moveRowActual(e,t,n),this.table.options.rowMoved.call(this.table,e.getComponent())},r.prototype.moveRowActual=function(e,t,n){var o=this;if(this._moveRowInArray(this.rows,e,t,n),this._moveRowInArray(this.activeRows,e,t,n),this.displayRowIterator(function(r){o._moveRowInArray(r,e,t,n)}),this.table.options.groupBy&&this.table.modExists("groupRows")){var r=t.getGroup(),i=e.getGroup();r===i?this._moveRowInArray(r.rows,e,t,n):(i&&i.removeRow(e),r.insertRow(e,t,n))}},r.prototype._moveRowInArray=function(e,t,n,o){var r,i,a;if(t!==n&&((r=e.indexOf(t))>-1&&(e.splice(r,1),(i=e.indexOf(n))>-1?o?e.splice(i+1,0,t):e.splice(i,0,t):e.splice(r,0,t)),e===this.getDisplayRows())){a=i>r?i:r+1;for(var s=r<i?r:i;s<=a;s++)e[s]&&this.styleRow(e[s],s)}},r.prototype.clearData=function(){this.setData([])},r.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},r.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},r.prototype.nextDisplayRow=function(e,t){var n=this.getDisplayRowIndex(e),o=!1;return!1!==n&&n<this.displayRowsCount-1&&(o=this.getDisplayRows()[n+1]),!o||o instanceof a&&"row"==o.type?o:this.nextDisplayRow(o,t)},r.prototype.prevDisplayRow=function(e,t){var n=this.getDisplayRowIndex(e),o=!1;return n&&(o=this.getDisplayRows()[n-1]),!o||o instanceof a&&"row"==o.type?o:this.prevDisplayRow(o,t)},r.prototype.findRowIndex=function(e,t){var n;return!!((e=this.findRow(e))&&(n=t.indexOf(e))>-1)&&n},r.prototype.getData=function(e,t){var n=[];return(e?this.activeRows:this.rows).forEach(function(e){n.push(e.getData(t||"data"))}),n},r.prototype.getComponents=function(e){var t=[];return(e?this.activeRows:this.rows).forEach(function(e){t.push(e.getComponent())}),t},r.prototype.getDataCount=function(e){return e?this.activeRows.length:this.rows.length},r.prototype._genRemoteRequest=function(){var e=this,t=e.table,n=t.options,o={};if(t.modExists("page")){if(n.ajaxSorting){var r=e.table.modules.sort.getSort();r.forEach(function(e){delete e.column}),o[e.table.modules.page.paginationDataSentNames.sorters]=r}if(n.ajaxFiltering){var i=e.table.modules.filter.getFilters(!0,!0);o[e.table.modules.page.paginationDataSentNames.filters]=i}e.table.modules.ajax.setParams(o,!0)}t.modules.ajax.sendRequest().then(function(t){e.setData(t)}).catch(function(e){})},r.prototype.filterRefresh=function(){var e=this.table,t=e.options,n=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(n)},r.prototype.sorterRefresh=function(e){var t=this.table,n=this.table.options,o=this.scrollLeft;n.ajaxSorting?("remote"==n.pagination||n.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):n.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(o)},r.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},r.prototype.refreshActiveData=function(e,t,n){var o,r=this.table;switch(this.table.modExists("edit")&&this.table.modules.edit.cancelEdit(),e||(e="all"),r.options.selectable&&!r.options.selectablePersistence&&r.modExists("selectRow")&&r.modules.selectRow.deselectRows(),e){case"all":case"filter":t?t=!1:r.modExists("filter")?this.setActiveRows(r.modules.filter.filter(this.rows)):this.setActiveRows(this.rows.slice(0));case"sort":t?t=!1:r.modExists("sort")&&r.modules.sort.sort(this.activeRows);case"display":this.resetDisplayRows();case"freeze":t?t=!1:this.table.modExists("frozenRows")&&r.modules.frozenRows.isFrozen()&&(r.modules.frozenRows.getDisplayIndex()||r.modules.frozenRows.setDisplayIndex(this.getNextDisplayIndex()),o=r.modules.frozenRows.getDisplayIndex(),!0!==(o=this.setDisplayRows(r.modules.frozenRows.getRows(this.getDisplayRows(o-1)),o))&&r.modules.frozenRows.setDisplayIndex(o));case"group":t?t=!1:r.options.groupBy&&r.modExists("groupRows")&&(r.modules.groupRows.getDisplayIndex()||r.modules.groupRows.setDisplayIndex(this.getNextDisplayIndex()),o=r.modules.groupRows.getDisplayIndex(),!0!==(o=this.setDisplayRows(r.modules.groupRows.getRows(this.getDisplayRows(o-1)),o))&&r.modules.groupRows.setDisplayIndex(o));case"tree":t?t=!1:r.options.dataTree&&r.modExists("dataTree")&&(r.modules.dataTree.getDisplayIndex()||r.modules.dataTree.setDisplayIndex(this.getNextDisplayIndex()),o=r.modules.dataTree.getDisplayIndex(),!0!==(o=this.setDisplayRows(r.modules.dataTree.getRows(this.getDisplayRows(o-1)),o))&&r.modules.dataTree.setDisplayIndex(o)),r.options.pagination&&r.modExists("page")&&!n&&"local"==r.modules.page.getMode()&&r.modules.page.reset();case"page":t?t=!1:r.options.pagination&&r.modExists("page")&&(r.modules.page.getDisplayIndex()||r.modules.page.setDisplayIndex(this.getNextDisplayIndex()),o=r.modules.page.getDisplayIndex(),"local"==r.modules.page.getMode()&&r.modules.page.setMaxRows(this.getDisplayRows(o-1).length),!0!==(o=this.setDisplayRows(r.modules.page.getRows(this.getDisplayRows(o-1)),o))&&r.modules.page.setDisplayIndex(o))}d.prototype.helpers.elVisible(this.element)&&(n?this.reRenderInPosition():(this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0))),r.modExists("columnCalcs")&&r.modules.columnCalcs.recalc(this.activeRows)},r.prototype.setActiveRows=function(e){this.activeRows=e,this.activeRowsCount=this.activeRows.length},r.prototype.resetDisplayRows=function(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length,this.table.modExists("frozenRows")&&this.table.modules.frozenRows.setDisplayIndex(0),this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.setDisplayIndex(0),this.table.options.pagination&&this.table.modExists("page")&&this.table.modules.page.setDisplayIndex(0)},r.prototype.getNextDisplayIndex=function(){return this.displayRows.length},r.prototype.setDisplayRows=function(e,t){var n=!0;return t&&void 0!==this.displayRows[t]?(this.displayRows[t]=e,n=!0):(this.displayRows.push(e),n=t=this.displayRows.length-1),t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length),n},r.prototype.getDisplayRows=function(e){return void 0===e?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]},r.prototype.getVisibleRows=function(e){var t=this.element.scrollTop,n=this.element.clientHeight+t,o=!1,r=0,i=0,a=this.getDisplayRows();if(e){this.getDisplayRows();for(var s=this.vDomTop;s<=this.vDomBottom;s++)if(a[s])if(o){if(!(n-a[s].getElement().offsetTop>=0))break;i=s}else t-a[s].getElement().offsetTop>=0?r=s:o=!0}else r=this.vDomTop,i=this.vDomBottom;return a.slice(r,i+1)},r.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},r.prototype.getRows=function(){return this.rows},r.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode()){for(var t=this.element.scrollTop,n=!1,o=!1,r=this.scrollLeft,i=this.getDisplayRows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(i[a]){var s=t-i[a].getElement().offsetTop;if(!(!1===o||Math.abs(s)<o))break;o=s,n=a}e&&e(),this._virtualRenderFill(!1===n?this.displayRowsCount-1:n,!0,o||0),this.scrollHorizontal(r)}else this.renderTable(),e&&e()},r.prototype.setRenderMode=function(){(this.table.element.clientHeight||this.table.options.height)&&this.table.options.virtualDom?this.renderMode="virtual":this.renderMode="classic"},r.prototype.getRenderMode=function(){return this.renderMode},r.prototype.renderTable=function(){switch(this.table.options.renderStarted.call(this.table),this.element.scrollTop=0,this.renderMode){case"classic":this._simpleRender();break;case"virtual":this._virtualRenderFill()}this.firstRender&&(this.displayRowsCount?(this.firstRender=!1,this.table.modules.layout.layout()):this.renderEmptyScroll()),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.displayRowsCount||this.table.options.placeholder&&(this.renderMode&&this.table.options.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.table.options.placeholder)),this.table.options.renderComplete.call(this.table)},r.prototype._simpleRender=function(){this._clearVirtualDom(),this.displayRowsCount?this.checkClassicModeGroupHeaderWidth():this.renderEmptyScroll()},r.prototype.checkClassicModeGroupHeaderWidth=function(){var e=this,t=this.tableElement,n=!0;e.getDisplayRows().forEach(function(o,r){e.styleRow(o,r),t.appendChild(o.getElement()),o.initialize(!0),"group"!==o.type&&(n=!1)}),t.style.minWidth=n?e.table.columnManager.getWidth()+"px":""},r.prototype.renderEmptyScroll=function(){this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px",this.tableElement.style.minHeight="1px",this.tableElement.style.visibility="hidden"},r.prototype._clearVirtualDom=function(){var e=this.tableElement;for(this.table.options.placeholder&&this.table.options.placeholder.parentNode&&this.table.options.placeholder.parentNode.removeChild(this.table.options.placeholder);e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minWidth="",e.style.minHeight="",e.style.visibility="",this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0},r.prototype.styleRow=function(e,t){var n=e.getElement();t%2?(n.classList.add("tabulator-row-even"),n.classList.remove("tabulator-row-odd")):(n.classList.add("tabulator-row-odd"),n.classList.remove("tabulator-row-even"))},r.prototype._virtualRenderFill=function(e,t,n){var o=this.tableElement,r=this.element,i=0,a=0,s=0,l=0,u=!0,c=this.getDisplayRows();if(n=n||0,e=e||0){for(;o.firstChild;)o.removeChild(o.firstChild);var p=(this.displayRowsCount-e+1)*this.vDomRowHeight;p<this.height&&(e-=Math.ceil((this.height-p)/this.vDomRowHeight))<0&&(e=0),e-=i=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e)}else this._clearVirtualDom();if(this.displayRowsCount&&d.prototype.helpers.elVisible(this.element)){for(this.vDomTop=e,this.vDomBottom=e-1;(a<=this.height+this.vDomWindowBuffer||l<this.vDomWindowMinTotalRows)&&this.vDomBottom<this.displayRowsCount-1;){var h,f=this.vDomBottom+1,m=c[f];this.styleRow(m,f),o.appendChild(m.getElement()),m.initialized?m.heightInitialized||m.normalizeHeight(!0):m.initialize(!0),h=m.getHeight(),l<i?s+=h:a+=h,h>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*h),"group"!==m.type&&(u=!1),this.vDomBottom++,l++}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+n:this.scrollTop-s,this.vDomBottomPad=this.vDomBottom==this.displayRowsCount-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-a-s,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((a+s)/l),this.vDomBottomPad=this.vDomRowHeight*(this.displayRowsCount-this.vDomBottom-1),this.vDomScrollHeight=s+a+this.vDomBottomPad-this.height),o.style.paddingTop=this.vDomTopPad+"px",o.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+s+n-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,o.style.minWidth=u?this.table.columnManager.getWidth()+"px":"",this.table.options.groupBy&&"fitDataFill"!=this.table.modules.layout.getMode()&&this.displayRowsCount==this.table.modules.groupRows.countGroups()&&(this.tableElement.style.minWidth=this.table.columnManager.getWidth())}else this.renderEmptyScroll()},r.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,n=this.scrollTop-this.vDomScrollPosBottom,o=2*this.vDomWindowBuffer;if(-t>o||n>o){var r=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(r)}else e?(t<0&&this._addTopRow(-t),n<0&&this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer&&this._removeBottomRow(-n)):(t>=0&&this.scrollTop>this.vDomWindowBuffer&&this._removeTopRow(t),n>=0&&this._addBottomRow(n))},r.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,o=this.getDisplayRows();if(this.vDomTop){var r=this.vDomTop-1,i=o[r],a=i.getHeight()||this.vDomRowHeight;e>=a&&(this.styleRow(i,r),n.insertBefore(i.getElement(),n.firstChild),i.initialized&&i.heightInitialized||(this.vDomTopNewRows.push(i),i.heightInitialized||i.clearCellHeight()),i.initialize(),this.vDomTopPad-=a,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r||(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=a,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),i.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*i.getHeight()),t<this.vDomMaxRenderChain&&this.vDomTop&&e>=(o[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},r.prototype._removeTopRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomTop],o=n.getHeight()||this.vDomRowHeight;if(e>=o){var r=n.getElement();r.parentNode.removeChild(r),this.vDomTopPad+=o,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?o:o+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},r.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,o=this.getDisplayRows();if(this.vDomBottom<this.displayRowsCount-1){var r=this.vDomBottom+1,i=o[r],a=i.getHeight()||this.vDomRowHeight;e>=a&&(this.styleRow(i,r),n.appendChild(i.getElement()),i.initialized&&i.heightInitialized||(this.vDomBottomNewRows.push(i),i.heightInitialized||i.clearCellHeight()),i.initialize(),this.vDomBottomPad-=a,(this.vDomBottomPad<0||r==this.displayRowsCount-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=a,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,i.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*i.getHeight()),t<this.vDomMaxRenderChain&&this.vDomBottom<this.displayRowsCount-1&&e>=(o[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},r.prototype._removeBottomRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomBottom],o=n.getHeight()||this.vDomRowHeight;if(e>=o){var r=n.getElement();r.parentNode&&r.parentNode.removeChild(r),this.vDomBottomPad+=o,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=o,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},r.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},r.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},r.prototype.adjustTableSize=function(){if("virtual"===this.renderMode){this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height;var e=this.columnManager.getElement().offsetHeight+(this.table.footerManager&&!this.table.footerManager.external?this.table.footerManager.getElement().offsetHeight:0);this.element.style.minHeight="calc(100% - "+e+"px)",this.element.style.height="calc(100% - "+e+"px)",this.element.style.maxHeight="calc(100% - "+e+"px)"}},r.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize()})},r.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==self.renderMode?self.table.options.groupBy?self.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},r.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var i=function(e){this._row=e};i.prototype.getData=function(e){return this._row.getData(e)},i.prototype.getElement=function(){return this._row.getElement()},i.prototype.getCells=function(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e},i.prototype.getCell=function(e){var t=this._row.getCell(e);return!!t&&t.getComponent()},i.prototype.getIndex=function(){return this._row.getData("data")[this._row.table.options.index]},i.prototype.getPosition=function(e){return this._row.table.rowManager.getRowPosition(this._row,e)},i.prototype.delete=function(){return this._row.delete()},i.prototype.scrollTo=function(){return this._row.table.rowManager.scrollToRow(this._row)},i.prototype.pageTo=function(){if(this._row.table.modExists("page",!0))return this._row.table.modules.page.setPageToRow(this._row)},i.prototype.move=function(e,t){this._row.moveToRow(e,t)},i.prototype.update=function(e){return this._row.updateData(e)},i.prototype.normalizeHeight=function(){this._row.normalizeHeight(!0)},i.prototype.select=function(){this._row.table.modules.selectRow.selectRows(this._row)},i.prototype.deselect=function(){this._row.table.modules.selectRow.deselectRows(this._row)},i.prototype.toggleSelect=function(){this._row.table.modules.selectRow.toggleRow(this._row)},i.prototype.isSelected=function(){return this._row.table.modules.selectRow.isRowSelected(this._row)},i.prototype._getSelf=function(){return this._row},i.prototype.freeze=function(){this._row.table.modExists("frozenRows",!0)&&this._row.table.modules.frozenRows.freezeRow(this._row)},i.prototype.unfreeze=function(){this._row.table.modExists("frozenRows",!0)&&this._row.table.modules.frozenRows.unfreezeRow(this._row)},i.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},i.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},i.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},i.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},i.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row)},i.prototype.reformat=function(){return this._row.reinitialize()},i.prototype.getGroup=function(){return this._row.getGroup().getComponent()},i.prototype.getTable=function(){return this._row.table},i.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},i.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var a=function(e,t){this.table=t.table,this.parent=t,this.data={},this.type="row",this.element=this.createElement(),this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.setData(e),this.generateElement()};a.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.setAttribute("role","row"),e},a.prototype.getElement=function(){return this.element},a.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},a.prototype.generateElement=function(){var e,t,n,o=this;!1!==o.table.options.selectable&&o.table.modExists("selectRow")&&o.table.modules.selectRow.initializeRow(this),!1!==o.table.options.movableRows&&o.table.modExists("moveRow")&&o.table.modules.moveRow.initializeRow(this),!1!==o.table.options.dataTree&&o.table.modExists("dataTree")&&o.table.modules.dataTree.initializeRow(this),o.table.options.rowClick&&o.element.addEventListener("click",function(e){o.table.options.rowClick(e,o.getComponent())}),o.table.options.rowDblClick&&o.element.addEventListener("dblclick",function(e){o.table.options.rowDblClick(e,o.getComponent())}),o.table.options.rowContext&&o.element.addEventListener("contextmenu",function(e){o.table.options.rowContext(e,o.getComponent())}),o.table.options.rowMouseEnter&&o.element.addEventListener("mouseenter",function(e){o.table.options.rowMouseEnter(e,o.getComponent())}),o.table.options.rowMouseLeave&&o.element.addEventListener("mouseleave",function(e){o.table.options.rowMouseLeave(e,o.getComponent())}),o.table.options.rowMouseOver&&o.element.addEventListener("mouseover",function(e){o.table.options.rowMouseOver(e,o.getComponent())}),o.table.options.rowMouseOut&&o.element.addEventListener("mouseout",function(e){o.table.options.rowMouseOut(e,o.getComponent())}),o.table.options.rowMouseMove&&o.element.addEventListener("mousemove",function(e){o.table.options.rowMouseMove(e,o.getComponent())}),o.table.options.rowTap&&(n=!1,o.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),o.element.addEventListener("touchend",function(e){n&&o.table.options.rowTap(e,o.getComponent()),n=!1})),o.table.options.rowDblTap&&(e=null,o.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,o.table.options.rowDblTap(t,o.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),o.table.options.rowTapHold&&(t=null,o.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,o.table.options.rowTapHold(e,o.getComponent())},1e3)},{passive:!0}),o.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},a.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},a.prototype.initialize=function(e){var t=this;if(!t.initialized||e){for(t.deleteCells();t.element.firstChild;)t.element.removeChild(t.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),t.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&t.normalizeHeight(),t.table.options.dataTree&&t.table.modExists("dataTree")&&t.table.modules.dataTree.layoutRow(this),"collapse"===t.table.options.responsiveLayout&&t.table.modExists("responsiveLayout")&&t.table.modules.responsiveLayout.layoutRow(this),t.table.options.rowFormatter&&t.table.options.rowFormatter(t.getComponent()),t.table.options.resizableRows&&t.table.modExists("resizeRows")&&t.table.modules.resizeRows.initializeRow(t),t.initialized=!0}},a.prototype.reinitializeHeight=function(){this.heightInitialized=!1,null!==this.element.offsetParent&&this.normalizeHeight(!0)},a.prototype.reinitialize=function(){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),null!==this.element.offsetParent&&this.initialize(!0)},a.prototype.calcHeight=function(e){var t=0,n=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var n=e.getHeight();n>t&&(t=n)}),this.height=e?Math.max(t,n):this.manualHeight?this.height:Math.max(t,n),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},a.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},a.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},a.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},a.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},a.prototype.getHeight=function(){return this.outerHeight},a.prototype.getWidth=function(){return this.element.offsetWidth},a.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},a.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},a.prototype.updateData=function(e){var t=this,n=this,o=d.prototype.helpers.elVisible(this.element);return new Promise(function(r,i){for(var a in"string"==typeof e&&(e=JSON.parse(e)),t.table.options.reactiveData&&t.table.modExists("reactiveData",!0)&&t.table.modules.reactiveData.block(),n.table.modExists("mutator")&&(e=n.table.modules.mutator.transformRow(e,"data",!0)),e)n.data[a]=e[a];for(var a in t.table.options.reactiveData&&t.table.modExists("reactiveData",!0)&&t.table.modules.reactiveData.unblock(),e){var s=t.getCell(a);s&&s.getValue()!=e[a]&&(s.setValueProcessData(e[a]),o&&s.cellRendered())}o?(n.normalizeHeight(),n.table.options.rowFormatter&&n.table.options.rowFormatter(n.getComponent())):(t.initialized=!1,t.height=0,t.heightStyled=""),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&void 0!==e[t.table.modules.dataTree.getChildField()]&&(t.table.modules.dataTree.initializeRow(t),t.table.rowManager.refreshActiveData("tree",!1,!0)),n.table.options.rowUpdated.call(t.table,n.getComponent()),r()})},a.prototype.getData=function(e){return e?this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this.data,e):void 0:this.data},a.prototype.getCell=function(e){return e=this.table.columnManager.findColumn(e),this.cells.find(function(t){return t.column===e})},a.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},a.prototype.findNextEditableCell=function(e){var t=!1;if(e<this.cells.length-1)for(var n=e+1;n<this.cells.length;n++){var o=this.cells[n];if(o.column.modules.edit&&d.prototype.helpers.elVisible(o.getElement())){var r=!0;if("function"==typeof o.column.modules.edit.check&&(r=o.column.modules.edit.check(o.getComponent())),r){t=o;break}}}return t},a.prototype.findPrevEditableCell=function(e){var t=!1;if(e>0)for(var n=e-1;n>=0;n--){var o=this.cells[n],r=!0;if(o.column.modules.edit&&d.prototype.helpers.elVisible(o.getElement())&&("function"==typeof o.column.modules.edit.check&&(r=o.column.modules.edit.check(o.getComponent())),r)){t=o;break}}return t},a.prototype.getCells=function(){return this.cells},a.prototype.nextRow=function(){return this.table.rowManager.nextDisplayRow(this,!0)||!1},a.prototype.prevRow=function(){return this.table.rowManager.prevDisplayRow(this,!0)||!1},a.prototype.moveToRow=function(e,t){var n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},a.prototype.delete=function(){var e=this;return new Promise(function(t,n){var o=e.table.rowManager.getRowIndex(e);e.deleteActual(),e.table.options.history&&e.table.modExists("history")&&(o&&(o=e.table.rowManager.rows[o-1]),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!o,index:o})),t()})},a.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},a.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t<e;t++)this.cells[0].delete()},a.prototype.wipe=function(){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element=!1,this.modules={},this.element.parentNode&&this.element.parentNode.removeChild(this.element)},a.prototype.getGroup=function(){return this.modules.group||!1},a.prototype.getComponent=function(){return new i(this)};var l=function(e){this._cell=e};l.prototype.getValue=function(){return this._cell.getValue()},l.prototype.getOldValue=function(){return this._cell.getOldValue()},l.prototype.getElement=function(){return this._cell.getElement()},l.prototype.getRow=function(){return this._cell.row.getComponent()},l.prototype.getData=function(){return this._cell.row.getData()},l.prototype.getField=function(){return this._cell.column.getField()},l.prototype.getColumn=function(){return this._cell.column.getComponent()},l.prototype.setValue=function(e,t){void 0===t&&(t=!0),this._cell.setValue(e,t)},l.prototype.restoreOldValue=function(){this._cell.setValueActual(this._cell.getOldValue())},l.prototype.edit=function(e){return this._cell.edit(e)},l.prototype.cancelEdit=function(){this._cell.cancelEdit()},l.prototype.nav=function(){return this._cell.nav()},l.prototype.checkHeight=function(){this._cell.checkHeight()},l.prototype.getTable=function(){return this._cell.table},l.prototype._getSelf=function(){return this._cell};var u=function(e,t){this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.oldValue=null,this.height=null,this.width=null,this.minWidth=null,this.build()};u.prototype.build=function(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data))},u.prototype.generateElement=function(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.element=this.element},u.prototype._configureCell=function(){var e=this,t=e.column.cellEvents,n=e.element,o=this.column.getField();(n.style.textAlign=e.column.hozAlign,o&&n.setAttribute("tabulator-field",o),e.column.definition.cssClass)&&e.column.definition.cssClass.split(" ").forEach(function(e){n.classList.add(e)});"hover"===this.table.options.tooltipGenerationMode&&n.addEventListener("mouseenter",function(t){e._generateTooltip()}),e._bindClickEvents(t),e._bindTouchEvents(t),e._bindMouseEvents(t),e.column.modules.edit&&e.table.modules.edit.bindEditor(e),e.column.definition.rowHandle&&!1!==e.table.options.movableRows&&e.table.modExists("moveRow")&&e.table.modules.moveRow.initializeCell(e),e.column.visible||e.hide()},u.prototype._bindClickEvents=function(e){var t=this,n=t.element;(e.cellClick||t.table.options.cellClick)&&n.addEventListener("click",function(n){var o=t.getComponent();e.cellClick&&e.cellClick.call(t.table,n,o),t.table.options.cellClick&&t.table.options.cellClick.call(t.table,n,o)}),e.cellDblClick||this.table.options.cellDblClick?n.addEventListener("dblclick",function(n){var o=t.getComponent();e.cellDblClick&&e.cellDblClick.call(t.table,n,o),t.table.options.cellDblClick&&t.table.options.cellDblClick.call(t.table,n,o)}):n.addEventListener("dblclick",function(e){if(e.preventDefault(),document.selection)(n=document.body.createTextRange()).moveToElementText(t.element),n.select();else if(window.getSelection){var n;(n=document.createRange()).selectNode(t.element),window.getSelection().removeAllRanges(),window.getSelection().addRange(n)}}),(e.cellContext||this.table.options.cellContext)&&n.addEventListener("contextmenu",function(n){var o=t.getComponent();e.cellContext&&e.cellContext.call(t.table,n,o),t.table.options.cellContext&&t.table.options.cellContext.call(t.table,n,o)})},u.prototype._bindMouseEvents=function(e){var t=this,n=t.element;(e.cellMouseEnter||t.table.options.cellMouseEnter)&&n.addEventListener("mouseenter",function(n){var o=t.getComponent();e.cellMouseEnter&&e.cellMouseEnter.call(t.table,n,o),t.table.options.cellMouseEnter&&t.table.options.cellMouseEnter.call(t.table,n,o)}),(e.cellMouseLeave||t.table.options.cellMouseLeave)&&n.addEventListener("mouseleave",function(n){var o=t.getComponent();e.cellMouseLeave&&e.cellMouseLeave.call(t.table,n,o),t.table.options.cellMouseLeave&&t.table.options.cellMouseLeave.call(t.table,n,o)}),(e.cellMouseOver||t.table.options.cellMouseOver)&&n.addEventListener("mouseover",function(n){var o=t.getComponent();e.cellMouseOver&&e.cellMouseOver.call(t.table,n,o),t.table.options.cellMouseOver&&t.table.options.cellMouseOver.call(t.table,n,o)}),(e.cellMouseOut||t.table.options.cellMouseOut)&&n.addEventListener("mouseout",function(n){var o=t.getComponent();e.cellMouseOut&&e.cellMouseOut.call(t.table,n,o),t.table.options.cellMouseOut&&t.table.options.cellMouseOut.call(t.table,n,o)}),(e.cellMouseMove||t.table.options.cellMouseMove)&&n.addEventListener("mousemove",function(n){var o=t.getComponent();e.cellMouseMove&&e.cellMouseMove.call(t.table,n,o),t.table.options.cellMouseMove&&t.table.options.cellMouseMove.call(t.table,n,o)})},u.prototype._bindTouchEvents=function(e){var t,n,o,r=this,i=r.element;(e.cellTap||this.table.options.cellTap)&&(o=!1,i.addEventListener("touchstart",function(e){o=!0},{passive:!0}),i.addEventListener("touchend",function(t){if(o){var n=r.getComponent();e.cellTap&&e.cellTap.call(r.table,t,n),r.table.options.cellTap&&r.table.options.cellTap.call(r.table,t,n)}o=!1})),(e.cellDblTap||this.table.options.cellDblTap)&&(t=null,i.addEventListener("touchend",function(n){if(t){clearTimeout(t),t=null;var o=r.getComponent();e.cellDblTap&&e.cellDblTap.call(r.table,n,o),r.table.options.cellDblTap&&r.table.options.cellDblTap.call(r.table,n,o)}else t=setTimeout(function(){clearTimeout(t),t=null},300)})),(e.cellTapHold||this.table.options.cellTapHold)&&(n=null,i.addEventListener("touchstart",function(t){clearTimeout(n),n=setTimeout(function(){clearTimeout(n),n=null,o=!1;var i=r.getComponent();e.cellTapHold&&e.cellTapHold.call(r.table,t,i),r.table.options.cellTapHold&&r.table.options.cellTapHold.call(r.table,t,i)},1e3)},{passive:!0}),i.addEventListener("touchend",function(e){clearTimeout(n),n=null}))},u.prototype._generateContents=function(){var e;switch(void 0===(e=this.table.modExists("format")?this.table.modules.format.formatValue(this):this.element.innerHTML=this.value)?"undefined":s(e)){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",null!=e&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":case"null":this.element.innerHTML="";break;default:this.element.innerHTML=e}},u.prototype.cellRendered=function(){this.table.modExists("format")&&this.table.modules.format.cellRendered&&this.table.modules.format.cellRendered(this)},u.prototype._generateTooltip=function(){var e=this.column.tooltip;e?(!0===e?e=this.value:"function"==typeof e&&!1===(e=e(this.getComponent()))&&(e=""),void 0===e&&(e=""),this.element.setAttribute("title",e)):this.element.setAttribute("title","")},u.prototype.getElement=function(){return this.element},u.prototype.getValue=function(){return this.value},u.prototype.getOldValue=function(){return this.oldValue},u.prototype.setValue=function(e,t){var n;this.setValueProcessData(e,t)&&(this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("cellEdit",this,{oldValue:this.oldValue,newValue:this.value}),n=this.getComponent(),this.column.cellEvents.cellEdited&&this.column.cellEvents.cellEdited.call(this.table,n),this.table.options.cellEdited.call(this.table,n),this.table.options.dataEdited.call(this.table,this.table.rowManager.getData()))},u.prototype.setValueProcessData=function(e,t){var n=!1;return this.value!=e&&(n=!0,t&&this.column.modules.mutate&&(e=this.table.modules.mutator.transformCell(this,e))),this.setValueActual(e),n&&this.table.modExists("columnCalcs")&&(this.column.definition.topCalc||this.column.definition.bottomCalc)&&(this.table.options.groupBy&&this.table.modExists("groupRows")?("table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),"table"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.recalcRowGroup(this.row)):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows)),n},u.prototype.setValueActual=function(e){this.oldValue=this.value,this.value=e,this.table.options.reactiveData&&this.table.modExists("reactiveData")&&this.table.modules.reactiveData.block(),this.column.setFieldValue(this.row.data,e),this.table.options.reactiveData&&this.table.modExists("reactiveData")&&this.table.modules.reactiveData.unblock(),this._generateContents(),this._generateTooltip(),this.table.options.resizableColumns&&this.table.modExists("resizeColumns")&&this.table.modules.resizeColumns.initializeColumn("cell",this.column,this.element),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutElement(this.element,this.column)},u.prototype.setWidth=function(){this.width=this.column.width,this.element.style.width=this.column.widthStyled},u.prototype.clearWidth=function(){this.width="",this.element.style.width=""},u.prototype.getWidth=function(){return this.width||this.element.offsetWidth},u.prototype.setMinWidth=function(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled},u.prototype.checkHeight=function(){this.row.reinitializeHeight()},u.prototype.clearHeight=function(){this.element.style.height="",this.height=null},u.prototype.setHeight=function(){this.height=this.row.height,this.element.style.height=this.row.heightStyled},u.prototype.getHeight=function(){return this.height||this.element.offsetHeight},u.prototype.show=function(){this.element.style.display=""},u.prototype.hide=function(){this.element.style.display="none"},u.prototype.edit=function(e){if(this.table.modExists("edit",!0))return this.table.modules.edit.editCell(this,e)},u.prototype.cancelEdit=function(){if(this.table.modExists("edit",!0)){var e=this.table.modules.edit.getCurrentCell();e&&e._getSelf()===this?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}},u.prototype.delete=function(){this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}},u.prototype.nav=function(){var e=this,t=!1,n=this.row.getCellIndex(this);return{next:function(){var t,n=this.right();return!!n||!(!(t=e.table.rowManager.nextDisplayRow(e.row,!0))||!(n=t.findNextEditableCell(-1)))&&(n.edit(),!0)},prev:function(){var t,n=this.left();return!!n||!(!(t=e.table.rowManager.prevDisplayRow(e.row,!0))||!(n=t.findPrevEditableCell(t.cells.length)))&&(n.edit(),!0)},left:function(){return!!(t=e.row.findPrevEditableCell(n))&&(t.edit(),!0)},right:function(){return!!(t=e.row.findNextEditableCell(n))&&(t.edit(),!0)},up:function(){var t=e.table.rowManager.prevDisplayRow(e.row,!0);t&&t.cells[n].edit()},down:function(){var t=e.table.rowManager.nextDisplayRow(e.row,!0);t&&t.cells[n].edit()}}},u.prototype.getIndex=function(){this.row.getCellIndex(this)},u.prototype.getComponent=function(){return new l(this)};var c=function(e){this.table=e,this.active=!1,this.element=this.createElement(),this.external=!1,this.links=[],this._initialize()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e},c.prototype._initialize=function(e){if(this.table.options.footerElement)switch(s(this.table.options.footerElement)){case"string":"<"===this.table.options.footerElement[0]?this.element.innerHTML=this.table.options.footerElement:(this.external=!0,this.element=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement}},c.prototype.getElement=function(){return this.element},c.prototype.append=function(e,t){this.activate(t),this.element.appendChild(e),this.table.rowManager.adjustTableSize()},c.prototype.prepend=function(e,t){this.activate(t),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()},c.prototype.remove=function(e){e.parentNode.removeChild(e),this.deactivate()},c.prototype.deactivate=function(e){this.element.firstChild&&!e||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)},c.prototype.activate=function(e){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display="")),e&&this.links.push(e)},c.prototype.redraw=function(){this.links.forEach(function(e){e.footerRedraw()})};var d=function e(t,n){this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.browser="",this.browserSlow=!1,this.modules={},this.initializeElement(t),this.initializeOptions(n||{}),this._create(),e.prototype.comms.register(this)};d.prototype.defaultOptions={height:!1,layout:"fitData",layoutColumnsOnNewData:!1,columnMinWidth:40,columnVertAlign:"top",resizableColumns:!0,resizableRows:!1,autoResize:!0,columns:[],data:[],autoColumns:!1,reactiveData:!1,nestedFieldSeparator:".",tooltips:!1,tooltipsHeader:!1,tooltipGenerationMode:"load",initialSort:!1,initialFilter:!1,initialHeaderFilter:!1,columnHeaderSortMulti:!0,sortOrderReverse:!1,footerElement:!1,index:"id",keybindings:[],clipboard:!1,clipboardCopyStyled:!0,clipboardCopySelector:"active",clipboardCopyFormatter:"table",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopyConfig:!1,clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:!1,dataTree:!1,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printVisibleRows:!0,printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupHeader:!1,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:function(){},ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationFailed:function(){},historyUndo:function(){},historyRedo:function(){}},d.prototype.initializeOptions=function(e){for(var t in e)void 0===this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=[]:"object"===s(this.defaultOptions[t])?this.options[t]={}:this.options[t]=this.defaultOptions[t]},d.prototype.initializeElement=function(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"==typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},d.prototype._mapDepricatedFunctionality=function(){},d.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},d.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new t(this),this.rowManager=new r(this),this.footerManager=new c(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this._buildElement(),this._loadInitialData()},d.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},d.prototype._buildElement=function(){var e=this,t=this.element,n=this.modules,o=this.options;for(o.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");t.firstChild;)t.removeChild(t.firstChild);for(var r in o.height&&(o.height=isNaN(o.height)?o.height:o.height+"px",t.style.height=o.height),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&n.layout.initialize(o.layout),!1!==o.headerFilterPlaceholder&&n.localize.setHeaderFilterPlaceholder(o.headerFilterPlaceholder),o.langs)n.localize.installLang(r,o.langs[r]);if(n.localize.setLocale(o.locale),"string"==typeof o.placeholder){var i=document.createElement("div");i.classList.add("tabulator-placeholder");var a=document.createElement("span");a.innerHTML=o.placeholder,i.appendChild(a),o.placeholder=i}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),o.footerElement&&this.footerManager.activate(),(o.persistentLayout||o.persistentSort||o.persistentFilter)&&this.modExists("persistence",!0)&&n.persistence.initialize(o.persistenceMode,o.persistenceID),o.persistentLayout&&this.modExists("persistence",!0)&&(o.columns=n.persistence.load("columns",o.columns)),o.movableRows&&this.modExists("moveRow")&&n.moveRow.initialize(),o.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&n.columnCalcs.initialize(),this.columnManager.setColumns(o.columns),o.dataTree&&this.modExists("dataTree",!0)&&n.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(o.persistentSort||o.initialSort)&&this.modExists("sort",!0)){var s=[];o.persistentSort&&this.modExists("persistence",!0)?!1===(s=n.persistence.load("sort"))&&o.initialSort&&(s=o.initialSort):o.initialSort&&(s=o.initialSort),n.sort.setSort(s)}if((o.persistentFilter||o.initialFilter)&&this.modExists("filter",!0)){var l=[];o.persistentFilter&&this.modExists("persistence",!0)?!1===(l=n.persistence.load("filter"))&&o.initialFilter&&(l=o.initialFilter):o.initialFilter&&(l=o.initialFilter),n.filter.setFilter(l)}o.initialHeaderFilter&&this.modExists("filter",!0)&&o.initialHeaderFilter.forEach(function(t){var o=e.columnManager.findColumn(t.field);if(!o)return console.warn("Column Filter Error - No matching column found:",t.field),!1;n.filter.setHeaderFilterValue(o,t.value)}),this.modExists("ajax")&&n.ajax.initialize(),o.pagination&&this.modExists("page",!0)&&n.page.initialize(),o.groupBy&&this.modExists("groupRows",!0)&&n.groupRows.initialize(),this.modExists("keybindings")&&n.keybindings.initialize(),this.modExists("selectRow")&&n.selectRow.clearSelectionData(!0),o.autoResize&&this.modExists("resizeTable")&&n.resizeTable.initialize(),this.modExists("clipboard")&&n.clipboard.initialize(),o.printAsHtml&&this.modExists("print")&&n.print.initialize(),o.tableBuilt.call(this)},d.prototype._loadInitialData=function(){this.options.pagination&&this.modExists("page")?(this.modules.page.reset(!0),"local"==this.options.pagination?this.options.data.length?this.rowManager.setData(this.options.data):(this.options.ajaxURL||this.options.ajaxURLGenerator)&&this.modExists("ajax")?this.modules.ajax.loadData().then(function(){}).catch(function(){}):this.rowManager.setData(this.options.data):this.options.ajaxURL?this.modules.page.setPage(1).then(function(){}).catch(function(){}):this.rowManager.setData([])):this.options.data.length?this.rowManager.setData(this.options.data):(this.options.ajaxURL||this.options.ajaxURLGenerator)&&this.modExists("ajax")?this.modules.ajax.loadData().then(function(){}).catch(function(){}):this.rowManager.setData(this.options.data)},d.prototype.destroy=function(){var e=this.element;for(d.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator")},d.prototype._detectBrowser=function(){var e=navigator.userAgent;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1)},d.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(n,o){var r=document.createElement("input");r.type="file",r.accept=e||".json,application/json",r.addEventListener("change",function(e){var i,a=r.files[0],s=new FileReader;s.readAsText(a),s.onload=function(e){try{i=JSON.parse(s.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void o(e)}t._setData(i).then(function(e){n(e)}).catch(function(e){n(e)})},s.onerror=function(e){console.warn("File Load Error - Unable to read file"),o()}}),r.click()})},d.prototype.setData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n)},d.prototype._setData=function(e,t,n,o){return"string"!=typeof e?e?this.rowManager.setData(e,o):this.modExists("ajax")&&(this.modules.ajax.getUrl||this.options.ajaxURLGenerator)?"remote"==this.options.pagination&&this.modExists("page",!0)?(this.modules.page.reset(!0),this.modules.page.setPage(1)):this.modules.ajax.loadData(o):this.rowManager.setData([],o):0==e.indexOf("{")||0==e.indexOf("[")?this.rowManager.setData(JSON.parse(e),o):this.modExists("ajax",!0)?(t&&this.modules.ajax.setParams(t),n&&this.modules.ajax.setConfig(n),this.modules.ajax.setUrl(e),"remote"==this.options.pagination&&this.modExists("page",!0)?(this.modules.page.reset(!0),this.modules.page.setPage(1)):this.modules.ajax.loadData(o)):void 0},d.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},d.prototype.getData=function(e){return this.rowManager.getData(e)},d.prototype.getDataCount=function(e){return this.rowManager.getDataCount(e)},d.prototype.searchRows=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,n)},d.prototype.searchData=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,n)},d.prototype.getHtml=function(e,t,n){if(this.modExists("htmlTableExport",!0))return this.modules.htmlTableExport.getHtml(e,t,n)},d.prototype.print=function(e,t,n){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,n)},d.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},d.prototype.replaceData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!0)},d.prototype.updateData=function(e){var t=this,n=this,o=0;return new Promise(function(r,i){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"==typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);t&&(o++,t.updateData(e).then(function(){--o||r()}))}):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))})},d.prototype.addData=function(e,t,n){var o=this;return new Promise(function(r,i){o.modExists("ajax")&&o.modules.ajax.blockActiveRequest(),"string"==typeof e&&(e=JSON.parse(e)),e?o.rowManager.addRows(e,t,n).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),r(t)}):(console.warn("Update Error - No data provided"),i("Update Error - No data provided"))})},d.prototype.updateOrAddData=function(e){var t=this,n=this,o=[],r=0;return new Promise(function(i,a){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"==typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);r++,t?t.updateData(e).then(function(){r--,o.push(t.getComponent()),r||i(o)}):n.rowManager.addRows(e).then(function(e){r--,o.push(e[0].getComponent()),r||i(o)})}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})},d.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},d.prototype.getRowFromPosition=function(e,t){var n=this.rowManager.getRowFromPosition(e,t);return n?n.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},d.prototype.deleteRow=function(e){var t=this;return new Promise(function(n,o){var r=t.rowManager.findRow(e);r?r.delete().then(function(){n()}).catch(function(e){o(e)}):(console.warn("Delete Error - No matching row found:",e),o("Delete Error - No matching row found"))})},d.prototype.addRow=function(e,t,n){var o=this;return new Promise(function(r,i){"string"==typeof e&&(e=JSON.parse(e)),o.rowManager.addRows(e,t,n).then(function(e){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),r(e[0].getComponent())})})},d.prototype.updateOrAddRow=function(e,t){var n=this;return new Promise(function(o,r){var i=n.rowManager.findRow(e);"string"==typeof t&&(t=JSON.parse(t)),i?i.updateData(t).then(function(){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),o(i.getComponent())}).catch(function(e){r(e)}):i=n.rowManager.addRows(t).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),o(e[0].getComponent())}).catch(function(e){r(e)})})},d.prototype.updateRow=function(e,t){var n=this;return new Promise(function(o,r){var i=n.rowManager.findRow(e);"string"==typeof t&&(t=JSON.parse(t)),i?i.updateData(t).then(function(){o(i.getComponent())}).catch(function(e){r(e)}):(console.warn("Update Error - No matching row found:",e),r("Update Error - No matching row found"))})},d.prototype.scrollToRow=function(e,t,n){var o=this;return new Promise(function(r,i){var a=o.rowManager.findRow(e);a?o.rowManager.scrollToRow(a,t,n).then(function(){r()}).catch(function(e){i(e)}):(console.warn("Scroll Error - No matching row found:",e),i("Scroll Error - No matching row found"))})},d.prototype.moveRow=function(e,t,n){var o=this.rowManager.findRow(e);o?o.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)},d.prototype.getRows=function(e){return this.rowManager.getComponents(e)},d.prototype.getRowPosition=function(e,t){var n=this.rowManager.findRow(e);return n?this.rowManager.getRowPosition(n,t):(console.warn("Position Error - No matching row found:",e),!1)},d.prototype.copyToClipboard=function(e,t,n,o){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e,t,n,o)},d.prototype.setColumns=function(e){this.columnManager.setColumns(e)},d.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},d.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},d.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},d.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},d.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},d.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},d.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},d.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},d.prototype.addColumn=function(e,t,n){var o=this.columnManager.findColumn(n);this.columnManager.addColumn(e,t,o)},d.prototype.deleteColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Delete Error - No matching column found:",e),!1;t.delete()},d.prototype.scrollToColumn=function(e,t,n){var o=this;return new Promise(function(r,i){var a=o.columnManager.findColumn(e);a?o.columnManager.scrollToColumn(a,t,n).then(function(){r()}).catch(function(e){i(e)}):(console.warn("Scroll Error - No matching column found:",e),i("Scroll Error - No matching column found"))})},d.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},d.prototype.getLocale=function(){return this.modules.localize.getLocale()},d.prototype.getLang=function(e){return this.modules.localize.getLang(e)},d.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},d.prototype.setHeight=function(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.redraw()},d.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},d.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},d.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},d.prototype.setFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,n),this.rowManager.filterRefresh())},d.prototype.addFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,n),this.rowManager.filterRefresh())},d.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},d.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},d.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var n=this.columnManager.findColumn(e);if(!n)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(n,t)}},d.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},d.prototype.removeFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,n),this.rowManager.filterRefresh())},d.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},d.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},d.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.selectRows(e)},d.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},d.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},d.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},d.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},d.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},d.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},d.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,o){t.options.pagination&&t.modExists("page")&&(e=t.rowManager.findRow(e))?t.modules.page.setPageToRow(e).then(function(){n()}).catch(function(){o()}):o()})},d.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},d.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},d.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},d.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},d.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},d.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},d.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display")},d.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?this.rowManager.refreshActiveData("group"):console.warn("Grouping Update - cant refresh view, no groups have been set")},d.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?this.rowManager.refreshActiveData("group"):console.warn("Grouping Update - cant refresh view, no groups have been set")},d.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},d.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},d.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},d.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||!(e=this.modules.edit.currentCell))&&e.nav().prev()},d.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||!(e=this.modules.edit.currentCell))&&e.nav().next()},d.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().left())},d.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().right())},d.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().up())},d.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().down())},d.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},d.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},d.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},d.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},d.prototype.download=function(e,t,n){this.modExists("download",!0)&&this.modules.download.download(e,t,n)},d.prototype.downloadToTab=function(e,t,n){this.modExists("download",!0)&&this.modules.download.download(e,t,n,!0)},d.prototype.tableComms=function(e,t,n,o){this.modules.comms.receive(e,t,n,o)},d.prototype.moduleBindings={},d.prototype.extendModule=function(e,t,n){if(d.prototype.moduleBindings[e]){var o=d.prototype.moduleBindings[e].prototype[t];if(o)if("object"==(void 0===n?"undefined":s(n)))for(var r in n)o[r]=n[r];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},d.prototype.registerModule=function(e,t){d.prototype.moduleBindings[e]=t},d.prototype.bindModules=function(){for(var e in this.modules={},d.prototype.moduleBindings)this.modules[e]=new d.prototype.moduleBindings[e](this)},d.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},d.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Array.isArray(e)?[]:{};for(var n in e)null!=e[n]&&"object"===s(e[n])?e[n]instanceof Date?t[n]=new Date(e[n]):t[n]=this.deepClone(e[n]):t[n]=e[n];return t}},d.prototype.comms={tables:[],register:function(e){d.prototype.comms.tables.push(e)},deregister:function(e){var t=d.prototype.comms.tables.indexOf(e);t>-1&&d.prototype.comms.tables.splice(t,1)},lookupTable:function(e){var t,n,o=[];if("string"==typeof e){if((t=document.querySelectorAll(e)).length)for(var r=0;r<t.length;r++)(n=d.prototype.comms.matchElement(t[r]))&&o.push(n)}else"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||e instanceof d?(n=d.prototype.comms.matchElement(e))&&o.push(n):Array.isArray(e)?e.forEach(function(e){o=o.concat(d.prototype.comms.lookupTable(e))}):console.warn("Table Connection Error - Invalid Selector",e);return o},matchElement:function(e){return d.prototype.comms.tables.find(function(t){return e instanceof d?t===e:t.element===e})}};var p=function(e){this.table=e,this.mode=null};p.prototype.initialize=function(e){this.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode)},p.prototype.getMode=function(){return this.mode},p.prototype.layout=function(){this.modes[this.mode].call(this,this.table.columnManager.columnsByIndex)},p.prototype.modes={fitData:function(e){e.forEach(function(e){e.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:function(e){e.forEach(function(e){e.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t,n,o=this.table.element.clientWidth,r=0,i=0,a=0,s=[],l=[],u=0,c=0;function d(e){return"string"==typeof e?e.indexOf("%")>-1?o/100*parseInt(e):parseInt(e):e}function p(e,t,n,o){var r=[],i=0,a=0,s=0,l=0,u=0,c=[];function h(e){return n*(e.column.definition.widthGrow||1)}function f(e){return d(e.width)-n*(e.column.definition.widthShrink||0)}return e.forEach(function(e,t){var n=o?f(e):h(e);e.column.minWidth>=n?r.push(e):(c.push(e),u+=o?e.column.definition.widthShrink||1:e.column.definition.widthGrow||1)}),r.length?(r.forEach(function(e){i+=o?e.width-e.column.minWidth:e.column.minWidth,e.width=e.column.minWidth}),l=(a=t-i)-(s=u?Math.floor(a/u):a)*u,l+=p(c,a,s,o)):(l=u?t-Math.floor(t/u)*u:t,c.forEach(function(e){e.width=o?f(e):h(e)})),l}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(o-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,n,o;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(o=d(t),r+=o>n?o:n,e.definition.widthShrink&&(l.push({column:e,width:o>n?o:n}),u+=e.definition.widthShrink)):(s.push({column:e,width:0}),a+=e.definition.widthGrow||1))}),i=o-r,t=Math.floor(i/a);c=p(s,i,t,!1);s.length&&c>0&&(s[s.length-1].width+=+c),s.forEach(function(e){i-=e.width}),(n=Math.abs(c)+i)>0&&u&&(c=p(l,n,Math.floor(n/u),!0)),l.length&&(l[l.length-1].width-=c),s.forEach(function(e){e.column.setWidth(e.width)}),l.forEach(function(e){e.column.setWidth(e.width)})}},d.prototype.registerModule("layout",p);var h=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={}};h.prototype.setHeaderFilterPlaceholder=function(e){this.langs.default.headerFilters.default=e},h.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langs.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},h.prototype.installLang=function(e,t){this.langs[e]?this._setLangProp(this.langs[e],t):this.langs[e]=t},h.prototype._setLangProp=function(e,t){for(var n in t)e[n]&&"object"==s(e[n])?this._setLangProp(e[n],t[n]):e[n]=t[n]},h.prototype.setLocale=function(e){if(!0===(e=e||"default")&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langs[e]){var t=e.split("-")[0];this.langs[t]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,t),e=t):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=d.prototype.helpers.deepClone(this.langs.default||{}),"default"!=e&&function e(t,n){for(var o in t)"object"==s(t[o])?(n[o]||(n[o]={}),e(t[o],n[o])):n[o]=t[o]}(this.langs[e],this.lang),this.table.options.localized.call(this.table,this.locale,this.lang),this._executeBindings()},h.prototype.getLocale=function(e){return self.locale},h.prototype.getLang=function(e){return e?this.langs[e]:this.lang},h.prototype.getText=function(e,t){var n=(e=t?e+"|"+t:e).split("|");return this._getLangElement(n,this.locale)||""},h.prototype._getLangElement=function(e,t){var n=this.lang;return e.forEach(function(e){var t;n&&(t=n[e],n=void 0!==t&&t)}),n},h.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},h.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(n){n(e.getText(t),e.lang)})};for(var n in e.bindings)t(n)},h.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page"},headerFilters:{default:"filter column...",columns:{}}}},d.prototype.registerModule("localize",h);var f=function(e){this.table=e};f.prototype.getConnections=function(e){var t=this,n=[];return d.prototype.comms.lookupTable(e).forEach(function(e){t.table!==e&&n.push(e)}),n},f.prototype.send=function(e,t,n,o){var r=this,i=this.getConnections(e);i.forEach(function(e){e.tableComms(r.table.element,t,n,o)}),!i.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},f.prototype.receive=function(e,t,n,o){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,n,o);console.warn("Inter-table Comms Error - no such module:",t)},d.prototype.registerModule("comms",f);var m=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard"]};m.prototype.initializeColumn=function(e){var t=this,n=!1,o={};this.allowedTypes.forEach(function(r){var i,a="accessor"+(r.charAt(0).toUpperCase()+r.slice(1));e.definition[a]&&(i=t.lookupAccessor(e.definition[a]))&&(n=!0,o[a]={accessor:i,params:e.definition[a+"Params"]||{}})}),n&&(e.modules.accessor=o)},m.prototype.lookupAccessor=function(e){var t=!1;switch(void 0===e?"undefined":s(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e}return t},m.prototype.transformRow=function(e,t){var n="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),o=d.prototype.helpers.deepClone(e||{});return this.table.columnManager.traverse(function(e){var r,i,a,s;e.modules.accessor&&(i=e.modules.accessor[n]||e.modules.accessor.accessor||!1)&&"undefined"!=(r=e.getFieldValue(o))&&(s=e.getComponent(),a="function"==typeof i.params?i.params(r,o,t,s):i.params,e.setFieldValue(o,i.accessor(r,o,t,a,s)))}),o},m.prototype.accessors={},d.prototype.registerModule("accessor",m);var g=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};g.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?((e=document.createElement("template")).innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?((e=document.createElement("template")).innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},g.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},g.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},g.prototype.setParams=function(e,t){if(t)for(var n in this.params=this.params||{},e)this.params[n]=e[n];else this.params=e},g.prototype.getParams=function(){return this.params||{}},g.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},g.prototype._loadDefaultConfig=function(e){if(!this.config||e)for(var t in this.config={},this.defaultConfig)this.config[t]=this.defaultConfig[t]},g.prototype.setUrl=function(e){this.url=e},g.prototype.getUrl=function(){return this.url},g.prototype.loadData=function(e){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e)},g.prototype.nextPage=function(e){this.loading||e<(this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight)&&this.table.modules.page.nextPage().then(function(){}).catch(function(){})},g.prototype.blockActiveRequest=function(){this.requestOrder++},g.prototype._loadDataProgressive=function(){return this.table.rowManager.setData([]),this.table.modules.page.setPage(1)},g.prototype._loadDataStandard=function(e){var t=this;return new Promise(function(n,o){t.sendRequest(e).then(function(r){t.table.rowManager.setData(r,e).then(function(){n()}).catch(function(e){o(e)})}).catch(function(e){o(e)})})},g.prototype.generateParamsList=function(e,t){var n=this,o=[];if(t=t||"",Array.isArray(e))e.forEach(function(e,r){o=o.concat(n.generateParamsList(e,t?t+"["+r+"]":r))});else if("object"===(void 0===e?"undefined":s(e)))for(var r in e)o=o.concat(n.generateParamsList(e[r],t?t+"["+r+"]":r));else o.push({key:t,value:e});return o},g.prototype.serializeParams=function(e){var t=this.generateParamsList(e),n=[];return t.forEach(function(e){n.push(encodeURIComponent(e.key)+"="+encodeURIComponent(e.value))}),n.join("&")},g.prototype.sendRequest=function(e){var t,n=this,o=this,r=o.url;return o.requestOrder++,t=o.requestOrder,o._loadDefaultConfig(),new Promise(function(i,a){!1!==o.table.options.ajaxRequesting.call(n.table,o.url,o.params)?(o.loading=!0,e||o.showLoader(),n.loaderPromise(r,o.config,o.params).then(function(e){t===o.requestOrder?(o.table.options.ajaxResponse&&(e=o.table.options.ajaxResponse.call(o.table,o.url,o.params,e)),i(e)):console.warn("Ajax Response Blocked - An active ajax request was blocked by an attempt to change table data while the request was being made"),o.hideLoader(),o.loading=!1}).catch(function(e){console.error("Ajax Load Error: ",e),o.table.options.ajaxError.call(o.table,e),o.showError(),setTimeout(function(){o.hideLoader()},3e3),o.loading=!1,a()})):a()})},g.prototype.showLoader=function(){if("function"==typeof this.table.options.ajaxLoader?this.table.options.ajaxLoader():this.table.options.ajaxLoader){for(this.hideLoader();this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.remove("tabulator-error"),this.msgElement.classList.add("tabulator-loading"),this.loadingElement?this.msgElement.appendChild(this.loadingElement):this.msgElement.innerHTML=this.table.modules.localize.getText("ajax|loading"),this.table.element.appendChild(this.loaderElement)}},g.prototype.showError=function(){for(this.hideLoader();this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.remove("tabulator-loading"),this.msgElement.classList.add("tabulator-error"),this.errorElement?this.msgElement.appendChild(this.errorElement):this.msgElement.innerHTML=this.table.modules.localize.getText("ajax|error"),this.table.element.appendChild(this.loaderElement)},g.prototype.hideLoader=function(){this.loaderElement.parentNode&&this.loaderElement.parentNode.removeChild(this.loaderElement)},g.prototype.defaultConfig={method:"GET"},g.prototype.defaultURLGenerator=function(e,t,n){return e&&n&&Object.keys(n).length&&(t.method&&"get"!=t.method.toLowerCase()||(t.method="get",e+="?"+this.serializeParams(n))),e},g.prototype.defaultLoaderPromise=function(e,t,n){var o,r=this;return new Promise(function(i,a){if(e=r.urlGenerator(e,t,n),"GET"!=t.method.toUpperCase())if(o="object"===s(r.table.options.ajaxContentType)?r.table.options.ajaxContentType:r.contentTypeFormatters[r.table.options.ajaxContentType]){for(var l in o.headers)t.headers||(t.headers={}),void 0===t.headers[l]&&(t.headers[l]=o.headers[l]);t.body=o.body.call(r,e,t,n)}else console.warn("Ajax Error - Invalid ajaxContentType value:",r.table.options.ajaxContentType);e?(void 0===t.headers&&(t.headers={}),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),void 0===t.headers["X-Requested-With"]&&(t.headers["X-Requested-With"]="XMLHttpRequest"),void 0===t.mode&&(t.mode="cors"),"cors"==t.mode?(void 0===t.headers["Access-Control-Allow-Origin"]&&(t.headers["Access-Control-Allow-Origin"]=window.location.origin),void 0===t.credentials&&(t.credentials="same-origin")):void 0===t.credentials&&(t.credentials="include"),fetch(e,t).then(function(e){e.ok?e.json().then(function(e){i(e)}).catch(function(e){a(e),console.warn("Ajax Load Error - Invalid JSON returned",e)}):(console.error("Ajax Load Error - Connection Error: "+e.status,e.statusText),a(e))}).catch(function(e){console.error("Ajax Load Error - Connection Error: ",e),a(e)})):(console.warn("Ajax Load Error - No URL Set"),i([]))})},g.prototype.contentTypeFormatters={json:{headers:{"Content-Type":"application/json"},body:function(e,t,n){return JSON.stringify(n)}},form:{headers:{},body:function(e,t,n){var o=this.generateParamsList(n),r=new FormData;return o.forEach(function(e){r.append(e.key,e.value)}),r}}},d.prototype.registerModule("ajax",g);var v=function(e){this.table=e,this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.initialize()};v.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e},v.prototype.initialize=function(){this.genColumn=new o({field:"value"},this)},v.prototype.registerColumnField=function(){},v.prototype.initializeColumn=function(e){var t=e.definition,n={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(s(t.topCalc)){case"string":this.calculations[t.topCalc]?n.topCalc=this.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":n.topCalc=t.topCalc}n.topCalc&&(e.modules.columnCalcs=n,this.topCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeTopRow())}if(t.bottomCalc){switch(s(t.bottomCalc)){case"string":this.calculations[t.bottomCalc]?n.botCalc=this.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":n.botCalc=t.bottomCalc}n.botCalc&&(e.modules.columnCalcs=n,this.botCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeBottomRow())}},v.prototype.removeCalcs=function(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.table.footerManager.remove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()},v.prototype.initializeTopRow=function(){this.topInitialized||(this.table.columnManager.getElement().insertBefore(this.topElement,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)},v.prototype.initializeBottomRow=function(){this.botInitialized||(this.table.footerManager.prepend(this.botElement),this.botInitialized=!0)},v.prototype.scrollHorizontal=function(e){this.table.columnManager.getElement().scrollWidth,this.table.element.clientWidth;this.botInitialized&&(this.botRow.getElement().style.marginLeft=-e+"px")},v.prototype.recalc=function(e){var t;if(this.topInitialized||this.botInitialized){if(this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),t=this.generateRow("top",this.rowsToData(e)),this.topRow=t;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(t.getElement()),t.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),t=this.generateRow("bottom",this.rowsToData(e)),this.botRow=t;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(t.getElement()),t.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}},v.prototype.recalcRowGroup=function(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))},v.prototype.recalcGroup=function(e){var t,n;e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),n=this.generateRowData("bottom",t),e.calcs.bottom.updateData(n),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),n=this.generateRowData("top",t),e.calcs.top.updateData(n),e.calcs.top.reinitialize()))},v.prototype.generateTopRow=function(e){return this.generateRow("top",this.rowsToData(e))},v.prototype.generateBottomRow=function(e){return this.generateRow("bottom",this.rowsToData(e))},v.prototype.rowsToData=function(e){var t=[];return e.forEach(function(e){t.push(e.getData())}),t},v.prototype.generateRow=function(e,t){var n,o=this,r=this.generateRowData(e,t);return o.table.modExists("mutator")&&o.table.modules.mutator.disable(),n=new a(r,this),o.table.modExists("mutator")&&o.table.modules.mutator.enable(),n.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),n.type="calc",n.generateCells=function(){var t=[];o.table.columnManager.columnsByIndex.forEach(function(r){o.genColumn.setField(r.getField()),o.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&o.table.modExists("format")?o.genColumn.modules.format={formatter:o.table.modules.format.getFormatter(r.definition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]}:o.genColumn.modules.format={formatter:o.table.modules.format.getFormatter("plaintext"),params:{}},o.genColumn.definition.cssClass=r.definition.cssClass;var i=new u(o.genColumn,n);i.column=r,i.setWidth(),r.cells.push(i),t.push(i),r.visible||i.hide()}),this.cells=t},n},v.prototype.generateRowData=function(e,t){var n,o,r={},i="top"==e?this.topCalcs:this.botCalcs,a="top"==e?"topCalc":"botCalc";return i.forEach(function(e){var i=[];e.modules.columnCalcs&&e.modules.columnCalcs[a]&&(t.forEach(function(t){i.push(e.getFieldValue(t))}),o=a+"Params",n="function"==typeof e.modules.columnCalcs[o]?e.modules.columnCalcs[o](i,t):e.modules.columnCalcs[o],e.setFieldValue(r,e.modules.columnCalcs[a](i,t,n)))}),r},v.prototype.hasTopCalcs=function(){return!!this.topCalcs.length},v.prototype.hasBottomCalcs=function(){return!!this.botCalcs.length},v.prototype.redraw=function(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)},v.prototype.getResults=function(){var e=this,t={};return this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.getGroups(!0).forEach(function(n){t[n.getKey()]=e.getGroupResults(n)}):t={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},t},v.prototype.getGroupResults=function(e){var t=this,n=e._getSelf(),o=e.getSubGroups(),r={};return o.forEach(function(e){r[e.getKey()]=t.getGroupResults(e)}),{top:n.calcs.top?n.calcs.top.getData():{},bottom:n.calcs.bottom?n.calcs.bottom.getData():{},groups:r}},v.prototype.calculations={avg:function(e,t,n){var o=0,r=void 0!==n.precision?n.precision:2;return e.length&&(o=e.reduce(function(e,t){return e+(t=Number(t))}),o/=e.length,o=!1!==r?o.toFixed(r):o),parseFloat(o).toString()},max:function(e,t,n){var o=null,r=void 0!==n.precision&&n.precision;return e.forEach(function(e){((e=Number(e))>o||null===o)&&(o=e)}),null!==o?!1!==r?o.toFixed(r):o:""},min:function(e,t,n){var o=null,r=void 0!==n.precision&&n.precision;return e.forEach(function(e){((e=Number(e))<o||null===o)&&(o=e)}),null!==o?!1!==r?o.toFixed(r):o:""},sum:function(e,t,n){var o=0,r=void 0!==n.precision&&n.precision;return e.length&&e.forEach(function(e){e=Number(e),o+=isNaN(e)?0:Number(e)}),!1!==r?o.toFixed(r):o},concat:function(e,t,n){var o=0;return e.length&&(o=e.reduce(function(e,t){return String(e)+String(t)})),o},count:function(e,t,n){var o=0;return e.length&&e.forEach(function(e){e&&o++}),o}},d.prototype.registerModule("columnCalcs",v);var y=function(e){this.table=e,this.mode=!0,this.copySelector=!1,this.copySelectorParams={},this.copyFormatter=!1,this.copyFormatterParams={},this.pasteParser=function(){},this.pasteAction=function(){},this.htmlElement=!1,this.config={},this.blocked=!0};y.prototype.initialize=function(){var e=this;this.mode=this.table.options.clipboard,!0!==this.mode&&"copy"!==this.mode||this.table.element.addEventListener("copy",function(t){var n;e.processConfig(),e.blocked||(t.preventDefault(),n=e.generateContent(),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",n):t.clipboardData&&t.clipboardData.setData?(t.clipboardData.setData("text/plain",n),e.htmlElement&&t.clipboardData.setData("text/html",e.htmlElement.outerHTML)):t.originalEvent&&t.originalEvent.clipboardData.setData&&(t.originalEvent.clipboardData.setData("text/plain",n),e.htmlElement&&t.originalEvent.clipboardData.setData("text/html",e.htmlElement.outerHTML)),e.table.options.clipboardCopied.call(this.table,n),e.reset())}),!0!==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",function(t){e.paste(t)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction)},y.prototype.processConfig=function(){var e={columnHeaders:"groups",rowGroups:!0,columnCalcs:!0};if(void 0!==this.table.options.clipboardCopyHeader&&(e.columnHeaders=this.table.options.clipboardCopyHeader,console.warn("DEPRECATION WANRING - clipboardCopyHeader option has been depricated, please use the columnHeaders property on the clipboardCopyConfig option")),this.table.options.clipboardCopyConfig)for(var t in this.table.options.clipboardCopyConfig)e[t]=this.table.options.clipboardCopyConfig[t];e.rowGroups&&this.table.options.groupBy&&this.table.modExists("groupRows")&&(this.config.rowGroups=!0),e.columnHeaders?"groups"!==e.columnHeaders&&!0!==e||this.table.columnManager.columns.length==this.table.columnManager.columnsByIndex.length?this.config.columnHeaders="columns":this.config.columnHeaders="groups":this.config.columnHeaders=!1,e.columnCalcs&&this.table.modExists("columnCalcs")&&(this.config.columnCalcs=!0)},y.prototype.reset=function(){this.blocked=!1,this.originalSelectionText=""},y.prototype.setPasteAction=function(e){switch(void 0===e?"undefined":s(e)){case"string":this.pasteAction=this.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e}},y.prototype.setPasteParser=function(e){switch(void 0===e?"undefined":s(e)){case"string":this.pasteParser=this.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e}},y.prototype.paste=function(e){var t,n,o;this.checkPaseOrigin(e)&&(t=this.getPasteData(e),(n=this.pasteParser.call(this,t))?(e.preventDefault(),this.table.modExists("mutator")&&(n=this.mutateData(n)),o=this.pasteAction.call(this,n),this.table.options.clipboardPasted.call(this.table,t,n,o)):this.table.options.clipboardPasteError.call(this.table,t))},y.prototype.mutateData=function(e){var t=this,n=[];return Array.isArray(e)?e.forEach(function(e){n.push(t.table.modules.mutator.transformRow(e,"clipboard"))}):n=e,n},y.prototype.checkPaseOrigin=function(e){var t=!0;return("DIV"!=e.target.tagName||this.table.modules.edit.currentCell)&&(t=!1),t},y.prototype.getPasteData=function(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t},y.prototype.copy=function(e,t,n,o,r){var i,a,s;this.blocked=!1,!0!==this.mode&&"copy"!==this.mode||(void 0!==window.getSelection&&void 0!==document.createRange?((i=document.createRange()).selectNodeContents(this.table.element),(a=window.getSelection()).toString()&&r&&(e="userSelection",n="raw",t=a.toString()),a.removeAllRanges(),a.addRange(i)):void 0!==document.selection&&void 0!==document.body.createTextRange&&((s=document.body.createTextRange()).moveToElementText(this.table.element),s.select()),this.setSelector(e),this.copySelectorParams=void 0!==t&&null!=t?t:this.config.columnHeaders,this.setFormatter(n),this.copyFormatterParams=void 0!==o&&null!=o?o:{},document.execCommand("copy"),a&&a.removeAllRanges())},y.prototype.setSelector=function(e){switch(void 0===(e=e||this.table.options.clipboardCopySelector)?"undefined":s(e)){case"string":this.copySelectors[e]?this.copySelector=this.copySelectors[e]:console.warn("Clipboard Error - No such selector found:",e);break;case"function":this.copySelector=e}},y.prototype.setFormatter=function(e){switch(void 0===(e=e||this.table.options.clipboardCopyFormatter)?"undefined":s(e)){case"string":this.copyFormatters[e]?this.copyFormatter=this.copyFormatters[e]:console.warn("Clipboard Error - No such formatter found:",e);break;case"function":this.copyFormatter=e}},y.prototype.generateContent=function(){var e;return this.htmlElement=!1,e=this.copySelector.call(this,this.config,this.copySelectorParams),this.copyFormatter.call(this,e,this.config,this.copyFormatterParams)},y.prototype.generateSimpleHeaders=function(e){var t=[];return e.forEach(function(e){t.push(e.definition.title)}),t},y.prototype.generateColumnGroupHeaders=function(e){var t=this,n=[];return this.table.columnManager.columns.forEach(function(e){var o=t.processColumnGroup(e);o&&n.push(o)}),n},y.prototype.processColumnGroup=function(e){var t=this,n=e.columns,o={type:"group",title:e.definition.title,column:e};if(n.length){if(o.subGroups=[],o.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n&&(o.width+=n.width,o.subGroups.push(n))}),!o.width)return!1}else{if(!e.field||!e.visible)return!1;o.width=1}return o},y.prototype.groupHeadersToRows=function(e){var t=[];function n(e,o){var r;void 0===t[o]&&(t[o]=[]),t[o].push(e.title),e.subGroups?e.subGroups.forEach(function(e){n(e,o+1)}):(r=0,t.forEach(function(e){var t=e.length;t>r&&(r=t)}),t.forEach(function(e){var t=e.length;if(t<r)for(var n=t;n<r;n++)e.push("")}))}return e.forEach(function(e){n(e,0)}),t},y.prototype.rowsToData=function(e,t,n){var o=this.table.columnManager.columnsByIndex,r=[];return e.forEach(function(e){var t=[],n=e instanceof i?e.getData("clipboard"):e;o.forEach(function(e){var o=e.getFieldValue(n);switch(void 0===o?"undefined":s(o)){case"object":o=JSON.stringify(o);break;case"undefined":case"null":o="";break;default:o=o}t.push(o)}),r.push(t)}),r},y.prototype.buildComplexRows=function(e){var t=this,n=[];return this.table.modules.groupRows.getGroups().forEach(function(e){n.push(t.processGroupData(e))}),n},y.prototype.processGroupData=function(e){var t=this,n=e.getSubGroups(),o={type:"group",key:e.key};return n.length?(o.subGroups=[],n.forEach(function(e){o.subGroups.push(t.processGroupData(e))})):o.rows=e.getRows(!0),o},y.prototype.getCalcRow=function(e,t,n){var o=e[t];return o&&(n&&(o=o[n]),Object.keys(o).length)?this.rowsToData([o]):[]},y.prototype.buildOutput=function(e,t,n){var o,r=this,i=[],a=this.table.columnManager.columnsByIndex;return t.columnHeaders&&("groups"==t.columnHeaders?(a=this.generateColumnGroupHeaders(this.table.columnManager.columns),i=i.concat(this.groupHeadersToRows(a))):i.push(this.generateSimpleHeaders(a))),this.config.columnCalcs&&(o=this.table.getCalcResults()),this.table.options.clipboardCopyStyled&&this.generateHTML(e,a,o,t,n),t.rowGroups?e.forEach(function(e){i=i.concat(r.parseRowGroupData(e,t,n,o||{}))}):(t.columnCalcs&&(i=i.concat(this.getCalcRow(o,"top"))),i=i.concat(this.rowsToData(e,t,n)),t.columnCalcs&&(i=i.concat(this.getCalcRow(o,"bottom")))),i},y.prototype.parseRowGroupData=function(e,t,n,o){var r=this,i=[];return i.push([e.key]),e.subGroups?e.subGroups.forEach(function(a){i=i.concat(r.parseRowGroupData(a,t,n,o[e.key]&&o[e.key].groups||{}))}):(t.columnCalcs&&(i=i.concat(this.getCalcRow(o,e.key,"top"))),i=i.concat(this.rowsToData(e.rows,t,n)),t.columnCalcs&&(i=i.concat(this.getCalcRow(o,e.key,"bottom")))),i},y.prototype.generateHTML=function(e,t,n,o,r){var a,l,u,c,d,p,h,f,m,g=this,v=[];function y(e,t,n){var o=e[t];o&&(n&&(o=o[n]),Object.keys(o).length&&b([o]))}function b(e){e.forEach(function(e,n){var o,r=document.createElement("tr"),h=d,f=!1;e instanceof i?o=e.getData("clipboard"):(o=e,f=!0),t.forEach(function(e,n){var i=document.createElement("td"),a=e.getFieldValue(o);switch(void 0===a?"undefined":s(a)){case"object":a=JSON.stringify(a);break;case"undefined":case"null":a="";break;default:a=a}i.innerHTML=a,e.definition.align&&(i.style.textAlign=e.definition.align),t.length,p&&g.mapElementStyles(p,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),r.appendChild(i)}),f?h=c:(n%2||!l||(h=l),n%2&&u&&(h=u)),h&&g.mapElementStyles(h,r,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a.appendChild(r)})}this.htmlElement=document.createElement("table"),g.mapElementStyles(this.table.element,this.htmlElement,["border-top","border-left","border-right","border-bottom"]),o.columnHeaders&&("groups"==o.columnHeaders?(t.forEach(function(e){!function e(t,n){void 0===v[n]&&(v[n]=[]),v[n].push({title:t.title,width:t.width,height:1,children:!!t.subGroups,element:t.column.getElement()}),t.subGroups&&t.subGroups.forEach(function(t){e(t,n+1)})}(e,0)}),v.forEach(function(e,t){e.forEach(function(e){e.children||(e.height=v.length-t)})}),function(e){var t=document.createElement("thead");e.forEach(function(e){var n=document.createElement("tr");e.forEach(function(e){var t=document.createElement("th");e.width>1&&(t.colSpan=e.width),e.height>1&&(t.rowSpan=e.height),t.innerHTML=e.title,g.mapElementStyles(e.element,t,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),n.appendChild(t)}),g.mapElementStyles(g.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),t.appendChild(n)}),g.htmlElement.appendChild(t)}(v)):(m=document.createElement("tr"),t.forEach(function(e){var t=document.createElement("th");t.innerHTML=e.definition.title,g.mapElementStyles(e.getElement(),t,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),m.appendChild(t)}),g.mapElementStyles(g.table.columnManager.getHeadersElement(),m,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),g.htmlElement.appendChild(document.createElement("thead").appendChild(m)))),t=this.table.columnManager.columnsByIndex,a=document.createElement("tbody"),window.getComputedStyle&&(l=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),u=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),c=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),d=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),h=this.table.element.getElementsByClassName("tabulator-group")[0],d&&(f=d.getElementsByClassName("tabulator-cell"),p=f[0],f[f.length-1])),o.rowGroups?e.forEach(function(e){!function e(n,r){var i=document.createElement("tr"),s=document.createElement("td");s.colSpan=t.length,s.innerHTML=n.key,i.appendChild(s),a.appendChild(i),g.mapElementStyles(h,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n.subGroups?n.subGroups.forEach(function(t){e(t,r[n.key]&&r[n.key].groups||{})}):(o.columnCalcs&&y(r,n.key,"top"),b(n.rows),o.columnCalcs&&y(r,n.key,"bottom"))}(e,n||{})}):(o.columnCalcs&&y(n,"top"),b(e),o.columnCalcs&&y(n,"bottom")),this.htmlElement.appendChild(a)},y.prototype.mapElementStyles=function(e,t,n){var o={"background-color":"backgroundColor",color:"fontColor","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom"};if(window.getComputedStyle){var r=window.getComputedStyle(e);n.forEach(function(e){t.style[o[e]]=r.getPropertyValue(e)})}},y.prototype.copySelectors={userSelection:function(e,t){return t},selected:function(e,t){var n=[];return this.table.modExists("selectRow",!0)&&(n=this.table.modules.selectRow.getSelectedRows()),e.rowGroups&&console.warn("Clipboard Warning - select coptSelector does not support row groups"),this.buildOutput(n,e,t)},table:function(e,t){return e.rowGroups&&console.warn("Clipboard Warning - table coptSelector does not support row groups"),this.buildOutput(this.table.rowManager.getComponents(),e,t)},active:function(e,t){var n;return n=e.rowGroups?this.buildComplexRows(e):this.table.rowManager.getComponents(!0),this.buildOutput(n,e,t)}},y.prototype.copyFormatters={raw:function(e,t){return e},table:function(e,t){var n=[];return e.forEach(function(e){e.forEach(function(e){void 0===e&&(e=""),(e=null==e?"":e.toString()).match(/\r|\n/)&&(e='"'+(e=e.split('"').join('""'))+'"')}),n.push(e.join("\t"))}),n.join("\n")}},y.prototype.pasteParsers={table:function(e){var t=[],n=!0,o=this.table.columnManager.columns,r=[],i=[];return(e=e.split("\n")).forEach(function(e){t.push(e.split("\t"))}),!(!t.length||1===t.length&&t[0].length<2)&&(!0,t[0].forEach(function(e){var t=o.find(function(t){return e&&t.definition.title&&e.trim()&&t.definition.title.trim()===e.trim()});t?r.push(t):n=!1}),n||(n=!0,r=[],t[0].forEach(function(e){var t=o.find(function(t){return e&&t.field&&e.trim()&&t.field.trim()===e.trim()});t?r.push(t):n=!1}),n||(r=this.table.columnManager.columnsByIndex)),n&&t.shift(),t.forEach(function(e){var t={};e.forEach(function(e,n){r[n]&&(t[r[n].field]=e)}),i.push(t)}),i)}},y.prototype.pasteActions={replace:function(e){return this.table.setData(e)},update:function(e){return this.table.updateOrAddData(e)},insert:function(e){return this.table.addData(e)}},d.prototype.registerModule("clipboard",y);var b=function(e){this.table=e,this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.displayIndex=0};b.prototype.initialize=function(){var e=null,t=this.table.columnManager.getFirstVisibileColumn(),n=this.table.options;switch(this.field=n.dataTreeChildField,this.indent=n.dataTreeChildIndent,this.elementField=n.dataTreeElementColumn||!!t&&t.field,n.dataTreeBranchElement&&(!0===n.dataTreeBranchElement?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):"string"==typeof n.dataTreeBranchElement?((e=document.createElement("div")).innerHTML=n.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=n.dataTreeBranchElement),n.dataTreeCollapseElement?"string"==typeof n.dataTreeCollapseElement?((e=document.createElement("div")).innerHTML=n.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=n.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),n.dataTreeExpandElement?"string"==typeof n.dataTreeExpandElement?((e=document.createElement("div")).innerHTML=n.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=n.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),s(n.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return n.dataTreeStartExpanded};break;case"function":this.startOpen=n.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return n.dataTreeStartExpanded[t]}}},b.prototype.initializeRow=function(e){var t=e.getData()[this.field],n=Array.isArray(t),o=n||!n&&"object"===(void 0===t?"undefined":s(t))&&null!==t;e.modules.dataTree={index:0,open:!!o&&this.startOpen(e.getComponent(),0),controlEl:!1,branchEl:!1,parent:!1,children:o}},b.prototype.layoutRow=function(e){var t=(this.elementField?e.getCell(this.elementField):e.getCells()[0]).getElement(),n=e.modules.dataTree;n.branchEl&&n.branchEl.parentNode.removeChild(n.branchEl),this.generateControlElement(e,t),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!0),t.insertBefore(n.branchEl,t.firstChild),n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.branchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):t.style.paddingLeft=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-left"))+n.index*this.indent+"px")},b.prototype.generateControlElement=function(e,t){var n=this,o=e.modules.dataTree,r=(t=t||e.getCells()[0].getElement(),o.controlEl);!1!==o.children&&(o.open?(o.controlEl=this.collapseEl.cloneNode(!0),o.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.collapseRow(e)})):(o.controlEl=this.expandEl.cloneNode(!0),o.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.expandRow(e)})),o.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),r&&r.parentNode===t?r.parentNode.replaceChild(o.controlEl,r):t.insertBefore(o.controlEl,t.firstChild))},b.prototype.setDisplayIndex=function(e){this.displayIndex=e},b.prototype.getDisplayIndex=function(){return this.displayIndex},b.prototype.getRows=function(e){var t=this,n=[];return e.forEach(function(e,o){var r;n.push(e),e instanceof a&&((r=e.modules.dataTree.children).index||!1===r.children||t.getChildren(e).forEach(function(e){n.push(e)}))}),n},b.prototype.getChildren=function(e){var t=this,n=e.modules.dataTree,o=[],r=[];return!1!==n.children&&n.open&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),o=this.table.modExists("filter")?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.modules.sort.sort(o),o.forEach(function(e){r.push(e),t.getChildren(e).forEach(function(e){r.push(e)})})),r},b.prototype.generateChildren=function(e){var t=this,n=[],o=e.getData()[this.field];return Array.isArray(o)||(o=[o]),o.forEach(function(o){var r=new a(o||{},t.table.rowManager);r.modules.dataTree.index=e.modules.dataTree.index+1,r.modules.dataTree.parent=e,r.modules.dataTree.children&&(r.modules.dataTree.open=t.startOpen(r.getComponent(),r.modules.dataTree.index)),n.push(r)}),n},b.prototype.expandRow=function(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},b.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},b.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},b.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},b.prototype.getTreeChildren=function(e){var t=e.modules.dataTree,n=[];return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),t.children.forEach(function(e){e instanceof a&&n.push(e.getComponent())})),n},b.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||!1!==e.row.modules.dataTree.children&&e.row.reinitialize()},b.prototype.getChildField=function(){return this.field},d.prototype.registerModule("dataTree",b);var w=function(e){this.table=e,this.fields={},this.columnsByIndex=[],this.columnsByField={},this.config={}};w.prototype.download=function(e,t,n,o){var r=this,i=!1;this.processConfig(),"function"==typeof e?i=e:r.downloaders[e]?i=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),this.processColumns(),i&&i.call(this,r.processDefinitions(),r.processData(),n||{},function(n,i){o?!0===o?r.triggerDownload(n,i,e,t,!0):o(n):r.triggerDownload(n,i,e,t)},this.config)},w.prototype.processConfig=function(){var e={columnGroups:!0,rowGroups:!0,columnCalcs:!0};if(this.table.options.downloadConfig)for(var t in this.table.options.downloadConfig)e[t]=this.table.options.downloadConfig[t];e.rowGroups&&this.table.options.groupBy&&this.table.modExists("groupRows")&&(this.config.rowGroups=!0),e.columnGroups&&this.table.columnManager.columns.length!=this.table.columnManager.columnsByIndex.length&&(this.config.columnGroups=!0),e.columnCalcs&&this.table.modExists("columnCalcs")&&(this.config.columnCalcs=!0)},w.prototype.processColumns=function(){var e=this;e.columnsByIndex=[],e.columnsByField={},e.table.columnManager.columnsByIndex.forEach(function(t){t.field&&!1!==t.definition.download&&(t.visible||!t.visible&&t.definition.download)&&(e.columnsByIndex.push(t),e.columnsByField[t.field]=t)})},w.prototype.processDefinitions=function(){var e=this,t=[];return this.config.columnGroups?e.table.columnManager.columns.forEach(function(n){var o=e.processColumnGroup(n);o&&t.push(o)}):e.columnsByIndex.forEach(function(n){!1!==n.download&&t.push(e.processDefinition(n))}),t},w.prototype.processColumnGroup=function(e){var t=this,n=e.columns,o=0,r=this.processDefinition(e),i={type:"group",title:r.title,depth:1};if(n.length){if(i.subGroups=[],i.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n.depth>o&&(o=n.depth),n&&(i.width+=n.width,i.subGroups.push(n))}),i.depth+=o,!i.width)return!1}else{if(!e.field||!1===e.definition.download||!(e.visible||!e.visible&&e.definition.download))return!1;i.width=1,i.definition=r}return i},w.prototype.processDefinition=function(e){var t={};for(var n in e.definition)t[n]=e.definition[n];return void 0!==e.definition.downloadTitle&&(t.title=e.definition.downloadTitle),t},w.prototype.processData=function(){var e=this,t=[],n={};return this.config.rowGroups?this.table.modules.groupRows.getGroups().forEach(function(n){t.push(e.processGroupData(n))}):t=this.table.rowManager.getData(!0,"download"),this.config.columnCalcs&&(n=this.table.getCalcResults(),t={calcs:n,data:t}),"function"==typeof this.table.options.downloadDataFormatter&&(t=this.table.options.downloadDataFormatter(t)),t},w.prototype.processGroupData=function(e){var t=this,n=e.getSubGroups(),o={type:"group",key:e.key};return n.length?(o.subGroups=[],n.forEach(function(e){o.subGroups.push(t.processGroupData(e))})):o.rows=e.getData(!0,"download"),o},w.prototype.triggerDownload=function(e,t,n,o,r){var i=document.createElement("a"),a=new Blob([e],{type:t});o=o||"Tabulator."+("function"==typeof n?"txt":n);(a=this.table.options.downloadReady.call(this.table,e,a))&&(r?window.open(window.URL.createObjectURL(a)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,o):(i.setAttribute("href",window.URL.createObjectURL(a)),i.setAttribute("download",o),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},w.prototype.getFieldValue=function(e,t){var n=this.columnsByField[e];return!!n&&n.getFieldValue(t)},w.prototype.commsReceived=function(e,t,n){switch(t){case"intercept":this.download(n.type,"",n.options,n.intercept)}},w.prototype.downloaders={csv:function(e,t,n,o,r){var i,a,l=this,u=[],c=[],d=n&&n.delimiter?n.delimiter:",";function p(e){e.forEach(function(e){var t=[];c.forEach(function(n){var o=l.getFieldValue(n,e);switch(void 0===o?"undefined":s(o)){case"object":o=JSON.stringify(o);break;case"undefined":case"null":o="";break;default:o=o}t.push('"'+String(o).split('"').join('""')+'"')}),i.push(t.join(d))})}r.columnGroups?(console.warn("Download Warning - CSV downloader cannot process column groups"),e.forEach(function(e){!function e(t,n){t.subGroups?t.subGroups.forEach(function(t){e(t,n+1)}):(u.push('"'+String(t.title).split('"').join('""')+'"'),c.push(t.definition.field))}(e,0)})):e.forEach(function(e){u.push('"'+String(e.title).split('"').join('""')+'"'),c.push(e.field)}),i=[u.join(d)],r.columnCalcs&&(console.warn("Download Warning - CSV downloader cannot process column calculations"),t=t.data),r.rowGroups?(console.warn("Download Warning - CSV downloader cannot process row groups"),t.forEach(function(e){!function e(t){t.subGroups?t.subGroups.forEach(function(t){e(t)}):p(t.rows)}(e)})):p(t),a=i.join("\n"),n.bom&&(a="\ufeff"+a),o(a,"text/csv")},json:function(e,t,n,o,r){r.columnCalcs&&(console.warn("Download Warning - CSV downloader cannot process column calculations"),t=t.data),o(JSON.stringify(t,null,"\t"),"application/json")},pdf:function(e,t,n,o,r){var i=this,a=[],l=[],u=[],c={},d=1,p={},h=n.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},f=n.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},m=n.jsPDF||{},g=n&&n.title?n.title:"";if(r.columnCalcs&&(c=t.calcs,t=t.data),m.orientation||(m.orientation=n.orientation||"landscape"),m.unit||(m.unit="pt"),r.columnGroups){e.forEach(function(e){e.depth>d&&(d=e.depth)});for(var v=0;v<d;v++)l.push([]);e.forEach(function(e){!function e(t,n){var o=t.width,r=1,i={content:t.title||""};if(t.subGroups?(t.subGroups.forEach(function(t){e(t,n+1)}),r=1):(a.push(t.definition.field),r=d-n),i.rowSpan=r,l[n].push(i),o--,r>1)for(var s=n+1;s<d;s++)l[s].push("");for(s=0;s<o;s++)l[n].push("")}(e,0)})}else e.forEach(function(e){e.field&&(l.push(e.title||""),a.push(e.field))}),l=[l];function y(e){switch(void 0===e?"undefined":s(e)){case"object":e=JSON.stringify(e);break;case"undefined":case"null":e="";break;default:e=e}return e}function b(e){e.forEach(function(e){u.push(w(e))})}function w(e,t){var n=[];return a.forEach(function(o){var r=i.getFieldValue(o,e);r=y(r),t?n.push({content:r,styles:t}):n.push(r)}),n}function E(e,t,n){var o=e[t];o&&(n&&(o=o[n]),Object.keys(o).length&&u.push(w(o,f)))}r.rowGroups?t.forEach(function(e){!function e(t,n){var o=[];o.push({content:y(t.key),colSpan:a.length,styles:h}),u.push(o),t.subGroups?t.subGroups.forEach(function(o){e(o,n[t.key]&&n[t.key].groups||{})}):(r.columnCalcs&&E(n,t.key,"top"),b(t.rows),r.columnCalcs&&E(n,t.key,"bottom"))}(e,c)}):(r.columnCalcs&&E(c,"top"),b(t),r.columnCalcs&&E(c,"bottom"));var C=new jsPDF(m);n&&n.autoTable&&(p="function"==typeof n.autoTable?n.autoTable(C)||{}:n.autoTable),g&&(p.addPageContent=function(e){C.text(g,40,30)}),p.head=l,p.body=u,C.autoTable(p),n&&n.documentProcessing&&n.documentProcessing(C),o(C.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n,o,r){var i=this,a=n.sheetName||"Sheet1",l={SheetNames:[],Sheets:{}},u={},c=[],d=[],p=[];function h(){var n=[],o=[],a=[];function l(e,t){var r;void 0===n[t]&&(n[t]=[]),void 0===d[t]&&(d[t]=[]),e.width>1&&d[t].push({type:"hoz",start:n[t].length,end:n[t].length+e.width-1}),n[t].push(e.title),e.subGroups?e.subGroups.forEach(function(e){l(e,t+1)}):(o.push(e.definition.field),o.length,r=0,n.forEach(function(e){var t=e.length;t>r&&(r=t)}),n.forEach(function(e){var t=e.length;if(t<r)for(var n=t;n<r;n++)e.push("")}),d[t].push({type:"vert",start:o.length-1}))}function h(e){e.forEach(function(e){a.push(f(e))})}function f(e){var t=[];return o.forEach(function(n){var o=i.getFieldValue(n,e);t.push(o instanceof Date||"object"!==(void 0===o?"undefined":s(o))?o:JSON.stringify(o))}),t}function m(e,t,n){var o=e[t];o&&(n&&(o=o[n]),Object.keys(o).length&&(p.push(a.length),a.push(f(o))))}return r.columnGroups?(e.forEach(function(e){l(e,0)}),n.forEach(function(e){a.push(e)})):(e.forEach(function(e){n.push(e.title),o.push(e.field)}),a.push(n)),r.rowGroups?t.forEach(function(e){!function e(t,n){var o=[];o.push(t.key),c.push(a.length),a.push(o),t.subGroups?t.subGroups.forEach(function(o){e(o,n[t.key]&&n[t.key].groups||{})}):(r.columnCalcs&&m(n,t.key,"top"),h(t.rows),r.columnCalcs&&m(n,t.key,"bottom"))}(e,u)}):(r.columnCalcs&&m(u,"top"),h(t),r.columnCalcs&&m(u,"bottom")),function(){var e={},t={s:{c:0,r:0},e:{c:o.length,r:a.length}};XLSX.utils.sheet_add_aoa(e,a),e["!ref"]=XLSX.utils.encode_range(t);var r=function(){var e=[];return c.forEach(function(t){e.push({s:{r:t,c:0},e:{r:t,c:o.length-1}})}),d.forEach(function(t,o){t.forEach(function(t){"hoz"===t.type?e.push({s:{r:o,c:t.start},e:{r:o,c:t.end}}):o!=n.length-1&&e.push({s:{r:o,c:t.start},e:{r:n.length-1,c:t.start}})})}),e}();return r.length&&(e["!merges"]=r),e}()}if(r.columnCalcs&&(u=t.calcs,t=t.data),n.sheetOnly)o(h());else{if(n.sheets)for(var f in n.sheets)!0===n.sheets[f]?(l.SheetNames.push(f),l.Sheets[f]=h()):(l.SheetNames.push(f),this.table.modules.comms.send(n.sheets[f],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},intercept:function(e){l.Sheets[f]=e}}));else l.SheetNames.push(a),l.Sheets[a]=h();o(function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o!=e.length;++o)n[o]=255&e.charCodeAt(o);return t}(XLSX.write(l,{bookType:"xlsx",bookSST:!0,type:"binary"})),"application/octet-stream")}}},d.prototype.registerModule("download",w);var E=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1};E.prototype.initializeColumn=function(e){var t={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(s(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WANRING - the tick editor has been depricated, please use the tickCross editor")),this.editors[e.definition.editor]?t.editor=this.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":t.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!=typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WANRING - the tick editor has been depricated, please use the tickCross editor")),this.editors[e.definition.formatter]?t.editor=this.editors[e.definition.formatter]:t.editor=this.editors.input):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter))}t.editor&&(e.modules.edit=t)},E.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},E.prototype.clearEditor=function(){var e,t=this.currentCell;if(this.invalidEdit=!1,t){for(this.currentCell=!1,(e=t.getElement()).classList.remove("tabulator-validation-fail"),e.classList.remove("tabulator-editing");e.firstChild;)e.removeChild(e.firstChild);t.row.getElement().classList.remove("tabulator-row-editing")}},E.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(),e.setValueActual(e.getValue()),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},E.prototype.bindEditor=function(e){var t=this,n=e.getElement();n.setAttribute("tabindex",0),n.addEventListener("click",function(e){n.classList.contains("tabulator-editing")||n.focus()}),n.addEventListener("mousedown",function(e){t.mouseClick=!0}),n.addEventListener("focus",function(n){t.recursionBlock||t.edit(e,n,!1)})},E.prototype.focusCellNoEvent=function(e){this.recursionBlock=!0,"ie"!==this.table.browser&&e.getElement().focus(),this.recursionBlock=!1},E.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},E.prototype.edit=function(e,t,n){var o,r,i,a=this,l=!0,u=function(){},c=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,c.blur(),!1;switch(t&&t.stopPropagation(),s(e.column.modules.edit.check)){case"function":l=e.column.modules.edit.check(e.getComponent());break;case"boolean":l=e.column.modules.edit.check}if(l||n){if(a.cancelEdit(),a.currentCell=e,r=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,r)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,r),a.table.options.cellEditing.call(this.table,r),i="function"==typeof e.column.modules.edit.params?e.column.modules.edit.params(r):e.column.modules.edit.params,!1===(o=e.column.modules.edit.editor.call(a,r,function(e){u=e},function(t){if(a.currentCell===e){var n=!0;e.column.modules.validate&&a.table.modExists("validate")&&(n=a.table.modules.validate.validate(e.column.modules.validate,e.getComponent(),t)),!0===n?(a.clearEditor(),e.setValue(t,!0),a.table.options.dataTree&&a.table.modExists("dataTree")&&a.table.modules.dataTree.checkForRestyle(e)):(a.invalidEdit=!0,c.classList.add("tabulator-validation-fail"),a.focusCellNoEvent(e),u(),a.table.options.validationFailed.call(a.table,e.getComponent(),t,n))}},function(){a.currentCell===e&&(a.cancelEdit(),a.table.options.dataTree&&a.table.modExists("dataTree")&&a.table.modules.dataTree.checkForRestyle(e))},i)))return c.blur(),!1;if(!(o instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",o),c.blur(),!1;for(c.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");c.firstChild;)c.removeChild(c.firstChild);c.appendChild(o),u();for(var d=c.children,p=0;p<d.length;p++)d[p].addEventListener("click",function(e){e.stopPropagation()});return!0}return this.mouseClick=!1,c.blur(),!1}this.invalidEdit||this.cancelEdit()},E.prototype.editors={input:function(e,t,n,o,r){var i=e.getValue(),a=document.createElement("input");function s(e){null==i&&""!==a.value||a.value!=i?n(a.value):o()}return a.setAttribute("type",r.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",a.value=void 0!==i?i:"",t(function(){a.focus(),a.style.height="100%"}),a.addEventListener("change",s),a.addEventListener("blur",s),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:n(a.value);break;case 27:o()}}),a},textarea:function(e,t,n,o,r){var i=e.getValue(),a=String(null!=i?i:""),s=((a.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),l=0;function u(t){null==i&&""!==s.value||s.value!=i?(n(s.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):o()}return s.style.display="block",s.style.padding="2px",s.style.height="100%",s.style.width="100%",s.style.boxSizing="border-box",s.style.whiteSpace="pre-wrap",s.style.resize="none",s.value=a,t(function(){s.focus(),s.style.height="100%"}),s.addEventListener("change",u),s.addEventListener("blur",u),s.addEventListener("keyup",function(){s.style.height="";var t=s.scrollHeight;s.style.height=t+"px",t!=l&&(l=t,e.getRow().normalizeHeight())}),s.addEventListener("keydown",function(e){27==e.keyCode&&o()}),s},number:function(e,t,n,o,r){var i=e.getValue(),a=document.createElement("input");a.setAttribute("type","number"),void 0!==r.max&&a.setAttribute("max",r.max),void 0!==r.min&&a.setAttribute("min",r.min),void 0!==r.step&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",a.value=i;var s=function(e){l()};function l(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!=i?n(e):o()}return t(function(){a.removeEventListener("blur",s),a.focus(),a.style.height="100%",a.addEventListener("blur",s)}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:case 9:l();break;case 27:o()}}),a},range:function(e,t,n,o,r){var i=e.getValue(),a=document.createElement("input");function s(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!=i?n(e):o()}return a.setAttribute("type","range"),void 0!==r.max&&a.setAttribute("max",r.max),void 0!==r.min&&a.setAttribute("min",r.min),void 0!==r.step&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",a.value=i,t(function(){a.focus(),a.style.height="100%"}),a.addEventListener("blur",function(e){s()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:case 9:s();break;case 27:o()}}),a},select:function(e,t,n,o,r){var i=this,a=e.getElement(),l=e.getValue(),u=document.createElement("input"),c=document.createElement("div"),p=[],h=[],f={},m=!0;function g(){var t={},n=e.getColumn()._getSelf();return i.table.getData().forEach(function(e){var o=n.getFieldValue(e);null!=o&&""!==o&&(t[o]=!0)}),t=r.sortValuesList?"asc"==r.sortValuesList?Object.keys(t).sort():Object.keys(t).sort().reverse():Object.keys(t)}function v(t,n){var o=[],i=[];function a(e){return(e={label:r.listItemFormatter?r.listItemFormatter(e.value,e.label):e.label,value:e.value,element:!1}).value!==n&&(isNaN(parseFloat(e.value))||isNaN(parseFloat(e.value))||parseFloat(e.value)!==parseFloat(n))||y(e),o.push(e),i.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===(void 0===e?"undefined":s(e))?e.options?(t={label:e.label,group:!0,element:!1},i.push(t),e.options.forEach(function(e){a(e)})):a(e):((t={label:r.listItemFormatter?r.listItemFormatter(e,e):e,value:e,element:!1}).value!==n&&(isNaN(parseFloat(t.value))||isNaN(parseFloat(t.value))||parseFloat(t.value)!==parseFloat(n))||y(t),o.push(t),i.push(t))});else for(var l in t){var u={label:r.listItemFormatter?r.listItemFormatter(l,t[l]):t[l],value:l,element:!1};u.value!==n&&(isNaN(parseFloat(u.value))||isNaN(parseFloat(u.value))||parseFloat(u.value)!==parseFloat(n))||y(u),o.push(u),i.push(u)}p=o,h=i,function(){for(;c.firstChild;)c.removeChild(c.firstChild);h.forEach(function(e){var t=e.element;t||(e.group?((t=document.createElement("div")).classList.add("tabulator-edit-select-list-group"),t.tabIndex=0,t.innerHTML=""===e.label?"&nbsp;":e.label):((t=document.createElement("div")).classList.add("tabulator-edit-select-list-item"),t.tabIndex=0,t.innerHTML=""===e.label?"&nbsp;":e.label,t.addEventListener("click",function(){y(e),b()}),e===f&&t.classList.add("active")),t.addEventListener("mousedown",function(){m=!1,setTimeout(function(){m=!0},10)}),e.element=t),c.appendChild(t)})}()}function y(e){f&&f.element&&f.element.classList.remove("active"),f=e,u.value="&nbsp;"===e.label?"":e.label,e.element&&e.element.classList.add("active")}function b(){E(),l!==f.value?(l=f.value,n(f.value)):o()}function w(){E(),o()}function E(){c.parentNode&&c.parentNode.removeChild(c),i.table.rowManager.element.removeEventListener("scroll",w)}return this.table.rowManager.element.addEventListener("scroll",w),(Array.isArray(r)||!Array.isArray(r)&&"object"===(void 0===r?"undefined":s(r))&&!r.values)&&(console.warn("DEPRECATION WANRING - values for the select editor must now be passed into the values property of the editorParams object, not as the editorParams object"),r={values:r}),u.setAttribute("type","text"),u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",u.style.cursor="default",u.readOnly=0!=this.currentCell,u.value=void 0!==l||null===l?l:"",!0===r.values?v(g(),l):v(r.values||[],l),u.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),(t=p.indexOf(f))>0&&y(p[t-1]);break;case 40:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),(t=p.indexOf(f))<p.length-1&&y(-1==t?p[0]:p[t+1]);break;case 37:case 39:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault();break;case 13:b();break;case 27:w()}}),u.addEventListener("blur",function(e){m&&w()}),u.addEventListener("focus",function(e){!function(){if(!c.parentNode){!0===r.values?v(g(),l):v(r.values||[],l);var e=d.prototype.helpers.elOffset(a);c.style.minWidth=a.offsetWidth+"px",c.style.top=e.top+a.offsetHeight+"px",c.style.left=e.left+"px",document.body.appendChild(c)}}()}),(c=document.createElement("div")).classList.add("tabulator-edit-select-list"),t(function(){u.style.height="100%",u.focus()}),u},autocomplete:function(e,t,n,o,r){var i=this,a=e.getElement(),s=e.getValue(),l=document.createElement("input"),u=document.createElement("div"),c=[],p=[],h=[],f={},m=!0;function g(e,t){var n=[],o=[];r.searchFunc?(c.forEach(function(e){o.push(e.search)}),r.searchFunc(e,o).forEach(function(e){var t=c.find(function(t){return t.search===e});t&&n.push(t)})):""===e?r.showListOnEmpty&&c.forEach(function(e){n.push(e)}):c.forEach(function(t){null===t.value&&void 0===t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&n.push(t)}),p=n,function(e){var t=!1;for(;u.firstChild;)u.removeChild(u.firstChild);p.forEach(function(n){var o=n.element;o||((o=document.createElement("div")).classList.add("tabulator-edit-select-list-item"),o.tabIndex=0,o.innerHTML=n.title,o.addEventListener("click",function(){v(n),y()}),o.addEventListener("mousedown",function(){m=!1,setTimeout(function(){m=!0},10)}),n.element=o,e&&n.value==s&&(l.value=n.title,n.element.classList.add("active"),t=!0),n===f&&(n.element.classList.add("active"),t=!0)),u.appendChild(o)}),t||v(!1)}(t)}function v(e,t){f&&f.element&&f.element.classList.remove("active"),f=e,e&&e.element&&e.element.classList.add("active")}function y(){E(),f?s!==f.value?(s=f.value,l.value=f.title,n(f.value)):o():r.freetext?(s=l.value,n(l.value)):r.allowEmpty&&""===l.value?(s=l.value,n(l.value)):o()}function b(){E(),o()}function w(){if(!u.parentNode){for(;u.firstChild;)u.removeChild(u.firstChild);!0===r.values?(n={},o=e.getColumn()._getSelf(),i.table.getData().forEach(function(e){var t=o.getFieldValue(e);null!=t&&""!==t&&(n[t]=!0)}),h=n=r.sortValuesList?"asc"==r.sortValuesList?Object.keys(n).sort():Object.keys(n).sort().reverse():Object.keys(n)):h=r.values||[],function(e,t){var n=[];if(Array.isArray(e))e.forEach(function(e){var o={title:r.listItemFormatter?r.listItemFormatter(e,e):e,value:e,element:!1};o.value!==t&&(isNaN(parseFloat(o.value))||isNaN(parseFloat(o.value))||parseFloat(o.value)!==parseFloat(t))||v(o),n.push(o)});else for(var o in e){var i={title:r.listItemFormatter?r.listItemFormatter(o,e[o]):e[o],value:o,element:!1};i.value!==t&&(isNaN(parseFloat(i.value))||isNaN(parseFloat(i.value))||parseFloat(i.value)!==parseFloat(t))||v(i),n.push(i)}r.searchFunc&&n.forEach(function(e){e.search={title:e.title,value:e.value}}),c=n}(h,s);var t=d.prototype.helpers.elOffset(a);u.style.minWidth=a.offsetWidth+"px",u.style.top=t.top+a.offsetHeight+"px",u.style.left=t.left+"px",document.body.appendChild(u)}var n,o}function E(){u.parentNode&&u.parentNode.removeChild(u),i.table.rowManager.element.removeEventListener("scroll",b)}return this.table.rowManager.element.addEventListener("scroll",b),l.setAttribute("type","search"),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",l.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),v((t=p.indexOf(f))>0&&p[t-1]);break;case 40:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),(t=p.indexOf(f))<p.length-1&&v(-1==t?p[0]:p[t+1]);break;case 37:case 39:e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault();break;case 13:y();break;case 27:b();break;case 36:case 35:e.stopImmediatePropagation()}}),l.addEventListener("keyup",function(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:g(l.value)}}),l.addEventListener("search",function(e){g(l.value)}),l.addEventListener("blur",function(e){m&&y()}),l.addEventListener("focus",function(e){var t=void 0!==s||null===s?s:"";w(),l.value=t,g(t,!0)}),(u=document.createElement("div")).classList.add("tabulator-edit-select-list"),t(function(){l.style.height="100%",l.focus()}),l},star:function(e,t,n,o,r){var i=this,a=e.getElement(),s=e.getValue(),l=a.getElementsByTagName("svg").length||5,u=a.getElementsByTagName("svg")[0]?a.getElementsByTagName("svg")[0].getAttribute("width"):14,c=[],d=document.createElement("div"),p=document.createElementNS("http://www.w3.org/2000/svg","svg");function h(e){c.forEach(function(t,n){n<e?("ie"==i.table.browser?t.setAttribute("class","tabulator-star-active"):t.classList.replace("tabulator-star-inactive","tabulator-star-active"),t.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):("ie"==i.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')})}function f(e){var t=document.createElement("span"),o=p.cloneNode(!0);c.push(o),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),h(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),n(e)}),t.appendChild(o),d.appendChild(t)}function m(e){s=e,h(e)}a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",d.style.verticalAlign="middle",d.style.display="inline-block",d.style.padding="4px",p.setAttribute("width",u),p.setAttribute("height",u),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px";for(var g=1;g<=l;g++)f(g);return h(s=Math.min(parseInt(s),l)),d.addEventListener("mousemove",function(e){h(0)}),d.addEventListener("click",function(e){n(0)}),a.addEventListener("blur",function(e){o()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 39:m(s+1);break;case 37:m(s-1);break;case 13:n(s);break;case 27:o()}}),d},progress:function(e,t,n,o,r){var i,a,s=e.getElement(),l=void 0===r.max?s.getElementsByTagName("div")[0].getAttribute("max")||100:r.max,u=void 0===r.min?s.getElementsByTagName("div")[0].getAttribute("min")||0:r.min,c=(l-u)/100,d=e.getValue()||0,p=document.createElement("div"),h=document.createElement("div");function f(){var e=c*Math.round(h.offsetWidth/(s.clientWidth/100))+u;n(e),s.setAttribute("aria-valuenow",e),s.setAttribute("aria-label",d)}return p.style.position="absolute",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.width="5px",p.classList.add("tabulator-progress-handle"),h.style.display="inline-block",h.style.position="relative",h.style.height="100%",h.style.backgroundColor="#488CE9",h.style.maxWidth="100%",h.style.minWidth="0%",s.style.padding="4px 4px",d=Math.min(parseFloat(d),l),d=Math.max(parseFloat(d),u),d=Math.round((d-u)/c),h.style.width=d+"%",s.setAttribute("aria-valuemin",u),s.setAttribute("aria-valuemax",l),h.appendChild(p),p.addEventListener("mousedown",function(e){i=e.screenX,a=h.offsetWidth}),p.addEventListener("mouseover",function(){p.style.cursor="ew-resize"}),s.addEventListener("mousemove",function(e){i&&(h.style.width=a+e.screenX-i+"px")}),s.addEventListener("mouseup",function(e){i&&(e.stopPropagation(),e.stopImmediatePropagation(),i=!1,a=!1,f())}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 39:h.style.width=h.clientWidth+s.clientWidth/100+"px";break;case 37:h.style.width=h.clientWidth-s.clientWidth/100+"px";break;case 13:f();break;case 27:o()}}),s.addEventListener("blur",function(){o()}),h},tickCross:function(e,t,n,o,r){var i=e.getValue(),a=document.createElement("input"),s=r.tristate,l=void 0===r.indeterminateValue?null:r.indeterminateValue,u=!1;function c(e){return s?e?u?l:a.checked:a.checked&&!u?(a.checked=!1,a.indeterminate=!0,u=!0,l):(u=!1,a.checked):a.checked}return a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",a.value=i,!s||void 0!==i&&i!==l&&""!==i||(u=!0,a.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){a.focus()}),a.checked=!0===i||"true"===i||"True"===i||1===i,a.addEventListener("change",function(e){n(c())}),a.addEventListener("blur",function(e){n(c(!0))}),a.addEventListener("keydown",function(e){13==e.keyCode&&n(c()),27==e.keyCode&&o()}),a}},d.prototype.registerModule("edit",E);var C=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterElements=[],this.headerFilterColumns=[],this.changed=!1};C.prototype.initializeColumn=function(e,t){var n,o=this,r=e.getField();e.modules.filter={success:function(t){var i,a="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",l="";if(void 0===n||n!==t){if(n=t,e.modules.filter.emptyFunc(t))delete o.headerFilters[r];else{switch(e.modules.filter.value=t,s(e.definition.headerFilterFunc)){case"string":o.filters[e.definition.headerFilterFunc]?(l=e.definition.headerFilterFunc,i=function(n){var r=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(n);return r="function"==typeof r?r(t,i,n):r,o.filters[e.definition.headerFilterFunc](t,i,n,r)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":l=i=function(n){var o=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(n);return o="function"==typeof o?o(t,r,n):o,e.definition.headerFilterFunc(t,r,n,o)}}if(!i)switch(a){case"partial":i=function(n){var o=e.getFieldValue(n);return null!=o&&String(o).toLowerCase().indexOf(String(t).toLowerCase())>-1},l="like";break;default:i=function(n){return e.getFieldValue(n)==t},l="="}o.headerFilters[r]={value:t,func:i,type:l}}o.changed=!0,o.table.rowManager.filterRefresh()}},attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},C.prototype.generateHeaderFilterElement=function(e,t){var n,o,r,i,a,l,u,c=this,d=this,p=e.modules.filter.success,h=e.getField();if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode){var f=e.modules.filter.headerElement.parentNode,m=d.headerFilterElements.indexOf(f);m>=0&&d.headerFilterElements.splice(m,1);var g=d.headerFilterColumns.indexOf(g);g>=0&&d.headerFilterColumns.splice(g,1),e.contentElement.removeChild(f)}if(h){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e},(n=document.createElement("div")).classList.add("tabulator-header-filter"),s(e.definition.headerFilter)){case"string":d.table.modules.edit.editors[e.definition.headerFilter]?(o=d.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":o=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?o=e.modules.edit.editor:e.definition.formatter&&d.table.modules.edit.editors[e.definition.formatter]?(o=d.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):o=d.table.modules.edit.editors.input}if(o){if(i={getValue:function(){return void 0!==t?t:""},getField:function(){return e.definition.field},getElement:function(){return n},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},u="function"==typeof(u=e.definition.headerFilterParams||{})?u.call(d.table):u,!(r=o.call(this.table.modules.edit,i,function(){},p,function(){},u)))return void console.warn("Filter Error - Cannot add filter to "+h+" column, editor returned a value of false");if(!(r instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+h+" column, editor should return an instance of Node, the editor returned:",r);h?d.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){r.setAttribute("placeholder",void 0!==e&&e?e:d.table.modules.localize.getText("headerFilters|default"))}):d.table.modules.localize.bind("headerFilters|default",function(e){r.setAttribute("placeholder",void 0!==d.column.definition.headerFilterPlaceholder&&d.column.definition.headerFilterPlaceholder?d.column.definition.headerFilterPlaceholder:e)}),r.addEventListener("click",function(e){e.stopPropagation(),r.focus()}),r.addEventListener("focus",function(e){var t=c.table.columnManager.element.scrollLeft;t!==c.table.rowManager.element.scrollLeft&&(c.table.rowManager.scrollHorizontal(t),c.table.columnManager.scrollHorizontal(t))}),a=!1,l=function(e){a&&clearTimeout(a),a=setTimeout(function(){p(r.value)},300)},e.modules.filter.headerElement=r,e.modules.filter.attrType=r.hasAttribute("type")?r.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=r.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(r.addEventListener("keyup",l),r.addEventListener("search",l),"number"==e.modules.filter.attrType&&r.addEventListener("change",function(e){p(r.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&r.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||r.addEventListener("mousedown",function(e){e.stopPropagation()})),n.appendChild(r),e.contentElement.appendChild(n),d.headerFilterElements.push(r),d.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},C.prototype.hideHeaderFilterElements=function(){this.headerFilterElements.forEach(function(e){e.style.display="none"})},C.prototype.showHeaderFilterElements=function(){this.headerFilterElements.forEach(function(e){e.style.display=""})},C.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},C.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},C.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},C.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},C.prototype.setFilter=function(e,t,n){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:n}]),this.addFilter(e)},C.prototype.addFilter=function(e,t,n){var o=this;Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach(function(e){(e=o.findFilter(e))&&(o.filterList.push(e),o.changed=!0)}),this.table.options.persistentFilter&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("filter")},C.prototype.findFilter=function(e){var t,n=this;if(Array.isArray(e))return this.findSubFilters(e);var o=!1;return"function"==typeof e.field?o=function(t){return e.field(t,e.type||{})}:n.filters[e.type]?o=(t=n.table.columnManager.getColumnByField(e.field))?function(o){return n.filters[e.type](e.value,t.getFieldValue(o))}:function(t){return n.filters[e.type](e.value,t[e.field])}:console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=o,!!e.func&&e},C.prototype.findSubFilters=function(e){var t=this,n=[];return e.forEach(function(e){(e=t.findFilter(e))&&n.push(e)}),!!n.length&&n},C.prototype.getFilters=function(e,t){var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),n=n.concat(this.filtersToArray(this.filterList,t))},C.prototype.filtersToArray=function(e,t){var n=this,o=[];return e.forEach(function(e){var r;Array.isArray(e)?o.push(n.filtersToArray(e,t)):(r={field:e.field,type:e.type,value:e.value},t&&"function"==typeof r.type&&(r.type="function"),o.push(r))}),o},C.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},C.prototype.removeFilter=function(e,t,n){var o=this;Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach(function(e){var t=-1;(t="object"==s(e.field)?o.filterList.findIndex(function(t){return e===t}):o.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}))>-1?(o.filterList.splice(t,1),o.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistentFilter&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("filter")},C.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistentFilter&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("filter")},C.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},this.headerFilterColumns.forEach(function(t){t.modules.filter.value=null,e.reloadHeaderFilter(t)}),this.changed=!0},C.prototype.search=function(e,t,n,o){var r=this,i=[],a=[];return Array.isArray(t)||(t=[{field:t,type:n,value:o}]),t.forEach(function(e){(e=r.findFilter(e))&&a.push(e)}),this.table.rowManager.rows.forEach(function(t){var n=!0;a.forEach(function(e){r.filterRecurse(e,t.getData())||(n=!1)}),n&&i.push("data"===e?t.getData("data"):t.getComponent())}),i},C.prototype.filter=function(e,t){var n=this,o=[],r=[];return n.table.options.dataFiltering&&n.table.options.dataFiltering.call(n.table,n.getFilters()),n.table.options.ajaxFiltering||!n.filterList.length&&!Object.keys(n.headerFilters).length?o=e.slice(0):e.forEach(function(e){n.filterRow(e)&&o.push(e)}),n.table.options.dataFiltered&&(o.forEach(function(e){r.push(e.getComponent())}),n.table.options.dataFiltered.call(n.table,n.getFilters(),r)),o},C.prototype.filterRow=function(e,t){var n=this,o=!0,r=e.getData();for(var i in n.filterList.forEach(function(e){n.filterRecurse(e,r)||(o=!1)}),n.headerFilters)n.headerFilters[i].func(r)||(o=!1);return o},C.prototype.filterRecurse=function(e,t){var n=this,o=!1;return Array.isArray(e)?e.forEach(function(e){n.filterRecurse(e,t)&&(o=!0)}):o=e.func(t),o},C.prototype.filters={"=":function(e,t,n,o){return t==e},"<":function(e,t,n,o){return t<e},"<=":function(e,t,n,o){return t<=e},">":function(e,t,n,o){return t>e},">=":function(e,t,n,o){return t>=e},"!=":function(e,t,n,o){return t!=e},regex:function(e,t,n,o){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,n,o){return null==e?t===e:null!=t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},in:function(e,t,n,o){return Array.isArray(e)?e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},d.prototype.registerModule("filter",C);var x=function(e){this.table=e};x.prototype.initializeColumn=function(e){var t={params:e.definition.formatterParams||{}};switch(s(e.definition.formatter)){case"string":"tick"===e.definition.formatter&&(e.definition.formatter="tickCross",void 0===t.params.crossElement&&(t.params.crossElement=!1),console.warn("DEPRECATION WANRING - the tick formatter has been depricated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[e.definition.formatter]?t.formatter=this.formatters[e.definition.formatter]:(console.warn("Formatter Error - No such formatter found: ",e.definition.formatter),t.formatter=this.formatters.plaintext);break;case"function":t.formatter=e.definition.formatter;break;default:t.formatter=this.formatters.plaintext}e.modules.format=t},x.prototype.cellRendered=function(e){e.column.modules.format.renderedCallback&&e.column.modules.format.renderedCallback()},x.prototype.formatValue=function(e){var t=e.getComponent(),n="function"==typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;return e.column.modules.format.formatter.call(this,t,n,function(t){e.column.modules.format.renderedCallback=t})},x.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},x.prototype.emptyToSpace=function(e){return null==e?"&nbsp":e},x.prototype.getFormatter=function(e){switch(void 0===e?"undefined":s(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext}return e},x.prototype.formatters={plaintext:function(e,t,n){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var o,r,i,a,s=parseFloat(e.getValue()),l=t.decimal||".",u=t.thousand||",",c=t.symbol||"",d=!!t.symbolAfter,p=void 0!==t.precision?t.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));for(o=!1!==p?s.toFixed(p):s,r=(o=String(o).split("."))[0],i=o.length>1?l+o[1]:"",a=/(\d+)(\d{3})/;a.test(r);)r=r.replace(a,"$1"+u+"$2");return d?r+i+c:c+r+i},link:function(e,t,n){var o=e.getValue(),r=t.urlPrefix||"",i=this.emptyToSpace(o),a=document.createElement("a");if(t.labelField&&(i=e.getData()[t.labelField]),t.label)switch(s(t.label)){case"string":i=t.label;break;case"function":i=t.label(e)}if(t.urlField&&(o=e.getData()[t.urlField]),t.url)switch(s(t.url)){case"string":o=t.url;break;case"function":o=t.url(e)}return a.setAttribute("href",r+o),t.target&&a.setAttribute("target",t.target),a.innerHTML=this.emptyToSpace(this.sanitizeHTML(i)),a},image:function(e,t,n){var o=document.createElement("img");switch(o.setAttribute("src",e.getValue()),s(t.height)){case"number":o.style.height=t.height+"px";break;case"string":o.style.height=t.height}switch(s(t.width)){case"number":o.style.width=t.width+"px";break;case"string":o.style.width=t.width}return o.addEventListener("load",function(){e.getRow().normalizeHeight()}),o},tickCross:function(e,t,n){var o=e.getValue(),r=e.getElement(),i=t.allowEmpty,a=t.allowTruthy,s=void 0!==t.tickElement?t.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34  c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351  l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07  l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',l=void 0!==t.crossElement?t.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14"  viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272  c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0  l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269  c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73  L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return a&&o||!0===o||"true"===o||"True"===o||1===o||"1"===o?(r.setAttribute("aria-checked",!0),s||""):!i||"null"!==o&&""!==o&&null!=o?(r.setAttribute("aria-checked",!1),l||""):(r.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var o=t.inputFormat||"YYYY-MM-DD hh:mm:ss",r=t.outputFormat||"DD/MM/YYYY hh:mm:ss",i=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",a=e.getValue(),s=moment(a,o);return s.isValid()?s.format(r):!0===i?a:"function"==typeof i?i(a):i},datetimediff:function(e,t,n){var o=t.inputFormat||"YYYY-MM-DD hh:mm:ss",r=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",i=void 0!==t.suffix&&t.suffix,a=void 0!==t.unit?t.unit:void 0,s=void 0!==t.humanize&&t.humanize,l=void 0!==t.date?t.date:moment(),u=e.getValue(),c=moment(u,o);return c.isValid()?s?moment.duration(c.diff(l)).humanize(i):c.diff(l,a)+(i?" "+i:""):!0===r?u:"function"==typeof r?r(u):r},lookup:function(e,t,n){var o=e.getValue();return void 0===t[o]?(console.warn("Missing display value for "+o),o):t[o]},star:function(e,t,n){var o=e.getValue(),r=e.getElement(),i=t&&t.stars?t.stars:5,a=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",o=parseInt(o)<i?parseInt(o):i;for(var l=1;l<=i;l++){var u=s.cloneNode(!0);u.innerHTML=l<=o?'<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>':'<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',a.appendChild(u)}return r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",r.setAttribute("aria-label",o),a},traffic:function(e,t,n){var o,r,i=this.sanitizeHTML(e.getValue())||0,a=document.createElement("span"),l=t&&t.max?t.max:100,u=t&&t.min?t.min:0,c=t&&void 0!==t.color?t.color:["red","orange","green"],d="#666666";if(!isNaN(i)&&void 0!==e.getValue()){switch(a.classList.add("tabulator-traffic-light"),r=parseFloat(i)<=l?parseFloat(i):l,r=parseFloat(r)>=u?parseFloat(r):u,o=(l-u)/100,r=Math.round((r-u)/o),void 0===c?"undefined":s(c)){case"string":d=c;break;case"function":d=c(i);break;case"object":if(Array.isArray(c)){var p=100/c.length,h=Math.floor(r/p);h=Math.min(h,c.length-1),d=c[h=Math.max(h,0)];break}}return a.style.backgroundColor=d,a}},progress:function(e,t,n){var o,r,i,a,l,u=this.sanitizeHTML(e.getValue())||0,c=e.getElement(),d=t&&t.max?t.max:100,p=t&&t.min?t.min:0,h=t&&t.legendAlign?t.legendAlign:"center";switch(r=parseFloat(u)<=d?parseFloat(u):d,r=parseFloat(r)>=p?parseFloat(r):p,o=(d-p)/100,r=Math.round((r-p)/o),s(t.color)){case"string":i=t.color;break;case"function":i=t.color(u);break;case"object":if(Array.isArray(t.color)){var f=100/t.color.length,m=Math.floor(r/f);m=Math.min(m,t.color.length-1),m=Math.max(m,0),i=t.color[m];break}default:i="#2DC214"}switch(s(t.legend)){case"string":a=t.legend;break;case"function":a=t.legend(u);break;case"boolean":a=u;break;default:a=!1}switch(s(t.legendColor)){case"string":l=t.legendColor;break;case"function":l=t.legendColor(u);break;case"object":if(Array.isArray(t.legendColor)){f=100/t.legendColor.length,m=Math.floor(r/f);m=Math.min(m,t.legendColor.length-1),m=Math.max(m,0),l=t.legendColor[m]}break;default:l="#000"}return c.style.minWidth="30px",c.style.position="relative",c.setAttribute("aria-label",r),"<div style='position:realtive; height:100%;'  data-max='"+d+"' data-min='"+p+"'><div style='position:relative; height:100%; width:calc("+r+"%); background-color:"+i+"; display:inline-block;'></div></div>"+(a?"<div style='position:absolute; top:4px; left:0; text-align:"+h+"; width:100%; color:"+l+";'>"+a+"</div>":"")},color:function(e,t,n){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34  c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351  l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07  l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'},buttonCross:function(e,t,n){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272  c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0  l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269  c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73  L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'},rownum:function(e,t,n){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,n){return e.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"},responsiveCollapse:function(e,t,n){var o=!1,r=document.createElement("div");function i(t){var n=e.getRow().getElement().getElementsByClassName("tabulator-responsive-collapse")[0];(o=t)?(r.classList.add("open"),n&&(n.style.display="")):(r.classList.remove("open"),n&&(n.style.display="none"))}return r.classList.add("tabulator-responsive-collapse-toggle"),r.innerHTML="<span class='tabulator-responsive-collapse-toggle-open'>+</span><span class='tabulator-responsive-collapse-toggle-close'>-</span>",e.getElement().classList.add("tabulator-row-handle"),this.table.options.responsiveLayoutCollapseStartOpen&&(o=!0),r.addEventListener("click",function(e){e.stopImmediatePropagation(),i(!o)}),i(o),r}},d.prototype.registerModule("format",x);var T=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};T.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},T.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.definition.frozen?e.parent.isGroup?console.warn("Frozen Column Error - Grouped columns cannot be frozen"):e.isGroup?console.warn("Frozen Column Error - Column Groups cannot be frozen"):(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right"},T.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},T.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},T.prototype.layoutColumnPosition=function(e){var t=this;this.leftColumns.forEach(function(n,o){n.modules.frozen.margin=t._calcSpace(t.leftColumns,o)+t.table.columnManager.scrollLeft+"px",o==t.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,t.layoutElement(n.getElement(),n),e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(),n)})}),this.rightColumns.forEach(function(n,o){n.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,o+1)+"px",o==t.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,t.layoutElement(n.getElement(),n),e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(),n)})})},T.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.layoutRow=function(e){var t=this;e.getElement().style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(n){var o=e.getCell(n);o&&t.layoutElement(o.getElement(),n)}),this.rightColumns.forEach(function(n){var o=e.getCell(n);o&&t.layoutElement(o.getElement(),n)})},T.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},T.prototype._calcSpace=function(e,t){for(var n=0,o=0;o<t;o++)e[o].visible&&(n+=e[o].getWidth());return n},d.prototype.registerModule("frozenColumns",T);var k=function(e){this.table=e,this.topElement=document.createElement("div"),this.rows=[],this.displayIndex=0};k.prototype.initialize=function(){this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),this.table.columnManager.getElement().insertBefore(this.topElement,this.table.columnManager.headersElement.nextSibling)},k.prototype.setDisplayIndex=function(e){this.displayIndex=e},k.prototype.getDisplayIndex=function(){return this.displayIndex},k.prototype.isFrozen=function(){return!!this.rows.length},k.prototype.getRows=function(e){var t=e.slice(0);return this.rows.forEach(function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),t},k.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},k.prototype.unfreezeRow=function(e){var t=this.rows.indexOf(e);if(e.modules.frozen){e.modules.frozen=!1;var n=e.getElement();n.parentNode.removeChild(n),this.table.rowManager.adjustTableSize(),this.rows.splice(t,1),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()}else console.warn("Freeze Error - Row is already unfrozen")},k.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,n){t.table.rowManager.styleRow(e,n)})},d.prototype.registerModule("frozenRows",k);var S=function(e){this._group=e,this.type="GroupComponent"};S.prototype.getKey=function(){return this._group.key},S.prototype.getElement=function(){return this._group.element},S.prototype.getRows=function(){return this._group.getRows(!0)},S.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},S.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},S.prototype.getVisibility=function(){return this._group.visible},S.prototype.show=function(){this._group.show()},S.prototype.hide=function(){this._group.hide()},S.prototype.toggle=function(){this._group.toggleVisibility()},S.prototype._getSelf=function(){return this._group},S.prototype.getTable=function(){return this._group.groupManager.table};var D=function(e,t,n,o,r,i,a){this.groupManager=e,this.parent=t,this.key=o,this.level=n,this.field=r,this.hasSubGroups=n<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=a,this.rows=[],this.groups=[],this.groupList=[],this.generator=i,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=a?a.visible:void 0!==e.startOpen[n]?e.startOpen[n]:e.startOpen[0],this.createElements(),this.addBindings(),this.createValueGroups()};D.prototype.wipe=function(){this.groupList.length?this.groupList.forEach(function(e){e.wipe()}):(this.element=!1,this.arrowElement=!1,this.elementContents=!1)},D.prototype.createElements=function(){this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-arrow"),!1!==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)},D.prototype.createValueGroups=function(){var e=this,t=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]&&this.groupManager.allowedValues[t].forEach(function(n){e._createGroup(n,t)})},D.prototype.addBindings=function(){var e,t,n,o=this;o.groupManager.table.options.groupClick&&o.element.addEventListener("click",function(e){o.groupManager.table.options.groupClick(e,o.getComponent())}),o.groupManager.table.options.groupDblClick&&o.element.addEventListener("dblclick",function(e){o.groupManager.table.options.groupDblClick(e,o.getComponent())}),o.groupManager.table.options.groupContext&&o.element.addEventListener("contextmenu",function(e){o.groupManager.table.options.groupContext(e,o.getComponent())}),o.groupManager.table.options.groupTap&&(n=!1,o.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),o.element.addEventListener("touchend",function(e){n&&o.groupManager.table.options.groupTap(e,o.getComponent()),n=!1})),o.groupManager.table.options.groupDblTap&&(e=null,o.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,o.groupManager.table.options.groupDblTap(t,o.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),o.groupManager.table.options.groupTapHold&&(t=null,o.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,o.groupManager.table.options.groupTapHold(e,o.getComponent())},1e3)},{passive:!0}),o.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),o.groupManager.table.options.groupToggleElement&&("arrow"==o.groupManager.table.options.groupToggleElement?o.arrowElement:o.element).addEventListener("click",function(e){e.stopPropagation(),e.stopImmediatePropagation(),o.toggleVisibility()})},D.prototype._createGroup=function(e,t){var n=t+"_"+e,o=new D(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],!!this.old&&this.old.groups[n]);this.groups[n]=o,this.groupList.push(o)},D.prototype._addRowToGroup=function(e){var t=this.level+1;if(this.hasSubGroups){var n=this.groupManager.groupIDLookups[t].func(e.getData()),o=t+"_"+n;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[o]&&this.groups[o].addRow(e):(this.groups[o]||this._createGroup(n,t),this.groups[o].addRow(e))}},D.prototype._addRow=function(e){this.rows.push(e),e.modules.group=this},D.prototype.insertRow=function(e,t,n){var o=this.conformRowData({});e.updateData(o);var r=this.rows.indexOf(t);r>-1?n?this.rows.splice(r+1,0,e):this.rows.splice(r,0,e):n?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},D.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},D.prototype.getRowIndex=function(e){},D.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},D.prototype.removeRow=function(e){var t=this.rows.indexOf(e),n=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},D.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},D.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(n){t=t.concat(n.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},D.prototype.getData=function(e,t){var n=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){n.push(e.getData(t||"data"))}),n},D.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},D.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},D.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){e.getHeadersAndRows().forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},D.prototype.show=function(){if(this.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var e=this.getElement();this.groupList.length?this.groupList.forEach(function(t){t.getHeadersAndRows().forEach(function(t){var n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n})}):this.rows.forEach(function(t){var n=t.getElement();e.parentNode.insertBefore(n,e.nextSibling),t.initialize(),e=n}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},D.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},D.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(n){var o=n.getRowGroup(e);o&&(t=o)}):this.rows.find(function(t){return t===e})&&(t=this),t},D.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},D.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(n){t.push(e?n.getComponent():n)}),t},D.prototype.generateGroupHeaderContents=function(){var e=[];for(this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);"string"==typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},D.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element},D.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},D.prototype.normalizeHeight=function(){this.setHeight(this.element.clientHeight)},D.prototype.initialize=function(e){this.initialized&&!e||(this.normalizeHeight(),this.initialized=!0)},D.prototype.reinitialize=function(){this.initialized=!1,this.height=0,d.prototype.helpers.elVisible(this.element)&&this.initialize(!0)},D.prototype.setHeight=function(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)},D.prototype.getHeight=function(){return this.outerHeight},D.prototype.getGroup=function(){return this},D.prototype.reinitializeHeight=function(){},D.prototype.calcHeight=function(){},D.prototype.setCellHeight=function(){},D.prototype.clearCellHeight=function(){},D.prototype.getComponent=function(){return new S(this)};var R=function(e){this.table=e,this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayIndex=0};R.prototype.initialize=function(){var e=this,t=e.table.options.groupBy,n=e.table.options.groupStartOpen,o=e.table.options.groupHeader;(this.allowedValues=e.table.options.groupValues,e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,n){e.headerGenerator[0]=function(e,o,r){return(void 0===e?"":e)+"<span>("+o+" "+(1===o?t:n.groups.items)+")</span>"}}),this.groupIDLookups=[],Array.isArray(t)||t)?this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs():this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs&&this.table.columnManager.getRealColumns().forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()});Array.isArray(t)||(t=[t]),t.forEach(function(t,n){var o,r;o="function"==typeof t?t:(r=e.table.columnManager.getColumnByField(t))?function(e){return r.getFieldValue(e)}:function(e){return e[t]},e.groupIDLookups.push({field:"function"!=typeof t&&t,func:o,values:!!e.allowedValues&&e.allowedValues[n]})}),n&&(Array.isArray(n)||(n=[n]),n.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=n),o&&(e.headerGenerator=Array.isArray(o)?o:[o]),this.initialized=!0},R.prototype.setDisplayIndex=function(e){this.displayIndex=e},R.prototype.getDisplayIndex=function(){return this.displayIndex},R.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},R.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},R.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},R.prototype.pullGroupListData=function(e){var t=this,n=[];return e.forEach(function(e){var o={level:0,rowCount:0,headerContent:""},r=[];e.hasSubGroups?(r=t.pullGroupListData(e.groupList),o.level=e.level,o.rowCount=r.length-e.groupList.length,o.headerContent=e.generator(e.key,o.rowCount,e.rows,e),n.push(o),n=n.concat(r)):(o.level=e.level,o.headerContent=e.generator(e.key,e.rows.length,e.rows,e),o.rowCount=e.getRows().length,n.push(o),e.getRows().forEach(function(e){n.push(e.getData("data"))}))}),n},R.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},R.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(n){var o=n.getRowGroup(e);o&&(t=o)}),t},R.prototype.countGroups=function(){return this.groupList.length},R.prototype.generateGroups=function(e){var t=this,n=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,n)}),e.forEach(function(e){t.assignRowToExistingGroup(e,n)})):e.forEach(function(e){t.assignRowToGroup(e,n)})},R.prototype.createGroup=function(e,t,n){var o,r=t+"_"+e;n=n||[],o=new D(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[r]),this.groups[r]=o,this.groupList.push(o)},R.prototype.assignRowToGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),o="0_"+n;this.groups[o]||this.createGroup(n,0,t),this.groups[o].addRow(e)},R.prototype.assignRowToExistingGroup=function(e,t){var n="0_"+this.groupIDLookups[0].func(e.getData());this.groups[n]&&this.groups[n].addRow(e)},R.prototype.assignRowToGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),o=!this.groups["0_"+n];return o&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!o},R.prototype.updateGroupRows=function(e){var t=[];if(this.groupList.forEach(function(e){t=t.concat(e.getHeadersAndRows())}),e){var n=this.table.rowManager.setDisplayRows(t,this.getDisplayIndex());!0!==n&&this.setDisplayIndex(n),this.table.rowManager.refreshActiveData("group",!0,!0)}return t},R.prototype.scrollHeaders=function(e){e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},R.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1))},d.prototype.registerModule("groupRows",R);var M=function(e){this.table=e,this.history=[],this.index=-1};M.prototype.clear=function(){this.history=[],this.index=-1},M.prototype.action=function(e,t,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:n}),this.index++},M.prototype.getHistoryUndoSize=function(){return this.index+1},M.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},M.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},M.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},M.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.pos],!1),this.table.rowManager.redraw()}},M.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.pos],!1),this.table.rowManager.redraw()}},M.prototype._rebindRow=function(e,t){this.history.forEach(function(n){if(n.component instanceof a)n.component===e&&(n.component=t);else if(n.component instanceof u&&n.component.row===e){var o=n.component.column.getField();o&&(n.component=t.getCell(o))}})},d.prototype.registerModule("history",M);var _=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};_.prototype.parseTable=function(){var e=this.table.element,t=this.table.options,n=(t.columns,e.getElementsByTagName("th")),o=e.getElementsByTagName("tbody")[0],r=[];this.hasIndex=!1,this.table.options.htmlImporting.call(this.table),o=o?o.getElementsByTagName("tr"):[],this._extractOptions(e,t),n.length?this._extractHeaders(n,o):this._generateBlankHeaders(n,o);for(var i=0;i<o.length;i++){var a=o[i].getElementsByTagName("td"),l={};this.hasIndex||(l[t.index]=i);for(var u=0;u<a.length;u++){var c=a[u];void 0!==this.fieldIndex[u]&&(l[this.fieldIndex[u]]=c.innerHTML)}r.push(l)}var d=document.createElement("div"),p=e.attributes;for(var u in p)"object"==s(p[u])&&d.setAttribute(p[u].name,p[u].value);e.parentNode.replaceChild(d,e),t.data=r,this.table.options.htmlImported.call(this.table),this.table.element=d},_.prototype._extractOptions=function(e,t,n){var o=e.attributes,r=n?Object.assign([],n):Object.keys(t),i={};for(var a in r.forEach(function(e){i[e.toLowerCase()]=e}),o){var l,u=o[a];u&&"object"==(void 0===u?"undefined":s(u))&&u.name&&0===u.name.indexOf("tabulator-")&&(l=u.name.replace("tabulator-",""),void 0!==i[l]&&(t[i[l]]=this._attribValue(u.value)))}},_.prototype._attribValue=function(e){return"true"===e||"false"!==e&&e},_.prototype._findCol=function(e){return this.table.options.columns.find(function(t){return t.title===e})||!1},_.prototype._extractHeaders=function(e,t){for(var n=0;n<e.length;n++){var r,i,a=e[n],l=!1,u=this._findCol(a.textContent);for(var c in u?l=!0:u={title:a.textContent.trim()},u.field||(u.field=a.textContent.trim().toLowerCase().replace(" ","_")),(r=a.getAttribute("width"))&&!u.width&&(u.width=r),i=a.attributes,this._extractOptions(a,u,o.prototype.defaultOptionList),i){var d=i[c];d&&"object"==(void 0===d?"undefined":s(d))&&d.name&&0===d.name.indexOf("tabulator-")&&(u[d.name.replace("tabulator-","")]=this._attribValue(d.value))}this.fieldIndex[n]=u.field,u.field==this.table.options.index&&(this.hasIndex=!0),l||this.table.options.columns.push(u)}},_.prototype._generateBlankHeaders=function(e,t){for(var n=0;n<e.length;n++){var o=e[n],r={title:"",field:"col"+n};this.fieldIndex[n]=r.field;var i=o.getAttribute("width");i&&(r.width=i),this.table.options.columns.push(r)}},d.prototype.registerModule("htmlTableImport",_);var P=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};P.prototype.genereateTable=function(e,t,n,o){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=o;var r=this.generateHeaderElements(),i=this.generateBodyElements(n),a=document.createElement("table");return a.classList.add("tabulator-print-table"),a.appendChild(r),a.appendChild(i),this.mapElementStyles(this.table.element,a,["border-top","border-left","border-right","border-bottom"]),a},P.prototype.generateColumnGroupHeaders=function(){var e=this,t=[];return(!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex).forEach(function(n){var o=e.processColumnGroup(n);o&&t.push(o)}),t},P.prototype.processColumnGroup=function(e){var t=this,n=e.columns,o=0,r={title:e.definition.title,column:e,depth:1};if(n.length){if(r.subGroups=[],r.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n&&(r.width+=n.width,r.subGroups.push(n),n.depth>o&&(o=n.depth))}),r.depth+=o,!r.width)return!1}else{if(!e.field||!this.columnVisCheck(e))return!1;r.width=1}return r},P.prototype.groupHeadersToRows=function(e){var t=[],n=0;return e.forEach(function(e){e.depth>n&&(n=e.depth)}),e.forEach(function(e){!function e(o,r){var i=n-r;void 0===t[r]&&(t[r]=[]),o.height=o.subGroups?1:i-o.depth+1,t[r].push(o),o.subGroups&&o.subGroups.forEach(function(t){e(t,r+1)})}(e,0)}),t},P.prototype.generateHeaderElements=function(){var e=this,t=document.createElement("thead");return this.groupHeadersToRows(this.generateColumnGroupHeaders()).forEach(function(n){var o=document.createElement("tr");e.mapElementStyles(e.table.columnManager.getHeadersElement(),t,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),n.forEach(function(t){var n=document.createElement("th");n.colSpan=t.width,n.rowSpan=t.height,n.innerHTML=t.column.definition.title,e.cloneTableStyle&&(n.style.boxSizing="border-box"),e.mapElementStyles(t.column.getElement(),n,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.mapElementStyles(t.column.contentElement,n,["padding-top","padding-left","padding-right","padding-bottom"]),t.column.visible?e.mapElementStyles(t.column.getElement(),n,["width"]):t.column.definition.width&&(n.style.width=t.column.definition.width+"px"),t.column.parent&&e.mapElementStyles(t.column.parent.groupElement,n,["border-top"]),o.appendChild(n)}),t.appendChild(o)}),t},P.prototype.generateBodyElements=function(e){var t,n,o,r,i,a,l,u,c=this;this.cloneTableStyle&&window.getComputedStyle&&(t=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),n=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),o=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),r=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),a=this.table.element.getElementsByClassName("tabulator-group")[0],r&&(l=r.getElementsByClassName("tabulator-cell"),i=l[0],l[l.length-1]));var d=document.createElement("tbody"),p=e?this.table.rowManager.getVisibleRows(!0):this.table.rowManager.getDisplayRows(),h=[];return this.table.columnManager.columnsByIndex.forEach(function(e){c.columnVisCheck(e)&&h.push(e)}),(p=p.filter(function(e){switch(e.type){case"group":return!1!==c.config.rowGroups;case"calc":return!1!==c.config.columnCalcs}return!0})).length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),p.forEach(function(e,r){var l=e.getData(),p=document.createElement("tr");switch(p.classList.add("tabulator-print-table-row"),e.type){case"group":var f=document.createElement("td");f.colSpan=h.length,f.innerHTML=e.key,p.classList.add("tabulator-print-table-group"),c.mapElementStyles(a,p,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),c.mapElementStyles(a,f,["padding-top","padding-left","padding-right","padding-bottom"]),p.appendChild(f);break;case"calc":p.classList.add("tabulator-print-table-calcs");case"row":h.forEach(function(e){var t=document.createElement("td"),n=e.getFieldValue(l),o={getValue:function(){return n},getField:function(){return e.definition.field},getElement:function(){return t},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}},getComponent:function(){return o},column:e};if(c.table.modExists("format"))n=c.table.modules.format.formatValue(o);else switch(void 0===n?"undefined":s(n)){case"object":n=JSON.stringify(n);break;case"undefined":case"null":n="";break;default:n=n}n instanceof Node?t.appendChild(n):t.innerHTML=n,i&&c.mapElementStyles(i,t,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"]),p.appendChild(t)}),u="calc"==e.type?o:r%2&&n?n:t,c.mapElementStyles(u,p,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"])}d.appendChild(p)}),d},P.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},P.prototype.getHtml=function(e,t,n){var o=document.createElement("div");return o.appendChild(this.genereateTable(n||this.table.options.htmlOutputConfig,t,e,"htmlOutput")),o.innerHTML},P.prototype.mapElementStyles=function(e,t,n){if(this.cloneTableStyle&&e&&t){var o={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var r=window.getComputedStyle(e);n.forEach(function(e){t.style[o[e]]=r.getPropertyValue(e)})}}},d.prototype.registerModule("htmlTableExport",P);var L=function(e){this.table=e,this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1};L.prototype.initialize=function(){var e=this.table.options.keybindings,t={};if(this.watchKeys={},this.pressedKeys=[],!1!==e){for(var n in this.bindings)t[n]=this.bindings[n];if(Object.keys(e).length)for(var o in e)t[o]=e[o];this.mapBindings(t),this.bindEvents()}},L.prototype.mapBindings=function(e){var t=this,n=this,o=function(o){t.actions[o]?e[o]&&("object"!==s(e[o])&&(e[o]=[e[o]]),e[o].forEach(function(e){n.mapBinding(o,e)})):console.warn("Key Binding Error - no such action:",o)};for(var r in e)o(r)},L.prototype.mapBinding=function(e,t){var n=this,o={action:this.actions[e],keys:[],ctrl:!1,shift:!1};t.toString().toLowerCase().split(" ").join("").split("+").forEach(function(e){switch(e){case"ctrl":o.ctrl=!0;break;case"shift":o.shift=!0;break;default:e=parseInt(e),o.keys.push(e),n.watchKeys[e]||(n.watchKeys[e]=[]),n.watchKeys[e].push(o)}})},L.prototype.bindEvents=function(){var e=this;this.keyupBinding=function(t){var n=t.keyCode,o=e.watchKeys[n];o&&(e.pressedKeys.push(n),o.forEach(function(n){e.checkBinding(t,n)}))},this.keydownBinding=function(t){var n=t.keyCode;if(e.watchKeys[n]){var o=e.pressedKeys.indexOf(n);o>-1&&e.pressedKeys.splice(o,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},L.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},L.prototype.checkBinding=function(e,t){var n=this,o=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&(t.keys.forEach(function(e){-1==n.pressedKeys.indexOf(e)&&(o=!1)}),o&&t.action.call(n,e),!0)},L.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},L.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,n=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,n=t.scrollTop+t.height,o=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n<=o?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().prev())},navNext:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().next())},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().left())},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().right())},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().up())},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell)&&(e.preventDefault(),t.nav().down())},undo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(this.table.options.selectable&&"highlight"!=this.table.options.selectable?"selected":"active",null,null,null,!0)}},d.prototype.registerModule("keybindings",L);var O=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};O.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},O.prototype.initializeColumn=function(e){var t,n=this,o={};e.modules.frozen||(t=e.getElement(),o.mousemove=function(o){e.parent===n.moving.parent&&((n.touchMove?o.touches[0].pageX:o.pageX)-d.prototype.helpers.elOffset(t).left+n.table.columnManager.element.scrollLeft>e.getWidth()/2?n.toCol===e&&n.toColAfter||(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):(n.toCol!==e||n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!1)))}.bind(n),t.addEventListener("mousedown",function(t){n.touchMove=!1,1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),n.bindTouchEvents(e)),e.modules.moveColumn=o},O.prototype.bindTouchEvents=function(e){var t,n,o,r,i,a,s=this,l=e.getElement(),u=!1;l.addEventListener("touchstart",function(l){s.checkTimeout=setTimeout(function(){s.touchMove=!0,e,t=e.nextColumn(),o=t?t.getWidth()/2:0,n=e.prevColumn(),r=n?n.getWidth()/2:0,i=0,a=0,u=!1,s.startMove(l,e)},s.checkPeriod)},{passive:!0}),l.addEventListener("touchmove",function(l){var c,d;s.moving&&(s.moveHover(l),u||(u=l.touches[0].pageX),(c=l.touches[0].pageX-u)>0?t&&c-i>o&&(d=t)!==e&&(u=l.touches[0].pageX,d.getElement().parentNode.insertBefore(s.placeholderElement,d.getElement().nextSibling),s.moveColumn(d,!0)):n&&-c-a>r&&(d=n)!==e&&(u=l.touches[0].pageX,d.getElement().parentNode.insertBefore(s.placeholderElement,d.getElement()),s.moveColumn(d,!1)),d&&(d,t=d.nextColumn(),i=o,o=t?t.getWidth()/2:0,n=d.prevColumn(),a=r,r=n?n.getWidth()/2:0))},{passive:!0}),l.addEventListener("touchend",function(e){s.checkTimeout&&clearTimeout(s.checkTimeout),s.moving&&s.endMove(e)})},O.prototype.startMove=function(e,t){var n=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-d.prototype.helpers.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},O.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},O.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},O.prototype.moveColumn=function(e,t){var n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var o=e.getElement();o.parentNode.insertBefore(n[t].getElement(),o.nextSibling)}):e.getCells().forEach(function(e,t){var o=e.getElement();o.parentNode.insertBefore(n[t].getElement(),o)})},O.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumn(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},O.prototype.moveHover=function(e){var t,n=this,o=n.table.columnManager.getElement(),r=o.scrollLeft,i=(n.touchMove?e.touches[0].pageX:e.pageX)-d.prototype.helpers.elOffset(o).left+r;n.hoverElement.style.left=i-n.startX+"px",i-r<n.autoScrollMargin&&(n.autoScrollTimeout||(n.autoScrollTimeout=setTimeout(function(){t=Math.max(0,r-5),n.table.rowManager.getElement().scrollLeft=t,n.autoScrollTimeout=!1},1))),r+o.clientWidth-i<n.autoScrollMargin&&(n.autoScrollTimeout||(n.autoScrollTimeout=setTimeout(function(){t=Math.min(o.clientWidth,r+5),n.table.rowManager.getElement().scrollLeft=t,n.autoScrollTimeout=!1},1)))},d.prototype.registerModule("moveColumn",O);var N=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connections=[],this.connectedTable=!1,this.connectedRow=!1};N.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e},N.prototype.initialize=function(e){this.connection=this.table.options.movableRowsConnectedTables},N.prototype.setHandle=function(e){this.hasHandle=e},N.prototype.initializeGroupHeader=function(e){var t=this,n={};n.mouseup=function(e){t.tableRowDrop(e,row)}.bind(t),n.mousemove=function(n){var o;n.pageY-d.prototype.helpers.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?t.toRow===e&&t.toRowAfter||((o=e.getElement()).parentNode.insertBefore(t.placeholderElement,o.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(o=e.getElement()).previousSibling&&(o.parentNode.insertBefore(t.placeholderElement,o),t.moveRow(e,!1))}.bind(t),e.modules.moveRow=n},N.prototype.initializeRow=function(e){var t,n=this,o={};o.mouseup=function(t){n.tableRowDrop(t,e)}.bind(n),o.mousemove=function(t){var o;t.pageY-d.prototype.helpers.elOffset(e.element).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?n.toRow===e&&n.toRowAfter||((o=e.getElement()).parentNode.insertBefore(n.placeholderElement,o.nextSibling),n.moveRow(e,!0)):(n.toRow!==e||n.toRowAfter)&&((o=e.getElement()).parentNode.insertBefore(n.placeholderElement,o),n.moveRow(e,!1))}.bind(n),this.hasHandle||((t=e.getElement()).addEventListener("mousedown",function(t){1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=o},N.prototype.initializeCell=function(e){var t=this,n=e.getElement();n.addEventListener("mousedown",function(n){1===n.which&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e.row)},t.checkPeriod))}),n.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,e.getElement())},N.prototype.bindTouchEvents=function(e,t){var n,o,r,i,a,s,l=this,u=!1;t.addEventListener("touchstart",function(t){l.checkTimeout=setTimeout(function(){l.touchMove=!0,e,n=e.nextRow(),r=n?n.getHeight()/2:0,o=e.prevRow(),i=o?o.getHeight()/2:0,a=0,s=0,u=!1,l.startMove(t,e)},l.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var c,d;l.moving&&(t.preventDefault(),l.moveHover(t),u||(u=t.touches[0].pageY),(c=t.touches[0].pageY-u)>0?n&&c-a>r&&(d=n)!==e&&(u=t.touches[0].pageY,d.getElement().parentNode.insertBefore(l.placeholderElement,d.getElement().nextSibling),l.moveRow(d,!0)):o&&-c-s>i&&(d=o)!==e&&(u=t.touches[0].pageY,d.getElement().parentNode.insertBefore(l.placeholderElement,d.getElement()),l.moveRow(d,!1)),d&&(d,n=d.nextRow(),a=r,r=n?n.getHeight()/2:0,o=d.prevRow(),s=i,i=o?o.getHeight()/2:0))}),t.addEventListener("touchend",function(e){l.checkTimeout&&clearTimeout(l.checkTimeout),l.moving&&(l.endMove(e),l.touchMove=!1)})},N.prototype._bindMouseMove=function(){this.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},N.prototype._unbindMouseMove=function(){this.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},N.prototype.startMove=function(e,t){var n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},N.prototype.setStartPosition=function(e,t){var n,o,r=this.touchMove?e.touches[0].pageX:e.pageX,i=this.touchMove?e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?(o=n.getBoundingClientRect(),this.startX=o.left-r+window.pageXOffset,this.startY=o.top-i+window.pageYOffset):this.startY=i-n.getBoundingClientRect().top},N.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},N.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},N.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},N.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,o=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+n;this.hoverElement.style.top=o-this.startY+"px"},N.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},N.prototype.connectToTables=function(e){var t=this.table.modules.comms.getConnections(this.connection);this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connection,"moveRow","connect",{row:e})},N.prototype.disconnectFromTables=function(){var e=this.table.modules.comms.getConnections(this.connection);this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connection,"moveRow","disconnect")},N.prototype.connect=function(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},N.prototype.disconnect=function(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},N.prototype.dropComplete=function(e,t,n){var o=!1;if(n){switch(s(this.table.options.movableRowsSender)){case"string":o=this.senders[this.table.options.movableRowsSender];break;case"function":o=this.table.options.movableRowsSender}o?o.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},N.prototype.tableRowDrop=function(e,t){var n=!1,o=!1;switch(e.stopImmediatePropagation(),s(this.table.options.movableRowsReceiver)){case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver}n?o=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),o?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:o})},N.prototype.receivers={insert:function(e,t,n){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},N.prototype.senders={delete:function(e,t,n){e.delete()}},N.prototype.commsReceived=function(e,t,n){switch(t){case"connect":return this.connect(e,n.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,n.row,n.success)}},d.prototype.registerModule("moveRow",N);var F=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};F.prototype.initializeColumn=function(e){var t=this,n=!1,o={};this.allowedTypes.forEach(function(r){var i,a="mutator"+(r.charAt(0).toUpperCase()+r.slice(1));e.definition[a]&&(i=t.lookupMutator(e.definition[a]))&&(n=!0,o[a]={mutator:i,params:e.definition[a+"Params"]||{}})}),n&&(e.modules.mutate=o)},F.prototype.lookupMutator=function(e){var t=!1;switch(void 0===e?"undefined":s(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e}return t},F.prototype.transformRow=function(e,t,n){var o,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&this.table.columnManager.traverse(function(i){var a,s,l;i.modules.mutate&&(a=i.modules.mutate[r]||i.modules.mutate.mutator||!1)&&(o=i.getFieldValue(e),(!n||n&&void 0!==o)&&(l=i.getComponent(),s="function"==typeof a.params?a.params(o,e,t,l):a.params,i.setFieldValue(e,a.mutator(o,e,t,s,l))))}),e},F.prototype.transformCell=function(e,t){var n=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1;return n?n.mutator(t,e.row.getData(),"edit",n.params,e.getComponent()):t},F.prototype.enable=function(){this.enabled=!0},F.prototype.disable=function(){this.enabled=!1},F.prototype.mutators={},d.prototype.registerModule("mutator",F);var A=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.pageSizes=[],this.createElements()};A.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),(e=document.createElement("button")).classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},A.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var n=1;n<5;n++)t.push(this.size*n);this.pageSizes=t}else t=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var n=document.createElement("option");n.value=t,n.innerHTML=t,e.pageSizeSelect.appendChild(n)}),this.pageSizeSelect.value=this.size}},A.prototype.initialize=function(e){var t,n=this;for(var o in n.table.options.paginationDataSent)n.paginationDataSentNames[o]=n.table.options.paginationDataSent[o];for(var r in n.table.options.paginationDataReceived)n.paginationDataReceivedNames[r]=n.table.options.paginationDataReceived[r];n.table.modules.localize.bind("pagination|first",function(e){n.firstBut.innerHTML=e}),n.table.modules.localize.bind("pagination|first_title",function(e){n.firstBut.setAttribute("aria-label",e),n.firstBut.setAttribute("title",e)}),n.table.modules.localize.bind("pagination|prev",function(e){n.prevBut.innerHTML=e}),n.table.modules.localize.bind("pagination|prev_title",function(e){n.prevBut.setAttribute("aria-label",e),n.prevBut.setAttribute("title",e)}),n.table.modules.localize.bind("pagination|next",function(e){n.nextBut.innerHTML=e}),n.table.modules.localize.bind("pagination|next_title",function(e){n.nextBut.setAttribute("aria-label",e),n.nextBut.setAttribute("title",e)}),n.table.modules.localize.bind("pagination|last",function(e){n.lastBut.innerHTML=e}),n.table.modules.localize.bind("pagination|last_title",function(e){n.lastBut.setAttribute("aria-label",e),n.lastBut.setAttribute("title",e)}),n.firstBut.addEventListener("click",function(){n.setPage(1)}),n.prevBut.addEventListener("click",function(){n.previousPage()}),n.nextBut.addEventListener("click",function(){n.nextPage().then(function(){}).catch(function(){})}),n.lastBut.addEventListener("click",function(){n.setPage(n.max)}),n.table.options.paginationElement&&(n.element=n.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),n.table.modules.localize.bind("pagination|page_size",function(e){n.pageSizeSelect.setAttribute("aria-label",e),n.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),n.element.appendChild(t),n.element.appendChild(n.pageSizeSelect),n.pageSizeSelect.addEventListener("change",function(e){n.setPageSize(n.pageSizeSelect.value),n.setPage(1).then(function(){}).catch(function(){})})),n.element.appendChild(n.firstBut),n.element.appendChild(n.prevBut),n.element.appendChild(n.pagesElement),n.element.appendChild(n.nextBut),n.element.appendChild(n.lastBut),n.table.options.paginationElement||e||n.table.footerManager.append(n.element,n),n.mode=n.table.options.pagination,n.size=n.table.options.paginationSize||Math.floor(n.table.rowManager.getElement().clientHeight/24),n.count=n.table.options.paginationButtonCount,n.generatePageSizeSelectList()},A.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},A.prototype.setDisplayIndex=function(e){this.displayIndex=e},A.prototype.getDisplayIndex=function(){return this.displayIndex},A.prototype.setMaxRows=function(e){this.max=e?Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},A.prototype.reset=function(e){return("local"==this.mode||e)&&(this.page=1),!0},A.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},A.prototype.setPage=function(e){var t=this;return new Promise(function(n,o){(e=parseInt(e))>0&&e<=t.max?(t.page=e,t.trigger().then(function(){n()}).catch(function(){o()})):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),o())})},A.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,o){var r=t.table.rowManager.getDisplayRows(t.displayIndex-1).indexOf(e);if(r>-1){var i=Math.ceil((r+1)/t.size);t.setPage(i).then(function(){n()}).catch(function(){o()})}else console.warn("Pagination Error - Requested row is not visible"),o()})},A.prototype.setPageSize=function(e){(e=parseInt(e))>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList()},A.prototype._setPageButtons=function(){for(var e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),n=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),o=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);1==this.page?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(var r=n;r<=o;r++)r>0&&r<=this.max&&this.pagesElement.appendChild(this._generatePageButton(r));this.footerRedraw()},A.prototype._generatePageButton=function(e){var t=this,n=document.createElement("button");return n.classList.add("tabulator-page"),e==t.page&&n.classList.add("active"),n.setAttribute("type","button"),n.setAttribute("role","button"),n.setAttribute("aria-label","Show Page "+e),n.setAttribute("title","Show Page "+e),n.setAttribute("data-page",e),n.textContent=e,n.addEventListener("click",function(n){t.setPage(e)}),n},A.prototype.previousPage=function(){var e=this;return new Promise(function(t,n){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){n()})):(console.warn("Pagination Error - Previous page would be less than page 1:",0),n())})},A.prototype.nextPage=function(){var e=this;return new Promise(function(t,n){e.page<e.max?(e.page++,e.trigger().then(function(){t()}).catch(function(){n()})):(e.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+e.max+":",e.max+1),n())})},A.prototype.getPage=function(){return this.page},A.prototype.getPageMax=function(){return this.max},A.prototype.getPageSize=function(e){return this.size},A.prototype.getMode=function(){return this.mode},A.prototype.getRows=function(e){var t,n,o;if("local"==this.mode){t=[],o=(n=this.size*(this.page-1))+parseInt(this.size),this._setPageButtons();for(var r=n;r<o;r++)e[r]&&t.push(e[r]);return t}return this._setPageButtons(),e.slice(0)},A.prototype.trigger=function(){var e,t=this;return new Promise(function(n,o){switch(t.mode){case"local":e=t.table.rowManager.scrollLeft,t.table.rowManager.refreshActiveData("page"),t.table.rowManager.scrollHorizontal(e),t.table.options.pageLoaded.call(t.table,t.getPage()),n();break;case"remote":case"progressive_load":case"progressive_scroll":t.table.modules.ajax.blockActiveRequest(),t._getRemotePage().then(function(){n()}).catch(function(){o()});break;default:console.warn("Pagination Error - no such pagination mode:",t.mode),o()}})},A.prototype._getRemotePage=function(){var e,t,n=this,o=this;return new Promise(function(r,i){if(o.table.modExists("ajax",!0)||i(),e=d.prototype.helpers.deepClone(o.table.modules.ajax.getParams()||{}),(t=o.table.modules.ajax.getParams())[n.paginationDataSentNames.page]=o.page,n.size&&(t[n.paginationDataSentNames.size]=n.size),n.table.options.ajaxSorting&&n.table.modExists("sort")){var a=o.table.modules.sort.getSort();a.forEach(function(e){delete e.column}),t[n.paginationDataSentNames.sorters]=a}if(n.table.options.ajaxFiltering&&n.table.modExists("filter")){var s=o.table.modules.filter.getFilters(!0,!0);t[n.paginationDataSentNames.filters]=s}o.table.modules.ajax.setParams(t),o.table.modules.ajax.sendRequest(n.progressiveLoad).then(function(e){o._parseRemoteData(e),r()}).catch(function(e){i()}),o.table.modules.ajax.setParams(e)})},A.prototype._parseRemoteData=function(e){var t,n,o=this;if(void 0===e[this.paginationDataReceivedNames.last_page]&&console.warn("Remote Pagination Error - Server response missing '"+this.paginationDataReceivedNames.last_page+"' property"),e[this.paginationDataReceivedNames.data])if(this.max=parseInt(e[this.paginationDataReceivedNames.last_page])||1,this.progressiveLoad)switch(this.mode){case"progressive_load":this.table.rowManager.addRows(e[this.paginationDataReceivedNames.data]),this.page<this.max&&setTimeout(function(){o.nextPage().then(function(){}).catch(function(){})},o.table.options.ajaxProgressiveLoadDelay);break;case"progressive_scroll":e=this.table.rowManager.getData().concat(e[this.paginationDataReceivedNames.data]),this.table.rowManager.setData(e,!0),n=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.element.clientHeight,o.table.rowManager.element.scrollHeight<=o.table.rowManager.element.clientHeight+n&&o.nextPage().then(function(){}).catch(function(){})}else t=this.table.rowManager.scrollLeft,this.table.rowManager.setData(e[this.paginationDataReceivedNames.data]),this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t),this.table.options.pageLoaded.call(this.table,this.getPage());else console.warn("Remote Pagination Error - Server response missing '"+this.paginationDataReceivedNames.data+"' property")},A.prototype.footerRedraw=function(){var e=this.table.footerManager.element;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))},A.prototype.paginationDataSentNames={page:"page",size:"size",sorters:"sorters",filters:"filters"},A.prototype.paginationDataReceivedNames={current_page:"current_page",last_page:"last_page",data:"data"},d.prototype.registerModule("page",A);var I=function(e){this.table=e,this.mode="",this.id="",this.persistProps=["field","width","visible"]};I.prototype.initialize=function(e,t){this.mode=!0!==e?e:void 0!==window.localStorage?"local":"cookie",this.id="tabulator-"+(t||this.table.element.getAttribute("id")||"")},I.prototype.load=function(e,t){var n=this.retreiveData(e);return t&&(n=n?this.mergeDefinition(t,n):t),n},I.prototype.retreiveData=function(e){var t="",n=this.id+("columns"===e?"":"-"+e);switch(this.mode){case"local":t=localStorage.getItem(n);break;case"cookie":var o=document.cookie,r=o.indexOf(n+"="),i=void 0;r>-1&&((i=(o=o.substr(r)).indexOf(";"))>-1&&(o=o.substr(0,i)),t=o.replace(n+"=",""));break;default:console.warn("Persistance Load Error - invalid mode selected",this.mode)}return!!t&&JSON.parse(t)},I.prototype.mergeDefinition=function(e,t){var n=this,o=[];return(t=t||[]).forEach(function(t,r){var i=n._findColumn(e,t);i&&(i.width=t.width,i.visible=t.visible,i.columns&&(i.columns=n.mergeDefinition(i.columns,t.columns)),o.push(i))}),e.forEach(function(e,r){n._findColumn(t,e)||(o.length>r?o.splice(r,0,e):o.push(e))}),o},I.prototype._findColumn=function(e,t){var n=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(n){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},I.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort())}var n=this.id+("columns"===e?"":"-"+e);this.saveData(n,t)},I.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},I.prototype.saveData=function(e,t){switch(t=JSON.stringify(t),this.mode){case"local":localStorage.setItem(e,t);break;case"cookie":var n=new Date;n.setDate(n.getDate()+1e4),document.cookie=e+"="+t+"; expires="+n.toUTCString();break;default:console.warn("Persistance Save Error - invalid mode selected",this.mode)}},I.prototype.parseColumns=function(e){var t=this,n=[];return e.forEach(function(e){var o={};e.isGroup?(o.title=e.getDefinition().title,o.columns=t.parseColumns(e.getColumns())):(o.title=e.getDefinition().title,o.field=e.getField(),o.width=e.getWidth(),o.visible=e.visible),n.push(o)}),n},d.prototype.registerModule("persistence",I);var H=function(e){this.table=e,this.element=!1,this.manualBlock=!1};H.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},H.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.htmlTableExport.genereateTable(this.table.options.printConfig,this.table.options.printCopyStyle,this.table.options.printVisibleRows,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},H.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},H.prototype.printFullscreen=function(e,t,n){var o,r,i=window.scrollX,a=window.scrollY,s=document.createElement("div"),l=document.createElement("div"),u=this.table.modules.htmlTableExport.genereateTable(void 0!==n?n:this.table.options.printConfig,void 0!==t?t:this.table.options.printCopyStyle,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),"string"==typeof(o="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader)?s.innerHTML=o:s.appendChild(o),this.element.appendChild(s)),this.element.appendChild(u),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),"string"==typeof(r="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter)?l.innerHTML=r:l.appendChild(r),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,u),window.print(),this.cleanup(),window.scrollTo(i,a),this.manualBlock=!1},d.prototype.registerModule("print",H);var z=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};z.prototype.watchData=function(e){var t,n=this;this.currentVersion++,t=this.currentVersion,n.unwatchData(),n.data=e,n.origFuncs.push=e.push,Object.defineProperty(n.data,"push",{enumerable:!1,configurable:!0,value:function(){var o=Array.from(arguments);return n.blocked||t!==n.currentVersion||o.forEach(function(e){n.table.rowManager.addRowActual(e,!1)}),n.origFuncs.push.apply(e,arguments)}}),n.origFuncs.unshift=e.unshift,Object.defineProperty(n.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var o=Array.from(arguments);return n.blocked||t!==n.currentVersion||o.forEach(function(e){n.table.rowManager.addRowActual(e,!0)}),n.origFuncs.unshift.apply(e,arguments)}}),n.origFuncs.shift=e.shift,Object.defineProperty(n.data,"shift",{enumerable:!1,configurable:!0,value:function(){var o;return n.blocked||t!==n.currentVersion||n.data.length&&(o=n.table.rowManager.getRowFromDataObject(n.data[0]))&&o.deleteActual(),n.origFuncs.shift.call(e)}}),n.origFuncs.pop=e.pop,Object.defineProperty(n.data,"pop",{enumerable:!1,configurable:!0,value:function(){var o;return n.blocked||t!==n.currentVersion||n.data.length&&(o=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]))&&o.deleteActual(),n.origFuncs.pop.call(e)}}),n.origFuncs.splice=e.splice,Object.defineProperty(n.data,"splice",{enumerable:!1,configurable:!0,value:function(){var o,r=Array.from(arguments),i=r[0]<0?e.length+r[0]:r[0],a=r[1],s=!!r[2]&&r.slice(2);if(!n.blocked&&t===n.currentVersion){if(s&&((o=!!e[i]&&n.table.rowManager.getRowFromDataObject(e[i]))?s.forEach(function(e){n.table.rowManager.addRowActual(e,!0,o,!0)}):(s=s.slice().reverse()).forEach(function(e){n.table.rowManager.addRowActual(e,!0,!1,!0)})),0!==a){var l=e.slice(i,void 0===r[1]?r[1]:i+a);l.forEach(function(e,t){var o=n.table.rowManager.getRowFromDataObject(e);o&&o.deleteActual(t!==l.length-1)})}(s||0!==a)&&n.table.rowManager.reRenderInPosition()}return n.origFuncs.splice.apply(e,arguments)}})},z.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},z.prototype.watchRow=function(e){var t=e.getData();for(var n in this.blocked=!0,t)this.watchKey(e,t,n);this.blocked=!1},z.prototype.watchKey=function(e,t,n){var o=this,r=Object.getOwnPropertyDescriptor(t,n),i=t[n],a=this.currentVersion;Object.defineProperty(t,n,{set:function(t){if(i=t,!o.blocked&&a===o.currentVersion){var s={};s[n]=t,e.updateData(s)}r.set&&r.set(t)},get:function(){return r.get&&r.get(),i}})},z.prototype.unwatchRow=function(e){var t=e.getData();for(var n in t)Object.defineProperty(t,n,{value:t[n]})},z.prototype.block=function(){this.blocked=!0},z.prototype.unblock=function(){this.blocked=!1},d.prototype.registerModule("reactiveData",z);var j=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};j.prototype.initializeColumn=function(e,t,n){var o=this,r=!1,i=this.table.options.resizableColumns;if("header"===e&&(r="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:r}),!0===i||i==e){var a=document.createElement("div");a.className="tabulator-col-resize-handle";var s=document.createElement("div");s.className="tabulator-col-resize-handle prev",a.addEventListener("click",function(e){e.stopPropagation()});var l=function(e){var n=t.getLastColumn();n&&o._checkResizability(n)&&(o.startColumn=t,o._mouseDown(e,n,a))};a.addEventListener("mousedown",l),a.addEventListener("touchstart",l,{passive:!0}),a.addEventListener("dblclick",function(e){var n=t.getLastColumn();n&&o._checkResizability(n)&&n.reinitializeWidth(!0)}),s.addEventListener("click",function(e){e.stopPropagation()});var u=function(e){var n,r,i;(n=t.getFirstColumn())&&(i=(r=o.table.columnManager.findColumnIndex(n))>0&&o.table.columnManager.getColumnByIndex(r-1))&&o._checkResizability(i)&&(o.startColumn=t,o._mouseDown(e,i,s))};s.addEventListener("mousedown",u),s.addEventListener("touchstart",u,{passive:!0}),s.addEventListener("dblclick",function(e){var n,r,i;(n=t.getFirstColumn())&&(i=(r=o.table.columnManager.findColumnIndex(n))>0&&o.table.columnManager.getColumnByIndex(r-1))&&o._checkResizability(i)&&i.reinitializeWidth(!0)}),n.appendChild(a),n.appendChild(s)}},j.prototype._checkResizability=function(e){return void 0!==e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},j.prototype._mouseDown=function(e,t,n){var o=this;function r(e){t.setWidth(o.startWidth+((void 0===e.screenX?e.touches[0].screenX:e.screenX)-o.startX)),!o.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function i(e){o.startColumn.modules.edit&&(o.startColumn.modules.edit.blocked=!1),o.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",i),document.body.removeEventListener("mousemove",r),n.removeEventListener("touchmove",r),n.removeEventListener("touchend",i),o.table.element.classList.remove("tabulator-block-select"),o.table.options.persistentLayout&&o.table.modExists("persistence",!0)&&o.table.modules.persistence.save("columns"),o.table.options.columnResized.call(o.table,t.getComponent())}o.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),o.startColumn.modules.edit&&(o.startColumn.modules.edit.blocked=!0),o.startX=void 0===e.screenX?e.touches[0].screenX:e.screenX,o.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",i),n.addEventListener("touchmove",r,{passive:!0}),n.addEventListener("touchend",i)},d.prototype.registerModule("resizeColumns",j);var U=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};U.prototype.initializeRow=function(e){var t=this,n=e.getElement(),o=document.createElement("div");o.className="tabulator-row-resize-handle";var r=document.createElement("div");r.className="tabulator-row-resize-handle prev",o.addEventListener("click",function(e){e.stopPropagation()});var i=function(n){t.startRow=e,t._mouseDown(n,e,o)};o.addEventListener("mousedown",i,{passive:!0}),o.addEventListener("touchstart",i),r.addEventListener("click",function(e){e.stopPropagation()});var a=function(n){var o=t.table.rowManager.prevDisplayRow(e);o&&(t.startRow=o,t._mouseDown(n,o,r))};r.addEventListener("mousedown",a),r.addEventListener("touchstart",a,{passive:!0}),n.appendChild(o),n.appendChild(r)},U.prototype._mouseDown=function(e,t,n){var o=this;function r(e){t.setHeight(o.startHeight+((void 0===e.screenY?e.touches[0].screenY:e.screenY)-o.startY))}function i(e){document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),n.removeEventListener("touchmove",r),n.removeEventListener("touchend",i),o.table.element.classList.remove("tabulator-block-select"),o.table.options.rowResized.call(this.table,t.getComponent())}o.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),o.startY=void 0===e.screenY?e.touches[0].screenY:e.screenY,o.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",i),n.addEventListener("touchmove",r,{passive:!0}),n.addEventListener("touchend",i)},d.prototype.registerModule("resizeRows",U);var B=function(e){this.table=e,this.binding=!1,this.observer=!1};B.prototype.initialize=function(e){var t=this.table;"undefined"!=typeof ResizeObserver&&"virtual"===t.rowManager.getRenderMode()?(this.observer=new ResizeObserver(function(e){t.redraw()}),this.observer.observe(t.element)):(this.binding=function(){t.redraw()},window.addEventListener("resize",this.binding))},B.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element)},d.prototype.registerModule("resizeTable",B);var W=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0};W.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(n,o){n.modules.responsive&&n.modules.responsive.order&&n.modules.responsive.visible&&(n.modules.responsive.index=o,t.push(n),n.visible||"collapse"!==e.mode||e.hiddenColumns.push(n))}),t=(t=t.reverse()).sort(function(e,t){return t.modules.responsive.order-e.modules.responsive.order||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent()},W.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:void 0===t.responsive?1:t.responsive,visible:!1!==t.visible}},W.prototype.layoutRow=function(e){var t=e.getElement(),n=document.createElement("div");n.classList.add("tabulator-responsive-collapse"),t.classList.contains("tabulator-calcs")||(e.modules.responsiveLayout={element:n},this.collapseStartOpen||(n.style.display="none"),t.appendChild(n),this.generateCollapsedRowContent(e))},W.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},W.prototype.hideColumn=function(e){e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent())},W.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&((t=this.hiddenColumns.indexOf(e))>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent())},W.prototype.update=function(){for(var e=!0;e;){var t="fitColumns"==this.table.modules.layout.getMode()?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),n=this.table.columnManager.element.clientWidth-t;if(n<0){var o=this.columns[this.index];o?(this.hideColumn(o),this.index++):e=!1}else{var r=this.columns[this.index-1];r&&n>0&&n>=r.getWidth()?(this.showColumn(r),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}},W.prototype.generateCollapsedContent=function(){var e=this;this.table.rowManager.getDisplayRows().forEach(function(t){e.generateCollapsedRowContent(t)})},W.prototype.generateCollapsedRowContent=function(e){var t,n;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);(n=this.collapseFormatter(this.generateCollapsedRowData(e)))&&t.appendChild(n)}},W.prototype.generateCollapsedRowData=function(e){var t,n=this,o=e.getData(),r=[];return this.hiddenColumns.forEach(function(i){var a=i.getFieldValue(o);i.definition.title&&i.field&&(i.modules.format&&n.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return a},getData:function(){return o},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return i.getComponent()}},r.push({title:i.definition.title,value:i.modules.format.formatter.call(n.table.modules.format,t,i.modules.format.params)})):r.push({title:i.definition.title,value:a}))}),r},W.prototype.formatCollapsedData=function(e){var t=document.createElement("table"),n="";return e.forEach(function(e){var t=document.createElement("div");e.value instanceof Node&&(t.appendChild(e.value),e.value=t.innerHTML),n+="<tr><td><strong>"+e.title+"</strong></td><td>"+e.value+"</td></tr>"}),t.innerHTML=n,Object.keys(e).length?t:""},d.prototype.registerModule("responsiveLayout",W);var q=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[]};q.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},q.prototype.initializeRow=function(e){var t=this,n=e.getElement(),o=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(n.classList.add("tabulator-selectable"),n.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?n.addEventListener("click",function(n){if(t.table._clearSelection(),n.shiftKey){t.lastClickedRow=t.lastClickedRow||e;var o=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),r=t.table.rowManager.getDisplayRowIndex(e),i=o<=r?o:r,a=o>=r?o:r,s=t.table.rowManager.getDisplayRows().slice(0).splice(i,a-i+1);n.ctrlKey||n.metaKey?(s.forEach(function(n){n!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(n):t.selectedRows.length<t.table.options.selectable&&t.toggleRow(n))}),t.lastClickedRow=e):(t.deselectRows(),!0!==t.table.options.selectable&&s.length>t.table.options.selectable&&(s=s.slice(0,t.table.options.selectable)),t.selectRows(s))}else n.ctrlKey||n.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(),t.selectRows(e),t.lastClickedRow=e);t.table._clearSelection()}):(n.addEventListener("click",function(n){t.table._clearSelection(),t.selecting||t.toggleRow(e)}),n.addEventListener("mousedown",function(n){if(n.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",o),document.body.addEventListener("keyup",o),t.toggleRow(e),!1}),n.addEventListener("mouseenter",function(n){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),n.addEventListener("mouseout",function(n){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(n.classList.add("tabulator-unselectable"),n.classList.remove("tabulator-selectable"))},q.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},q.prototype.selectRows=function(e){var t=this;switch(void 0===e?"undefined":s(e)){case"undefined":t.table.rowManager.rows.forEach(function(e){t._selectRow(e,!0,!0)}),t._rowSelectionChanged();break;case"boolean":!0===e&&(t.table.rowManager.activeRows.forEach(function(e){t._selectRow(e,!0,!0)}),t._rowSelectionChanged());break;default:Array.isArray(e)?(e.forEach(function(e){t._selectRow(e,!0,!0)}),t._rowSelectionChanged()):t._selectRow(e,!1,!0)}},q.prototype._selectRow=function(e,t,n){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!n&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var o=this.table.rowManager.findRow(e);o?-1==this.selectedRows.indexOf(o)&&(o.modules.select||(o.modules.select={}),o.modules.select.selected=!0,o.getElement().classList.add("tabulator-selected"),this.selectedRows.push(o),t||(this.table.options.rowSelected.call(this.table,o.getComponent()),this._rowSelectionChanged())):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},q.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},q.prototype.deselectRows=function(e){var t,n=this;if(void 0===e){t=n.selectedRows.length;for(var o=0;o<t;o++)n._deselectRow(n.selectedRows[0],!0);n._rowSelectionChanged()}else Array.isArray(e)?(e.forEach(function(e){n._deselectRow(e,!0)}),n._rowSelectionChanged()):n._deselectRow(e)},q.prototype._deselectRow=function(e,t){var n,o=this.table.rowManager.findRow(e);o?(n=this.selectedRows.findIndex(function(e){return e==o}))>-1&&(o.modules.select||(o.modules.select={}),o.modules.select.selected=!1,o.getElement().classList.remove("tabulator-selected"),this.selectedRows.splice(n,1),t||(this.table.options.rowDeselected.call(this.table,o.getComponent()),this._rowSelectionChanged())):t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)},q.prototype.getSelectedData=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e},q.prototype.getSelectedRows=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e},q.prototype._rowSelectionChanged=function(){this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},d.prototype.registerModule("selectRow",q);var G=function(e){this.table=e,this.sortList=[],this.changed=!1};G.prototype.initializeColumn=function(e,t){var n,o,r=this,i=!1;switch(s(e.definition.sorter)){case"string":r.sorters[e.definition.sorter]?i=r.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":i=e.definition.sorter}e.modules.sort={sorter:i,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},!1!==e.definition.headerSort&&((n=e.getElement()).classList.add("tabulator-sortable"),(o=document.createElement("div")).classList.add("tabulator-arrow"),t.appendChild(o),n.addEventListener("click",function(t){var n="",o=[],i=!1;if(e.modules.sort){if(e.modules.sort.tristate)n="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":n="desc";break;case"desc":n="asc";break;default:n=e.modules.sort.startingDir}r.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?((i=(o=r.getSort()).findIndex(function(t){return t.field===e.getField()}))>-1?(o[i].dir=n,i!=o.length-1&&(i=o.splice(i,1)[0],"none"!=n&&o.push(i))):"none"!=n&&o.push({column:e,dir:n}),r.setSort(o)):"none"==n?r.clear():r.setSort(e,n),r.table.rowManager.sorterRefresh(!r.sortList.length)}}))},G.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},G.prototype.getSort=function(){var e=[];return this.sortList.forEach(function(t){t.column&&e.push({column:t.column.getComponent(),field:t.column.getField(),dir:t.dir})}),e},G.prototype.setSort=function(e,t){var n=this,o=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(e){var t;(t=n.table.columnManager.findColumn(e.column))?(e.column=t,o.push(e),n.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)}),n.sortList=o,this.table.options.persistentSort&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.save("sort")},G.prototype.clear=function(){this.setSort([])},G.prototype.findSorter=function(e){var t,n=this.table.rowManager.activeRows[0],o="string";if(n&&(n=n.getData(),e.getField()))switch(void 0===(t=e.getFieldValue(n))?"undefined":s(t)){case"undefined":o="string";break;case"boolean":o="boolean";break;default:isNaN(t)||""===t?t.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(o="alphanum"):o="number"}return this.sorters[o]},G.prototype.sort=function(e){var t,n=this;t=this.table.options.sortOrderReverse?n.sortList.slice().reverse():n.sortList,n.table.options.dataSorting&&n.table.options.dataSorting.call(n.table,n.getSort()),n.clearColumnHeaders(),n.table.options.ajaxSorting?t.forEach(function(e,t){n.setColumnHeader(e.column,e.dir)}):t.forEach(function(o,r){o.column&&o.column.modules.sort&&(o.column.modules.sort.sorter||(o.column.modules.sort.sorter=n.findSorter(o.column)),n._sortItem(e,o.column,o.dir,t,r)),n.setColumnHeader(o.column,o.dir)}),n.table.options.dataSorted&&n.table.options.dataSorted.call(n.table,n.getSort(),n.table.rowManager.getComponents(!0))},G.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach(function(e){e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"))})},G.prototype.setColumnHeader=function(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t)},G.prototype._sortItem=function(e,t,n,o,r){var i=this,a="function"==typeof t.modules.sort.params?t.modules.sort.params(t.getComponent(),n):t.modules.sort.params;e.sort(function(e,s){var l=i._sortRow(e,s,t,n,a);if(0===l&&r)for(var u=r-1;u>=0&&0===(l=i._sortRow(e,s,o[u].column,o[u].dir,a));u--);return l})},G.prototype._sortRow=function(e,t,n,o,r){var i,a,s="asc"==o?e:t,l="asc"==o?t:e;return e=void 0!==(e=n.getFieldValue(s.getData()))?e:"",t=void 0!==(t=n.getFieldValue(l.getData()))?t:"",i=s.getComponent(),a=l.getComponent(),n.modules.sort.sorter.call(this,e,t,i,a,n.getComponent(),o,r)},G.prototype.sorters={number:function(e,t,n,o,r,i,a){var s=a.alignEmptyValues,l=a.decimalSeparator||".",u=a.thousandSeparator||",",c=0;if(e=parseFloat(String(e).split(u).join("").split(l).join(".")),t=parseFloat(String(t).split(u).join("").split(l).join(".")),isNaN(e))c=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;c=1}return("top"===s&&"desc"===i||"bottom"===s&&"asc"===i)&&(c*=-1),c},string:function(e,t,n,o,r,i,a){var l,u=a.alignEmptyValues,c=0;if(e){if(t){switch(s(a.locale)){case"boolean":a.locale&&(l=this.table.modules.localize.getLocale());break;case"string":l=a.locale}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),l)}c=1}else c=t?-1:0;return("top"===u&&"desc"===i||"bottom"===u&&"asc"===i)&&(c*=-1),c},date:function(e,t,n,o,r,i,a){return a.format||(a.format="DD/MM/YYYY"),this.sorters.datetime.call(this,e,t,n,o,r,i,a)},time:function(e,t,n,o,r,i,a){return a.format||(a.format="hh:mm"),this.sorters.datetime.call(this,e,t,n,o,r,i,a)},datetime:function(e,t,n,o,r,i,a){var s=a.format||"DD/MM/YYYY hh:mm:ss",l=a.alignEmptyValues,u=0;if("undefined"!=typeof moment){if(e=moment(e,s),t=moment(t,s),e.isValid()){if(t.isValid())return e-t;u=1}else u=t.isValid()?-1:0;return("top"===l&&"desc"===i||"bottom"===l&&"asc"===i)&&(u*=-1),u}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(e,t,n,o,r,i,a){return(!0===e||"true"===e||"True"===e||1===e?1:0)-(!0===t||"true"===t||"True"===t||1===t?1:0)},array:function(e,t,n,o,r,i,a){var s=a.type||"length",l=a.alignEmptyValues,u=0;function c(e){switch(s){case"length":return e.length;case"sum":return e.reduce(function(e,t){return e+t});case"max":return Math.max.apply(null,e);case"min":return Math.min.apply(null,e);case"avg":return e.reduce(function(e,t){return e+t})/e.length}}if(Array.isArray(e)){if(Array.isArray(t))return(e?c(e):0)-(t?c(t):0);l=1}else l=Array.isArray(t)?-1:0;return("top"===l&&"desc"===i||"bottom"===l&&"asc"===i)&&(u*=-1),u},exists:function(e,t,n,o,r,i,a){return(void 0===e?0:1)-(void 0===t?0:1)},alphanum:function(e,t,n,o,r,i,a){var s,l,u,c,d,p=0,h=/(\d+)|(\D+)/g,f=/\d/,m=a.alignEmptyValues,g=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if((s=String(e).toLowerCase())===(l=String(t).toLowerCase()))return 0;if(!f.test(s)||!f.test(l))return s>l?1:-1;for(s=s.match(h),l=l.match(h),d=s.length>l.length?l.length:s.length;p<d;)if((u=s[p])!==(c=l[p++]))return isFinite(u)&&isFinite(c)?("0"===u.charAt(0)&&(u="."+u),"0"===c.charAt(0)&&(c="."+c),u-c):u>c?1:-1;return s.length>l.length}g=1}else g=t||0===t?-1:0;return("top"===m&&"desc"===i||"bottom"===m&&"asc"===i)&&(g*=-1),g}},d.prototype.registerModule("sort",G);var V=function(e){this.table=e};return V.prototype.initializeColumn=function(e){var t,n=this,o=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(function(e){(t=n._extractValidator(e))&&o.push(t)}):(t=this._extractValidator(e.definition.validator))&&o.push(t),e.modules.validate=!!o.length&&o)},V.prototype._extractValidator=function(e){var t,n,o;switch(void 0===e?"undefined":s(e)){case"string":return n=(t=e.split(":",2)).shift(),o=t[0],this._buildValidator(n,o);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}},V.prototype._buildValidator=function(e,t){var n="function"==typeof e?e:this.validators[e];return n?{type:"function"==typeof e?"function":e,func:n,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)},V.prototype.validate=function(e,t,n){var o=this,r=[];return e&&e.forEach(function(e){e.func.call(o,t,n,e.params)||r.push({type:e.type,parameters:e.params})}),!r.length||r},V.prototype.validators={integer:function(e,t,n){return""===t||null==t||"number"==typeof(t=Number(t))&&isFinite(t)&&Math.floor(t)===t},float:function(e,t,n){return""===t||null==t||"number"==typeof(t=Number(t))&&isFinite(t)&&t%1!=0},numeric:function(e,t,n){return""===t||null==t||!isNaN(t)},string:function(e,t,n){return""===t||null==t||isNaN(t)},max:function(e,t,n){return""===t||null==t||parseFloat(t)<=n},min:function(e,t,n){return""===t||null==t||parseFloat(t)>=n},minLength:function(e,t,n){return""===t||null==t||String(t).length>=n},maxLength:function(e,t,n){return""===t||null==t||String(t).length<=n},in:function(e,t,n){return""===t||null==t||("string"==typeof n&&(n=n.split("|")),""===t||n.indexOf(t)>-1)},regex:function(e,t,n){return""===t||null==t||new RegExp(n).test(t)},unique:function(e,t,n){if(""===t||null==t)return!0;var o=!0,r=e.getData(),i=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(e){var n=e.getData();n!==r&&t==i.getFieldValue(n)&&(o=!1)}),o},required:function(e,t,n){return""!==t&&null!=t}},d.prototype.registerModule("validate",V),d},"object"===s(n)&&void 0!==t?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(n,o,n,t):r)||(t.exports=i)},function(e,t,n){e.exports=n(49)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){return 2===arguments.length?u(e,t):u({consumers:e,mapToProps:t},n)};var o=i(n(0)),r=i(n(25));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var s=function(e){var t="string"==typeof e?e:e.name||e.displayName;return t?"ContextTransform("+t+")":"ContextTransform"},l=function(e){return e.Consumer||e};function u(e,t){var n=e.consumers,i=e.mapToProps,u=e.displayName,c=e.forwardRefAs,d=void 0===c?"ref":c,p=n;Array.isArray(n)||(p=[n]);var h=l(p[0]);var f=1===p.length?function(e,n){var r,s=a(((r={})[d]=n,r),e);return o.default.createElement(h,null,function(n){return o.default.createElement(t,a({},s,i(n,e)))})}:function(e,n){var r,s=a(((r={})[d]=n,r),e);return p.reduceRight(function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=l(t);return o.default.createElement(a,null,function(t){return e.apply(void 0,r.concat([t]))})}},function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return o.default.createElement(t,a({},s,i.apply(void 0,r.concat([e]))))})()};return(0,r.default)(f,{displayName:u||s(t)})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=g(n(61)),r=g(n(32)),i=g(n(11)),a=g(n(33)),s=g(n(3)),l=g(n(24)),u=g(n(62)),c=g(n(0)),d=g(n(7)),p=g(n(27)),h=g(n(71)),f=g(n(35)),m=g(n(73));function g(e){return e&&e.__esModule?e:{default:e}}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var b=new p.default;var w=function(e){var t,n;function s(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).state={exited:!t.props.show},t.onPortalRendered=function(){t.props.onShow&&t.props.onShow(),t.autoFocus()},t.onShow=function(){var e=(0,m.default)(y(y(t))),n=(0,f.default)(t.props.container,e.body);t.props.manager.add(y(y(t)),n,t.props.containerClassName),t.removeKeydownListener=(0,a.default)(e,"keydown",t.handleDocumentKeyDown),t.removeFocusListener=(0,a.default)(e,"focus",function(){return setTimeout(t.enforceFocus)},!0)},t.onHide=function(){t.props.manager.remove(y(y(t))),t.removeKeydownListener(),t.removeFocusListener(),t.props.restoreFocus&&t.restoreLastFocus()},t.setDialogRef=function(e){t.dialog=e},t.setBackdropRef=function(e){t.backdrop=e&&d.default.findDOMNode(e)},t.handleHidden=function(){var e;(t.setState({exited:!0}),t.onHide(),t.props.onExited)&&(e=t.props).onExited.apply(e,arguments)},t.handleBackdropClick=function(e){e.target===e.currentTarget&&(t.props.onBackdropClick&&t.props.onBackdropClick(e),!0===t.props.backdrop&&t.props.onHide())},t.handleDocumentKeyDown=function(e){t.props.keyboard&&27===e.keyCode&&t.isTopModal()&&(t.props.onEscapeKeyDown&&t.props.onEscapeKeyDown(e),t.props.onHide())},t.enforceFocus=function(){if(t.props.enforceFocus&&t._isMounted&&t.isTopModal()){var e=(0,o.default)((0,m.default)(y(y(t))));t.dialog&&!(0,r.default)(t.dialog,e)&&t.dialog.focus()}},t.renderBackdrop=function(){var e=t.props,n=e.renderBackdrop,o=e.backdropTransition,r=n({ref:t.setBackdropRef,onClick:t.handleBackdropClick});return o&&(r=c.default.createElement(o,{appear:!0,in:t.props.show},r)),r},t}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.getDerivedStateFromProps=function(e){return e.show?{exited:!1}:e.transition?null:{exited:!0}};var l=s.prototype;return l.getSnapshotBeforeUpdate=function(e){return i.default&&!e.show&&this.props.show&&(this.lastFocus=(0,o.default)()),null},l.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},l.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},l.componentWillUnmount=function(){var e=this.props,t=e.show,n=e.transition;this._isMounted=!1,(t||n&&!this.state.exited)&&this.onHide()},l.autoFocus=function(){if(this.props.autoFocus){var e=(0,o.default)((0,m.default)(this));this.dialog&&!(0,r.default)(this.dialog,e)&&(this.lastFocus=e,this.dialog.focus())}},l.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},l.isTopModal=function(){return this.props.manager.isTopModal(this)},l.render=function(){var e=this.props,t=e.show,n=e.container,o=e.children,r=e.renderDialog,i=e.role,a=void 0===i?"dialog":i,l=e.transition,u=e.backdrop,d=e.className,p=e.style,f=e.onExit,m=e.onExiting,g=e.onEnter,y=e.onEntering,b=e.onEntered,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["show","container","children","renderDialog","role","transition","backdrop","className","style","onExit","onExiting","onEnter","onEntering","onEntered"]);if(!(t||l&&!this.state.exited))return null;var E=v({role:a,ref:this.setDialogRef,"aria-modal":"dialog"===a||void 0},function(e,t){var n=Object.keys(e),o={};return n.map(function(n){Object.prototype.hasOwnProperty.call(t,n)||(o[n]=e[n])}),o}(w,s.propTypes),{style:p,className:d,tabIndex:"-1"}),C=r?r(E):c.default.createElement("div",E,c.default.cloneElement(o,{role:"document"}));return l&&(C=c.default.createElement(l,{appear:!0,unmountOnExit:!0,in:t,onExit:f,onExiting:m,onExited:this.handleHidden,onEnter:g,onEntering:y,onEntered:b},C)),c.default.createElement(h.default,{container:n,onRendered:this.onPortalRendered},c.default.createElement(c.default.Fragment,null,u&&this.renderBackdrop(),C))},s}(c.default.Component);w.propTypes={show:s.default.bool,container:s.default.oneOfType([l.default,s.default.func]),onShow:s.default.func,onHide:s.default.func,backdrop:s.default.oneOfType([s.default.bool,s.default.oneOf(["static"])]),renderDialog:s.default.func,renderBackdrop:s.default.func,onEscapeKeyDown:s.default.func,onBackdropClick:s.default.func,containerClassName:s.default.string,keyboard:s.default.bool,transition:u.default,backdropTransition:u.default,autoFocus:s.default.bool,enforceFocus:s.default.bool,restoreFocus:s.default.bool,onEnter:s.default.func,onEntering:s.default.func,onEntered:s.default.func,onExit:s.default.func,onExiting:s.default.func,onExited:s.default.func,manager:s.default.object.isRequired},w.defaultProps={show:!1,role:"dialog",backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:b,renderBackdrop:function(e){return c.default.createElement("div",e)}},w.Manager=p.default;var E=w;t.default=E,e.exports=t.default},function(e,t,n){var o=n(85);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var r=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,o=[],i=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=r.exec(e));){var d=n[0],p=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,p)s+=p[1];else{var f=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(o.push(s),s="");var E=null!=m&&null!=f&&f!==m,C="+"===b||"*"===b,x="?"===b||"*"===b,T=n[2]||c,k=v||y;o.push({name:g||i++,prefix:m||"",delimiter:T,optional:x,repeat:C,partial:E,asterisk:!!w,pattern:k?u(k):w?".*":"[^"+l(T)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&o.push(s),o}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var i="",s=n||{},l=(r||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,p=s[c.name];if(null==p){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(o(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!t[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(p).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):l(p),!t[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');i+=c.prefix+d}}else i+=c}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e.sensitive?"":"i"}function p(e,t,n){o(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var p=l(u.prefix),h="(?:"+u.pattern+")";t.push(u),u.repeat&&(h+="(?:"+p+h+")*"),a+=h=u.optional?u.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var f=l(n.delimiter||"/"),m=a.slice(-f.length)===f;return r||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=i?"$":r&&m?"":"(?="+f+"|$)",c(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return o(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var o=0;o<n.length;o++)t.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):o(e)?function(e,t,n){for(var o=[],r=0;r<e.length;r++)o.push(h(e[r],t,n).source);return c(new RegExp("(?:"+o.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=n(22),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function C(){}function x(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var T=x.prototype=new C;T.constructor=x,o(T,E.prototype),T.isPureReactComponent=!0;var k={current:null},S={current:null},D=Object.prototype.hasOwnProperty,R={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var o=void 0,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)D.call(t,o)&&!R.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,L=[];function O(e,t,n,o){if(L.length){var r=L.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function F(e,t,n){return null==e?0:function e(t,n,o,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return o(r,t,""===n?"."+A(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+A(s=t[u],u);l+=e(s,c,o,r)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+A(s,u++),o,r);else"object"===s&&y("31","[object Object]"==(o=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return l}(e,"",t,n)}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function H(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,o,n,function(e){return e}):null!=e&&(_(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),o.push(e))}function z(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),F(e,H,t=O(t,i,o,r)),N(t)}function j(){var e=k.current;return null===e&&y("321"),e}var U={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return z(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;F(e,I,t=O(null,null,t,n)),N(t)},count:function(e){return F(e,function(){return null},null)},toArray:function(e){var t=[];return z(e,t,null,function(e){return e}),t},only:function(e){return _(e)||y("143"),e}},createRef:function(){return{current:null}},Component:E,PureComponent:x,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:h,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return j().useCallback(e,t)},useContext:function(e,t){return j().useContext(e,t)},useEffect:function(e,t){return j().useEffect(e,t)},useImperativeHandle:function(e,t,n){return j().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return j().useLayoutEffect(e,t)},useMemo:function(e,t){return j().useMemo(e,t)},useReducer:function(e,t,n){return j().useReducer(e,t,n)},useRef:function(e){return j().useRef(e)},useState:function(e){return j().useState(e)},Fragment:s,StrictMode:l,Suspense:f,createElement:M,cloneElement:function(e,t,n){null==e&&y("267",e);var r=void 0,a=o({},e.props),s=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=S.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(r in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)D.call(t,r)&&!R.hasOwnProperty(r)&&(a[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))a.children=n;else if(1<r){c=Array(r);for(var d=0;d<r;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:s,ref:l,props:a,_owner:u}},createFactory:function(e){var t=M.bind(null,e);return t.type=e,t},isValidElement:_,version:"16.8.6",unstable_ConcurrentMode:p,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:k,ReactCurrentOwner:S,assign:o}},B={default:U},W=B&&U||B;e.exports=W.default||W},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=n(0),r=n(22),i=n(46);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}o||a("227");var s=!1,l=null,u=!1,c=null,d={onError:function(e){s=!0,l=e}};function p(e,t,n,o,r,i,a,u,c){s=!1,l=null,function(e,t,n,o,r,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(d,arguments)}var h=null,f={};function m(){if(h)for(var e in f){var t=f[e],n=h.indexOf(e);if(-1<n||a("96",e),!v[n])for(var o in t.extractEvents||a("97",e),v[n]=t,n=t.eventTypes){var r=void 0,i=n[o],s=t,l=o;y.hasOwnProperty(l)&&a("99",l),y[l]=i;var u=i.phasedRegistrationNames;if(u){for(r in u)u.hasOwnProperty(r)&&g(u[r],s,l);r=!0}else i.registrationName?(g(i.registrationName,s,l),r=!0):r=!1;r||a("98",o,e)}}}function g(e,t,n){b[e]&&a("100",e),b[e]=t,w[e]=t.eventTypes[n].dependencies}var v=[],y={},b={},w={},E=null,C=null,x=null;function T(e,t,n){var o=e.type||"unknown-event";e.currentTarget=x(n),function(e,t,n,o,r,i,d,h,f){if(p.apply(this,arguments),s){if(s){var m=l;s=!1,l=null}else a("198"),m=void 0;u||(u=!0,c=m)}}(o,t,void 0,e),e.currentTarget=null}function k(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var D=null;function R(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)T(e,t[o],n[o]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var M={injectEventPluginOrder:function(e){h&&a("101"),h=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];f.hasOwnProperty(t)&&f[t]===o||(f[t]&&a("102",t),f[t]=o,n=!0)}n&&m()}};function _(e,t){var n=e.stateNode;if(!n)return null;var o=E(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function P(e){if(null!==e&&(D=k(D,e)),e=D,D=null,e&&(S(e,R),D&&a("95"),u))throw e=c,u=!1,c=null,e}var L=Math.random().toString(36).slice(2),O="__reactInternalInstance$"+L,N="__reactEventHandlers$"+L;function F(e){if(e[O])return e[O];for(;!e[O];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[O]).tag||6===e.tag?e:null}function A(e){return!(e=e[O])||5!==e.tag&&6!==e.tag?null:e}function I(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function H(e){return e[N]||null}function z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function j(e,t,n){(t=_(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=z(t);for(t=n.length;0<t--;)j(n[t],"captured",e);for(t=0;t<n.length;t++)j(n[t],"bubbled",e)}}function B(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=_(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function W(e){e&&e.dispatchConfig.registrationName&&B(e._targetInst,null,e)}function q(e){S(e,U)}var G=!("undefined"==typeof window||!window.document||!window.document.createElement);function V(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:V("Animation","AnimationEnd"),animationiteration:V("Animation","AnimationIteration"),animationstart:V("Animation","AnimationStart"),transitionend:V("Transition","TransitionEnd")},$={},X={};function K(e){if($[e])return $[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in X)return $[e]=n[t];return e}G&&(X=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var Q=K("animationend"),J=K("animationiteration"),Z=K("animationstart"),ee=K("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,oe=null,re=null;function ie(){if(re)return re;var e,t,n=oe,o=n.length,r="value"in ne?ne.value:ne.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return re=r.slice(e,1<t?1-t:void 0)}function ae(){return!0}function se(){return!1}function le(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:se,this.isPropagationStopped=se,this}function ue(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=ue,e.release=ce}r(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,de(n),n},de(le);var pe=le.extend({data:null}),he=le.extend({data:null}),fe=[9,13,27,32],me=G&&"CompositionEvent"in window,ge=null;G&&"documentMode"in document&&(ge=document.documentMode);var ve=G&&"TextEvent"in window&&!ge,ye=G&&(!me||ge&&8<ge&&11>=ge),be=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function Ce(e,t){switch(e){case"keyup":return-1!==fe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var ke={eventTypes:we,extractEvents:function(e,t,n,o){var r=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":r=we.compositionStart;break e;case"compositionend":r=we.compositionEnd;break e;case"compositionupdate":r=we.compositionUpdate;break e}r=void 0}else Te?Ce(e,n)&&(r=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=we.compositionStart);return r?(ye&&"ko"!==n.locale&&(Te||r!==we.compositionStart?r===we.compositionEnd&&Te&&(i=ie()):(oe="value"in(ne=o)?ne.value:ne.textContent,Te=!0)),r=pe.getPooled(r,t,n,o),i?r.data=i:null!==(i=xe(n))&&(r.data=i),q(r),i=r):i=null,(e=ve?function(e,t){switch(e){case"compositionend":return xe(t);case"keypress":return 32!==t.which?null:(Ee=!0,be);case"textInput":return(e=t.data)===be&&Ee?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!me&&Ce(e,t)?(e=ie(),re=oe=ne=null,Te=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=he.getPooled(we.beforeInput,t,n,o)).data=e,q(t)):t=null,null===i?t:null===t?i:[i,t]}},Se=null,De=null,Re=null;function Me(e){if(e=C(e)){"function"!=typeof Se&&a("280");var t=E(e.stateNode);Se(e.stateNode,e.type,t)}}function _e(e){De?Re?Re.push(e):Re=[e]:De=e}function Pe(){if(De){var e=De,t=Re;if(Re=De=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Le(e,t){return e(t)}function Oe(e,t,n){return e(t,n)}function Ne(){}var Fe=!1;function Ae(e,t){if(Fe)return e(t);Fe=!0;try{return Le(e,t)}finally{Fe=!1,(null!==De||null!==Re)&&(Ne(),Pe())}}var Ie={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ie[e.type]:"textarea"===t}function ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function je(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ue(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Be(e){e._valueTracker||(e._valueTracker=function(e){var t=Ue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function We(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ue(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}var qe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe.hasOwnProperty("ReactCurrentDispatcher")||(qe.ReactCurrentDispatcher={current:null});var Ge=/^(.*)[\\\/]/,Ve="function"==typeof Symbol&&Symbol.for,Ye=Ve?Symbol.for("react.element"):60103,$e=Ve?Symbol.for("react.portal"):60106,Xe=Ve?Symbol.for("react.fragment"):60107,Ke=Ve?Symbol.for("react.strict_mode"):60108,Qe=Ve?Symbol.for("react.profiler"):60114,Je=Ve?Symbol.for("react.provider"):60109,Ze=Ve?Symbol.for("react.context"):60110,et=Ve?Symbol.for("react.concurrent_mode"):60111,tt=Ve?Symbol.for("react.forward_ref"):60112,nt=Ve?Symbol.for("react.suspense"):60113,ot=Ve?Symbol.for("react.memo"):60115,rt=Ve?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function st(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case Xe:return"Fragment";case $e:return"Portal";case Qe:return"Profiler";case Ke:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Ze:return"Context.Consumer";case Je:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ot:return st(e.type);case rt:if(e=1===e._status?e._result:null)return st(e)}return null}function lt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=st(e.type);n=null,o&&(n=st(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(Ge,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ut=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ct=Object.prototype.hasOwnProperty,dt={},pt={};function ht(e,t,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ft[e]=new ht(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ft[t]=new ht(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ft[e]=new ht(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ft[e]=new ht(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ft[e]=new ht(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ft[e]=new ht(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ft[e]=new ht(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ft[e]=new ht(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ft[e]=new ht(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function gt(e){return e[1].toUpperCase()}function vt(e,t,n,o){var r=ft.hasOwnProperty(t)?ft[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!ct.call(pt,e)||!ct.call(dt,e)&&(ut.test(e)?pt[e]=!0:(dt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Et(e,t){null!=(t=t.checked)&&vt(e,"checked",t,!1)}function Ct(e,t){Et(e,t);var n=yt(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Tt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(mt,gt);ft[t]=new ht(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,gt);ft[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,gt);ft[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){ft[e]=new ht(e,1,!1,e.toLowerCase(),null)});var kt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function St(e,t,n){return(e=le.getPooled(kt.change,e,t,n)).type="change",_e(n),q(e),e}var Dt=null,Rt=null;function Mt(e){P(e)}function _t(e){if(We(I(e)))return e}function Pt(e,t){if("change"===e)return t}var Lt=!1;function Ot(){Dt&&(Dt.detachEvent("onpropertychange",Nt),Rt=Dt=null)}function Nt(e){"value"===e.propertyName&&_t(Rt)&&Ae(Mt,e=St(Rt,e,ze(e)))}function Ft(e,t,n){"focus"===e?(Ot(),Rt=n,(Dt=t).attachEvent("onpropertychange",Nt)):"blur"===e&&Ot()}function At(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _t(Rt)}function It(e,t){if("click"===e)return _t(t)}function Ht(e,t){if("input"===e||"change"===e)return _t(t)}G&&(Lt=je("input")&&(!document.documentMode||9<document.documentMode));var zt={eventTypes:kt,_isInputEventSupported:Lt,extractEvents:function(e,t,n,o){var r=t?I(t):window,i=void 0,a=void 0,s=r.nodeName&&r.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===r.type?i=Pt:He(r)?Lt?i=Ht:(i=At,a=Ft):(s=r.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(i=It),i&&(i=i(e,t)))return St(i,n,o);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Tt(r,"number",r.value)}},jt=le.extend({view:null,detail:null}),Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ut[e])&&!!t[e]}function Wt(){return Bt}var qt=0,Gt=0,Vt=!1,Yt=!1,$t=jt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Wt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=qt;return qt=e.screenX,Vt?"mousemove"===e.type?e.screenX-t:0:(Vt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Gt;return Gt=e.screenY,Yt?"mousemove"===e.type?e.screenY-t:0:(Yt=!0,0)}}),Xt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Kt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:Kt,extractEvents:function(e,t,n,o){var r="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!i&&!r)return null;if(r=o.window===o?o:(r=o.ownerDocument)?r.defaultView||r.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?F(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=$t,s=Kt.mouseLeave,l=Kt.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Xt,s=Kt.pointerLeave,l=Kt.pointerEnter,u="pointer");var c=null==i?r:I(i);if(r=null==t?r:I(t),(e=a.getPooled(s,i,n,o)).type=u+"leave",e.target=c,e.relatedTarget=r,(n=a.getPooled(l,t,n,o)).type=u+"enter",n.target=r,n.relatedTarget=c,o=t,i&&o)e:{for(r=o,u=0,a=t=i;a;a=z(a))u++;for(a=0,l=r;l;l=z(l))a++;for(;0<u-a;)t=z(t),u--;for(;0<a-u;)r=z(r),a--;for(;u--;){if(t===r||t===r.alternate)break e;t=z(t),r=z(r)}t=null}else t=null;for(r=t,t=[];i&&i!==r&&(null===(u=i.alternate)||u!==r);)t.push(i),i=z(i);for(i=[];o&&o!==r&&(null===(u=o.alternate)||u!==r);)i.push(o),o=z(o);for(o=0;o<t.length;o++)B(t[o],"bubbled",e);for(o=i.length;0<o--;)B(i[o],"captured",n);return[e,n]}};function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Zt=Object.prototype.hasOwnProperty;function en(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Zt.call(t,n[o])||!Jt(e[n[o]],t[n[o]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function on(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,o=t;;){var r=n.return,i=r?r.alternate:null;if(!r||!i)break;if(r.child===i.child){for(var s=r.child;s;){if(s===n)return nn(r),e;if(s===o)return nn(r),t;s=s.sibling}a("188")}if(n.return!==o.return)n=r,o=i;else{s=!1;for(var l=r.child;l;){if(l===n){s=!0,n=r,o=i;break}if(l===o){s=!0,o=r,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,o=r;break}if(l===o){s=!0,o=i,n=r;break}l=l.sibling}s||a("189")}}n.alternate!==o&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var rn=le.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=le.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=jt.extend({relatedTarget:null});function ln(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dn=jt.extend({key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ln(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Wt,charCode:function(e){return"keypress"===e.type?ln(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ln(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=$t.extend({dataTransfer:null}),hn=jt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Wt}),fn=le.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=$t.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["abort","abort"],[Q,"animationEnd"],[J,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],vn={},yn={};function bn(e,t){var n=e[0],o="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],isInteractive:t},vn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),gn.forEach(function(e){bn(e,!1)});var wn={eventTypes:vn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,o){var r=yn[e];if(!r)return null;switch(e){case"keypress":if(0===ln(n))return null;case"keydown":case"keyup":e=dn;break;case"blur":case"focus":e=sn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=hn;break;case Q:case J:case Z:e=rn;break;case ee:e=fn;break;case"scroll":e=jt;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xt;break;default:e=le}return q(t=e.getPooled(r,t,n,o)),t}},En=wn.isInteractiveTopLevelEventType,Cn=[];function xn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o;for(o=n;o.return;)o=o.return;if(!(o=3!==o.tag?null:o.stateNode.containerInfo))break;e.ancestors.push(n),n=F(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=ze(e.nativeEvent);o=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<v.length;s++){var l=v[s];l&&(l=l.extractEvents(o,t,i,r))&&(a=k(a,l))}P(a)}}var Tn=!0;function kn(e,t){if(!t)return null;var n=(En(e)?Dn:Rn).bind(null,e);t.addEventListener(e,n,!1)}function Sn(e,t){if(!t)return null;var n=(En(e)?Dn:Rn).bind(null,e);t.addEventListener(e,n,!0)}function Dn(e,t){Oe(Rn,e,t)}function Rn(e,t){if(Tn){var n=ze(t);if(null===(n=F(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),Cn.length){var o=Cn.pop();o.topLevelType=e,o.nativeEvent=t,o.targetInst=n,e=o}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Ae(xn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Cn.length&&Cn.push(e)}}}var Mn={},_n=0,Pn="_reactListenersID"+(""+Math.random()).slice(2);function Ln(e){return Object.prototype.hasOwnProperty.call(e,Pn)||(e[Pn]=_n++,Mn[e[Pn]]={}),Mn[e[Pn]]}function On(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Nn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fn(e,t){var n,o=Nn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Nn(o)}}function An(){for(var e=window,t=On();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=On((e=t.contentWindow).document)}return t}function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Hn(e){var t=An(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==o&&In(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Fn(n,i);var a=Fn(n,o);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zn=G&&"documentMode"in document&&11>=document.documentMode,jn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,Bn=null,Wn=null,qn=!1;function Gn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return qn||null==Un||Un!==On(n)?null:("selectionStart"in(n=Un)&&In(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&en(Wn,n)?null:(Wn=n,(e=le.getPooled(jn.select,Bn,e,t)).type="select",e.target=Un,q(e),e))}var Vn={eventTypes:jn,extractEvents:function(e,t,n,o){var r,i=o.window===o?o.document:9===o.nodeType?o:o.ownerDocument;if(!(r=!i)){e:{i=Ln(i),r=w.onSelect;for(var a=0;a<r.length;a++){var s=r[a];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}r=!i}if(r)return null;switch(i=t?I(t):window,e){case"focus":(He(i)||"true"===i.contentEditable)&&(Un=i,Bn=t,Wn=null);break;case"blur":Wn=Bn=Un=null;break;case"mousedown":qn=!0;break;case"contextmenu":case"mouseup":case"dragend":return qn=!1,Gn(n,o);case"selectionchange":if(zn)break;case"keydown":case"keyup":return Gn(n,o)}return null}};function Yn(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function $n(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Xn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function Qn(e,t){var n=yt(t.value),o=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function Jn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=H,C=A,x=I,M.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:zt,SelectEventPlugin:Vn,BeforeInputEventPlugin:ke});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function eo(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function to(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?eo(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var no=void 0,oo=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((no=no||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var io={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ao=["Webkit","ms","Moz","O"];function so(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function lo(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=so(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(io).forEach(function(e){ao.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});var uo=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function co(e,t){t&&(uo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function po(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ho(e,t){var n=Ln(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var o=0;o<t.length;o++){var r=t[o];if(!n.hasOwnProperty(r)||!n[r]){switch(r){case"scroll":Sn("scroll",e);break;case"focus":case"blur":Sn("focus",e),Sn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":je(r)&&Sn(r,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(r)&&kn(r,e)}n[r]=!0}}}function fo(){}var mo=null,go=null;function vo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bo="function"==typeof setTimeout?setTimeout:void 0,wo="function"==typeof clearTimeout?clearTimeout:void 0,Eo=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback;function xo(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function To(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var ko=[],So=-1;function Do(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function Ro(e,t){ko[++So]=e.current,e.current=t}var Mo={},_o={current:Mo},Po={current:!1},Lo=Mo;function Oo(e,t){var n=e.type.contextTypes;if(!n)return Mo;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function No(e){return null!=(e=e.childContextTypes)}function Fo(e){Do(Po),Do(_o)}function Ao(e){Do(Po),Do(_o)}function Io(e,t,n){_o.current!==Mo&&a("168"),Ro(_o,t),Ro(Po,n)}function Ho(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())i in e||a("108",st(t)||"Unknown",i);return r({},n,o)}function zo(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Mo,Lo=_o.current,Ro(_o,t),Ro(Po,Po.current),!0}function jo(e,t,n){var o=e.stateNode;o||a("169"),n?(t=Ho(e,t,Lo),o.__reactInternalMemoizedMergedChildContext=t,Do(Po),Do(_o),Ro(_o,t)):Do(Po),Ro(Po,n)}var Uo=null,Bo=null;function Wo(e){return function(t){try{return e(t)}catch(e){}}}function qo(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Go(e,t,n,o){return new qo(e,t,n,o)}function Vo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yo(e,t){var n=e.alternate;return null===n?((n=Go(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $o(e,t,n,o,r,i){var s=2;if(o=e,"function"==typeof e)Vo(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Xe:return Xo(n.children,r,i,t);case et:return Ko(n,3|r,i,t);case Ke:return Ko(n,2|r,i,t);case Qe:return(e=Go(12,n,t,4|r)).elementType=Qe,e.type=Qe,e.expirationTime=i,e;case nt:return(e=Go(13,n,t,r)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Je:s=10;break e;case Ze:s=9;break e;case tt:s=11;break e;case ot:s=14;break e;case rt:s=16,o=null;break e}a("130",null==e?e:typeof e,"")}return(t=Go(s,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Xo(e,t,n,o){return(e=Go(7,e,o,t)).expirationTime=n,e}function Ko(e,t,n,o){return e=Go(8,e,o,t),t=0==(1&t)?Ke:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Qo(e,t,n){return(e=Go(6,e,null,t)).expirationTime=n,e}function Jo(e,t,n){return(t=Go(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zo(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),nr(t,e)}function er(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,o=e.latestPendingTime;n===t?e.earliestPendingTime=o===t?e.latestPendingTime=0:o:o===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,o=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:o>t&&(e.latestSuspendedTime=t),nr(t,e)}function tr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function nr(e,t){var n=t.earliestSuspendedTime,o=t.latestSuspendedTime,r=t.earliestPendingTime,i=t.latestPingedTime;0===(r=0!==r?r:i)&&(0===e||o<e)&&(r=o),0!==(e=r)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=r,t.expirationTime=e}function or(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var rr=(new o.Component).refs;function ir(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(o=e.updateQueue)&&0===e.expirationTime&&(o.baseState=n)}var ar={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Es(),r=Xi(o=$a(o,e));r.payload=t,null!=n&&(r.callback=n),Ba(),Qi(e,r),Qa(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Es(),r=Xi(o=$a(o,e));r.tag=Wi,r.payload=t,null!=n&&(r.callback=n),Ba(),Qi(e,r),Qa(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Es(),o=Xi(n=$a(n,e));o.tag=qi,null!=t&&(o.callback=t),Ba(),Qi(e,o),Qa(e,n)}};function sr(e,t,n,o,r,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,o)||!en(r,i))}function lr(e,t,n){var o=!1,r=Mo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ui(i):(r=No(t)?Lo:_o.current,i=(o=null!=(o=t.contextTypes))?Oo(e,r):Mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ar,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function ur(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ar.enqueueReplaceState(t,t.state,null)}function cr(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=rr;var i=t.contextType;"object"==typeof i&&null!==i?r.context=Ui(i):(i=No(t)?Lo:_o.current,r.context=Oo(e,i)),null!==(i=e.updateQueue)&&(ta(e,i,n,r,o),r.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(ir(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ar.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(ta(e,i,n,r,o),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var dr=Array.isArray;function pr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var o=void 0;n&&(1!==n.tag&&a("309"),o=n.stateNode),o||a("147",e);var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===rr&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function hr(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function fr(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=Yo(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Qo(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=pr(e,t,n),o.return=e,o):((o=$o(n.type,n.key,n.props,null,e.mode,o)).ref=pr(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jo(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,o,i){return null===t||7!==t.tag?((t=Xo(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Qo(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ye:return(n=$o(t.type,t.key,t.props,null,e.mode,n)).ref=pr(e,null,t),n.return=e,n;case $e:return(t=Jo(t,e.mode,n)).return=e,t}if(dr(t)||at(t))return(t=Xo(t,e.mode,n,null)).return=e,t;hr(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ye:return n.key===r?n.type===Xe?d(e,t,n.props.children,o,r):u(e,t,n,o):null;case $e:return n.key===r?c(e,t,n,o):null}if(dr(n)||at(n))return null!==r?null:d(e,t,n,o,null);hr(e,n)}return null}function f(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case Ye:return e=e.get(null===o.key?n:o.key)||null,o.type===Xe?d(t,e,o.props.children,r,o.key):u(t,e,o,r);case $e:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(dr(o)||at(o))return d(t,e=e.get(n)||null,o,r,null);hr(t,o)}return null}function m(r,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(r,d),u;if(null===d){for(;m<s.length;m++)(d=p(r,s[m],l))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=o(r,d);m<s.length;m++)(g=f(d,r,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(r,e)}),u}function g(r,s,l,u){var c=at(l);"function"!=typeof c&&a("150"),null==(l=c.call(l))&&a("151");for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(r,m,y.value,u);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(r,m),s=i(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(r,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(r,y.value,u))&&(s=i(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=o(r,m);!y.done;g++,y=l.next())null!==(y=f(m,r,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(r,e)}),c}return function(e,o,i,l){var u="object"==typeof i&&null!==i&&i.type===Xe&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Ye:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){if(7===u.tag?i.type===Xe:u.elementType===i.type){n(e,u.sibling),(o=r(u,i.type===Xe?i.props.children:i.props)).ref=pr(e,u,i),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Xe?((o=Xo(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=$o(i.type,i.key,i.props,null,e.mode,l)).ref=pr(e,o,i),l.return=e,e=l)}return s(e);case $e:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Jo(i,e.mode,l)).return=e,e=o}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Qo(i,e.mode,l)).return=e,e=o),s(e);if(dr(i))return m(e,o,i,l);if(at(i))return g(e,o,i,l);if(c&&hr(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:a("152",(l=e.type).displayName||l.name||"Component")}return n(e,o)}}var mr=fr(!0),gr=fr(!1),vr={},yr={current:vr},br={current:vr},wr={current:vr};function Er(e){return e===vr&&a("174"),e}function Cr(e,t){Ro(wr,t),Ro(br,e),Ro(yr,vr);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:to(null,"");break;default:t=to(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Do(yr),Ro(yr,t)}function xr(e){Do(yr),Do(br),Do(wr)}function Tr(e){Er(wr.current);var t=Er(yr.current),n=to(t,e.type);t!==n&&(Ro(br,e),Ro(yr,n))}function kr(e){br.current===e&&(Do(yr),Do(br))}var Sr=0,Dr=2,Rr=4,Mr=8,_r=16,Pr=32,Lr=64,Or=128,Nr=qe.ReactCurrentDispatcher,Fr=0,Ar=null,Ir=null,Hr=null,zr=null,jr=null,Ur=null,Br=0,Wr=null,qr=0,Gr=!1,Vr=null,Yr=0;function $r(){a("321")}function Xr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function Kr(e,t,n,o,r,i){if(Fr=i,Ar=t,Hr=null!==e?e.memoizedState:null,Nr.current=null===Hr?ui:ci,t=n(o,r),Gr){do{Gr=!1,Yr+=1,Hr=null!==e?e.memoizedState:null,Ur=zr,Wr=jr=Ir=null,Nr.current=ci,t=n(o,r)}while(Gr);Vr=null,Yr=0}return Nr.current=li,(e=Ar).memoizedState=zr,e.expirationTime=Br,e.updateQueue=Wr,e.effectTag|=qr,e=null!==Ir&&null!==Ir.next,Fr=0,Ur=jr=zr=Hr=Ir=Ar=null,Br=0,Wr=null,qr=0,e&&a("300"),t}function Qr(){Nr.current=li,Fr=0,Ur=jr=zr=Hr=Ir=Ar=null,Br=0,Wr=null,qr=0,Gr=!1,Vr=null,Yr=0}function Jr(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===jr?zr=jr=e:jr=jr.next=e,jr}function Zr(){if(null!==Ur)Ur=(jr=Ur).next,Hr=null!==(Ir=Hr)?Ir.next:null;else{null===Hr&&a("310");var e={memoizedState:(Ir=Hr).memoizedState,baseState:Ir.baseState,queue:Ir.queue,baseUpdate:Ir.baseUpdate,next:null};jr=null===jr?zr=e:jr.next=e,Hr=Ir.next}return jr}function ei(e,t){return"function"==typeof t?t(e):t}function ti(e){var t=Zr(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<Yr){var o=n.dispatch;if(null!==Vr){var r=Vr.get(n);if(void 0!==r){Vr.delete(n);var i=t.memoizedState;do{i=e(i,r.action),r=r.next}while(null!==r);return Jt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,o]}}return[t.memoizedState,o]}o=n.last;var s=t.baseUpdate;if(i=t.baseState,null!==s?(null!==o&&(o.next=null),o=s.next):o=null!==o?o.next:null,null!==o){var l=r=null,u=o,c=!1;do{var d=u.expirationTime;d<Fr?(c||(c=!0,l=s,r=i),d>Br&&(Br=d)):i=u.eagerReducer===e?u.eagerState:e(i,u.action),s=u,u=u.next}while(null!==u&&u!==o);c||(l=s,r=i),Jt(i,t.memoizedState)||(Ei=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=r,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function ni(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===Wr?(Wr={lastEffect:null}).lastEffect=e.next=e:null===(t=Wr.lastEffect)?Wr.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Wr.lastEffect=e),e}function oi(e,t,n,o){var r=Jr();qr|=e,r.memoizedState=ni(t,n,void 0,void 0===o?null:o)}function ri(e,t,n,o){var r=Zr();o=void 0===o?null:o;var i=void 0;if(null!==Ir){var a=Ir.memoizedState;if(i=a.destroy,null!==o&&Xr(o,a.deps))return void ni(Sr,n,i,o)}qr|=e,r.memoizedState=ni(t,n,i,o)}function ii(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ai(){}function si(e,t,n){25>Yr||a("301");var o=e.alternate;if(e===Ar||null!==o&&o===Ar)if(Gr=!0,e={expirationTime:Fr,action:n,eagerReducer:null,eagerState:null,next:null},null===Vr&&(Vr=new Map),void 0===(n=Vr.get(t)))Vr.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Ba();var r=Es(),i={expirationTime:r=$a(r,e),action:n,eagerReducer:null,eagerState:null,next:null},s=t.last;if(null===s)i.next=i;else{var l=s.next;null!==l&&(i.next=l),s.next=i}if(t.last=i,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=o(u,n);if(i.eagerReducer=o,i.eagerState=c,Jt(c,u))return}catch(e){}Qa(e,r)}}var li={readContext:Ui,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r},ui={readContext:Ui,useCallback:function(e,t){return Jr().memoizedState=[e,void 0===t?null:t],e},useContext:Ui,useEffect:function(e,t){return oi(516,Or|Lr,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,Rr|Pr,ii.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4,Rr|Pr,e,t)},useMemo:function(e,t){var n=Jr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Jr();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=si.bind(null,Ar,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Jr().memoizedState=e},useState:function(e){var t=Jr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e}).dispatch=si.bind(null,Ar,e),[t.memoizedState,e]},useDebugValue:ai},ci={readContext:Ui,useCallback:function(e,t){var n=Zr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Xr(t,o[1])?o[0]:(n.memoizedState=[e,t],e)},useContext:Ui,useEffect:function(e,t){return ri(516,Or|Lr,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ri(4,Rr|Pr,ii.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4,Rr|Pr,e,t)},useMemo:function(e,t){var n=Zr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Xr(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ti,useRef:function(){return Zr().memoizedState},useState:function(e){return ti(ei)},useDebugValue:ai},di=null,pi=null,hi=!1;function fi(e,t){var n=Go(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function mi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function gi(e){if(hi){var t=pi;if(t){var n=t;if(!mi(e,t)){if(!(t=xo(n))||!mi(e,t))return e.effectTag|=2,hi=!1,void(di=e);fi(di,n)}di=e,pi=To(t)}else e.effectTag|=2,hi=!1,di=e}}function vi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;di=e}function yi(e){if(e!==di)return!1;if(!hi)return vi(e),hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yo(t,e.memoizedProps))for(t=pi;t;)fi(e,t),t=xo(t);return vi(e),pi=di?xo(e.stateNode):null,!0}function bi(){pi=di=null,hi=!1}var wi=qe.ReactCurrentOwner,Ei=!1;function Ci(e,t,n,o){t.child=null===e?gr(t,null,n,o):mr(t,e.child,n,o)}function xi(e,t,n,o,r){n=n.render;var i=t.ref;return ji(t,r),o=Kr(e,t,n,o,i,r),null===e||Ei?(t.effectTag|=1,Ci(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Li(e,t,r))}function Ti(e,t,n,o,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Vo(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$o(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ki(e,t,a,o,r,i))}return a=e.child,r<i&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(r,o)&&e.ref===t.ref)?Li(e,t,i):(t.effectTag|=1,(e=Yo(a,o)).ref=t.ref,e.return=t,t.child=e)}function ki(e,t,n,o,r,i){return null!==e&&en(e.memoizedProps,o)&&e.ref===t.ref&&(Ei=!1,r<i)?Li(e,t,i):Di(e,t,n,o,i)}function Si(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Di(e,t,n,o,r){var i=No(n)?Lo:_o.current;return i=Oo(t,i),ji(t,r),n=Kr(e,t,n,o,i,r),null===e||Ei?(t.effectTag|=1,Ci(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Li(e,t,r))}function Ri(e,t,n,o,r){if(No(n)){var i=!0;zo(t)}else i=!1;if(ji(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),lr(t,n,o),cr(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ui(u):u=Oo(t,u=No(n)?Lo:_o.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||l!==u)&&ur(t,a,o,u),Vi=!1;var p=t.memoizedState;l=a.state=p;var h=t.updateQueue;null!==h&&(ta(t,h,o,a,r),l=t.memoizedState),s!==o||p!==l||Po.current||Vi?("function"==typeof c&&(ir(t,n,c,o),l=t.memoizedState),(s=Vi||sr(t,n,s,o,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=u,o=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),o=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:or(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ui(u):u=Oo(t,u=No(n)?Lo:_o.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||l!==u)&&ur(t,a,o,u),Vi=!1,l=t.memoizedState,p=a.state=l,null!==(h=t.updateQueue)&&(ta(t,h,o,a,r),p=t.memoizedState),s!==o||l!==p||Po.current||Vi?("function"==typeof c&&(ir(t,n,c,o),p=t.memoizedState),(c=Vi||sr(t,n,s,o,l,p,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,p,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=p),a.props=o,a.state=p,a.context=u,o=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),o=!1);return Mi(e,t,n,o,i,r)}function Mi(e,t,n,o,r,i){Si(e,t);var a=0!=(64&t.effectTag);if(!o&&!a)return r&&jo(t,n,!1),Li(e,t,i);o=t.stateNode,wi.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&a?(t.child=mr(t,e.child,null,i),t.child=mr(t,null,s,i)):Ci(e,t,s,i),t.memoizedState=o.state,r&&jo(t,n,!0),t.child}function _i(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Cr(e,t.containerInfo)}function Pi(e,t,n){var o=t.mode,r=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var s=r.fallback;e=Xo(null,o,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),o=Xo(s,o,n,null),e.sibling=o,(n=e).return=o.return=t}else n=o=gr(t,null,r.children,n);else null!==e.memoizedState?(s=(o=e.child).sibling,a?(n=r.fallback,r=Yo(o,o.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==o.child&&(r.child=a)),o=r.sibling=Yo(s,n,s.expirationTime),n=r,r.childExpirationTime=0,n.return=o.return=t):n=o=mr(t,o.child,r.children,n)):(s=e.child,a?(a=r.fallback,(r=Xo(null,o,0,null)).child=s,0==(1&t.mode)&&(r.child=null!==t.memoizedState?t.child.child:t.child),(o=r.sibling=Xo(a,o,n,null)).effectTag|=2,n=r,r.childExpirationTime=0,n.return=o.return=t):o=n=mr(t,s,r.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,o}function Li(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Yo(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yo(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Oi(e,t,n){var o=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||Po.current)Ei=!0;else if(o<n){switch(Ei=!1,t.tag){case 3:_i(t),bi();break;case 5:Tr(t);break;case 1:No(t.type)&&zo(t);break;case 4:Cr(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Pi(e,t,n):null!==(t=Li(e,t,n))?t.sibling:null}return Li(e,t,n)}}else Ei=!1;switch(t.expirationTime=0,t.tag){case 2:o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var r=Oo(t,_o.current);if(ji(t,n),r=Kr(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,Qr(),No(o)){var i=!0;zo(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var s=o.getDerivedStateFromProps;"function"==typeof s&&ir(t,o,s,e),r.updater=ar,t.stateNode=r,r._reactInternalFiber=t,cr(t,o,e,n),t=Mi(null,t,o,!0,i,n)}else t.tag=0,Ci(null,t,r,n),t=t.child;return t;case 16:switch(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(r),t.type=e,r=t.tag=function(e){if("function"==typeof e)return Vo(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===ot)return 14}return 2}(e),i=or(e,i),s=void 0,r){case 0:s=Di(null,t,e,i,n);break;case 1:s=Ri(null,t,e,i,n);break;case 11:s=xi(null,t,e,i,n);break;case 14:s=Ti(null,t,e,or(e.type,i),o,n);break;default:a("306",e,"")}return s;case 0:return o=t.type,r=t.pendingProps,Di(e,t,o,r=t.elementType===o?r:or(o,r),n);case 1:return o=t.type,r=t.pendingProps,Ri(e,t,o,r=t.elementType===o?r:or(o,r),n);case 3:return _i(t),null===(o=t.updateQueue)&&a("282"),r=null!==(r=t.memoizedState)?r.element:null,ta(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(bi(),t=Li(e,t,n)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(pi=To(t.stateNode.containerInfo),di=t,r=hi=!0),r?(t.effectTag|=2,t.child=gr(t,null,o,n)):(Ci(e,t,o,n),bi()),t=t.child),t;case 5:return Tr(t),null===e&&gi(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,yo(o,r)?s=null:null!==i&&yo(o,i)&&(t.effectTag|=16),Si(e,t),1!==n&&1&t.mode&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ci(e,t,s,n),t=t.child),t;case 6:return null===e&&gi(t),null;case 13:return Pi(e,t,n);case 4:return Cr(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mr(t,null,o,n):Ci(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,xi(e,t,o,r=t.elementType===o?r:or(o,r),n);case 7:return Ci(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ci(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,Hi(t,i=r.value),null!==s){var l=s.value;if(0===(i=Jt(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(s.children===r.children&&!Po.current){t=Li(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.contextDependencies;if(null!==u){s=l.child;for(var c=u.first;null!==c;){if(c.context===o&&0!=(c.observedBits&i)){1===l.tag&&((c=Xi(n)).tag=qi,Qi(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),c=n;for(var d=l.return;null!==d;){var p=d.alternate;if(d.childExpirationTime<c)d.childExpirationTime=c,null!==p&&p.childExpirationTime<c&&(p.childExpirationTime=c);else{if(!(null!==p&&p.childExpirationTime<c))break;p.childExpirationTime=c}d=d.return}u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}Ci(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,ji(t,n),o=o(r=Ui(r,i.unstable_observedBits)),t.effectTag|=1,Ci(e,t,o,n),t.child;case 14:return i=or(r=t.type,t.pendingProps),Ti(e,t,r,i=or(r.type,i),o,n);case 15:return ki(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:or(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,No(o)?(e=!0,zo(t)):e=!1,ji(t,n),lr(t,o,r),cr(t,o,r,n),Mi(null,t,o,!0,e,n)}a("156")}var Ni={current:null},Fi=null,Ai=null,Ii=null;function Hi(e,t){var n=e.type._context;Ro(Ni,n._currentValue),n._currentValue=t}function zi(e){var t=Ni.current;Do(Ni),e.type._context._currentValue=t}function ji(e,t){Fi=e,Ii=Ai=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(Ei=!0),e.contextDependencies=null}function Ui(e,t){return Ii!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ai?(null===Fi&&a("308"),Ai=t,Fi.contextDependencies={first:t,expirationTime:0}):Ai=Ai.next=t),e._currentValue}var Bi=0,Wi=1,qi=2,Gi=3,Vi=!1;function Yi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $i(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xi(e){return{expirationTime:e,tag:Bi,payload:null,callback:null,next:null,nextEffect:null}}function Ki(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Qi(e,t){var n=e.alternate;if(null===n){var o=e.updateQueue,r=null;null===o&&(o=e.updateQueue=Yi(e.memoizedState))}else o=e.updateQueue,r=n.updateQueue,null===o?null===r?(o=e.updateQueue=Yi(e.memoizedState),r=n.updateQueue=Yi(n.memoizedState)):o=e.updateQueue=$i(r):null===r&&(r=n.updateQueue=$i(o));null===r||o===r?Ki(o,t):null===o.lastUpdate||null===r.lastUpdate?(Ki(o,t),Ki(r,t)):(Ki(o,t),r.lastUpdate=t)}function Ji(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Yi(e.memoizedState):Zi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Zi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=$i(t)),t}function ea(e,t,n,o,i,a){switch(n.tag){case Wi:return"function"==typeof(e=n.payload)?e.call(a,o,i):e;case Gi:e.effectTag=-2049&e.effectTag|64;case Bi:if(null==(i="function"==typeof(e=n.payload)?e.call(a,o,i):e))break;return r({},o,i);case qi:Vi=!0}return o}function ta(e,t,n,o,r){Vi=!1;for(var i=(t=Zi(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=i;null!==l;){var c=l.expirationTime;c<r?(null===a&&(a=l,i=u),s<c&&(s=c)):(u=ea(e,0,l,u,n,o),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d<r?(null===c&&(c=l,null===a&&(i=u)),s<d&&(s=d)):(u=ea(e,0,l,u,n,o),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function na(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),oa(t.firstEffect,n),t.firstEffect=t.lastEffect=null,oa(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function oa(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=t;"function"!=typeof n&&a("191",n),n.call(o)}e=e.nextEffect}}function ra(e,t){return{value:e,source:t,stack:lt(t)}}function ia(e){e.effectTag|=4}var aa=void 0,sa=void 0,la=void 0,ua=void 0;aa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},sa=function(){},la=function(e,t,n,o,i){var a=e.memoizedProps;if(a!==o){var s=t.stateNode;switch(Er(yr.current),e=null,n){case"input":a=bt(s,a),o=bt(s,o),e=[];break;case"option":a=Yn(s,a),o=Yn(s,o),e=[];break;case"select":a=r({},a,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":a=Xn(s,a),o=Xn(s,o),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof o.onClick&&(s.onclick=fo)}co(n,o),s=n=void 0;var l=null;for(n in a)if(!o.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(s in u)u.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in o){var c=o[n];if(u=null!=a?a[n]:void 0,o.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(l||(l={}),l[s]=c[s])}else l||(e||(e=[]),e.push(n,l)),l=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&ho(i,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}l&&(e=e||[]).push("style",l),i=e,(t.updateQueue=i)&&ia(t)}},ua=function(e,t,n,o){n!==o&&ia(t)};var ca="function"==typeof WeakSet?WeakSet:Set;function da(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=lt(n)),null!==n&&st(n.type),t=t.value,null!==e&&1===e.tag&&st(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function pa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ya(e,t)}else t.current=null}function ha(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)!==Sr){var r=o.destroy;o.destroy=void 0,void 0!==r&&r()}(o.tag&t)!==Sr&&(r=o.create,o.destroy=r()),o=o.next}while(o!==n)}}function fa(e){switch("function"==typeof Bo&&Bo(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var o=n.destroy;if(void 0!==o){var r=e;try{o()}catch(e){Ya(r,e)}}n=n.next}while(n!==t)}break;case 1:if(pa(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ya(e,t)}break;case 5:pa(e);break;case 4:va(e)}}function ma(e){return 5===e.tag||3===e.tag||4===e.tag}function ga(e){e:{for(var t=e.return;null!==t;){if(ma(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:a("161")}16&n.effectTag&&(ro(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ma(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){if(5===r.tag||6===r.tag)if(n)if(o){var i=t,s=r.stateNode,l=n;8===i.nodeType?i.parentNode.insertBefore(s,l):i.insertBefore(s,l)}else t.insertBefore(r.stateNode,n);else o?(s=t,l=r.stateNode,8===s.nodeType?(i=s.parentNode).insertBefore(l,s):(i=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=fo)):t.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function va(e){for(var t=e,n=!1,o=void 0,r=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:o=n.stateNode,r=!1;break e;case 3:case 4:o=n.stateNode.containerInfo,r=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,s=i;;)if(fa(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(i=o,s=t.stateNode,8===i.nodeType?i.parentNode.removeChild(s):i.removeChild(s)):o.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){o=t.stateNode.containerInfo,r=!0,t.child.return=t,t=t.child;continue}}else if(fa(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function ya(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ha(Rr,Mr,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var r=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,o,r){e[N]=r,"input"===n&&"radio"===r.type&&null!=r.name&&Et(e,r),po(n,o),o=po(n,r);for(var i=0;i<t.length;i+=2){var a=t[i],s=t[i+1];"style"===a?lo(e,s):"dangerouslySetInnerHTML"===a?oo(e,s):"children"===a?ro(e,s):vt(e,a,s,o)}switch(n){case"input":Ct(e,r);break;case"textarea":Qn(e,r);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!r.multiple,null!=(n=r.value)?$n(e,!!r.multiple,n,!1):t!==!!r.multiple&&(null!=r.defaultValue?$n(e,!!r.multiple,r.defaultValue,!0):$n(e,!!r.multiple,r.multiple?[]:"",!1))}}(n,i,r,e,o)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,o=void 0,e=t,null===n?o=!1:(o=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Es())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)o.style.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=null!=r&&r.hasOwnProperty("display")?r.display:null,o.style.display=so("display",r)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(o=n.child.sibling).return=n,n=o;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,o),null!==(n=t.updateQueue)){t.updateQueue=null;var s=t.stateNode;null===s&&(s=t.stateNode=new ca),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=$a(t=Es(),e),null!==(e=Ka(e,t))&&(Zo(e,t),0!==(t=e.expirationTime)&&Cs(e,t))}.bind(null,t,e);s.has(e)||(s.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var ba="function"==typeof WeakMap?WeakMap:Map;function wa(e,t,n){(n=Xi(n)).tag=Gi,n.payload={element:null};var o=t.value;return n.callback=function(){Ps(o),da(e,t)},n}function Ea(e,t,n){(n=Xi(n)).tag=Gi;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Ia?Ia=new Set([this]):Ia.add(this));var n=t.value,r=t.stack;da(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Ca(e){switch(e.tag){case 1:No(e.type)&&Fo();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return xr(),Ao(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return kr(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return xr(),null;case 10:return zi(e),null;default:return null}}var xa=qe.ReactCurrentDispatcher,Ta=qe.ReactCurrentOwner,ka=1073741822,Sa=!1,Da=null,Ra=null,Ma=0,_a=-1,Pa=!1,La=null,Oa=!1,Na=null,Fa=null,Aa=null,Ia=null;function Ha(){if(null!==Da)for(var e=Da.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Fo();break;case 3:xr(),Ao();break;case 5:kr(t);break;case 4:xr();break;case 10:zi(t)}e=e.return}Ra=null,Ma=0,_a=-1,Pa=!1,Da=null}function za(){for(;null!==La;){var e=La.effectTag;if(16&e&&ro(La.stateNode,""),128&e){var t=La.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ga(La),La.effectTag&=-3;break;case 6:ga(La),La.effectTag&=-3,ya(La.alternate,La);break;case 4:ya(La.alternate,La);break;case 8:va(e=La),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}La=La.nextEffect}}function ja(){for(;null!==La;){if(256&La.effectTag)e:{var e=La.alternate,t=La;switch(t.tag){case 0:case 11:case 15:ha(Dr,Sr,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:or(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}La=La.nextEffect}}function Ua(e,t){for(;null!==La;){var n=La.effectTag;if(36&n){var o=La.alternate,r=La,i=t;switch(r.tag){case 0:case 11:case 15:ha(_r,Pr,r);break;case 1:var s=r.stateNode;if(4&r.effectTag)if(null===o)s.componentDidMount();else{var l=r.elementType===r.type?o.memoizedProps:or(r.type,o.memoizedProps);s.componentDidUpdate(l,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}null!==(o=r.updateQueue)&&na(0,o,s);break;case 3:if(null!==(o=r.updateQueue)){if(s=null,null!==r.child)switch(r.child.tag){case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}na(0,o,s)}break;case 5:i=r.stateNode,null===o&&4&r.effectTag&&vo(r.type,r.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(r=La.ref)&&(i=La.stateNode,"function"==typeof r?r(i):r.current=i)),512&n&&(Na=e),La=La.nextEffect}}function Ba(){null!==Fa&&Co(Fa),null!==Aa&&Aa()}function Wa(e,t){Oa=Sa=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var o=t.expirationTime,r=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Zo(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Zo(e,t)):t>n&&Zo(e,t)}nr(0,e)}(e,r>o?r:o),Ta.current=null,o=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,o=t.firstEffect):o=t:o=t.firstEffect,mo=Tn,go=function(){var e=An();if(In(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var o=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{t.nodeType,r.nodeType}catch(e){t=null;break e}var i=0,a=-1,s=-1,l=0,u=0,c=e,d=null;t:for(;;){for(var p;c!==t||0!==o&&3!==c.nodeType||(a=i+o),c!==r||0!==n&&3!==c.nodeType||(s=i+n),3===c.nodeType&&(i+=c.nodeValue.length),null!==(p=c.firstChild);)d=c,c=p;for(;;){if(c===e)break t;if(d===t&&++l===o&&(a=i),d===r&&++u===n&&(s=i),null!==(p=c.nextSibling))break;d=(c=d).parentNode}c=p}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),Tn=!1,La=o;null!==La;){r=!1;var s=void 0;try{ja()}catch(e){r=!0,s=e}r&&(null===La&&a("178"),Ya(La,s),null!==La&&(La=La.nextEffect))}for(La=o;null!==La;){r=!1,s=void 0;try{za()}catch(e){r=!0,s=e}r&&(null===La&&a("178"),Ya(La,s),null!==La&&(La=La.nextEffect))}for(Hn(go),go=null,Tn=!!mo,mo=null,e.current=t,La=o;null!==La;){r=!1,s=void 0;try{Ua(e,n)}catch(e){r=!0,s=e}r&&(null===La&&a("178"),Ya(La,s),null!==La&&(La=La.nextEffect))}if(null!==o&&null!==Na){var l=function(e,t){Aa=Fa=Na=null;var n=os;os=!0;do{if(512&t.effectTag){var o=!1,r=void 0;try{var i=t;ha(Or,Sr,i),ha(Sr,Lr,i)}catch(e){o=!0,r=e}o&&Ya(t,r)}t=t.nextEffect}while(null!==t);os=n,0!==(n=e.expirationTime)&&Cs(e,n),us||os||Ds(1073741823,!1)}.bind(null,e,o);Fa=i.unstable_runWithPriority(i.unstable_NormalPriority,function(){return Eo(l)}),Aa=l}Sa=Oa=!1,"function"==typeof Uo&&Uo(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Ia=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function qa(e){for(;;){var t=e.alternate,n=e.return,o=e.sibling;if(0==(1024&e.effectTag)){Da=e;e:{var i=t,s=Ma,l=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:No(t.type)&&Fo();break;case 3:xr(),Ao(),(l=t.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==i&&null!==i.child||(yi(t),t.effectTag&=-3),sa(t);break;case 5:kr(t);var u=Er(wr.current);if(s=t.type,null!==i&&null!=t.stateNode)la(i,t,s,l,u),i.ref!==t.ref&&(t.effectTag|=128);else if(l){var c=Er(yr.current);if(yi(t)){i=(l=t).stateNode;var d=l.type,p=l.memoizedProps,h=u;switch(i[O]=l,i[N]=p,s=void 0,u=d){case"iframe":case"object":kn("load",i);break;case"video":case"audio":for(d=0;d<te.length;d++)kn(te[d],i);break;case"source":kn("error",i);break;case"img":case"image":case"link":kn("error",i),kn("load",i);break;case"form":kn("reset",i),kn("submit",i);break;case"details":kn("toggle",i);break;case"input":wt(i,p),kn("invalid",i),ho(h,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},kn("invalid",i),ho(h,"onChange");break;case"textarea":Kn(i,p),kn("invalid",i),ho(h,"onChange")}for(s in co(u,p),d=null,p)p.hasOwnProperty(s)&&(c=p[s],"children"===s?"string"==typeof c?i.textContent!==c&&(d=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(d=["children",""+c]):b.hasOwnProperty(s)&&null!=c&&ho(h,s));switch(u){case"input":Be(i),xt(i,p,!0);break;case"textarea":Be(i),Jn(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=fo)}s=d,l.updateQueue=s,(l=null!==s)&&ia(t)}else{p=t,h=s,i=l,d=9===u.nodeType?u:u.ownerDocument,c===Zn.html&&(c=eo(h)),c===Zn.html?"script"===h?((i=d.createElement("div")).innerHTML="<script><\/script>",d=i.removeChild(i.firstChild)):"string"==typeof i.is?d=d.createElement(h,{is:i.is}):(d=d.createElement(h),"select"===h&&(h=d,i.multiple?h.multiple=!0:i.size&&(h.size=i.size))):d=d.createElementNS(c,h),(i=d)[O]=p,i[N]=l,aa(i,t,!1,!1),h=i;var f=u,m=po(d=s,p=l);switch(d){case"iframe":case"object":kn("load",h),u=p;break;case"video":case"audio":for(u=0;u<te.length;u++)kn(te[u],h);u=p;break;case"source":kn("error",h),u=p;break;case"img":case"image":case"link":kn("error",h),kn("load",h),u=p;break;case"form":kn("reset",h),kn("submit",h),u=p;break;case"details":kn("toggle",h),u=p;break;case"input":wt(h,p),u=bt(h,p),kn("invalid",h),ho(f,"onChange");break;case"option":u=Yn(h,p);break;case"select":h._wrapperState={wasMultiple:!!p.multiple},u=r({},p,{value:void 0}),kn("invalid",h),ho(f,"onChange");break;case"textarea":Kn(h,p),u=Xn(h,p),kn("invalid",h),ho(f,"onChange");break;default:u=p}co(d,u),c=void 0;var g=d,v=h,y=u;for(c in y)if(y.hasOwnProperty(c)){var w=y[c];"style"===c?lo(v,w):"dangerouslySetInnerHTML"===c?null!=(w=w?w.__html:void 0)&&oo(v,w):"children"===c?"string"==typeof w?("textarea"!==g||""!==w)&&ro(v,w):"number"==typeof w&&ro(v,""+w):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=w&&ho(f,c):null!=w&&vt(v,c,w,m))}switch(d){case"input":Be(h),xt(h,p,!1);break;case"textarea":Be(h),Jn(h);break;case"option":null!=p.value&&h.setAttribute("value",""+yt(p.value));break;case"select":(u=h).multiple=!!p.multiple,null!=(h=p.value)?$n(u,!!p.multiple,h,!1):null!=p.defaultValue&&$n(u,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof u.onClick&&(h.onclick=fo)}(l=vo(s,l))&&ia(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?ua(i,t,i.memoizedProps,l):("string"!=typeof l&&(null===t.stateNode&&a("166")),i=Er(wr.current),Er(yr.current),yi(t)?(s=(l=t).stateNode,i=l.memoizedProps,s[O]=l,(l=s.nodeValue!==i)&&ia(t)):(s=t,(l=(9===i.nodeType?i:i.ownerDocument).createTextNode(l))[O]=t,s.stateNode=l));break;case 11:break;case 13:if(l=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=s,Da=t;break e}l=null!==l,s=null!==i&&null!==i.memoizedState,null!==i&&!l&&s&&(null!==(i=i.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(l||s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:xr(),sa(t);break;case 10:zi(t);break;case 9:case 14:break;case 17:No(t.type)&&Fo();break;case 18:break;default:a("156")}Da=null}if(t=e,1===Ma||1!==t.childExpirationTime){for(l=0,s=t.child;null!==s;)(i=s.expirationTime)>l&&(l=i),(u=s.childExpirationTime)>l&&(l=u),s=s.sibling;t.childExpirationTime=l}if(null!==Da)return Da;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Ca(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==o)return o;if(null===n)break;e=n}return null}function Ga(e){var t=Oi(e.alternate,e,Ma);return e.memoizedProps=e.pendingProps,null===t&&(t=qa(e)),Ta.current=null,t}function Va(e,t){Sa&&a("243"),Ba(),Sa=!0;var n=xa.current;xa.current=li;var o=e.nextExpirationTimeToWorkOn;o===Ma&&e===Ra&&null!==Da||(Ha(),Ma=o,Da=Yo((Ra=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==Da&&!ks();)Da=Ga(Da);else for(;null!==Da;)Da=Ga(Da)}catch(t){if(Ii=Ai=Fi=null,Qr(),null===Da)r=!0,Ps(t);else{null===Da&&a("271");var i=Da,s=i.return;if(null!==s){e:{var l=e,u=s,c=i,d=t;if(s=Ma,c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==d&&"object"==typeof d&&"function"==typeof d.then){var p=d;d=u;var h=-1,f=-1;do{if(13===d.tag){var m=d.alternate;if(null!==m&&null!==(m=m.memoizedState)){f=10*(1073741822-m.timedOutAt);break}"number"==typeof(m=d.pendingProps.maxDuration)&&(0>=m?h=0:(-1===h||m<h)&&(h=m))}d=d.return}while(null!==d);d=u;do{if((m=13===d.tag)&&(m=void 0!==d.memoizedProps.fallback&&null===d.memoizedState),m){if(null===(u=d.updateQueue)?((u=new Set).add(p),d.updateQueue=u):u.add(p),0==(1&d.mode)){d.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((s=Xi(1073741823)).tag=qi,Qi(c,s))),c.expirationTime=1073741823;break e}u=s;var g=(c=l).pingCache;null===g?(g=c.pingCache=new ba,m=new Set,g.set(p,m)):void 0===(m=g.get(p))&&(m=new Set,g.set(p,m)),m.has(u)||(m.add(u),c=Xa.bind(null,c,p,u),p.then(c,c)),-1===h?l=1073741823:(-1===f&&(f=10*(1073741822-tr(l,s))-5e3),l=f+h),0<=l&&_a<l&&(_a=l),d.effectTag|=2048,d.expirationTime=s;break e}d=d.return}while(null!==d);d=Error((st(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+lt(c))}Pa=!0,d=ra(d,c),l=u;do{switch(l.tag){case 3:l.effectTag|=2048,l.expirationTime=s,Ji(l,s=wa(l,d,s));break e;case 1:if(h=d,f=l.type,c=l.stateNode,0==(64&l.effectTag)&&("function"==typeof f.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Ia||!Ia.has(c)))){l.effectTag|=2048,l.expirationTime=s,Ji(l,s=Ea(l,h,s));break e}}l=l.return}while(null!==l)}Da=qa(i);continue}r=!0,Ps(t)}}break}if(Sa=!1,xa.current=n,Ii=Ai=Fi=null,Qr(),r)Ra=null,e.finishedWork=null;else if(null!==Da)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),Ra=null,Pa){if(r=e.latestPendingTime,i=e.latestSuspendedTime,s=e.latestPingedTime,0!==r&&r<o||0!==i&&i<o||0!==s&&s<o)return er(e,o),void ws(e,n,o,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,o=e.nextExpirationTimeToWorkOn=o,t=e.expirationTime=1073741823,void ws(e,n,o,t,-1)}t&&-1!==_a?(er(e,o),(t=10*(1073741822-tr(e,o)))<_a&&(_a=t),t=10*(1073741822-Es()),t=_a-t,ws(e,n,o,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=o,e.finishedWork=n)}}function Ya(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Ia||!Ia.has(o)))return Qi(n,e=Ea(n,e=ra(t,e),1073741823)),void Qa(n,1073741823);break;case 3:return Qi(n,e=wa(n,e=ra(t,e),1073741823)),void Qa(n,1073741823)}n=n.return}3===e.tag&&(Qi(e,n=wa(e,n=ra(t,e),1073741823)),Qa(e,1073741823))}function $a(e,t){var n=i.unstable_getCurrentPriorityLevel(),o=void 0;if(0==(1&t.mode))o=1073741823;else if(Sa&&!Oa)o=Ma;else{switch(n){case i.unstable_ImmediatePriority:o=1073741823;break;case i.unstable_UserBlockingPriority:o=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:o=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:o=1;break;default:a("313")}null!==Ra&&o===Ma&&--o}return n===i.unstable_UserBlockingPriority&&(0===as||o<as)&&(as=o),o}function Xa(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),null!==Ra&&Ma===n?Ra=null:(t=e.earliestSuspendedTime,o=e.latestSuspendedTime,0!==t&&n<=t&&n>=o&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),nr(n,e),0!==(n=e.expirationTime)&&Cs(e,n)))}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return r}function Qa(e,t){null!==(e=Ka(e,t))&&(!Sa&&0!==Ma&&t>Ma&&Ha(),Zo(e,t),Sa&&!Oa&&Ra===e||Cs(e,e.expirationTime),gs>ms&&(gs=0,a("185")))}function Ja(e,t,n,o,r){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){return e(t,n,o,r)})}var Za=null,es=null,ts=0,ns=void 0,os=!1,rs=null,is=0,as=0,ss=!1,ls=null,us=!1,cs=!1,ds=null,ps=i.unstable_now(),hs=1073741822-(ps/10|0),fs=hs,ms=50,gs=0,vs=null;function ys(){hs=1073741822-((i.unstable_now()-ps)/10|0)}function bs(e,t){if(0!==ts){if(t<ts)return;null!==ns&&i.unstable_cancelCallback(ns)}ts=t,e=i.unstable_now()-ps,ns=i.unstable_scheduleCallback(Ss,{timeout:10*(1073741822-t)-e})}function ws(e,t,n,o,r){e.expirationTime=o,0!==r||ks()?0<r&&(e.timeoutHandle=bo(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,ys(),fs=hs,Rs(e,n)}.bind(null,e,t,n),r)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Es(){return os?fs:(xs(),0!==is&&1!==is||(ys(),fs=hs),fs)}function Cs(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===es?(Za=es=e,e.nextScheduledRoot=e):(es=es.nextScheduledRoot=e).nextScheduledRoot=Za):t>e.expirationTime&&(e.expirationTime=t),os||(us?cs&&(rs=e,is=1073741823,Ms(e,1073741823,!1)):1073741823===t?Ds(1073741823,!1):bs(e,t))}function xs(){var e=0,t=null;if(null!==es)for(var n=es,o=Za;null!==o;){var r=o.expirationTime;if(0===r){if((null===n||null===es)&&a("244"),o===o.nextScheduledRoot){Za=es=o.nextScheduledRoot=null;break}if(o===Za)Za=r=o.nextScheduledRoot,es.nextScheduledRoot=r,o.nextScheduledRoot=null;else{if(o===es){(es=n).nextScheduledRoot=Za,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if(r>e&&(e=r,t=o),o===es)break;if(1073741823===e)break;n=o,o=o.nextScheduledRoot}}rs=t,is=e}var Ts=!1;function ks(){return!!Ts||!!i.unstable_shouldYield()&&(Ts=!0)}function Ss(){try{if(!ks()&&null!==Za){ys();var e=Za;do{var t=e.expirationTime;0!==t&&hs<=t&&(e.nextExpirationTimeToWorkOn=hs),e=e.nextScheduledRoot}while(e!==Za)}Ds(0,!0)}finally{Ts=!1}}function Ds(e,t){if(xs(),t)for(ys(),fs=hs;null!==rs&&0!==is&&e<=is&&!(Ts&&hs>is);)Ms(rs,is,hs>is),xs(),ys(),fs=hs;else for(;null!==rs&&0!==is&&e<=is;)Ms(rs,is,!1),xs();if(t&&(ts=0,ns=null),0!==is&&bs(rs,is),gs=0,vs=null,null!==ds)for(e=ds,ds=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){ss||(ss=!0,ls=e)}}if(ss)throw e=ls,ls=null,ss=!1,e}function Rs(e,t){os&&a("253"),rs=e,is=t,Ms(e,t,!1),Ds(1073741823,!1)}function Ms(e,t,n){if(os&&a("245"),os=!0,n){var o=e.finishedWork;null!==o?_s(e,o,t):(e.finishedWork=null,-1!==(o=e.timeoutHandle)&&(e.timeoutHandle=-1,wo(o)),Va(e,n),null!==(o=e.finishedWork)&&(ks()?e.finishedWork=o:_s(e,o,t)))}else null!==(o=e.finishedWork)?_s(e,o,t):(e.finishedWork=null,-1!==(o=e.timeoutHandle)&&(e.timeoutHandle=-1,wo(o)),Va(e,n),null!==(o=e.finishedWork)&&_s(e,o,t));os=!1}function _s(e,t,n){var o=e.firstBatch;if(null!==o&&o._expirationTime>=n&&(null===ds?ds=[o]:ds.push(o),o._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===vs?gs++:(vs=e,gs=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){Wa(e,t)})}function Ps(e){null===rs&&a("246"),rs.expirationTime=0,ss||(ss=!0,ls=e)}function Ls(e,t){var n=us;us=!0;try{return e(t)}finally{(us=n)||os||Ds(1073741823,!1)}}function Os(e,t){if(us&&!cs){cs=!0;try{return e(t)}finally{cs=!1}}return e(t)}function Ns(e,t,n){us||os||0===as||(Ds(as,!1),as=0);var o=us;us=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(us=o)||os||Ds(1073741823,!1)}}function Fs(e,t,n,o,r){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(No(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);a("171"),s=void 0}if(1===n.tag){var l=n.type;if(No(l)){n=Ho(n,l,s);break e}}n=s}else n=Mo;return null===t.context?t.context=n:t.pendingContext=n,t=r,(r=Xi(o)).payload={element:e},null!==(t=void 0===t?null:t)&&(r.callback=t),Ba(),Qi(i,r),Qa(i,o),o}function As(e,t,n,o){var r=t.current;return Fs(e,t,n,r=$a(Es(),r),o)}function Is(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Hs(e){var t=1073741822-25*(1+((1073741822-Es()+500)/25|0));t>=ka&&(t=ka-1),this._expirationTime=ka=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function zs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function js(e,t,n){e={current:t=Go(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Us(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bs(e,t,n,o,r){var i=n._reactRootContainer;if(i){if("function"==typeof r){var a=r;r=function(){var e=Is(i._internalRoot);a.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,r):i.render(t,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new js(e,!1,t)}(n,o),"function"==typeof r){var s=r;r=function(){var e=Is(i._internalRoot);s.call(e)}}Os(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,r):i.render(t,r)})}return Is(i._internalRoot)}function Ws(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Us(t)||a("200"),function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$e,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Se=function(e,t,n){switch(t){case"input":if(Ct(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=H(o);r||a("90"),We(o),Ct(o,r)}}}break;case"textarea":Qn(e,n);break;case"select":null!=(t=n.value)&&$n(e,!!n.multiple,t,!1)}},Hs.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new zs;return Fs(e,t,null,n,o._onCommit),o},Hs.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Hs.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,r=t;r!==this;)o=r,r=r._next;null===o&&a("251"),o._next=r._next,this._next=t,e.firstBatch=this}this._defer=!1,Rs(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Hs.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},zs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},zs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},js.prototype.render=function(e,t){var n=this._internalRoot,o=new zs;return null!==(t=void 0===t?null:t)&&o.then(t),As(e,n,null,o._onCommit),o},js.prototype.unmount=function(e){var t=this._internalRoot,n=new zs;return null!==(e=void 0===e?null:e)&&n.then(e),As(null,t,null,n._onCommit),n},js.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var o=this._internalRoot,r=new zs;return null!==(n=void 0===n?null:n)&&r.then(n),As(t,o,e,r._onCommit),r},js.prototype.createBatch=function(){var e=new Hs(this),t=e._expirationTime,n=this._internalRoot,o=n.firstBatch;if(null===o)n.firstBatch=e,e._next=null;else{for(n=null;null!==o&&o._expirationTime>=t;)n=o,o=o._next;e._next=o,null!==n&&(n._next=e)}return e},Le=Ls,Oe=Ns,Ne=function(){os||0===as||(Ds(as,!1),as=0)};var qs,Gs,Vs={createPortal:Ws,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=on(t))?null:e.stateNode},hydrate:function(e,t,n){return Us(t)||a("200"),Bs(null,e,t,!0,n)},render:function(e,t,n){return Us(t)||a("200"),Bs(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return Us(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Bs(e,t,n,!1,o)},unmountComponentAtNode:function(e){return Us(e)||a("40"),!!e._reactRootContainer&&(Os(function(){Bs(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ws.apply(void 0,arguments)},unstable_batchedUpdates:Ls,unstable_interactiveUpdates:Ns,flushSync:function(e,t){os&&a("187");var n=us;us=!0;try{return Ja(e,t)}finally{us=n,Ds(1073741823,!1)}},unstable_createRoot:function(e,t){return Us(e)||a("299","unstable_createRoot"),new js(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=us;us=!0;try{Ja(e)}finally{(us=t)||os||Ds(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[A,I,H,M.injectEventPluginsByName,y,q,function(e){S(e,W)},_e,Pe,Rn,P]}};Gs=(qs={findFiberByHostInstance:F,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Uo=Wo(function(e){return t.onCommitFiberRoot(n,e)}),Bo=Wo(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}}(r({},qs,{overrideProps:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=on(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Gs?Gs(e):null}}));var Ys={default:Vs},$s=Ys&&Vs||Ys;e.exports=$s.default||$s},function(e,t,n){"use strict";e.exports=n(47)},function(e,t,n){"use strict";(function(e){
/** @license React v0.13.6
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
Object.defineProperty(t,"__esModule",{value:!0});var n=null,o=!1,r=3,i=-1,a=-1,s=!1,l=!1;function u(){if(!s){var e=n.expirationTime;l?x():l=!0,C(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var o=n.previous;n=o.next=t,t.previous=o}e.next=e.previous=null,o=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=r,s=a;r=e,a=t;try{var l=o()}finally{r=i,a=s}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=l.next=l.previous=l;else{o=null,e=n;do{if(e.expirationTime>=t){o=e;break}e=e.next}while(e!==n);null===o?o=n:o===n&&(n=l,u()),(t=o.previous).next=o.previous=l,l.next=o,l.previous=t}}function d(){if(-1===i&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():l=!1}}}function p(e){s=!0;var r=o;o=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!T())}finally{s=!1,o=r,null!==n?u():l=!1,d()}}var h,f,m=Date,g="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){h=y(function(t){v(f),e(t)}),f=g(function(){b(h),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var E=performance;t.unstable_now=function(){return E.now()}}else t.unstable_now=function(){return m.now()};var C,x,T,k=null;if("undefined"!=typeof window?k=window:void 0!==e&&(k=e),k&&k._schedMock){var S=k._schedMock;C=S[0],x=S[1],T=S[2],t.unstable_now=S[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var D=null,R=function(e){if(null!==D)try{D(e)}finally{D=null}};C=function(e){null!==D?setTimeout(C,0,e):(D=e,setTimeout(R,0,!1))},x=function(){D=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var M=null,_=!1,P=-1,L=!1,O=!1,N=0,F=33,A=33;T=function(){return N<=t.unstable_now()};var I=new MessageChannel,H=I.port2;I.port1.onmessage=function(){_=!1;var e=M,n=P;M=null,P=-1;var o=t.unstable_now(),r=!1;if(0>=N-o){if(!(-1!==n&&n<=o))return L||(L=!0,w(z)),M=e,void(P=n);r=!0}if(null!==e){O=!0;try{e(r)}finally{O=!1}}};var z=function(e){if(null!==M){w(z);var t=e-N+A;t<A&&F<A?(8>t&&(t=8),A=t<F?F:t):F=t,N=e+A,_||(_=!0,H.postMessage(void 0))}else L=!1};C=function(e,t){M=e,P=t,O||0>t?H.postMessage(void 0):L||(L=!0,w(z))},x=function(){M=null,_=!1,P=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=r,a=i;r=e,i=t.unstable_now();try{return n()}finally{r=o,i=a,d()}},t.unstable_next=function(e){switch(r){case 1:case 2:case 3:var n=3;break;default:n=r}var o=r,a=i;r=n,i=t.unstable_now();try{return e()}finally{r=o,i=a,d()}},t.unstable_scheduleCallback=function(e,o){var a=-1!==i?i:t.unstable_now();if("object"==typeof o&&null!==o&&"number"==typeof o.timeout)o=a+o.timeout;else switch(r){case 1:o=a+-1;break;case 2:o=a+250;break;case 5:o=a+1073741823;break;case 4:o=a+1e4;break;default:o=a+5e3}if(e={callback:e,priorityLevel:r,expirationTime:o,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{a=null;var s=n;do{if(s.expirationTime>o){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=e,u()),(o=a.previous).next=a.previous=e,e.next=a,e.previous=o}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var o=e.previous;o.next=t,t.previous=o}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=r;return function(){var o=r,a=i;r=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{r=o,i=a,d()}}},t.unstable_getCurrentPriorityLevel=function(){return r},t.unstable_shouldYield=function(){return!o&&(null!==n&&n.expirationTime<a||T())},t.unstable_continueExecution=function(){null!==n&&u()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(48))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e)return void console.error("Autobind error: No context provided.");var t=Object.getPrototypeOf(e);r=arguments.length>1?Array.prototype.slice.call(arguments,1):Object.getOwnPropertyNames(t);r.forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);void 0!==n?-1===o.indexOf(e)&&"function"==typeof n.value&&Object.defineProperty(t,e,function(e,t,n){var o=n.value;return{configurable:!0,get:function(){if(this===e||this.hasOwnProperty(t))return o;var n=o.bind(this);return Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),n}}}(t,e,n)):console.warn('Autobind: "'+e+'" method not found in class.')})};var o=["constructor","render","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","componentDidUpdate","componentWillUnmount"],r=[];e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=o(n(51)),i=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var o=e.currentStyle[t]||null;if(null==o&&n&&n[t]&&(o=n[t]),a.test(o)&&!i.test(t)){var s=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":o,o=n.pixelLeft+"px",n.left=s,u&&(l.left=u)}return o}}};var r=o(n(28)),i=/^(top|right|bottom|left)$/,a=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";var o=n(56);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.default)(function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var r=null;return t.forEach(function(e){if(null==r){var t=e.apply(void 0,n);null!=t&&(r=t)}}),r})};var o,r=n(23),i=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t,n){var o;
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var i=[],a=n.document,s=Object.getPrototypeOf,l=i.slice,u=i.concat,c=i.push,d=i.indexOf,p={},h=p.toString,f=p.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,nonce:!0,noModule:!0};function E(e,t,n){var o,r,i=(n=n||a).createElement("script");if(i.text=e,t)for(o in w)(r=t[o]||t.getAttribute&&t.getAttribute(o))&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[h.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.4.1",constructor:x,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)o=e[t],"__proto__"!==t&&a!==o&&(u&&o&&(x.isPlainObject(o)||(r=Array.isArray(o)))?(n=a[t],i=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,a[t]=x.extend(u,i,o)):void 0!==o&&(a[t]=o));return a},x.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=s(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){E(e,{nonce:t&&t.nonce})},each:function(e,t){var n,o=0;if(k(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?x.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,a=!n;r<i;r++)!t(e[r],r)!==a&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,a=[];if(k(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&a.push(r);return u.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var S=
/*!
   * Sizzle CSS Selector Engine v2.3.4
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2019-04-08
   */
function(e){var t,n,o,r,i,a,s,l,u,c,d,p,h,f,m,g,v,y,b,w="sizzle"+1*new Date,E=e.document,C=0,x=0,T=le(),k=le(),S=le(),D=le(),R=function(e,t){return e===t&&(d=!0),0},M={}.hasOwnProperty,_=[],P=_.pop,L=_.push,O=_.push,N=_.slice,F=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",z="\\["+I+"*("+H+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+I+"*\\]",j=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",U=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),W=new RegExp("^"+I+"*,"+I+"*"),q=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),G=new RegExp(I+"|>"),V=new RegExp(j),Y=new RegExp("^"+H+"$"),$={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(_=N.call(E.childNodes),E.childNodes),_[E.childNodes.length].nodeType}catch(e){O={apply:_.length?function(e,t){L.apply(e,N.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(e,t,o,r){var i,s,u,c,d,f,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return o;if(!r&&((t?t.ownerDocument||t:E)!==h&&p(t),t=t||h,m)){if(11!==C&&(d=Z.exec(e)))if(i=d[1]){if(9===C){if(!(u=t.getElementById(i)))return o;if(u.id===i)return o.push(u),o}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return o.push(u),o}else{if(d[2])return O.apply(o,t.getElementsByTagName(e)),o;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!D[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===C&&G.test(e)){for((c=t.getAttribute("id"))?c=c.replace(oe,re):t.setAttribute("id",c=w),s=(f=a(e)).length;s--;)f[s]="#"+c+" "+be(f[s]);v=f.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return O.apply(o,y.querySelectorAll(v)),o}catch(t){D(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,o,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[w]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)o.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:E;return a!==h&&9===a.nodeType&&a.documentElement?(f=(h=a).documentElement,m=!i(h),E!==h&&(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=w,!h.getElementsByName||!h.getElementsByName(w).length}),n.getById?(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ce(function(e){f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:value|"+A+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",j)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},R=t?function(e,t){if(e===t)return d=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e===h||e.ownerDocument===E&&b(E,e)?-1:t===h||t.ownerDocument===E&&b(E,t)?1:c?F(c,e)-F(c,t):0:4&o?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e===h?-1:t===h?1:r?-1:i?1:c?F(c,e)-F(c,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]===E?-1:s[o]===E?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),n.matchesSelector&&m&&!D[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var o=y.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){D(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=o.attrHandle[t.toLowerCase()],i=r&&M.call(o.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(oe,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,o=[],r=0,i=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(R),d){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)e.splice(o[r],1)}return c=null,e},r=se.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},(o=se.selectors={cacheLength:50,createPseudo:ue,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var r=se.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,h,f,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(i){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(u=(c=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[C,h,b];break}}else if(y&&(b=h=(u=(c=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[C,b]),p!==t)););return(b-=r)===o||b%o==0&&b/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var o,i=r(e,t),a=i.length;a--;)e[o=F(e,i[a])]=!(n[o]=i[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ue(function(e){var t=[],n=[],o=s(e.replace(B,"$1"));return o[w]?ue(function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:ue(function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var o=n<0?n+t:n>t?t:n;--o>=0;)e.push(o);return e}),gt:ge(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=fe(t);function ye(){}function be(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function we(e,t,n){var o=t.dir,r=t.next,i=r||o,a=n&&"parentNode"===i,s=x++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var u,c,d,p=[C,s];if(l){for(;t=t[o];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||a)if(c=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((u=c[i])&&u[0]===C&&u[1]===s)return p[2]=u[2];if(c[i]=p,p[2]=e(t,n,l))return!0}return!1}}function Ee(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function Ce(e,t,n,o,r){for(var i,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,o,r)||(a.push(i),u&&t.push(s)));return a}function xe(e,t,n,o,r,i){return o&&!o[w]&&(o=xe(o)),r&&!r[w]&&(r=xe(r,i)),ue(function(i,a,s,l){var u,c,d,p=[],h=[],f=a.length,m=i||function(e,t,n){for(var o=0,r=t.length;o<r;o++)se(e,t[o],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:Ce(m,p,e,s,l),v=n?r||(i?e:f||o)?[]:a:g;if(n&&n(g,v,s,l),o)for(u=Ce(v,h),o(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[h[c]]=!(g[h[c]]=d));if(i){if(r||e){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?F(i,d):p[c])>-1&&(i[u]=!(a[u]=d))}}else v=Ce(v===a?v.splice(f,v.length):v),r?r(null,a,v,l):O.apply(a,v)})}function Te(e){for(var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=we(function(e){return e===t},s,!0),d=we(function(e){return F(t,e)>-1},s,!0),p=[function(e,n,o){var r=!a&&(o||n!==u)||((t=n).nodeType?c(e,n,o):d(e,n,o));return t=null,r}];l<i;l++)if(n=o.relative[e[l].type])p=[we(Ee(p),n)];else{if((n=o.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;r<i&&!o.relative[e[r].type];r++);return xe(l>1&&Ee(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<r&&Te(e.slice(l,r)),r<i&&Te(e=e.slice(r)),r<i&&be(e))}p.push(n)}return Ee(p)}return ye.prototype=o.filters=o.pseudos,o.setFilters=new ye,a=se.tokenize=function(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=o.preFilter;s;){for(a in n&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=q.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),s=s.slice(n.length)),o.filter)!(r=$[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],i=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[w]?r.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,l,c){var d,f,g,v=0,y="0",b=i&&[],w=[],E=u,x=i||r&&o.find.TAG("*",c),T=C+=null==E?1:Math.random()||.1,k=x.length;for(c&&(u=a===h||a||c);y!==k&&null!=(d=x[y]);y++){if(r&&d){for(f=0,a||d.ownerDocument===h||(p(d),s=!m);g=e[f++];)if(g(d,a||h,s)){l.push(d);break}c&&(C=T)}n&&((d=!g&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,w,a,s);if(i){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=P.call(l));w=Ce(w)}O.apply(l,w),c&&!i&&w.length>0&&v+t.length>1&&se.uniqueSort(l)}return c&&(C=T,u=E),b};return n?ue(i):i}(i,r))).selector=e}return s},l=se.select=function(e,t,n,r){var i,l,u,c,d,p="function"==typeof e&&e,h=!r&&a(e=p.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&o.relative[l[1].type]){if(!(t=(o.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=$.needsContext.test(e)?0:l.length;i--&&(u=l[i],!o.relative[c=u.type]);)if((d=o.find[c])&&(r=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=r.length&&be(l)))return O.apply(n,r),n;break}}return(p||s(e,h))(r,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(R).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(A,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),se}(n);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var D=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(n))break;o.push(e)}return o},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=x.expr.match.needsContext;function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return y(t)?x.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return d.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?x.find.matchesSelector(o,e)?[o]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<o;t++)if(x.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)x.find(e,r[t],n);return o>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&M.test(e)?x(e):e||[],!1).length}});var O,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),P.test(o[1])&&x.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=a.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,O=x(a);var F=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&x(e);if(!M.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(x(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D(e,"parentNode")},parentsUntil:function(e,t,n){return D(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return D(e,"nextSibling")},prevAll:function(e){return D(e,"previousSibling")},nextUntil:function(e,t,n){return D(e,"nextSibling",n)},prevUntil:function(e,t,n){return D(e,"previousSibling",n)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(_(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,o){var r=x.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=x.filter(o,r)),this.length>1&&(A[e]||x.uniqueSort(r),F.test(e)&&r.reverse()),this.pushStack(r)}});var H=/[^\x20\t\r\n\f]+/g;function z(e){return e}function j(e){throw e}function U(e,t,n,o){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(H)||[],function(e,n){t[n]=!0}),t}(e):x.extend({},e);var t,n,o,r,i=[],a=[],s=-1,l=function(){for(r=r||e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,function(n,o){y(o)?e.unique&&u.has(o)||i.push(o):o&&o.length&&"string"!==C(o)&&t(o)})}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var r=y(e[o[4]])&&e[o[4]];i[o[1]](function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,o,r){var i=0;function a(e,t,o,r){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<i)){if((n=o.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(u)?r?u.call(n,a(i,t,z,r),a(i,t,j,r)):(i++,u.call(n,a(i,t,z,r),a(i,t,j,r),a(i,t,z,t.notifyWith))):(o!==z&&(s=void 0,l=[n]),(r||t.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,c.stackTrace),e+1>=i&&(o!==j&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),n.setTimeout(c))}}return x.Deferred(function(n){t[0][3].add(a(0,n,y(r)?r:z,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:z)),t[2][3].add(a(0,n,y(o)?o:j))}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return x.each(t,function(e,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add(function(){o=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=l.call(arguments),i=x.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(U(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(r[n]&&r[n].then)))return i.then();for(;n--;)U(r[n],a(n),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout(function(){throw e})};var W=x.Deferred();function q(){a.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),x.ready()}x.fn.ready=function(e){return W.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||W.resolveWith(a,[x]))}}),x.ready.then=W.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(x.ready):(a.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var G=function(e,t,n,o,r,i,a){var s=0,l=e.length,u=null==n;if("object"===C(n))for(s in r=!0,n)G(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,y(o)||(a=!0),u&&(a?(t.call(e,o),t=null):(u=t,t=function(e,t,n){return u.call(x(e),n)})),t))for(;s<l;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):i},V=/^-ms-/,Y=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function X(e){return e.replace(V,"ms-").replace(Y,$)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=x.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[X(t)]=n;else for(o in t)r[X(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in o?[t]:t.match(H)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||x.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var J=new Q,Z=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Z.hasData(e)||J.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=Z.get(i),1===i.nodeType&&!J.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(o=a[n].name).indexOf("data-")&&(o=X(o.slice(5)),ne(i,o,r[o]));J.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Z.set(this,e)}):G(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=Z.get(i,e))?n:void 0!==(n=ne(i,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),x.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=J.get(e,t),n&&(!o||Array.isArray(n)?o=J.access(e,t,x.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),o=n.length,r=n.shift(),i=x._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){x.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:x.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=x.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=J.get(i[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=a.documentElement,se=function(e){return x.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===x.css(e,"display")},ce=function(e,t,n,o){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,o||[]),t)e.style[i]=a[i];return r};function de(e,t,n,o){var r,i,a=20,s=o?function(){return o.cur()}:function(){return x.css(e,t,"")},l=s(),u=n&&n[3]||(x.cssNumber[t]?"":"px"),c=e.nodeType&&(x.cssNumber[t]||"px"!==u&&+l)&&re.exec(x.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)x.style(e,t,c+u),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),c/=i;c*=2,x.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=u,o.start=c,o.end=r)),r}var pe={};function he(e){var t,n=e.ownerDocument,o=e.nodeName,r=pe[o];return r||(t=n.body.appendChild(n.createElement(o)),r=x.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),pe[o]=r,r)}function fe(e,t){for(var n,o,r=[],i=0,a=e.length;i<a;i++)(o=e[i]).style&&(n=o.style.display,t?("none"===n&&(r[i]=J.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&ue(o)&&(r[i]=he(o))):"none"!==n&&(r[i]="none",J.set(o,"display",n)));for(i=0;i<a;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}x.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ue(this)?x(this).show():x(this).hide()})}});var me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?x.merge([e],n):n}function we(e,t){for(var n=0,o=e.length;n<o;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var Ee,Ce,xe=/<|&#?\w+;/;function Te(e,t,n,o,r){for(var i,a,s,l,u,c,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===C(i))x.merge(p,i.nodeType?[i]:i);else if(xe.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(i)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+x.htmlPrefilter(i)+l[2],c=l[0];c--;)a=a.lastChild;x.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",h=0;i=p[h++];)if(o&&x.inArray(i,o)>-1)r&&r.push(i);else if(u=se(i),a=be(d.appendChild(i),"script"),u&&we(a),n)for(c=0;i=a[c++];)ve.test(i.type||"")&&n.push(i);return d}Ee=a.createDocumentFragment().appendChild(a.createElement("div")),(Ce=a.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),Ee.appendChild(Ce),v.checkClone=Ee.cloneNode(!0).cloneNode(!0).lastChild.checked,Ee.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ee.cloneNode(!0).lastChild.defaultValue;var ke=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,De=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function Me(){return!1}function _e(e,t){return e===function(){try{return a.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,o,r,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Pe(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Me;else if(!r)return e;return 1===i&&(a=r,(r=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,r,o,n)})}function Le(e,t,n){n?(J.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var o,r,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),J.set(this,t,i),o=n(this,t),this[t](),i!==(r=J.get(this,t))||o?J.set(this,t,!1):r={},i!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else i.length&&(J.set(this,t,{value:x.event.trigger(x.extend(i[0],x.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&x.event.add(e,t,Re)}x.event={global:{},add:function(e,t,n,o,r){var i,a,s,l,u,c,d,p,h,f,m,g=J.get(e);if(g)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&x.find.matchesSelector(ae,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(H)||[""]).length;u--;)h=m=(s=De.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},c=x.extend({type:h,origType:m,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:f.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,f,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),x.event.global[h]=!0)},remove:function(e,t,n,o,r){var i,a,s,l,u,c,d,p,h,f,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(H)||[""]).length;u--;)if(h=m=(s=De.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},p=l[h=(o?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||x.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)x.event.remove(e,h+t[u],n,o,!0);x.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=x.event.fix(e),l=new Array(arguments.length),u=(J.get(this,"events")||{})[s.type]||[],c=x.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,u),t=0;(r=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(o=((x.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,l))&&!1===(s.result=o)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,o,r,i,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?x(r,this).index(u)>-1:x.find(r,this,null,[u]).length),a[r]&&i.push(o);i.length&&s.push({elem:u,handlers:i})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&_(t,"input")&&Le(t,"click",Re),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&_(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&_(t,"input")&&J.get(t,"click")||_(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Re:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Re,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Re,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Re,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){return Le(this,e,_e),!1},trigger:function(){return Le(this,e),!0},delegateType:t}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===o||x.contains(o,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,o){return Pe(this,e,t,n,o)},one:function(e,t,n,o){return Pe(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,x(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each(function(){x.event.remove(this,e,n,t)})}});var Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ne=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ie(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,o,r,i,a,s,l,u;if(1===t.nodeType){if(J.hasData(e)&&(i=J.access(e),a=J.set(t,i),u=i.events))for(r in delete a.handle,a.events={},u)for(n=0,o=u[r].length;n<o;n++)x.event.add(t,r,u[r][n]);Z.hasData(e)&&(s=Z.access(e),l=x.extend({},s),Z.set(t,l))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,o){t=u.apply([],t);var r,i,a,s,l,c,d=0,p=e.length,h=p-1,f=t[0],m=y(f);if(m||p>1&&"string"==typeof f&&!v.checkClone&&Fe.test(f))return e.each(function(r){var i=e.eq(r);m&&(t[0]=f.call(this,r,i.html())),Be(i,t,n,o)});if(p&&(i=(r=Te(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(s=(a=x.map(be(r,"script"),He)).length;d<p;d++)l=r,d!==h&&(l=x.clone(l,!0,!0),s&&x.merge(a,be(l,"script"))),n.call(e[d],l,d);if(s)for(c=a[a.length-1].ownerDocument,x.map(a,ze),d=0;d<s;d++)l=a[d],ve.test(l.type||"")&&!J.access(l,"globalEval")&&x.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):E(l.textContent.replace(Ae,""),l,c))}return e}function We(e,t,n){for(var o,r=t?x.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||x.cleanData(be(o)),o.parentNode&&(n&&se(o)&&we(be(o,"script")),o.parentNode.removeChild(o));return e}x.extend({htmlPrefilter:function(e){return e.replace(Oe,"<$1></$2>")},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),l=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=be(s),o=0,r=(i=be(e)).length;o<r;o++)Ue(i[o],a[o]);if(t)if(n)for(i=i||be(e),a=a||be(s),o=0,r=i.length;o<r;o++)je(i[o],a[o]);else je(e,s);return(a=be(s,"script")).length>0&&we(a,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,o,r=x.event.special,i=0;void 0!==(n=e[i]);i++)if(K(n)){if(t=n[J.expando]){if(t.events)for(o in t.events)r[o]?x.event.remove(n,o):x.removeEvent(n,o,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),x.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return G(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Be(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)})},prepend:function(){return Be(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return G(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,o=[],r=x(e),i=r.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(r[a])[t](n),c.apply(o,n.get());return this.pushStack(o)}});var qe=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ve=new RegExp(ie.join("|"),"i");function Ye(e,t,n){var o,r,i,a,s=e.style;return(n=n||Ge(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=x.style(e,t)),!v.pixelBoxStyles()&&qe.test(a)&&Ve.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);o="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",s=36===t(e.right),r=36===t(e.width),c.style.position="absolute",i=12===t(c.offsetWidth/3),ae.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var o,r,i,s,l,u=a.createElement("div"),c=a.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),o},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i}}))}();var Xe=["Webkit","Moz","ms"],Ke=a.createElement("div").style,Qe={};function Je(e){var t=x.cssProps[e]||Qe[e];return t||(e in Ke?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ke)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function ot(e,t,n){var o=re.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function rt(e,t,n,o,r,i){var a="width"===t?1:0,s=0,l=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(e,n+ie[a],!0,r)),o?("content"===n&&(l-=x.css(e,"padding"+ie[a],!0,r)),"margin"!==n&&(l-=x.css(e,"border"+ie[a]+"Width",!0,r))):(l+=x.css(e,"padding"+ie[a],!0,r),"padding"!==n?l+=x.css(e,"border"+ie[a]+"Width",!0,r):s+=x.css(e,"border"+ie[a]+"Width",!0,r));return!o&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function it(e,t,n){var o=Ge(e),r=(!v.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,o),i=r,a=Ye(e,t,o),s="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&r||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",!1,o))&&e.getClientRects().length&&(r="border-box"===x.css(e,"boxSizing",!1,o),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(r?"border":"content"),i,o,a)+"px"}function at(e,t,n,o,r){return new at.prototype.init(e,t,n,o,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=X(t),l=et.test(t),u=e.style;if(l||(t=Je(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:u[t];"string"===(i=typeof n)&&(r=re.exec(n))&&r[1]&&(n=de(e,t,r),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=r&&r[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,o){var r,i,a,s=X(t);return et.test(t)||(t=Je(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ye(e,t,o)),"normal"===r&&t in nt&&(r=nt[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,o){if(n)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,o):ce(e,tt,function(){return it(e,t,o)})},set:function(e,n,o){var r,i=Ge(e),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||o)&&"border-box"===x.css(e,"boxSizing",!1,i),l=o?rt(e,t,o,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-rt(e,t,"border",!1,i)-.5)),l&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),ot(0,n,l)}}}),x.cssHooks.marginLeft=$e(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-ce(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+ie[o]+t]=i[o]||i[o-2]||i[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=ot)}),x.fn.extend({css:function(e,t){return G(this,function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=Ge(e),r=t.length;a<r;a++)i[t[a]]=x.css(e,t[a],!1,o);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.Tween=at,at.prototype={constructor:at,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}},at.prototype.init.prototype=at.prototype,at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},at.propHooks.scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=at.prototype.init,x.fx.step={};var st,lt,ut=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function dt(){lt&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(dt):n.setTimeout(dt,x.fx.interval),x.fx.tick())}function pt(){return n.setTimeout(function(){st=void 0}),st=Date.now()}function ht(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=ie[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ft(e,t,n){for(var o,r=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function mt(e,t,n){var o,r,i=0,a=mt.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=st||pt(),n=Math.max(0,u.startTime+u.duration-t),o=1-(n/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(o);return s.notifyWith(e,[u,o,n]),o<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||pt(),duration:n.duration,tweens:[],createTween:function(t,n){var o=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(o),o},stop:function(t){var n=0,o=t?u.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,o,r,i,a;for(n in e)if(r=t[o=X(n)],i=e[n],Array.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),(a=x.cssHooks[o])&&"expand"in a)for(n in i=a.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}(c,u.opts.specialEasing);i<a;i++)if(o=mt.prefilters[i].call(u,e,c,u.opts))return y(o.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=o.stop.bind(o)),o;return x.map(c,ft,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(mt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(H);for(var n,o=0,r=e.length;o<r;o++)n=e[o],mt.tweeners[n]=mt.tweeners[n]||[],mt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,a,s,l,u,c,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ue(e),g=J.get(e,"fxshow");for(o in n.queue||(null==(a=x._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[o],ut.test(r)){if(delete t[o],i=i||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[o])continue;m=!0}h[o]=g&&g[o]||x.style(e,o)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(h))for(o in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=J.get(e,"display")),"none"===(c=x.css(e,"display"))&&(u?c=u:(fe([e],!0),u=e.style.display||u,c=x.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(e,"float")&&(l||(p.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:u}),i&&(g.hidden=!m),m&&fe([e],!0),p.done(function(){for(o in m||fe([e]),J.remove(e,"fxshow"),h)x.style(e,o,h[o])})),l=ft(m?g[o]:0,o,p),o in g||(g[o]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),x.speed=function(e,t,n){var o=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return x.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in x.fx.speeds?o.duration=x.fx.speeds[o.duration]:o.duration=x.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&x.dequeue(this,o.queue)},o},x.fn.extend({fadeTo:function(e,t,n,o){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=x.isEmptyObject(e),i=x.speed(t,n,o),a=function(){var t=mt(this,x.extend({},e),i);(r||J.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=x.timers,a=J.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&ct.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=x.timers,a=o?o.length:0;for(n.finish=!0,x.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,o,r)}}),x.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),st=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){lt||(lt=!0,dt())},x.fx.stop=function(){lt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,o){var r=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(r)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var gt,vt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return G(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=x.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&_(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(H);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vt[t]||x.find.attr;vt[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=vt[a],vt[a]=r,r=null!=n(e,t,o)?a:null,vt[a]=i),r}});var yt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function wt(e){return(e.match(H)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}x.fn.extend({prop:function(e,t){return G(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,o,r,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).addClass(e.call(this,t,Et(this)))});if((t=Ct(e)).length)for(;n=this[l++];)if(r=Et(n),o=1===n.nodeType&&" "+wt(r)+" "){for(a=0;i=t[a++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");r!==(s=wt(o))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,o,r,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).removeClass(e.call(this,t,Et(this)))});if(!arguments.length)return this.attr("class","");if((t=Ct(e)).length)for(;n=this[l++];)if(r=Et(n),o=1===n.nodeType&&" "+wt(r)+" "){for(a=0;i=t[a++];)for(;o.indexOf(" "+i+" ")>-1;)o=o.replace(" "+i+" "," ");r!==(s=wt(o))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,Et(this),t),t)}):this.each(function(){var t,r,i,a;if(o)for(r=0,i=x(this),a=Ct(e);t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=Et(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+wt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;x.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=y(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,x(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(xt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:wt(x.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:r.length;for(o=i<0?l:a?i:0;o<l;o++)if(((n=r[o]).selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,o,r=e.options,i=x.makeArray(t),a=r.length;a--;)((o=r[a]).selected=x.inArray(x.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var Tt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,o,r){var i,s,l,u,c,d,p,h,m=[o||a],g=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(s=h=l=o=o||a,3!==o.nodeType&&8!==o.nodeType&&!Tt.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[x.expando]?e:new x.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:x.makeArray(t,[e]),p=x.event.special[g]||{},r||!p.trigger||!1!==p.trigger.apply(o,t))){if(!r&&!p.noBubble&&!b(o)){for(u=p.delegateType||g,Tt.test(u+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(o.ownerDocument||a)&&m.push(l.defaultView||l.parentWindow||n)}for(i=0;(s=m[i++])&&!e.isPropagationStopped();)h=s,e.type=i>1?u:p.bindType||g,(d=(J.get(s,"events")||{})[e.type]&&J.get(s,"handle"))&&d.apply(s,t),(d=c&&s[c])&&d.apply&&K(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),t)||!K(o)||c&&y(o[g])&&!b(o)&&((l=o[c])&&(o[c]=null),x.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,kt),o[g](),e.isPropagationStopped()&&h.removeEventListener(g,kt),x.event.triggered=void 0,l&&(o[c]=l)),e.result}},simulate:function(e,t,n){var o=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(o,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=J.access(o,t);r||o.addEventListener(e,n,!0),J.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=J.access(o,t)-1;r?J.access(o,t,r):(o.removeEventListener(e,n,!0),J.remove(o,t))}}});var St=n.location,Dt=Date.now(),Rt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var Mt=/\[\]$/,_t=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,o){var r;if(Array.isArray(t))x.each(t,function(t,r){n||Mt.test(e)?o(e,r):Ot(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)});else if(n||"object"!==C(t))o(e,t);else for(r in t)Ot(e+"["+r+"]",t[r],n,o)}x.param=function(e,t){var n,o=[],r=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){r(this.name,this.value)});else for(n in e)Ot(n,e[n],t,r);return o.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Lt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}});var Nt=/%20/g,Ft=/#.*$/,At=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,zt=/^\/\//,jt={},Ut={},Bt="*/".concat("*"),Wt=a.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(H)||[];if(y(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Gt(e,t,n,o){var r={},i=e===Ut;function a(s){var l;return r[s]=!0,x.each(e[s]||[],function(e,s){var u=s(t,n,o);return"string"!=typeof u||i||r[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Vt(e,t){var n,o,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&x.extend(!0,e,o),e}Wt.href=St.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,x.ajaxSettings),t):Vt(x.ajaxSettings,e)},ajaxPrefilter:qt(jt),ajaxTransport:qt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,r,i,s,l,u,c,d,p,h,f=x.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?x(m):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=f.statusCode||{},w={},E={},C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=It.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=E[e.toLowerCase()]=E[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return o&&o.abort(t),k(0,t),this}};if(v.promise(T),f.url=((e||f.url||St.href)+"").replace(zt,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){u=a.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Wt.protocol+"//"+Wt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Gt(jt,f,t,T),c)return T;for(p in(d=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ht.test(f.type),r=f.url.replace(Ft,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Rt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(At,"$1"),h=(Rt.test(r)?"&":"?")+"_="+Dt+++h),f.url=r+h),f.ifModified&&(x.lastModified[r]&&T.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&T.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Bt+"; q=0.01":""):f.accepts["*"]),f.headers)T.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(m,T,f)||c))return T.abort();if(C="abort",y.add(f.complete),T.done(f.success),T.fail(f.error),o=Gt(Ut,f,t,T)){if(T.readyState=1,d&&g.trigger("ajaxSend",[T,f]),c)return T;f.async&&f.timeout>0&&(l=n.setTimeout(function(){T.abort("timeout")},f.timeout));try{c=!1,o.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,s){var u,p,h,w,E,C=t;c||(c=!0,l&&n.clearTimeout(l),o=void 0,i=s||"",T.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var o,r,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(f,T,a)),w=function(e,t,n,o){var r,i,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=u[l+" "+i]||u["* "+i]))for(r in u)if((s=r.split(" "))[1]===i&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(f,w,T,u),u?(f.ifModified&&((E=T.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=E),(E=T.getResponseHeader("etag"))&&(x.etag[r]=E)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=w.state,p=w.data,u=!(h=w.error))):(h=C,!e&&C||(C="error",e<0&&(e=0))),T.status=e,T.statusText=(t||C)+"",u?v.resolveWith(m,[p,C,T]):v.rejectWith(m,[T,C,h]),T.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[T,f,u?p:h]),y.fireWith(m,[T,C]),d&&(g.trigger("ajaxComplete",[T,f]),--x.active||x.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,o,r){return y(n)&&(r=r||o,o=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:n,success:o},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e,t){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},$t=x.ajaxSettings.xhr();v.cors=!!$t&&"withCredentials"in $t,v.ajax=$t=!!$t,x.ajaxTransport(function(e){var t,o;if(v.cors||$t&&!e.crossDomain)return{send:function(r,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=o=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Yt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),o=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&o()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,r){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Xt,Kt=[],Qt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||x.expando+"_"+Dt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,o){var r,i,a,s=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Qt,"$1"+r):!1!==e.jsonp&&(e.url+=(Rt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=n[r],n[r]=function(){a=arguments},o.always(function(){void 0===i?x(n).removeProp(r):n[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),a&&y(i)&&i(a[0]),a=i=void 0}),"script"}),v.createHTMLDocument=((Xt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((o=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(o)):t=a),i=!n&&[],(r=P.exec(e))?[t.createElement(r[1])]:(r=Te([e],t,i),i&&i.length&&x(i).remove(),x.merge([],r.childNodes)));var o,r,i},x.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=wt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&x.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?x("<div>").append(x.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var o,r,i,a,s,l,u=x.css(e,"position"),c=x(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),i=x.css(e,"top"),l=x.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(a=(o=c.position()).top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===x.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(o,"marginTop",!0),left:t.left-r.left-x.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ae})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(o){return G(this,function(e,o,r){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[t]:e[o];i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r},e,o,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=$e(v.pixelPosition,function(e,n){if(n)return n=Ye(e,t),qe.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){x.fn[o]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return G(this,function(t,n,r){var i;return b(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?x.css(t,n,s):x.style(t,n,r,s)},t,a?r:void 0,a)}})}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.proxy=function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=l.call(arguments,2),(r=function(){return e.apply(t||this,o.concat(l.call(arguments)))}).guid=e.guid=e.guid||x.guid++,r},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=_,x.isFunction=y,x.isWindow=b,x.camelCase=X,x.type=C,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(o=function(){return x}.apply(t,[]))||(e.exports=o);var Jt=n.jQuery,Zt=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=Zt),e&&n.jQuery===x&&(n.jQuery=Jt),x},r||(n.jQuery=n.$=x),x})},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e,t){return function(n){var o=n.currentTarget,a=n.target,s=(0,i.default)(o,e);s.some(function(e){return(0,r.default)(e,a)})&&t.call(this,n)}};var r=o(n(32)),i=o(n(12));e.exports=t.default},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,r.default)());try{return e.activeElement}catch(e){}};var r=o(n(14));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(63),i=a(n(23));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)(function(e,t,n,i,a){var s=e[t];return o.default.isValidElement(s)?new Error("Invalid "+i+" `"+a+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(s)?null:new Error("Invalid "+i+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")}),e.exports=t.default},function(e,t,n){"use strict";e.exports=n(64)},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case p:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case u:return e;default:return t}}case g:case m:case i:return t}}}function y(e){return v(e)===p}t.typeOf=v,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h)},t.isAsyncMode=function(e){return y(e)||v(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===h},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===l},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===f}},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=void 0;var r=o(n(66));t.addClass=r.default;var i=o(n(67));t.removeClass=i.default;var a=o(n(34));t.hasClass=a.default;var s={addClass:r.default,removeClass:i.default,hasClass:a.default};t.default=s},function(e,t,n){"use strict";var o=n(6);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r=o(n(34));e.exports=t.default},function(e,t,n){"use strict";function o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=o(e.className,t):e.setAttribute("class",o(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,o.default)(e)||(t=e,t&&"body"===t.tagName.toLowerCase())?function(e){var t=(0,r.default)(e),n=(0,o.default)(t);return t.body.clientWidth<n.innerWidth}(e):e.scrollHeight>e.clientHeight;var t};var o=i(n(69)),r=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.ariaHidden=i,t.hideSiblings=function(e,t){var n=t.root,o=t.backdrop;r(e,[n,o],function(e){return i(!0,e)})},t.showSiblings=function(e,t){var n=t.root,o=t.backdrop;r(e,[n,o],function(e){return i(!1,e)})};var o=["template","script","style"],r=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){var r,i,a;-1===t.indexOf(e)&&(i=(r=e).nodeType,a=r.tagName,1===i&&-1===o.indexOf(a.toLowerCase()))&&n(e)})};function i(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=l(n(3)),r=l(n(24)),i=l(n(0)),a=l(n(7)),s=l(n(72));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n;function o(){return e.apply(this,arguments)||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.prototype.render=function(){var e=this;return this.props.children?i.default.createElement(s.default,{container:this.props.container,onContainerResolved:this.props.onRendered},function(t){return a.default.createPortal(e.props.children,t)}):null},o}(i.default.Component);u.displayName="Portal",u.propTypes={container:o.default.oneOfType([r.default,o.default.func]),onRendered:o.default.func};var c=u;t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(3)),r=c(n(24)),i=c(n(11)),a=c(n(14)),s=c(n(0)),l=c(n(7)),u=c(n(35));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var p={container:o.default.oneOfType([r.default,o.default.func]),onContainerResolved:o.default.func},h=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];if(t=e.call.apply(e,[this].concat(o))||this,!i.default)return d(t);var a=t.props.container;return"function"==typeof a&&(a=a()),a&&!l.default.findDOMNode(a)?d(t):(t.setContainer(a),t)}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.UNSAFE_componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e.container)},r.componentDidMount=function(){this._container?this.props.onContainerResolved&&this.props.onContainerResolved():(this.setContainer(this.props.container),this.forceUpdate(this.props.onContainerResolved))},r.componentWillUnmount=function(){this._container=null},r.setContainer=function(e){this._container=(0,u.default)(e,(0,a.default)().body)},r.render=function(){return this._container?this.props.children(this._container):null},o}(s.default.Component);h.propTypes=p;var f=h;t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.default)(o.default.findDOMNode(e))};var o=i(n(7)),r=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";e.exports=n(75)},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-dom-server.browser.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=n(22),r=n(0);function i(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(e=Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,h=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.memo"):60115,v=a?Symbol.for("react.lazy"):60116;function y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"ConcurrentMode";case l:return"Fragment";case s:return"Portal";case c:return"Profiler";case u:return"StrictMode";case m:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case p:return"Context.Consumer";case d:return"Context.Provider";case f:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case g:return y(e.type);case v:if(e=1===e._status?e._result:null)return y(e)}return null}var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;b.hasOwnProperty("ReactCurrentDispatcher")||(b.ReactCurrentDispatcher={current:null});var w={};function E(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var C=new Uint16Array(16),x=0;15>x;x++)C[x]=x+1;C[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k=Object.prototype.hasOwnProperty,S={},D={};function R(e){return!!k.call(D,e)||!k.call(S,e)&&(T.test(e)?D[e]=!0:(S[e]=!0,!1))}function M(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new _(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new _(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new _(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new _(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new _(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new _(e,3,!0,e,null)}),["capture","download"].forEach(function(e){P[e]=new _(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){P[e]=new _(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){P[e]=new _(e,5,!1,e.toLowerCase(),null)});var L=/[\-:]([a-z])/g;function O(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L,O);P[t]=new _(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L,O);P[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L,O);P[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new _(e,1,!1,e.toLowerCase(),null)});var N=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=N.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var A=null,I=null,H=null,z=!1,j=!1,U=null,B=0;function W(){return null===A&&i("321"),A}function q(){return 0<B&&i("312"),{memoizedState:null,queue:null,next:null}}function G(){return null===H?null===I?(z=!1,I=H=q()):(z=!0,H=I):null===H.next?(z=!1,H=H.next=q()):(z=!0,H=H.next),H}function V(e,t,n,o){for(;j;)j=!1,B+=1,H=null,n=e(t,o);return I=A=null,B=0,H=U=null,n}function Y(e,t){return"function"==typeof t?t(e):t}function $(e,t,n){if(A=W(),H=G(),z){var o=H.queue;if(t=o.dispatch,null!==U&&void 0!==(n=U.get(o))){U.delete(o),o=H.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return H.memoizedState=o,[o,t]}return[H.memoizedState,t]}return e=e===Y?"function"==typeof t?t():t:void 0!==n?n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=function(e,t,n){if(25>B||i("301"),e===A)if(j=!0,e={action:n,next:null},null===U&&(U=new Map),void 0===(n=U.get(t)))U.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}.bind(null,A,e),[H.memoizedState,e]}function X(){}var K=0,Q={readContext:function(e){var t=K;return E(e,t),e[t]},useContext:function(e){W();var t=K;return E(e,t),e[t]},useMemo:function(e,t){if(A=W(),t=void 0===t?null:t,null!==(H=G())){var n=H.memoizedState;if(null!==n&&null!==t){e:{var o=n[1];if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++){var i=t[r],a=o[r];if((i!==a||0===i&&1/i!=1/a)&&(i==i||a==a)){o=!1;break e}}o=!0}}if(o)return n[0]}}return e=e(),H.memoizedState=[e,t],e},useReducer:$,useRef:function(e){A=W();var t=(H=G()).memoizedState;return null===t?(e={current:e},H.memoizedState=e):t},useState:function(e){return $(Y,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:X,useEffect:X,useDebugValue:X},J={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Z(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ee={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},te=o({menuitem:!0},ee),ne={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oe=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(e){oe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ne[t]=ne[e]})});var re=/([A-Z])/g,ie=/^ms-/,ae=r.Children.toArray,se=b.ReactCurrentDispatcher,le={listing:!0,pre:!0,textarea:!0},ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ce={},de={};var pe=Object.prototype.hasOwnProperty,he={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function fe(e,t){void 0===e&&i("152",y(t)||"Component")}function me(e,t,n){function a(r,a){var s=function(e,t,n){var o=e.contextType;if("object"==typeof o&&null!==o)return E(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=w;return t}(a,t,n),l=[],u=!1,c={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){u=!0,l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}},d=void 0;if(a.prototype&&a.prototype.isReactComponent){if(d=new a(r.props,s,c),"function"==typeof a.getDerivedStateFromProps){var p=a.getDerivedStateFromProps.call(null,r.props,d.state);null!=p&&(d.state=o({},d.state,p))}}else if(A={},d=a(r.props,s,c),null==(d=V(a,r.props,d,s))||null==d.render)return void fe(e=d,a);if(d.props=r.props,d.context=s,d.updater=c,void 0===(c=d.state)&&(d.state=c=null),"function"==typeof d.UNSAFE_componentWillMount||"function"==typeof d.componentWillMount)if("function"==typeof d.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&d.componentWillMount(),"function"==typeof d.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&d.UNSAFE_componentWillMount(),l.length){c=l;var h=u;if(l=null,u=!1,h&&1===c.length)d.state=c[0];else{p=h?c[0]:d.state;var f=!0;for(h=h?1:0;h<c.length;h++){var m=c[h];null!=(m="function"==typeof m?m.call(d,p,r.props,s):m)&&(f?(f=!1,p=o({},p,m)):o(p,m))}d.state=p}}else l=null;if(fe(e=d.render(),a),r=void 0,"function"==typeof d.getChildContext&&"object"==typeof(s=a.childContextTypes))for(var g in r=d.getChildContext())g in s||i("108",y(a)||"Unknown",g);r&&(t=o({},t,r))}for(;r.isValidElement(e);){var s=e,l=s.type;if("function"!=typeof l)break;a(s,l)}return{child:e,context:t}}var ge=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");r.isValidElement(t)?t.type!==l?t=[t]:(t=t.props.children,t=r.isValidElement(t)?[t]:ae(t)):t=ae(t),t={type:null,domNamespace:J.html,children:t,childIndex:0,context:w,footer:""};var o=C[0];if(0===o){var a=C,s=2*(o=a.length);65536>=s||i("304");var u=new Uint16Array(s);for(u.set(a),(C=u)[0]=o+1,a=o;a<s-1;a++)C[a]=a+1;C[s-1]=0}else C[0]=C[o];this.threadID=o,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=n,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}return e.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;C[e]=C[0],C[0]=e}},e.prototype.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;E(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},e.prototype.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},e.prototype.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},e.prototype.read=function(e){if(this.exhausted)return null;var t=K;K=this.threadID;var n=se.current;se.current=Q;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;C[a]=C[0],C[0]=a;break}var s=this.stack[this.stack.length-1];if(r||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===d)this.popProvider(s.type);else if(s.type===m){this.suspenseDepth--;var u=o.pop();if(r){r=!1;var c=s.fallbackFrame;c||i("303"),this.stack.push(c);continue}o[this.suspenseDepth]+=u}o[this.suspenseDepth]+=l}else{var p=s.children[s.childIndex++],h="";try{h+=this.render(p,s.context,s.domNamespace)}catch(e){throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{se.current=n,K=t}},e.prototype.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=me(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){var a=e.$$typeof;a===s&&i("257"),i("258",a.toString())}return e=ae(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("string"==typeof(a=e.type))return this.renderDOM(e,t,n);switch(a){case u:case h:case c:case l:return e=ae(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case m:i("294")}if("object"==typeof a&&null!==a)switch(a.$$typeof){case f:A={};var y=a.render(e.props,e.ref);return y=V(a.render,e.props,y,e.ref),y=ae(y),this.stack.push({type:null,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case g:return e=[r.createElement(a.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case d:return n={type:e,domNamespace:n,children:a=ae(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case p:a=e.type,y=e.props;var b=this.threadID;return E(a,b),a=ae(y.children(a[b])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case v:i("295")}i("130",null==a?a:typeof a,"")},e.prototype.renderDOM=function(e,t,n){var a=e.type.toLowerCase();n===J.html&&Z(a),ce.hasOwnProperty(a)||(ue.test(a)||i("65",a),ce[a]=!0);var s=e.props;if("input"===a)s=o({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var u=s.children;null!=u&&(null!=l&&i("92"),Array.isArray(u)&&(1>=u.length||i("93"),u=u[0]),l=""+u),null==l&&(l="")}s=o({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=o({},s,{value:void 0});else if("option"===a){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(s.children);if(null!=u){var d=null!=s.value?s.value+"":c;if(l=!1,Array.isArray(u)){for(var p=0;p<u.length;p++)if(""+u[p]===d){l=!0;break}}else l=""+u===d;s=o({selected:void 0,children:void 0},s,{selected:l,children:c})}}for(w in(l=s)&&(te[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML)&&i("137",a,""),null!=l.dangerouslySetInnerHTML&&(null!=l.children&&i("60"),"object"==typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML||i("61")),null!=l.style&&"object"!=typeof l.style&&i("62","")),l=s,u=this.makeStaticMarkup,c=1===this.stack.length,d="<"+e.type,l)if(pe.call(l,w)){var h=l[w];if(null!=h){if("style"===w){p=void 0;var f="",m="";for(p in h)if(h.hasOwnProperty(p)){var g=0===p.indexOf("--"),v=h[p];if(null!=v){var y=p;if(de.hasOwnProperty(y))y=de[y];else{var b=y.replace(re,"-$1").toLowerCase().replace(ie,"-ms-");y=de[y]=b}f+=m+y+":",m=p,f+=g=null==v||"boolean"==typeof v||""===v?"":g||"number"!=typeof v||0===v||ne.hasOwnProperty(m)&&ne[m]?(""+v).trim():v+"px",m=";"}}h=f||null}p=null;e:if(g=a,v=l,-1===g.indexOf("-"))g="string"==typeof v.is;else switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":g=!1;break e;default:g=!0}g?he.hasOwnProperty(w)||(p=R(p=w)&&null!=h?p+'="'+F(h)+'"':""):(g=w,p=h,h=P.hasOwnProperty(g)?P[g]:null,(v="style"!==g)&&(v=null!==h?0===h.type:2<g.length&&("o"===g[0]||"O"===g[0])&&("n"===g[1]||"N"===g[1])),v||M(g,p,h,!1)?p="":null!==h?(g=h.attributeName,p=3===(h=h.type)||4===h&&!0===p?g+'=""':g+'="'+F(p)+'"'):p=R(g)?g+'="'+F(p)+'"':""),p&&(d+=" "+p)}}u||c&&(d+=' data-reactroot=""');var w=d;l="",ee.hasOwnProperty(a)?w+="/>":(w+=">",l="</"+e.type+">");e:{if(null!=(u=s.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=s.children)||"number"==typeof u){u=F(u);break e}u=null}return null!=u?(s=[],le[a]&&"\n"===u.charAt(0)&&(w+="\n"),w+=u):s=ae(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?Z(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),ve={renderToString:function(e){e=new ge(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new ge(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){i("207")},renderToStaticNodeStream:function(){i("208")},version:"16.8.6"},ye={default:ve},be=ye&&ve||ye;e.exports=be.default||be},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};t.__esModule=!0;var a=n(0),s=n(7),l=n(37),u=n(38),c=n(17),d=n(39),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:[]},t.ref=null,t.htmlProps=null,t.mainId="tabulator-"+ +new Date+"-"+Math.floor(9999999*Math.random()),t.table=null,t.pickValidHTMLProps=function(){t.htmlProps||(t.htmlProps=l.pickHTMLProps(t.props),delete t.htmlProps.data,delete t.htmlProps.columns)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=s.findDOMNode(this.ref),t=this,n=this.props,o=n.columns,r=n.data,a=n.options,l=u.propsToOptions(this.props);new d(e,i({columns:o},l,{layout:"fitColumns",tableBuilding:function(){t.table=this,t.props.tableBuilding&&t.props.tableBuilding()},dataLoaded:function(){t.props.dataLoaded&&t.props.dataLoaded()}},a,{data:r})),r&&r.length>0&&this.setState({data:r})},t.prototype.componentWillUnmount=function(){this.table.destroy()},t.prototype.componentWillReceiveProps=function(e){var t=this;c.isSameArray(this.state.data,e.data)||this.setState({data:e.data},function(){t.table.setData(t.state.data)})},t.prototype.render=function(){var e=this;this.pickValidHTMLProps();var t=this.props.className;return a.createElement("div",i({ref:function(t){return e.ref=t},"data-instance":this.mainId},this.htmlProps,{className:t}))},t}(a.Component);t.default=p},function(e,t,n){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0;var a=n(0),s=n(36),l=n(78),u=n(79),c=n(84);var d=[{title:"Name",field:"name",width:150},{title:"Age",field:"age",align:"left",formatter:"progress"},{title:"Favourite Color",field:"color"},{title:"Date Of Birth",field:"dob"},{title:"Rating",field:"rating",align:"center",formatter:"star"},{title:"Passed?",field:"passed",align:"center",formatter:"tickCross"},{title:"Custom",field:"custom",align:"center",formatter:n(17).reactFormatter(a.createElement(function(e){var t=e.cell._cell.row.data;return a.createElement("button",{onClick:function(){return alert(t.name)}},"Show")},null))}],p=[{id:1,name:"Oli Bob",age:"12",color:"red",dob:"01/01/1980",rating:5,passed:!0,pets:["cat","dog"]},{id:2,name:"Mary May",age:"1",color:"green",dob:"12/05/1989",rating:4,passed:!0,pets:["cat"]},{id:3,name:"Christine Lobowski",age:"42",color:"green",dob:"10/05/1985",rating:4,passed:!1},{id:4,name:"Brendon Philips",age:"125",color:"red",dob:"01/08/1980",rating:4.5,passed:!0},{id:5,name:"Margret Marmajuke",age:"16",color:"yellow",dob:"07/01/1999",rating:4,passed:!1},{id:6,name:"Van Ng",age:"37",color:"green",dob:"06/10/1982",rating:4,passed:!0,pets:["dog","fish"]},{id:7,name:"Duc Ng",age:"37",color:"yellow",dob:"10/10/1982",rating:4,passed:!0,pets:["dog"]}],h=((r={})[""]="&nbsp;",r.red="red",r.green="green",r.yellow="yellow",r),f=[{title:"Name",field:"name",width:150,editor:"input",headerFilter:"input"},{title:"Age",field:"age",align:"left",formatter:"progress",editor:"progress"},{title:"Favourite Color",field:"color",editor:"select",editorParams:{allowEmpty:!0,showListOnEmpty:!0,values:h},headerFilter:"select",headerFilterParams:{values:h}},{title:"Date Of Birth",field:"dob",editor:l.default,editorParams:{format:"MM/dd/yyyy"}},{title:"Pets",field:"pets",editor:u.default,editorParams:{values:[{id:"cat",name:"cat"},{id:"dog",name:"dog"},{id:"fish",name:"fish"}]},formatter:c.default,formatterParams:{style:"PILL"}},{title:"Passed?",field:"passed",align:"center",formatter:"tickCross",editor:!0}],m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:[]},t.ref=null,t.rowClick=function(e,n){console.log("ref table: ",t.ref.table),console.log("rowClick id: ${row.getData().id}",n,e)},t.setData=function(){t.setState({data:p})},t.clearData=function(){t.setState({data:[]})},t}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",null,a.createElement(s.default,{ref:function(t){return e.ref=t},columns:d,data:p,rowClick:this.rowClick,options:{height:150,movableRows:!0},"data-custom-attr":"test-custom-attribute",className:"custom-css-class"}),a.createElement("h3",null,"Asynchronous data: (e.g. fetch) - ",a.createElement("button",{onClick:this.setData},"Set Data")," ",a.createElement("button",{onClick:this.clearData},"Clear")),a.createElement(s.default,{columns:d,data:this.state.data}),a.createElement("h3",null,"Editable Table"),a.createElement(s.default,{columns:f,data:p,cellEdited:function(e){return console.log("cellEdited",e)},dataEdited:function(e){return console.log("dataEdited",e)},footerElement:a.createElement("span",null,"Footer")}),a.createElement("p",null,a.createElement("a",{href:"https://github.com/ngduc/react-tabulator",target:"_blank"},"Back to: Github Repo: react-tabulator")),a.createElement("p",null,a.createElement("a",{href:"http://tabulator.info/examples/4.0",target:"_blank"},"More Tabulator's Examples")))},t}(a.Component);t.default=m},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0;var i=n(0),a=n(7),s=n(86),l={width:"100%",height:"100%",fontSize:"1em",fontFamily:"inherit"},u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={value:""},t.ref=null,t.format=t.props.editorParams.format||"MM/dd/yyyy",t.setValueOnSuccess=function(e){void 0===e&&(e=t.state.value);var n=t.props.success,o=e;o.indexOf("-")>0&&(o=s.format(e,t.format)),n(o)},t.onChange=function(e){var n=e.target.value;t.setState({value:n})},t.onKeyPress=function(e){var n=t.props.cancel;13===e.keyCode?t.setValueOnSuccess():27===e.keyCode&&n()},t.onBlur=function(){t.setValueOnSuccess()},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onRendered(function(){var t=e.props.cell.getValue();e.setState({value:t}),e.ref.focus()})},t.prototype.render=function(){var e=this,t=this.props.cell,n=s.parse(t.getValue(),this.format,new Date,{awareOfUnicodeTokens:!0}),o=s.format(n,"yyyy-MM-dd");return i.createElement("input",{type:"date",ref:function(t){return e.ref=t},defaultValue:o,onBlur:this.onBlur,onChange:this.onChange,onKeyUp:this.onKeyPress,style:l})},t}(i.Component);t.default=function(e,t,n,o,r){var s=document.createElement("div");return s.style.height="100%",a.render(i.createElement(u,{cell:e,onRendered:t,success:n,cancel:o,editorParams:r}),s),s}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0;var i=n(0),a=n(7),s=n(17),l=n(80),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={value:"",values:[],autofocus:!1},t.ref=null,t.setValueOnSuccess=function(e){void 0===e&&(e=t.state.values);var n=t.props,o=n.success;n.cancel;o(e)},t.handleDelete=function(e){var n=t.state.values.filter(function(t,n){return n!==e});t.setState({values:n},function(){t.setValueOnSuccess(n)})},t.handleAddition=function(e){var n=t.state.values;e.name&&(n.push({id:e.name,name:e.name}),t.setState({values:n},function(){t.setValueOnSuccess(n)}))},t.handleBlur=function(){var e=t.props.cancel,n=t.ref.input.input.value;if(n){var o=s.clone(t.state.values);o.push({id:n,name:n}),t.setValueOnSuccess(o)}else e();var r=a.findDOMNode(t.ref);r&&r.parentElement.parentElement.parentElement&&(r.parentElement.parentElement.parentElement.style.overflow="hidden")},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.onRendered(function(){var t=a.findDOMNode(e.ref);t.style.zIndex=1,t.parentElement.parentElement.parentElement.style.overflow="inherit",t.querySelector("input").focus();var n=(e.props.cell.getValue()||[]).map(function(e){return"string"==typeof e?{id:e,name:e}:e});e.setState({values:n})})},t.prototype.render=function(){var e=this,t=this.props.editorParams,n=this.state.values,o=t.values;return i.createElement("div",null,i.createElement(l,{ref:function(t){return e.ref=t},placeholder:"Select or Type",tags:n,suggestions:o,allowNew:!0,autoresize:!0,autofocus:this.state.autofocus,handleAddition:this.handleAddition,handleDelete:this.handleDelete,handleBlur:this.handleBlur,minQueryLength:0}))},t}(i.Component);t.default=function(e,t,n,o,r){var s=document.createElement("div");return s.style.height="100%",a.render(i.createElement(u,{cell:e,onRendered:t,success:n,cancel:o,editorParams:r}),s),s}},function(e,t,n){"use strict";var o=n(0),r=n(3),i=n(81),a=n(82),s=n(83),l=13,u=9,c=8,d=38,p=40,h={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled"},f=function(e){function t(t){e.call(this,t),this.state={query:"",focused:!1,expandable:!1,selectedIndex:-1,classNames:Object.assign({},h,this.props.classNames)},this.inputEventHandlers={onChange:function(){},onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleInput.bind(this),onKeyDown:this.handleKeyDown.bind(this)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentWillReceiveProps=function(e){this.setState({classNames:Object.assign({},h,e.classNames)})},t.prototype.handleInput=function(e){var t=e.target.value;this.props.handleInputChange&&this.props.handleInputChange(t),this.setState({query:t})},t.prototype.handleKeyDown=function(e){var t=this.state,n=t.query,o=t.selectedIndex,r=this.props,i=r.delimiters,a=r.delimiterChars;(i.indexOf(e.keyCode)>-1||a.indexOf(e.key)>-1)&&((n||o>-1)&&e.preventDefault(),this.handleDelimiter()),e.keyCode===c&&0===n.length&&this.props.allowBackspace&&this.deleteTag(this.props.tags.length-1),e.keyCode===d&&(e.preventDefault(),o<=0?this.setState({selectedIndex:this.suggestions.state.options.length-1}):this.setState({selectedIndex:o-1})),e.keyCode===p&&(e.preventDefault(),this.setState({selectedIndex:(o+1)%this.suggestions.state.options.length}))},t.prototype.handleDelimiter=function(){var e=this.state,t=e.query,n=e.selectedIndex;if(t.length>=this.props.minQueryLength){var o=this.suggestions.state.options.findIndex(function(e){return 0===e.name.search(new RegExp("^"+t+"$","i"))}),r=-1===n?o:n;r>-1?this.addTag(this.suggestions.state.options[r]):this.props.allowNew&&this.addTag({name:t})}},t.prototype.handleClick=function(e){document.activeElement!==e.target&&this.input.input.focus()},t.prototype.handleBlur=function(){this.setState({focused:!1,selectedIndex:-1}),this.props.handleBlur&&this.props.handleBlur(),this.props.addOnBlur&&this.handleDelimiter()},t.prototype.handleFocus=function(){this.setState({focused:!0}),this.props.handleFocus&&this.props.handleFocus()},t.prototype.addTag=function(e){e.disabled||("function"!=typeof this.props.handleValidate||this.props.handleValidate(e))&&(this.props.handleAddition(e),this.setState({query:"",selectedIndex:-1}))},t.prototype.deleteTag=function(e){this.props.handleDelete(e),this.props.clearInputOnDelete&&""!==this.state.query&&this.setState({query:""})},t.prototype.render=function(){var e=this,t=this.props.tagComponent||i,n=this.props.tags.map(function(n,r){return o.createElement(t,{key:r,tag:n,classNames:e.state.classNames,onDelete:e.deleteTag.bind(e,r)})}),r=this.state.focused&&this.state.query.length>=this.props.minQueryLength,l=[this.state.classNames.root];return this.state.focused&&l.push(this.state.classNames.rootFocused),o.createElement("div",{className:l.join(" "),onClick:this.handleClick.bind(this)},o.createElement("div",{className:this.state.classNames.selected,"aria-live":"polite","aria-relevant":"additions removals"},n),o.createElement("div",{className:this.state.classNames.search},o.createElement(a,Object.assign({},this.state,{inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,ref:function(t){e.input=t},listboxId:"ReactTags-listbox",autofocus:this.props.autofocus,autoresize:this.props.autoresize,expandable:r,placeholder:this.props.placeholder})),o.createElement(s,Object.assign({},this.state,{ref:function(t){e.suggestions=t},listboxId:"ReactTags-listbox",expandable:r,suggestions:this.props.suggestions,suggestionsFilter:this.props.suggestionsFilter,addTag:this.addTag.bind(this),maxSuggestionsLength:this.props.maxSuggestionsLength}))))},t}(o.Component);f.defaultProps={tags:[],placeholder:"Add new tag",suggestions:[],suggestionsFilter:null,autofocus:!0,autoresize:!0,delimiters:[u,l],delimiterChars:[],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,tagComponent:null,inputAttributes:{},addOnBlur:!1,clearInputOnDelete:!0},f.propTypes={tags:r.arrayOf(r.object),placeholder:r.string,suggestions:r.arrayOf(r.object),suggestionsFilter:r.func,autofocus:r.bool,autoresize:r.bool,delimiters:r.arrayOf(r.number),delimiterChars:r.arrayOf(r.string),handleDelete:r.func.isRequired,handleAddition:r.func.isRequired,handleInputChange:r.func,handleFocus:r.func,handleBlur:r.func,handleValidate:r.func,minQueryLength:r.number,maxSuggestionsLength:r.number,classNames:r.object,allowNew:r.bool,allowBackspace:r.bool,tagComponent:r.oneOfType([r.func,r.element]),inputAttributes:r.object,addOnBlur:r.bool,clearInputOnDelete:r.bool},e.exports=f},function(e,t,n){"use strict";var o=n(0);e.exports=function(e){return o.createElement("button",{type:"button",className:e.classNames.selectedTag,title:"Click to remove tag",onClick:e.onDelete},o.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}},function(e,t,n){"use strict";var o=n(0),r={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},i=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing"],a=function(e){function t(t){e.call(this,t),this.state={inputWidth:null}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth()),this.props.autofocus&&this.input.focus()},t.prototype.componentDidUpdate=function(){this.updateInputWidth()},t.prototype.copyInputStyles=function(){var e=this,t=window.getComputedStyle(this.input);i.forEach(function(n){e.sizer.style[n]=t[n]})},t.prototype.updateInputWidth=function(){var e;this.props.autoresize&&(e=Math.ceil(this.sizer.scrollWidth)+2),e!==this.state.inputWidth&&this.setState({inputWidth:e})},t.prototype.render=function(){var e=this,t=this.props,n=t.inputAttributes,i=t.inputEventHandlers,a=t.query,s=t.placeholder,l=t.expandable,u=t.listboxId,c=t.selectedIndex;return o.createElement("div",{className:this.props.classNames.searchInput},o.createElement("input",Object.assign({},n,i,{ref:function(t){e.input=t},value:a,placeholder:s,role:"combobox","aria-autocomplete":"list","aria-label":s,"aria-owns":u,"aria-activedescendant":c>-1?u+"-"+c:null,"aria-expanded":l,style:{width:this.state.inputWidth}})),o.createElement("div",{ref:function(t){e.sizer=t},style:r},a||s))},t}(o.Component);e.exports=a},function(e,t,n){"use strict";var o=n(0);function r(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function i(e,t){if(t){var n=RegExp(r(t),"gi");e=e.replace(n,"<mark>$&</mark>")}return{__html:e}}function a(e,t,n,o){if(!o){var i=new RegExp("(?:^|\\s)"+r(e),"i");o=function(e){return i.test(e.name)}}return t.filter(function(t){return o(t,e)}).slice(0,n)}var s=function(e){function t(t){e.call(this,t),this.state={options:a(this.props.query,this.props.suggestions,this.props.maxSuggestionsLength,this.props.suggestionsFilter)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentWillReceiveProps=function(e){this.setState({options:a(e.query,e.suggestions,e.maxSuggestionsLength,e.suggestionsFilter)})},t.prototype.handleMouseDown=function(e,t){t.preventDefault(),this.props.addTag(e)},t.prototype.render=function(){var e=this;if(!this.props.expandable||!this.state.options.length)return null;var t=this.state.options.map(function(t,n){var r=e.props.listboxId+"-"+n,a=[];return e.props.selectedIndex===n&&a.push(e.props.classNames.suggestionActive),t.disabled&&a.push(e.props.classNames.suggestionDisabled),o.createElement("li",{id:r,key:r,role:"option",className:a.join(" "),"aria-disabled":!0===t.disabled,onMouseDown:e.handleMouseDown.bind(e,t)},o.createElement("span",{dangerouslySetInnerHTML:i(t.name,e.props.query)}))});return o.createElement("div",{className:this.props.classNames.suggestions},o.createElement("ul",{role:"listbox",id:this.props.listboxId},t))},t}(o.Component);e.exports=s},function(e,t,n){"use strict";t.__esModule=!0;var o=n(0),r=n(7),i=function(){var e=document.createElement("div");return e.style.height="100%",e};t.default=function(e,t,n){var a=t.style||"",s=e.getValue()||[],l=s&&s.length>0&&"string"==typeof s[0]?o.createElement("span",null,s.join(", ")):o.createElement("span",null);"PILL"===a&&(l=o.createElement("div",null,s.map(function(e){return"string"==typeof e?o.createElement("span",{key:e},e):o.createElement("span",{key:e.name},e.name)})));var u=i();return u.className="multi-value-formatter-content",u.title=s&&s.length>0&&"string"==typeof s[0]?s.join(", "):"",r.render(l,u),u}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function o(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.r(t);var r=6e4;function i(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var o=t.getTime()%r;return n*r+o}var a=36e5,s=6e4,l=2,u={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function c(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?l:o(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var c=function(e){var t,n={},o=e.split(u.dateTimeDelimeter);u.plainTime.test(o[0])?(n.date=null,t=o[0]):(n.date=o[0],t=o[1],u.timeZoneDelimeter.test(n.date)&&(n.date=e.split(u.timeZoneDelimeter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=u.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),p=function(e,t){var n,o=u.YYY[t],r=u.YYYYY[t];if(n=u.YYYY.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=u.YY.exec(e)||o.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(c.date,r),h=p.year,b=function(e,t){if(null===t)return null;var n,o,r,i;if(0===e.length)return(o=new Date(0)).setUTCFullYear(t),o;if(n=u.MM.exec(e))return o=new Date(0),r=parseInt(n[1],10)-1,m(t,r)?(o.setUTCFullYear(t,r),o):new Date(NaN);if(n=u.DDD.exec(e)){o=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=f(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(o.setUTCFullYear(t,0,a),o):new Date(NaN)}if(n=u.MMDD.exec(e)){o=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return m(t,r,s)?(o.setUTCFullYear(t,r,s),o):new Date(NaN)}if(n=u.Www.exec(e))return i=parseInt(n[1],10)-1,g(t,i)?d(t,i):new Date(NaN);if(n=u.WwwD.exec(e)){i=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return g(t,i,l)?d(t,i,l):new Date(NaN)}return null}(p.restDateString,h);if(isNaN(b))return new Date(NaN);if(b){var w,E=b.getTime(),C=0;if(c.time&&(C=function(e){var t,n,o;if(t=u.HH.exec(e))return v(n=parseFloat(t[1].replace(",",".")))?n%24*a:NaN;if(t=u.HHMM.exec(e))return n=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")),v(n,o)?n%24*a+o*s:NaN;if(t=u.HHMMSS.exec(e)){n=parseInt(t[1],10),o=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return v(n,o,r)?n%24*a+o*s+1e3*r:NaN}return null}(c.time),isNaN(C)))return new Date(NaN);if(c.timezone){if(w=function(e){var t,n,o;if(t=u.timezoneZ.exec(e))return 0;if(t=u.timezoneHH.exec(e))return y(o=parseInt(t[2],10))?(n=o*a,"+"===t[1]?-n:n):NaN;if(t=u.timezoneHHMM.exec(e)){o=parseInt(t[2],10);var r=parseInt(t[3],10);return y(o,r)?(n=o*a+r*s,"+"===t[1]?-n:n):NaN}return 0}(c.timezone),isNaN(w))return new Date(NaN)}else w=i(new Date(E+C)),w=i(new Date(E+C+w));return new Date(E+C+w)}return new Date(NaN)}function d(e,t,n){t=t||0,n=n||0;var o=new Date(0);o.setUTCFullYear(e,0,4);var r=7*t+n+1-(o.getUTCDay()||7);return o.setUTCDate(o.getUTCDate()+r),o}var p=[31,28,31,30,31,30,31,31,30,31,30,31],h=[31,29,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}function m(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var o=f(e);if(o&&n>h[t])return!1;if(!o&&n>p[t])return!1}return!0}function g(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function v(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}function y(e,t){return null==t||!(t<0||t>59)}function b(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setDate(r.getDate()+i),r}function w(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n).getTime(),i=o(t);return new Date(r+i)}var E=36e5;function C(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return w(e,o(t)*E,n)}function x(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=c(e,n),u=l.getDay(),d=(u<s?7:0)+u-s;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function T(e){e=e||{};var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function k(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=T(t);return n.weekStartsOn=1,x(e,n)}function S(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear(),r=new Date(0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);var i=k(r,t),a=new Date(0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);var s=k(a,t);return n.getTime()>=i.getTime()?o+1:n.getTime()>=s.getTime()?o:o-1}function D(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=S(e,t),o=new Date(0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),k(o,t)}function R(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setHours(0,0,0,0),n}var M=864e5;function _(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=R(e,n),r=R(t,n),a=o.getTime()-i(o),s=r.getTime()-i(r);return Math.round((a-s)/M)}function P(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=_(r,D(r,n),n),s=new Date(0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),(r=D(s,n)).setDate(r.getDate()+a),r}function L(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=o(t);return P(e,S(e,n)+r,n)}var O=6e4;function N(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return w(e,o(t)*O,n)}function F(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear(),r=n.getMonth(),i=new Date(0);return i.setFullYear(o,r+1,0),i.setHours(0,0,0,0),i.getDate()}function A(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=r.getMonth()+i,s=new Date(0);s.setFullYear(r.getFullYear(),a,1),s.setHours(0,0,0,0);var l=F(s,n);return r.setMonth(a,Math.min(l,r.getDate())),r}function I(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return A(e,3*o(t),n)}function H(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return w(e,1e3*o(t),n)}function z(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return b(e,7*o(t),n)}function j(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return A(e,12*o(t),n)}function U(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=e||{},r=t||{},i=c(o.start,n).getTime(),a=c(o.end,n).getTime(),s=c(r.start,n).getTime(),l=c(r.end,n).getTime();if(!(i<=a&&s<=l))throw new RangeError("Invalid interval");return i<l&&s<a}function B(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n);if(isNaN(o))return NaN;var r,i,a=o.getTime();return(null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t)).forEach(function(e,t){var o=c(e,n);if(isNaN(o))return r=NaN,void(i=NaN);var s=Math.abs(a-o.getTime());(null==r||s<i)&&(r=t,i=s)}),r}function W(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n);if(isNaN(o))return new Date(NaN);var r,i,a=o.getTime();return(null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t)).forEach(function(e){var t=c(e,n);if(isNaN(t))return r=new Date(NaN),void(i=NaN);var o=Math.abs(a-t.getTime());(null==r||o<i)&&(r=t,i=o)}),r}function q(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=o.getTime()-r.getTime();return i<0?-1:i>0?1:i}function G(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=o.getTime()-r.getTime();return i>0?-1:i<0?1:i}function V(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return S(e,n)-S(t,n)}var Y=6048e5;function $(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=k(e,n),r=k(t,n),a=o.getTime()-i(o),s=r.getTime()-i(r);return Math.round((a-s)/Y)}function X(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return 12*(o.getFullYear()-r.getFullYear())+(o.getMonth()-r.getMonth())}function K(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return Math.floor(n.getMonth()/3)+1}function Q(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return 4*(o.getFullYear()-r.getFullYear())+(K(o,n)-K(r,n))}var J=6048e5;function Z(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=x(e,n),r=x(t,n),a=o.getTime()-i(o),s=r.getTime()-i(r);return Math.round((a-s)/J)}function ee(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getFullYear()-r.getFullYear()}function te(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=q(o,r,n),a=Math.abs(_(o,r,n));o.setDate(o.getDate()-i*a);var s=i*(a-(q(o,r,n)===-i));return 0===s?0:s}function ne(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getTime()-r.getTime()}var oe=36e5;function re(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=ne(e,t,n)/oe;return o>0?Math.floor(o):Math.ceil(o)}function ie(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return L(e,-o(t),n)}function ae(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=q(o,r,n),a=Math.abs(V(o,r,n)),s=i*(a-(q(o=ie(o,i*a,n),r,n)===-i));return 0===s?0:s}var se=6e4;function le(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=ne(e,t,n)/se;return o>0?Math.floor(o):Math.ceil(o)}function ue(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=q(o,r,n),a=Math.abs(X(o,r,n));o.setMonth(o.getMonth()-i*a);var s=i*(a-(q(o,r,n)===-i));return 0===s?0:s}function ce(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=ue(e,t,n)/3;return o>0?Math.floor(o):Math.ceil(o)}function de(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=ne(e,t,n)/1e3;return o>0?Math.floor(o):Math.ceil(o)}function pe(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=te(e,t,n)/7;return o>0?Math.floor(o):Math.ceil(o)}function he(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),i=q(o,r,n),a=Math.abs(ee(o,r,n));o.setFullYear(o.getFullYear()-i*a);var s=i*(a-(q(o,r,n)===-i));return 0===s?0:s}function fe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},o=c(n.start,t),r=c(n.end,t).getTime();if(!(o.getTime()<=r))throw new RangeError("Invalid interval");var i=[],a=o;for(a.setHours(0,0,0,0);a.getTime()<=r;)i.push(c(a,t)),a.setDate(a.getDate()+1);return i}function me(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},o=c(n.start,t),r=c(n.end,t),i=r.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=x(o,t),s=x(r,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],u=a;u.getTime()<=i;)u.setHours(0),l.push(c(u,t)),(u=z(u,1)).setHours(15);return l}function ge(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 0===c(e,t).getDay()}function ve(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t).getDay();return 0===n||6===n}function ye(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=e||{},u=c(l.start,t),d=c(l.end,t).getTime();if(!(u.getTime()<=d))throw new RangeError("Invalid interval");for(var p=fe(l),h=[],f=0;f++<p.length;){var m=p[f];ve(m)&&(h.push(new Date(m)),ge(m)&&(f+=5))}return h}function be(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setDate(1),n.setHours(0,0,0,0),n}function we(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getMonth();return n.setFullYear(n.getFullYear(),o+1,0),n.setHours(23,59,59,999),n}function Ee(e,t){if(arguments.length<1)throw new TypeError("1 arguments required, but only "+arguments.length+" present");return ye({start:be(e,t),end:we(e,t)})}function Ce(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=new Date(0);return o.setFullYear(n.getFullYear(),0,1),o.setHours(0,0,0,0),o}function xe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear();return n.setFullYear(o+1,0,0),n.setHours(23,59,59,999),n}function Te(e,t){if(arguments.length<1)throw new TypeError("1 arguments required, but only "+arguments.length+" present");return ye({start:Ce(e,t),end:xe(e,t)})}function ke(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setHours(23,59,59,999),n}function Se(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear(),r=9+10*Math.floor(o/10);return n.setFullYear(r,11,31),n.setHours(23,59,59,999),n}function De(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setMinutes(59,59,999),n}function Re(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=c(e,n),u=l.getDay(),d=6+(u<s?-7:0)-(u-s);return l.setDate(l.getDate()+d),l.setHours(23,59,59,999),l}function Me(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=T(t);return n.weekStartsOn=1,Re(e,n)}function _e(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=S(e,t),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=k(o,t);return r.setMilliseconds(r.getMilliseconds()-1),r}function Pe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setSeconds(59,999),n}function Le(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getMonth(),r=o-o%3+3;return n.setMonth(r,0),n.setHours(23,59,59,999),n}function Oe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setMilliseconds(999),n}function Ne(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return!isNaN(n)}var Fe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ae(e){return function(t){var n=t||{},o=n.width?String(n.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}var Ie={date:Ae({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ae({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ae({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},He={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ze(e){return function(t,n){var o=n||{},r=o.width?String(o.width):e.defaultWidth;return("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues?e.formattingValues[r]||e.formattingValues[e.defaultFormattingWidth]:e.values[r]||e.values[e.defaultWidth])[e.argumentCallback?e.argumentCallback(t):t]}}function je(e){return function(t,n){var o=String(t),r=n||{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=o.match(a);if(!s)return null;var l,u=s[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?c.findIndex(function(e){return e.test(o)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(c,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(l):l,{value:l=r.valueCallback?r.valueCallback(l):l,rest:o.slice(u.length)}}}var Ue,Be={formatDistance:function(e,t,n){var o;return n=n||{},o="string"==typeof Fe[e]?Fe[e]:1===t?Fe[e].one:Fe[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+o:o+" ago":o},formatLong:Ie,formatRelative:function(e,t,n,o){return He[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ze({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ze({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ze({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ze({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ze({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaulFormattingWidth:"wide"})},match:{ordinalNumber:(Ue={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),o=t||{},r=n.match(Ue.matchPattern);if(!r)return null;var i=r[0],a=n.match(Ue.parsePattern);if(!a)return null;var s=Ue.valueCallback?Ue.valueCallback(a[0]):a[0];return{value:s=o.valueCallback?o.valueCallback(s):s,rest:n.slice(i.length)}}),era:je({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:je({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:je({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:je({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:je({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},We=864e5;function qe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getUTCDay(),r=(o<1?7:0)+o-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Ge(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(o+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r,t),a=new Date(0);a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0);var s=qe(a,t);return n.getTime()>=i.getTime()?o+1:n.getTime()>=s.getTime()?o:o-1}var Ve=6048e5;function Ye(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=qe(n,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Ge(e,t),o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),qe(o,t)}(n,t).getTime();return Math.round(o/Ve)+1}function $e(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=c(e,n),u=l.getUTCDay(),d=(u<s?7:0)+u-s;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}function Xe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),r=n.getUTCFullYear(),i=t||{},a=i.locale,s=a&&a.options&&a.options.firstWeekContainsDate,l=null==s?1:o(s),u=null==i.firstWeekContainsDate?l:o(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,u),d.setUTCHours(0,0,0,0);var p=$e(d,t),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=$e(h,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}var Ke=6048e5;function Qe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),r=$e(n,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=null==i?1:o(i),s=null==n.firstWeekContainsDate?a:o(n.firstWeekContainsDate),l=Xe(e,t),u=new Date(0);return u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0),$e(u,t)}(n,t).getTime();return Math.round(r/Ke)+1}var Je="midnight",Ze="noon",et="morning",tt="afternoon",nt="evening",ot="night";function rt(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}function it(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+rt(Math.floor(r/60),2)+n+rt(r%60,2)}function at(e,t){return e%60==0?(e>0?"-":"+")+rt(Math.abs(e)/60,2):it(e,t)}function st(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+rt(i,2)}var lt={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n,o){var r=e.getUTCFullYear(),i=r>0?r:1-r;return"yy"===t?rt(i%100,2):"yo"===t?n.ordinalNumber(i,{unit:"year"}):rt(i,t.length)},Y:function(e,t,n,o){var r=Xe(e,o),i=r>0?r:1-r;return"YY"===t?rt(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):rt(i,t.length)},R:function(e,t,n,o){return rt(Ge(e,o),t.length)},u:function(e,t,n,o){return rt(e.getUTCFullYear(),t.length)},Q:function(e,t,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n,o){var r=e.getUTCMonth();switch(t){case"M":return String(r+1);case"MM":return rt(r+1,2);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n,o){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Qe(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},I:function(e,t,n,o){var r=Ye(e,o);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},d:function(e,t,n,o){var r=e.getUTCDate();return"do"===t?n.ordinalNumber(r,{unit:"date"}):rt(r,t.length)},D:function(e,t,n,o){var r=function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=o-n.getTime();return Math.floor(r/We)+1}(e,o);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,t.length)},E:function(e,t,n,o){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return rt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return rt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n,o){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Ze:0===r?Je:r/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?nt:r>=12?tt:r>=4?et:ot,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n,o){var r=e.getUTCHours()%12;return 0===r&&(r=12),"ho"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},H:function(e,t,n,o){var r=e.getUTCHours();return"Ho"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},K:function(e,t,n,o){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},k:function(e,t,n,o){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},m:function(e,t,n,o){var r=e.getUTCMinutes();return"mo"===t?n.ordinalNumber(r,{unit:"minute"}):rt(r,t.length)},s:function(e,t,n,o){var r=e.getUTCSeconds();return"so"===t?n.ordinalNumber(r,{unit:"second"}):rt(r,t.length)},S:function(e,t,n,o){var r=t.length,i=e.getUTCMilliseconds();return rt(Math.floor(i*Math.pow(10,r-3)),r)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return at(r);case"XXXX":case"XX":return it(r);case"XXXXX":case"XXX":default:return it(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return at(r);case"xxxx":case"xx":return it(r);case"xxxxx":case"xxx":default:return it(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+st(r,":");case"OOOO":default:return"GMT"+it(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+st(r,":");case"zzzz":default:return"GMT"+it(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return rt(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return rt((o._originalDate||e).getTime(),t.length)}};function ut(e,t,n){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function ct(e,t,n){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var dt={p:ct,P:function(e,t,n){var o,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return ut(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",ut(i,t)).replace("{{time}}",ct(a,t))}};function pt(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return w(e,-o(t),n)}var ht=["D","DD","YY","YYYY"];function ft(e){return-1!==ht.indexOf(e)}function mt(e){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+e+"` token; see: https://git.io/fxCyr")}var gt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yt=/^'(.*?)'?$/,bt=/''/g;function wt(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(t),a=n||{},s=a.locale||Be,l=s.options&&s.options.firstWeekContainsDate,u=null==l?1:o(l),d=null==a.firstWeekContainsDate?u:o(a.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=s.options&&s.options.weekStartsOn,h=null==p?0:o(p),f=null==a.weekStartsOn?h:o(a.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var m=c(e,a);if(!Ne(m,a))return"Invalid Date";var g=pt(m,i(m),a),v={firstWeekContainsDate:d,weekStartsOn:f,locale:s,_originalDate:m};return r.match(vt).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,dt[t])(e,s.formatLong,v):e}).join("").match(gt).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return e.match(yt)[1].replace(bt,"'");var n=lt[t];return n?(!a.awareOfUnicodeTokens&&ft(e)&&mt(e),n(g,e,s.localize,v)):e}).join("")}var Et=1440,Ct=2520,xt=43200,Tt=86400;function kt(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=n||{},r=o.locale||Be;if(!r.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=q(e,t,o);if(isNaN(a))return"Invalid Date";var s,l,u=T(o);u.addSuffix=Boolean(o.addSuffix),u.comparison=a,a>0?(s=c(t,o),l=c(e,o)):(s=c(e,o),l=c(t,o));var d,p=de(l,s,o),h=(i(l)-i(s))/1e3,f=Math.round((p-h)/60);if(f<2)return o.includeSeconds?p<5?r.formatDistance("lessThanXSeconds",5,u):p<10?r.formatDistance("lessThanXSeconds",10,u):p<20?r.formatDistance("lessThanXSeconds",20,u):p<40?r.formatDistance("halfAMinute",null,u):p<60?r.formatDistance("lessThanXMinutes",1,u):r.formatDistance("xMinutes",1,u):0===f?r.formatDistance("lessThanXMinutes",1,u):r.formatDistance("xMinutes",f,u);if(f<45)return r.formatDistance("xMinutes",f,u);if(f<90)return r.formatDistance("aboutXHours",1,u);if(f<Et){var m=Math.round(f/60);return r.formatDistance("aboutXHours",m,u)}if(f<Ct)return r.formatDistance("xDays",1,u);if(f<xt){var g=Math.round(f/Et);return r.formatDistance("xDays",g,u)}if(f<Tt)return d=Math.round(f/xt),r.formatDistance("aboutXMonths",d,u);if((d=ue(l,s,o))<12){var v=Math.round(f/xt);return r.formatDistance("xMonths",v,u)}var y=d%12,b=Math.floor(d/12);return y<3?r.formatDistance("aboutXYears",b,u):y<9?r.formatDistance("overXYears",b,u):r.formatDistance("almostXYears",b+1,u)}var St=1440,Dt=43200,Rt=525600;function Mt(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=n||{},r=o.locale||Be;if(!r.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var a=q(e,t,o);if(isNaN(a))return"Invalid Date";var s,l,u=T(o);u.addSuffix=Boolean(o.addSuffix),u.comparison=a,a>0?(s=c(t,o),l=c(e,o)):(s=c(e,o),l=c(t,o));var d,p=null==o.roundingMethod?"round":String(o.roundingMethod);if("floor"===p)d=Math.floor;else if("ceil"===p)d=Math.ceil;else{if("round"!==p)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");d=Math.round}var h,f=de(l,s,n),m=d((f-(i(l)-i(s))/1e3)/60);if("second"===(h=null==o.unit?m<1?"second":m<60?"minute":m<St?"hour":m<Dt?"day":m<Rt?"month":"year":String(o.unit)))return r.formatDistance("xSeconds",f,u);if("minute"===h)return r.formatDistance("xMinutes",m,u);if("hour"===h){var g=d(m/60);return r.formatDistance("xHours",g,u)}if("day"===h){var v=d(m/St);return r.formatDistance("xDays",v,u)}if("month"===h){var y=d(m/Dt);return r.formatDistance("xMonths",y,u)}if("year"===h){var b=d(m/Rt);return r.formatDistance("xYears",b,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function _t(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n),a=n||{},s=a.locale||Be;if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");if(!s.formatRelative)throw new RangeError("locale must contain formatRelative property");var l,u=_(o,r,a);if(isNaN(u))return"Invalid Date";l=u<-6?"other":u<-1?"lastWeek":u<0?"yesterday":u<1?"today":u<2?"tomorrow":u<7?"nextWeek":"other";var d=pt(o,i(o),a),p=pt(r,i(r),a);return wt(o,s.formatRelative(l,d,p,a),a)}function Pt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(1e3*o(e),t)}function Lt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getDate()}function Ot(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getDay()}function Nt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return _(n,Ce(n,t),t)+1}function Ft(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t).getFullYear();return n%400==0||n%4==0&&n%100!=0}function At(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return isNaN(n)?NaN:Ft(n,t)?366:365}function It(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t).getFullYear();return 10*Math.floor(n/10)}function Ht(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getHours()}function zt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t).getDay();return 0===n&&(n=7),n}var jt=6048e5;function Ut(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=k(n,t).getTime()-D(n,t).getTime();return Math.round(o/jt)+1}var Bt=6048e5;function Wt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=D(e,t),o=D(z(n,60,t),t).valueOf()-n.valueOf();return Math.round(o/Bt)}function qt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getMilliseconds()}function Gt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getMinutes()}function Vt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getMonth()}var Yt=864e5;function $t(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=e||{},r=t||{},i=c(o.start,n).getTime(),a=c(o.end,n).getTime(),s=c(r.start,n).getTime(),l=c(r.end,n).getTime();if(!(i<=a&&s<=l))throw new RangeError("Invalid interval");if(!(i<l&&s<a))return 0;var u=(l>a?a:l)-(s<i?i:s);return Math.ceil(u/Yt)}function Xt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getSeconds()}function Kt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getTime()}function Qt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Math.floor(Kt(e,t)/1e3)}function Jt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),r=n.getFullYear(),i=t||{},a=i.locale,s=a&&a.options&&a.options.firstWeekContainsDate,l=null==s?1:o(s),u=null==i.firstWeekContainsDate?l:o(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setFullYear(r+1,0,u),d.setHours(0,0,0,0);var p=x(d,t),h=new Date(0);h.setFullYear(r,0,u),h.setHours(0,0,0,0);var f=x(h,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function Zt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=null==i?1:o(i),s=null==n.firstWeekContainsDate?a:o(n.firstWeekContainsDate),l=Jt(e,t),u=new Date(0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),x(u,t)}var en=6048e5;function tn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=x(n,t).getTime()-Zt(n,t).getTime();return Math.round(o/en)+1}function nn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ot(be(e,t),t),u=(l<s?7-s:l)>Ot(e,t)?7-s:0;return Math.ceil((Lt(e,t)+u)/7)}function on(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getMonth();return n.setFullYear(n.getFullYear(),o+1,0),n.setHours(0,0,0,0),n}function rn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Z(on(e,t),be(e,t),t)+1}function an(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return c(e,t).getFullYear()}function sn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getTime()>r.getTime()}function ln(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getTime()<r.getTime()}function un(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function cn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getTime()===r.getTime()}function dn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 1===c(e,t).getDate()}function pn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 5===c(e,t).getDay()}function hn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return ke(n,t).getTime()===we(n,t).getTime()}function fn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 1===c(e,t).getDay()}function mn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=R(e,n),r=R(t,n);return o.getTime()===r.getTime()}function gn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setMinutes(0,0,0),n}function vn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=gn(e,n),r=gn(t,n);return o.getTime()===r.getTime()}function yn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=x(e,n),r=x(t,n);return o.getTime()===r.getTime()}function bn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=T(n);return o.weekStartsOn=1,yn(e,t,o)}function wn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=D(e,n),r=D(t,n);return o.getTime()===r.getTime()}function En(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setSeconds(0,0),n}function Cn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=En(e,n),r=En(t,n);return o.getTime()===r.getTime()}function xn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function Tn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getMonth(),r=o-o%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}function kn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=Tn(e,n),r=Tn(t,n);return o.getTime()===r.getTime()}function Sn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t);return n.setMilliseconds(0),n}function Dn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=Sn(e,n),r=Sn(t,n);return o.getTime()===r.getTime()}function Rn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=c(e,n),r=c(t,n);return o.getFullYear()===r.getFullYear()}function Mn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 6===c(e,t).getDay()}function _n(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 4===c(e,t).getDay()}function Pn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 2===c(e,t).getDay()}function Ln(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 3===c(e,t).getDay()}function On(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var o=t||{},r=c(e,n).getTime(),i=c(o.start,n).getTime(),a=c(o.end,n).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return r>=i&&r<=a}function Nn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear(),r=9+10*Math.floor(o/10);return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}function Fn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,a=null==i?0:o(i),s=null==n.weekStartsOn?a:o(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var l=c(e,t),u=l.getDay(),d=6+(u<s?-7:0)-(u-s);return l.setHours(0,0,0,0),l.setDate(l.getDate()+d),l}function An(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=T(t);return n.weekStartsOn=1,Fn(e,n)}function In(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=S(e,t),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=k(o,t);return r.setDate(r.getDate()-1),r}function Hn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getMonth(),r=o-o%3+3;return n.setMonth(r,0),n.setHours(0,0,0,0),n}function zn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear();return n.setFullYear(o+1,0,0),n.setHours(0,0,0,0),n}function jn(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n;return(null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e)).forEach(function(e){var o=c(e,t);(void 0===n||n<o||isNaN(o))&&(n=o)}),n}function Un(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n;return(null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e)).forEach(function(e){var o=c(e,t);(void 0===n||n>o||isNaN(o))&&(n=o)}),n}function Bn(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,s=null==a?0:o(a),l=null==r.weekStartsOn?s:o(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=c(e,n),d=o(t),p=((d%7+7)%7<l?7:0)+d-u.getUTCDay();return u.setUTCDate(u.getUTCDate()+p),u}var Wn=36e5,qn=6e4,Gn=1e3,Vn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Yn=/^([+-])(\d{2})(\d{2})?|Z/,$n=/^([+-])(\d{2})(\d{2})|Z/,Xn=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Kn=/^([+-])(\d{2}):(\d{2})|Z/,Qn=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Jn(e,t,n){var o=t.match(e);if(!o)return null;var r=parseInt(o[0],10);return{value:n?n(r):r,rest:t.slice(o[0].length)}}function Zn(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var o="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:o*(r*Wn+i*qn+a*Gn),rest:t.slice(n[0].length)}}function eo(e,t){return Jn(Vn.anyDigitsSigned,e,t)}function to(e,t,n){switch(e){case 1:return Jn(Vn.singleDigit,t,n);case 2:return Jn(Vn.twoDigits,t,n);case 3:return Jn(Vn.threeDigits,t,n);case 4:return Jn(Vn.fourDigits,t,n);default:return Jn(new RegExp("^\\d{1,"+e+"}"),t,n)}}function no(e,t,n){switch(e){case 1:return Jn(Vn.singleDigitSigned,t,n);case 2:return Jn(Vn.twoDigitsSigned,t,n);case 3:return Jn(Vn.threeDigitsSigned,t,n);case 4:return Jn(Vn.fourDigitsSigned,t,n);default:return Jn(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function oo(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ro(e,t){var n,o=t>0,r=o?t:1-t;if(r<=50)n=e||100;else{var i=r+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return o?n:1-n}var io=[31,28,31,30,31,30,31,31,30,31,30,31],ao=[31,29,31,30,31,30,31,31,30,31,30,31];function so(e){return e%400==0||e%4==0&&e%100!=0}var lo={G:{priority:140,parse:function(e,t,n,o){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n){return e.setUTCFullYear(1===t?10:-9,0,1),e.setUTCHours(0,0,0,0),e}},y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return to(4,e,r);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return to(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n){var o=Xe(e,n);if(t.isTwoDigitYear){var r=ro(t.year,o);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}var i=o>0?t.year:1-t.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}},Y:{priority:130,parse:function(e,t,n,o){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return to(4,e,r);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:r});default:return to(t.length,e,r)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n){var o=e.getUTCFullYear();if(t.isTwoDigitYear){var r=ro(t.year,o);return e.setUTCFullYear(r,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$e(e,n)}var i=o>0?t.year:1-t.year;return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$e(e,n)}},R:{priority:130,parse:function(e,t,n,o){return no("R"===t?4:t.length,e)},set:function(e,t,n){var o=new Date(0);return o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0),qe(o)}},u:{priority:130,parse:function(e,t,n,o){return no("u"===t?4:t.length,e)},set:function(e,t,n){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}},Q:{priority:120,parse:function(e,t,n,o){switch(t){case"Q":case"QQ":return to(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}},q:{priority:120,parse:function(e,t,n,o){switch(t){case"q":case"qq":return to(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}},M:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"M":return Jn(Vn.month,e,r);case"MM":return to(2,e,r);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}},L:{priority:110,parse:function(e,t,n,o){var r=function(e){return e-1};switch(t){case"L":return Jn(Vn.month,e,r);case"LL":return to(2,e,r);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:r});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}},w:{priority:100,parse:function(e,t,n,o){switch(t){case"w":return Jn(Vn.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n){return $e(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=Qe(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,t,n),n)}},I:{priority:100,parse:function(e,t,n,o){switch(t){case"I":return Jn(Vn.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n){return qe(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=Ye(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,t,n),n)}},d:{priority:90,parse:function(e,t,n,o){switch(t){case"d":return Jn(Vn.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return to(t.length,e)}},validate:function(e,t,n){var o=so(e.getUTCFullYear()),r=e.getUTCMonth();return o?t>=1&&t<=ao[r]:t>=1&&t<=io[r]},set:function(e,t,n){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e}},D:{priority:90,parse:function(e,t,n,o){switch(t){case"D":case"DD":return Jn(Vn.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return to(t.length,e)}},validate:function(e,t,n){return so(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e}},E:{priority:90,parse:function(e,t,n,o){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n){return(e=Bn(e,t,n)).setUTCHours(0,0,0,0),e}},e:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return to(t.length,e,r);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n){return(e=Bn(e,t,n)).setUTCHours(0,0,0,0),e}},c:{priority:90,parse:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return to(t.length,e,r);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:r});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n){return(e=Bn(e,t,n)).setUTCHours(0,0,0,0),e}},i:{priority:90,parse:function(e,t,n,o){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return to(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:r})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:r})||n.day(e,{width:"short",context:"formatting",valueCallback:r})||n.day(e,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n){return(e=function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=o(t);r%7==0&&(r-=7);var i=c(e,n),a=((r%7+7)%7<1?7:0)+r-i.getUTCDay();return i.setUTCDate(i.getUTCDate()+a),i}(e,t,n)).setUTCHours(0,0,0,0),e}},a:{priority:80,parse:function(e,t,n,o){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n){return e.setUTCHours(oo(t),0,0,0),e}},b:{priority:80,parse:function(e,t,n,o){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n){return e.setUTCHours(oo(t),0,0,0),e}},B:{priority:80,parse:function(e,t,n,o){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n){return e.setUTCHours(oo(t),0,0,0),e}},h:{priority:70,parse:function(e,t,n,o){switch(t){case"h":return Jn(Vn.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n){var o=e.getUTCHours()>=12;return o&&t<12?e.setUTCHours(t+12,0,0,0):o||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e}},H:{priority:70,parse:function(e,t,n,o){switch(t){case"H":return Jn(Vn.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n){return e.setUTCHours(t,0,0,0),e}},K:{priority:70,parse:function(e,t,n,o){switch(t){case"K":return Jn(Vn.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e}},k:{priority:70,parse:function(e,t,n,o){switch(t){case"k":return Jn(Vn.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n){var o=t<=24?t%24:t;return e.setUTCHours(o,0,0,0),e}},m:{priority:60,parse:function(e,t,n,o){switch(t){case"m":return Jn(Vn.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n){return e.setUTCMinutes(t,0,0),e}},s:{priority:50,parse:function(e,t,n,o){switch(t){case"s":return Jn(Vn.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return to(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n){return e.setUTCSeconds(t,0),e}},S:{priority:40,parse:function(e,t,n,o){return to(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,n){return e.setUTCMilliseconds(t),e}},X:{priority:20,parse:function(e,t,n,o){switch(t){case"X":return Zn(Yn,e);case"XX":return Zn($n,e);case"XXXX":return Zn(Xn,e);case"XXXXX":return Zn(Qn,e);case"XXX":default:return Zn(Kn,e)}},set:function(e,t,n){return new Date(e.getTime()-t)}},x:{priority:20,parse:function(e,t,n,o){switch(t){case"x":return Zn(Yn,e);case"xx":return Zn($n,e);case"xxxx":return Zn(Xn,e);case"xxxxx":return Zn(Qn,e);case"xxx":default:return Zn(Kn,e)}},set:function(e,t,n){return new Date(e.getTime()-t)}},t:{priority:10,parse:function(e,t,n,o){return eo(e)},set:function(e,t,n){return new Date(1e3*t)}},T:{priority:10,parse:function(e,t,n,o){return eo(e)},set:function(e,t,n){return new Date(t)}}},uo=20,co=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,po=/^'(.*?)'?$/,ho=/''/g,fo=/\S/;function mo(e,t,n,r){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var a=String(e),s=String(t),l=r||{},u=l.locale||Be;if(!u.match)throw new RangeError("locale must contain match property");var d=u.options&&u.options.firstWeekContainsDate,p=null==d?1:o(d),h=null==l.firstWeekContainsDate?p:o(l.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=u.options&&u.options.weekStartsOn,m=null==f?0:o(f),g=null==l.weekStartsOn?m:o(l.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===a?c(n,l):new Date(NaN);var v,y={firstWeekContainsDate:h,weekStartsOn:g,locale:u},b=[{priority:uo,set:go,index:0}],w=s.match(co);for(v=0;v<w.length;v++){var E=w[v];!l.awareOfUnicodeTokens&&ft(E)&&mt(E);var C=E[0],x=lo[C];if(x){var T=x.parse(a,E,u.match,y);if(!T)return new Date(NaN);b.push({priority:x.priority,set:x.set,validate:x.validate,value:T.value,index:b.length}),a=T.rest}else{if("''"===E?E="'":"'"===C&&(E=E.match(po)[1].replace(ho,"'")),0!==a.indexOf(E))return new Date(NaN);a=a.slice(E.length)}}if(a.length>0&&fo.test(a))return new Date(NaN);var k=b.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return b.filter(function(t){return t.priority===e}).reverse()}).map(function(e){return e[0]}),S=c(n,l);if(isNaN(S))return new Date(NaN);var D=pt(S,i(S));for(v=0;v<k.length;v++){var R=k[v];if(R.validate&&!R.validate(D,R.value,y))return new Date(NaN);D=R.set(D,R.value,y)}return D}function go(e){var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}function vo(e,t,n){if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=1===arguments.length?1:o(t);if(2===arguments.length&&"number"!=typeof t&&"string"!=typeof t&&(n=t,r=1),!r||r>30||r<1)throw new RangeError("nearestTo must be between 1 and 30");var i=c(e,n),a=i.getSeconds(),s=i.getMinutes()+a/60,l=Math.floor(s/r)*r,u=s%r,d=Math.round(u/r)*r;return new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l+d)}function yo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setDate(i),r}function bo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,s=null==a?0:o(a),l=null==r.weekStartsOn?s:o(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=c(e,r),d=o(t),p=u.getDay();return b(u,((d%7+7)%7<l?7:0)+d-p,r)}function wo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setMonth(0),r.setDate(i),r}function Eo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setHours(i),r}function Co(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n);return b(r,o(t)-zt(r,n),n)}function xo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=Ut(r,n)-i;return r.setDate(r.getDate()-7*a),r}function To(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setMilliseconds(i),r}function ko(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setMinutes(i),r}function So(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=r.getFullYear(),s=r.getDate(),l=new Date(0);l.setFullYear(a,i,15),l.setHours(0,0,0,0);var u=F(l,n);return r.setMonth(i,Math.min(s,u)),r}function Do(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t)-(Math.floor(r.getMonth()/3)+1);return So(r,r.getMonth()+3*i,n)}function Ro(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return r.setSeconds(i),r}function Mo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t),a=tn(r,n)-i;return r.setDate(r.getDate()-7*a),r}function _o(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},i=r.locale,a=i&&i.options&&i.options.firstWeekContainsDate,s=null==a?1:o(a),l=null==r.firstWeekContainsDate?s:o(r.firstWeekContainsDate),u=c(e,n),d=o(t),p=_(u,Zt(u,n),n),h=new Date(0);return h.setFullYear(d,0,l),h.setHours(0,0,0,0),(u=Zt(h,n)).setDate(u.getDate()+p),u}function Po(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=c(e,n),i=o(t);return isNaN(r)?new Date(NaN):(r.setFullYear(i),r)}function Lo(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=c(e,t),o=n.getFullYear(),r=10*Math.floor(o/10);return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}function Oo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return b(e,-o(t),n)}function No(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return C(e,-o(t),n)}function Fo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return N(e,-o(t),n)}function Ao(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return A(e,-o(t),n)}function Io(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return I(e,-o(t),n)}function Ho(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return H(e,-o(t),n)}function zo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return z(e,-o(t),n)}function jo(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return j(e,-o(t),n)}n.d(t,"addDays",function(){return b}),n.d(t,"addHours",function(){return C}),n.d(t,"addISOWeekYears",function(){return L}),n.d(t,"addMilliseconds",function(){return w}),n.d(t,"addMinutes",function(){return N}),n.d(t,"addMonths",function(){return A}),n.d(t,"addQuarters",function(){return I}),n.d(t,"addSeconds",function(){return H}),n.d(t,"addWeeks",function(){return z}),n.d(t,"addYears",function(){return j}),n.d(t,"areIntervalsOverlapping",function(){return U}),n.d(t,"closestIndexTo",function(){return B}),n.d(t,"closestTo",function(){return W}),n.d(t,"compareAsc",function(){return q}),n.d(t,"compareDesc",function(){return G}),n.d(t,"differenceInCalendarDays",function(){return _}),n.d(t,"differenceInCalendarISOWeekYears",function(){return V}),n.d(t,"differenceInCalendarISOWeeks",function(){return $}),n.d(t,"differenceInCalendarMonths",function(){return X}),n.d(t,"differenceInCalendarQuarters",function(){return Q}),n.d(t,"differenceInCalendarWeeks",function(){return Z}),n.d(t,"differenceInCalendarYears",function(){return ee}),n.d(t,"differenceInDays",function(){return te}),n.d(t,"differenceInHours",function(){return re}),n.d(t,"differenceInISOWeekYears",function(){return ae}),n.d(t,"differenceInMilliseconds",function(){return ne}),n.d(t,"differenceInMinutes",function(){return le}),n.d(t,"differenceInMonths",function(){return ue}),n.d(t,"differenceInQuarters",function(){return ce}),n.d(t,"differenceInSeconds",function(){return de}),n.d(t,"differenceInWeeks",function(){return pe}),n.d(t,"differenceInYears",function(){return he}),n.d(t,"eachDayOfInterval",function(){return fe}),n.d(t,"eachWeekOfInterval",function(){return me}),n.d(t,"eachWeekendOfInterval",function(){return ye}),n.d(t,"eachWeekendOfMonth",function(){return Ee}),n.d(t,"eachWeekendOfYear",function(){return Te}),n.d(t,"endOfDay",function(){return ke}),n.d(t,"endOfDecade",function(){return Se}),n.d(t,"endOfHour",function(){return De}),n.d(t,"endOfISOWeek",function(){return Me}),n.d(t,"endOfISOWeekYear",function(){return _e}),n.d(t,"endOfMinute",function(){return Pe}),n.d(t,"endOfMonth",function(){return we}),n.d(t,"endOfQuarter",function(){return Le}),n.d(t,"endOfSecond",function(){return Oe}),n.d(t,"endOfWeek",function(){return Re}),n.d(t,"endOfYear",function(){return xe}),n.d(t,"format",function(){return wt}),n.d(t,"formatDistance",function(){return kt}),n.d(t,"formatDistanceStrict",function(){return Mt}),n.d(t,"formatRelative",function(){return _t}),n.d(t,"fromUnixTime",function(){return Pt}),n.d(t,"getDate",function(){return Lt}),n.d(t,"getDay",function(){return Ot}),n.d(t,"getDayOfYear",function(){return Nt}),n.d(t,"getDaysInMonth",function(){return F}),n.d(t,"getDaysInYear",function(){return At}),n.d(t,"getDecade",function(){return It}),n.d(t,"getHours",function(){return Ht}),n.d(t,"getISODay",function(){return zt}),n.d(t,"getISOWeek",function(){return Ut}),n.d(t,"getISOWeekYear",function(){return S}),n.d(t,"getISOWeeksInYear",function(){return Wt}),n.d(t,"getMilliseconds",function(){return qt}),n.d(t,"getMinutes",function(){return Gt}),n.d(t,"getMonth",function(){return Vt}),n.d(t,"getOverlappingDaysInIntervals",function(){return $t}),n.d(t,"getQuarter",function(){return K}),n.d(t,"getSeconds",function(){return Xt}),n.d(t,"getTime",function(){return Kt}),n.d(t,"getUnixTime",function(){return Qt}),n.d(t,"getWeek",function(){return tn}),n.d(t,"getWeekOfMonth",function(){return nn}),n.d(t,"getWeekYear",function(){return Jt}),n.d(t,"getWeeksInMonth",function(){return rn}),n.d(t,"getYear",function(){return an}),n.d(t,"isAfter",function(){return sn}),n.d(t,"isBefore",function(){return ln}),n.d(t,"isDate",function(){return un}),n.d(t,"isEqual",function(){return cn}),n.d(t,"isFirstDayOfMonth",function(){return dn}),n.d(t,"isFriday",function(){return pn}),n.d(t,"isLastDayOfMonth",function(){return hn}),n.d(t,"isLeapYear",function(){return Ft}),n.d(t,"isMonday",function(){return fn}),n.d(t,"isSameDay",function(){return mn}),n.d(t,"isSameHour",function(){return vn}),n.d(t,"isSameISOWeek",function(){return bn}),n.d(t,"isSameISOWeekYear",function(){return wn}),n.d(t,"isSameMinute",function(){return Cn}),n.d(t,"isSameMonth",function(){return xn}),n.d(t,"isSameQuarter",function(){return kn}),n.d(t,"isSameSecond",function(){return Dn}),n.d(t,"isSameWeek",function(){return yn}),n.d(t,"isSameYear",function(){return Rn}),n.d(t,"isSaturday",function(){return Mn}),n.d(t,"isSunday",function(){return ge}),n.d(t,"isThursday",function(){return _n}),n.d(t,"isTuesday",function(){return Pn}),n.d(t,"isValid",function(){return Ne}),n.d(t,"isWednesday",function(){return Ln}),n.d(t,"isWeekend",function(){return ve}),n.d(t,"isWithinInterval",function(){return On}),n.d(t,"lastDayOfDecade",function(){return Nn}),n.d(t,"lastDayOfISOWeek",function(){return An}),n.d(t,"lastDayOfISOWeekYear",function(){return In}),n.d(t,"lastDayOfMonth",function(){return on}),n.d(t,"lastDayOfQuarter",function(){return Hn}),n.d(t,"lastDayOfWeek",function(){return Fn}),n.d(t,"lastDayOfYear",function(){return zn}),n.d(t,"max",function(){return jn}),n.d(t,"min",function(){return Un}),n.d(t,"parse",function(){return mo}),n.d(t,"roundToNearestMinutes",function(){return vo}),n.d(t,"setDate",function(){return yo}),n.d(t,"setDay",function(){return bo}),n.d(t,"setDayOfYear",function(){return wo}),n.d(t,"setHours",function(){return Eo}),n.d(t,"setISODay",function(){return Co}),n.d(t,"setISOWeek",function(){return xo}),n.d(t,"setISOWeekYear",function(){return P}),n.d(t,"setMilliseconds",function(){return To}),n.d(t,"setMinutes",function(){return ko}),n.d(t,"setMonth",function(){return So}),n.d(t,"setQuarter",function(){return Do}),n.d(t,"setSeconds",function(){return Ro}),n.d(t,"setWeek",function(){return Mo}),n.d(t,"setWeekYear",function(){return _o}),n.d(t,"setYear",function(){return Po}),n.d(t,"startOfDay",function(){return R}),n.d(t,"startOfDecade",function(){return Lo}),n.d(t,"startOfHour",function(){return gn}),n.d(t,"startOfISOWeek",function(){return k}),n.d(t,"startOfISOWeekYear",function(){return D}),n.d(t,"startOfMinute",function(){return En}),n.d(t,"startOfMonth",function(){return be}),n.d(t,"startOfQuarter",function(){return Tn}),n.d(t,"startOfSecond",function(){return Sn}),n.d(t,"startOfWeek",function(){return x}),n.d(t,"startOfWeekYear",function(){return Zt}),n.d(t,"startOfYear",function(){return Ce}),n.d(t,"subDays",function(){return Oo}),n.d(t,"subHours",function(){return No}),n.d(t,"subISOWeekYears",function(){return ie}),n.d(t,"subMilliseconds",function(){return pt}),n.d(t,"subMinutes",function(){return Fo}),n.d(t,"subMonths",function(){return Ao}),n.d(t,"subQuarters",function(){return Io}),n.d(t,"subSeconds",function(){return Ho}),n.d(t,"subWeeks",function(){return zo}),n.d(t,"subYears",function(){return jo}),n.d(t,"toDate",function(){return c})},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i=n(7),a=n.n(i),s=n(8),l=n.n(s),u=n(3),c=n.n(u),d=n(1);function p(e){return"/"===e.charAt(0)}function h(e,t){for(var n=t,o=n+1,r=e.length;o<r;n+=1,o+=1)e[n]=e[o];e.pop()}var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],r=e&&p(e),i=t&&p(t),a=r||i;if(e&&p(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var s=void 0;if(o.length){var l=o[o.length-1];s="."===l||".."===l||""===l}else s=!1;for(var u=0,c=o.length;c>=0;c--){var d=o[c];"."===d?h(o,c):".."===d?(h(o,c),u++):u&&(h(o,c),u--)}if(!a)for(;u--;u)o.unshift("..");!a||""===o[0]||o[0]&&p(o[0])||o.unshift("");var f=o.join("/");return s&&"/"!==f.substr(-1)&&(f+="/"),f};"function"==typeof Symbol&&Symbol.iterator;var m=!0,g="Invariant failed";var v=function(e,t){if(!e)throw m?new Error(g):new Error(g+": "+(t||""))};function y(e){return"/"===e.charAt(0)?e:"/"+e}function b(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function w(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function E(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function C(e,t,n,o){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(r=Object(d.a)({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=f(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function x(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter(function(e){return e!==o})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.forEach(function(e){return e.apply(void 0,n)})}}}var T=!("undefined"==typeof window||!window.document||!window.document.createElement);function k(e,t){t(window.confirm(e))}var S="popstate",D="hashchange";function R(){try{return window.history.state||{}}catch(e){return{}}}function M(e){void 0===e&&(e={}),T||v(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,u=void 0===l?k:l,c=i.keyLength,p=void 0===c?6:c,h=e.basename?w(y(e.basename)):"";function f(e){var t=e||{},n=t.key,o=t.state,r=window.location,i=r.pathname+r.search+r.hash;return h&&(i=b(i,h)),C(i,o,n)}function m(){return Math.random().toString(36).substr(2,p)}var g=x();function M(e){Object(d.a)(U,e),U.length=n.length,g.notifyListeners(U.location,U.action)}function _(e){(function(e){void 0===e.state&&navigator.userAgent.indexOf("CriOS")})(e)||O(f(e.state))}function P(){O(f(R()))}var L=!1;function O(e){if(L)L=!1,M();else{g.confirmTransitionTo(e,"POP",u,function(t){t?M({action:"POP",location:e}):function(e){var t=U.location,n=F.indexOf(t.key);-1===n&&(n=0);var o=F.indexOf(e.key);-1===o&&(o=0);var r=n-o;r&&(L=!0,I(r))}(e)})}}var N=f(R()),F=[N.key];function A(e){return h+E(e)}function I(e){n.go(e)}var H=0;function z(e){1===(H+=e)&&1===e?(window.addEventListener(S,_),r&&window.addEventListener(D,P)):0===H&&(window.removeEventListener(S,_),r&&window.removeEventListener(D,P))}var j=!1;var U={length:n.length,action:"POP",location:N,createHref:A,push:function(e,t){var r=C(e,t,m(),U.location);g.confirmTransitionTo(r,"PUSH",u,function(e){if(e){var t=A(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),s)window.location.href=t;else{var l=F.indexOf(U.location.key),u=F.slice(0,-1===l?0:l+1);u.push(r.key),F=u,M({action:"PUSH",location:r})}else window.location.href=t}})},replace:function(e,t){var r=C(e,t,m(),U.location);g.confirmTransitionTo(r,"REPLACE",u,function(e){if(e){var t=A(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),s)window.location.replace(t);else{var l=F.indexOf(U.location.key);-1!==l&&(F[l]=r.key),M({action:"REPLACE",location:r})}else window.location.replace(t)}})},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return j||(z(1),j=!0),function(){return j&&(j=!1,z(-1)),t()}},listen:function(e){var t=g.appendListener(e);return z(1),function(){z(-1),t()}}};return U}var _=n(10),P=n.n(_),L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var N=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=o=O(this,e.call.apply(e,[this].concat(i))),o.state={match:o.computeMatch(o.props.history.location.pathname)},O(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:L({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,o=t.history;P()(null==n||1===r.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=o.listen(function(){e.setState({match:e.computeMatch(o.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){l()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?r.a.Children.only(e):null},t}(r.a.Component);N.propTypes={history:c.a.object.isRequired,children:c.a.node},N.contextTypes={router:c.a.object},N.childContextTypes={router:c.a.object.isRequired};var F=N;function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var I=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=o=A(this,e.call.apply(e,[this].concat(i))),o.history=M(o.props),A(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){l()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return r.a.createElement(F,{history:this.history,children:this.props.children})},t}(r.a.Component);I.propTypes={basename:c.a.string,forceRefresh:c.a.bool,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node};var H,z,j,U=I,B=n(40),W=n.n(B);function q(e,t){if(null==e)throw"LogTools: sender not set";console.log(e+": "+t)}class G{static Get(){return null!=this._Single&&null!=this._Single||(this._Single=new G),this._Single}constructor(){this.ID=0,this.Controls=[]}RegisterControl(e){e.ID=this.ID,this.ID++,this.Controls.push(e),q("RegisterControl",e.Name+" "+e.ID)}UnregisterControl(e){this.Controls.splice(this.Controls.findIndex(t=>t.ID===e.ID),1),q("UnregisterControl",e.Name+" "+e.ID)}}j=void 0,(z="_Single")in(H=G)?Object.defineProperty(H,z,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[z]=j;class V{static Get(){return null!=this._Single&&null!=this._Single||(this._Single=new V),this._Single}constructor(){this.Events=["OnAuthChange","OnItemsChange_Main","OnItemsChange_Move"],this.Listeners={},this.Events.map(function(e){this.Listeners[e]=[]}.bind(this))}RegisterListener(e,t){if(!this.Events.includes(e))throw"Event not found";if(null==t["Event_"+e])throw"Control not implement event function";this.Listeners[e].push(t),t.IsEventListener=!0}UnregistListener(e){Object.keys(this.Listeners).map(function(t){let n=this.Listeners[t].findIndex(t=>t.ID===e.ID);-1!=n&&this.Listeners[t].splice(n,1)}.bind(this))}EventAction(e,t){if(!this.Events.includes(e))throw"Event not found";this.Listeners[e].map(function(n){n["Event_"+e](t)})}}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(V,"_Single",void 0);class $ extends r.a.Component{constructor(e,t){super(e),this.Name=t,W()(this),this.GlobalState=$.GlobalState,this.EventRegister=$.eventRegister,this._isMounted=!1,this.Log=e=>{!function(e,t){if(null==e)throw"LogTools: sender not set";console.log(e.Name+"_"+e.ID+": "+t)}(this,e)},$.controlRegister.RegisterControl(this),this.Log("start")}setState(e){this._isMounted&&super.setState(e)}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,$.controlRegister.UnregisterControl(this),!0===this.IsEventListener&&$.eventRegister.UnregistListener(this)}}Y($,"controlRegister",G.Get()),Y($,"eventRegister",V.Get()),Y($,"GlobalState",{});var X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function K(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Q=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},J=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=o=K(this,e.call.apply(e,[this].concat(i))),o.handleClick=function(e){if(o.props.onClick&&o.props.onClick(e),!e.defaultPrevented&&0===e.button&&!o.props.target&&!Q(e)){e.preventDefault();var t=o.context.router.history,n=o.props,r=n.replace,i=n.to;r?t.replace(i):t.push(i)}},K(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,o=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["replace","to","innerRef"]);P()(this.context.router,"You should not use <Link> outside a <Router>"),P()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?C(t,null,null,i.location):t,s=i.createHref(a);return r.a.createElement("a",X({},o,{onClick:this.handleClick,href:s,ref:n}))},t}(r.a.Component);J.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},J.defaultProps={replace:!1},J.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired};var Z=J,ee=n(2),te=n(5),ne=n(4),oe=n.n(ne),re=function(){};function ie(e,t){return void 0!==e[t]}function ae(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function se(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var le=n(26),ue=n.n(le),ce=n(25),de=n.n(ce),pe=r.a.createContext(new Map),he=(pe.Consumer,pe.Provider);function fe(e,t){var n=Object(o.useContext)(pe);return e||n.get(t)||t}function me(e,t){"string"==typeof t&&(t={prefix:t});var n=e.prototype&&e.prototype.isReactComponent,i=t,a=i.prefix,s=i.forwardRefAs,l=void 0===s?n?"ref":"innerRef":s;return de()(function(t,n){var i=Object(d.a)({},t);i[l]=n;var s=Object(o.useContext)(pe);return r.a.createElement(e,Object(d.a)({},i,{bsPrefix:i.bsPrefix||s.get(a)||a}))},{displayName:"Bootstrap("+(e.displayName||e.name)+")"})}r.a.Component;var ge=function(e){return e[0].toUpperCase()+ue()(e).slice(1)};function ve(e,t){var n=void 0===t?{}:t,o=n.displayName,i=void 0===o?ge(e):o,a=n.Component,s=void 0===a?"div":a,l=n.defaultProps,u=r.a.forwardRef(function(t,n){var o=t.className,i=t.bsPrefix,a=t.as,l=void 0===a?s:a,u=Object(ee.a)(t,["className","bsPrefix","as"]),c=fe(i,e);return r.a.createElement(l,Object(d.a)({ref:n,className:oe()(o,c)},u))});return u.defaultProps=l,u.displayName=i,u}var ye=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=e.as,a=Object(ee.a)(e,["bsPrefix","className","as"]);n=fe(n,"navbar-brand");var s=i||(a.href?"a":"span");return r.a.createElement(s,Object(d.a)({},a,{ref:t,className:oe()(o,n)}))});ye.displayName="NavbarBrand";var be=ye,we=n(13),Ee=n.n(we),Ce=n(20),xe=n.n(Ce),Te=!1,ke=r.a.createContext(null),Se="unmounted",De="exited",Re="entering",Me="entered",_e=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=De,o.appearStatus=Re):r=Me:r=t.unmountOnExit||t.mountOnEnter?Se:De,o.state={status:r},o.nextCallback=null,o}Object(te.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Se?{status:De}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Re&&n!==Me&&(t=Re):n!==Re&&n!==Me||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.a.findDOMNode(this);t===Re?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===De&&this.setState({status:Se})},n.performEnter=function(e,t){var n=this,o=this.props.enter,r=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=r?i.appear:i.enter;!t&&!o||Te?this.safeSetState({status:Me},function(){n.props.onEntered(e)}):(this.props.onEnter(e,r),this.safeSetState({status:Re},function(){n.props.onEntering(e,r),n.onTransitionEnd(e,a,function(){n.safeSetState({status:Me},function(){n.props.onEntered(e,r)})})}))},n.performExit=function(e){var t=this,n=this.props.exit,o=this.getTimeouts();n&&!Te?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,o.exit,function(){t.safeSetState({status:De},function(){t.props.onExited(e)})})})):this.safeSetState({status:De},function(){t.props.onExited(e)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var o=null==t&&!this.props.addEndListener;e&&!o?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Se)return null;var t=this.props,n=t.children,o=Object(ee.a)(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return r.a.createElement(ke.Provider,{value:null},n(e,o));var i=r.a.Children.only(n);return r.a.createElement(ke.Provider,{value:null},r.a.cloneElement(i,o))},t}(r.a.Component);function Pe(){}_e.contextType=ke,_e.propTypes={},_e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pe,onEntering:Pe,onEntered:Pe,onExit:Pe,onExiting:Pe,onExited:Pe},_e.UNMOUNTED=0,_e.EXITED=1,_e.ENTERING=2,_e.ENTERED=3,_e.EXITING=4;var Le=_e;function Oe(e){e.offsetHeight}var Ne,Fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return null!=e}).reduce(function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e.apply(this,o),t.apply(this,o)}},null)},Ae={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};var Ie=((Ne={})[De]="collapse",Ne.exiting="collapsing",Ne[Re]="collapsing",Ne[Me]="collapse show",Ne),He={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,dimension:"height",getDimensionValue:function(e,t){var n=t["offset"+e[0].toUpperCase()+e.slice(1)],o=Ae[e];return n+parseInt(Ee()(t,o[0]),10)+parseInt(Ee()(t,o[1]),10)}},ze=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).handleEnter=function(e){e.style[t.getDimension()]="0"},t.handleEntering=function(e){var n=t.getDimension();e.style[n]=t._getScrollDimensionValue(e,n)},t.handleEntered=function(e){e.style[t.getDimension()]=null},t.handleExit=function(e){var n=t.getDimension();e.style[n]=t.props.getDimensionValue(n,e)+"px",Oe(e)},t.handleExiting=function(e){e.style[t.getDimension()]=null},t}Object(te.a)(t,e);var n=t.prototype;return n.getDimension=function(){return"function"==typeof this.props.dimension?this.props.dimension():this.props.dimension},n._getScrollDimensionValue=function(e,t){return e["scroll"+t[0].toUpperCase()+t.slice(1)]+"px"},n.render=function(){var e=this,t=this.props,n=t.onEnter,o=t.onEntering,i=t.onEntered,a=t.onExit,s=t.onExiting,l=t.className,u=t.children,c=Object(ee.a)(t,["onEnter","onEntering","onEntered","onExit","onExiting","className","children"]);delete c.dimension,delete c.getDimensionValue;var p=Fe(this.handleEnter,n),h=Fe(this.handleEntering,o),f=Fe(this.handleEntered,i),m=Fe(this.handleExit,a),g=Fe(this.handleExiting,s);return r.a.createElement(Le,Object(d.a)({addEndListener:xe.a},c,{"aria-expanded":c.role?c.in:null,onEnter:p,onEntering:h,onEntered:f,onExit:m,onExiting:g}),function(t,n){return r.a.cloneElement(u,Object(d.a)({},n,{className:oe()(l,u.props.className,Ie[t],"width"===e.getDimension()&&"width")}))})},t}(r.a.Component);ze.defaultProps=He;var je=ze,Ue=r.a.createContext(null),Be=r.a.forwardRef(function(e,t){var n=e.children,o=e.bsPrefix,i=Object(ee.a)(e,["children","bsPrefix"]);return o=fe(o,"navbar-collapse"),r.a.createElement(Ue.Consumer,null,function(e){return r.a.createElement(je,Object(d.a)({in:!(!e||!e.expanded)},i),r.a.createElement("div",{ref:t,className:o},n))})});Be.displayName="NavbarCollapse";var We=Be;var qe=function(e){var t=Object(o.useRef)(e);return Object(o.useEffect)(function(){t.current=e},[e]),t};function Ge(e){var t=qe(e);return Object(o.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}var Ve=r.a.forwardRef(function(e,t){var n=e.bsPrefix,i=e.className,a=e.children,s=e.label,l=e.as,u=void 0===l?"button":l,c=e.onClick,p=Object(ee.a)(e,["bsPrefix","className","children","label","as","onClick"]);n=fe(n,"navbar-toggler");var h=Object(o.useContext)(Ue)||{},f=h.onToggle,m=h.expanded,g=Ge(function(e){c&&c(e),f&&f()});return"button"===u&&(p.type="button"),r.a.createElement(u,Object(d.a)({},p,{ref:t,onClick:g,"aria-label":s,className:oe()(i,n,!!m&&"collapsed")}),a||r.a.createElement("span",{className:n+"-icon"}))});Ve.displayName="NavbarToggle",Ve.defaultProps={label:"Toggle navigation"};var Ye=Ve,$e=r.a.createContext(),Xe=function(e,t){return null!=e?String(e):t||null},Ke=$e,Qe=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={navbarContext:{onToggle:function(){return t.handleToggle()}}},t.handleCollapse=function(){var e=t.props,n=e.onToggle,o=e.expanded,r=e.collapseOnSelect,i=e.onSelect;i&&i.apply(void 0,arguments),r&&o&&n(!1)},t.handleToggle=function(){var e=t.props;(0,e.onToggle)(!e.expanded)},t}return Object(te.a)(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.bsPrefix,o=e.expanded;return{navbarContext:Object(d.a)({},t.navbarContext,{bsPrefix:n,expanded:o})}},t.prototype.render=function(){var e=this.props,t=e.bsPrefix,n=e.expand,o=e.variant,i=e.bg,a=e.fixed,s=e.sticky,l=e.className,u=e.children,c=e.as,p=void 0===c?"nav":c,h=(e.expanded,e.onToggle,e.onSelect,e.collapseOnSelect,Object(ee.a)(e,["bsPrefix","expand","variant","bg","fixed","sticky","className","children","as","expanded","onToggle","onSelect","collapseOnSelect"]));void 0===h.role&&"nav"!==p&&(h.role="navigation");var f=t+"-expand";return"string"==typeof n&&(f=f+"-"+n),r.a.createElement(Ue.Provider,{value:this.state.navbarContext},r.a.createElement(Ke.Provider,{value:this.handleCollapse},r.a.createElement(p,Object(d.a)({},h,{className:oe()(l,t,n&&f,o&&t+"-"+o,i&&"bg-"+i,s&&"sticky-"+s,a&&"fixed-"+a)}),u)))},t}(r.a.Component);Qe.defaultProps={expand:!0,variant:"light",collapseOnSelect:!1};var Je=me(function e(t,n,o){void 0===o&&(o=[]);var i,a=t.displayName||t.name||"Component",s=!!(i=t)&&("function"!=typeof i||i.prototype&&i.prototype.isReactComponent),l=Object.keys(n),u=l.map(ae);!s&&o.length&&P()(!1);var c=function(e){function i(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).handlers=Object.create(null),l.forEach(function(e){var o=n[e];t.handlers[o]=function(n){if(t.props[o]){var r;t._notifying=!0;for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];(r=t.props)[o].apply(r,[n].concat(a)),t._notifying=!1}t._values[e]=n,t.unmounted||t.forceUpdate()}}),o.length&&(t.attachRef=function(e){t.inner=e}),t}Object(te.a)(i,e);var a=i.prototype;return a.shouldComponentUpdate=function(){return!this._notifying},a.componentWillMount=function(){var e=this,t=this.props;this._values=Object.create(null),l.forEach(function(n){e._values[n]=t[ae(n)]})},a.componentWillReceiveProps=function(e){var t=this,n=this.props;l.forEach(function(o){!ie(e,o)&&ie(n,o)&&(t._values[o]=e[ae(o)])})},a.componentWillUnmount=function(){this.unmounted=!0},a.render=function(){var e=this,n=this.props,o=n.innerRef,i=Object(ee.a)(n,["innerRef"]);u.forEach(function(e){delete i[e]});var a={};return l.forEach(function(t){var n=e.props[t];a[t]=void 0!==n?n:e._values[t]}),r.a.createElement(t,Object(d.a)({},i,a,this.handlers,{ref:o||this.attachRef}))},i}(r.a.Component);c.displayName="Uncontrolled("+a+")",c.propTypes=Object(d.a)({innerRef:function(){}},function(e,t){var n={};return Object.keys(e).forEach(function(e){n[ae(e)]=re}),n}(n)),o.forEach(function(e){c.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}});var p=c;return r.a.forwardRef&&((p=r.a.forwardRef(function(e,t){return r.a.createElement(c,Object(d.a)({},e,{innerRef:t}))})).propTypes=c.propTypes),p.ControlledComponent=t,p.deferControlTo=function(t,o,r){return void 0===o&&(o={}),e(t,Object(d.a)({},n,o),r)},p}(Qe,{expanded:"onToggle"}),"navbar");Je.Brand=be,Je.Toggle=Ye,Je.Collapse=We,Je.Text=ve("navbar-text",{Component:"span"});var Ze=Je,et=(n(57),r.a.createContext(null)),tt=n(12),nt=n.n(tt),ot=n(41),rt=n.n(ot),it=r.a.createContext(null),at=r.a.createContext(null),st=function(){},lt=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={navContext:null},t.handleSelect=function(e,n){var o=t.props,r=o.onSelect,i=o.parentOnSelect;null!=e&&(r&&r(e,n),i&&i(e,n))},t.handleKeyDown=function(e){var n,o=t.props.onKeyDown;switch(o&&o(e),e.key){case"ArrowLeft":case"ArrowUp":n=t.getNextActiveChild(-1);break;case"ArrowRight":case"ArrowDown":n=t.getNextActiveChild(1);break;default:return}n&&(e.preventDefault(),t.handleSelect(n.dataset.rbEventKey,e),t._needsRefocus=!0)},t.attachRef=function(e){t.listNode=e},t}Object(te.a)(t,e),t.getDerivedStateFromProps=function(e){var t=e.activeKey,n=e.getControlledId,o=e.getControllerId;return{navContext:{role:e.role,activeKey:Xe(t),getControlledId:n||st,getControllerId:o||st}}};var n=t.prototype;return n.componentDidUpdate=function(){if(this._needsRefocus&&this.listNode){var e=this.listNode.querySelector("[data-rb-event-key].active");e&&e.focus()}},n.getNextActiveChild=function(e){if(!this.listNode)return null;var t=nt()(this.listNode,"[data-rb-event-key]:not(.disabled)"),n=this.listNode.querySelector(".active"),o=t.indexOf(n);if(-1===o)return null;var r=o+e;return r>=t.length&&(r=0),r<0&&(r=t.length-1),t[r]},n.render=function(){var e=this.props,t=e.as,n=void 0===t?"ul":t,o=(e.onSelect,e.parentOnSelect,e.getControlledId,e.getControllerId,e.activeKey,Object(ee.a)(e,["as","onSelect","parentOnSelect","getControlledId","getControllerId","activeKey"]));return"tablist"===o.role&&(o.onKeyDown=this.handleKeyDown),r.a.createElement(Ke.Provider,{value:this.handleSelect},r.a.createElement(it.Provider,{value:this.state.navContext},r.a.createElement(n,Object(d.a)({},o,{onKeyDown:this.handleKeyDown,ref:this.attachRef}))))},t}(r.a.Component),ut=rt()([Ke,at],function(e,t,n){var o=n.role;return t?{activeKey:t.activeKey,parentOnSelect:e,role:o||"tablist",getControllerId:t.getControllerId,getControlledId:t.getControlledId}:{parentOnSelect:e}},lt),ct=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=e.children,a=e.as,s=void 0===a?"div":a,l=Object(ee.a)(e,["bsPrefix","className","children","as"]);return n=fe(n,"nav-item"),r.a.createElement(s,Object(d.a)({},l,{ref:t,className:oe()(o,n)}),i)});ct.displayName="NavItem";var dt=ct;function pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ht(e){return!e||"#"===e.trim()}var ft=function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).handleClick=o.handleClick.bind(pt(o)),o.handleKeyDown=o.handleKeyDown.bind(pt(o)),o}Object(te.a)(t,e);var n=t.prototype;return n.handleClick=function(e){var t=this.props,n=t.disabled,o=t.href,r=t.onClick;(n||ht(o))&&e.preventDefault(),n?e.stopPropagation():r&&r(e)},n.handleKeyDown=function(e){" "===e.key&&(e.preventDefault(),this.handleClick(e))},n.render=function(){var e=this.props,t=e.as,n=void 0===t?"a":t,o=e.disabled,i=e.onKeyDown,a=e.innerRef,s=Object(ee.a)(e,["as","disabled","onKeyDown","innerRef"]);return ht(s.href)&&(s.role=s.role||"button",s.href=s.href||"#"),o&&(s.tabIndex=-1,s["aria-disabled"]=!0),a&&(s.ref=a),r.a.createElement(n,Object(d.a)({},s,{onClick:this.handleClick,onKeyDown:Fe(this.handleKeyDown,i)}))},t}(r.a.Component),mt=r.a.forwardRef(function(e,t){var n=e.active,i=e.className,a=e.tabIndex,s=e.eventKey,l=e.onSelect,u=e.onClick,c=e.as,p=Object(ee.a)(e,["active","className","tabIndex","eventKey","onSelect","onClick","as"]),h=Xe(s,p.href),f=Object(o.useContext)(Ke),m=Object(o.useContext)(it),g=n;m&&(p.role||"tablist"!==m.role||(p.role="tab"),p["data-rb-event-key"]=h,p.id=m.getControllerId(h),p["aria-controls"]=m.getControlledId(h),g=null==n&&null!=h?m.activeKey===h:n),"tab"===p.role&&(p.tabIndex=g?a:-1,p["aria-selected"]=g);var v=Ge(function(e){u&&u(e),null!=h&&(l&&l(h,e),f&&f(h,e))});return r.a.createElement(c,Object(d.a)({},p,{ref:t,onClick:v,className:oe()(i,g&&"active")}))});mt.defaultProps={disabled:!1};var gt=mt,vt={disabled:!1,as:ft},yt=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.disabled,i=e.className,a=e.href,s=e.eventKey,l=e.onSelect,u=e.as,c=Object(ee.a)(e,["bsPrefix","disabled","className","href","eventKey","onSelect","as"]);return n=fe(n,"nav-link"),r.a.createElement(gt,Object(d.a)({},c,{href:a,ref:t,eventKey:s,as:u,disabled:o,onSelect:l,className:oe()(i,n,o&&"disabled")}))});yt.displayName="NavLink",yt.defaultProps=vt;var bt=yt,wt=r.a.forwardRef(function(e,t){var n,i,a,s=function(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n[ae(r)],s=n[r],l=Object(ee.a)(n,[ae(r),r].map(se)),u=t[r],c=Object(o.useRef)({}),p=Object(o.useState)(a),h=p[0],f=p[1],m=ie(e,r),g=ie(c.current,r);c.current=e,!m&&g&&f(a);var v=e[u],y=Object(o.useCallback)(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];v&&v.apply(void 0,[e].concat(n)),f(e)},[f,v]);return Object(d.a)({},l,((i={})[r]=m?s:h,i[u]=y,i))},e)}(e,{activeKey:"onSelect"}),l=s.as,u=void 0===l?"div":l,c=s.bsPrefix,p=s.variant,h=s.fill,f=s.justify,m=s.navbar,g=s.className,v=s.children,y=s.activeKey,b=Object(ee.a)(s,["as","bsPrefix","variant","fill","justify","navbar","className","children","activeKey"]);c=fe(c,"nav");var w=Object(o.useContext)(Ue),E=Object(o.useContext)(et);return w?(i=w.bsPrefix,m=null==m||m):E&&(a=E.cardHeaderBsPrefix),r.a.createElement(ut,Object(d.a)({as:u,ref:t,activeKey:y,className:oe()(g,(n={},n[c]=!m,n[i+"-nav"]=m,n[a+"-"+p]=!!a,n[c+"-"+p]=!!p,n[c+"-fill"]=h,n[c+"-justified"]=f,n))},b),v)});wt.displayName="Nav",wt.defaultProps={justify:!1,fill:!1},wt.Item=dt,wt.Link=bt;var Et=wt;function Ct(e,t,n){return q("ApiQuery","query to "+e),fetch(e,{method:t,headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(n)}).then(function(e){return e.json()})}class xt{constructor(){this.URL_Auth="api/Auth/Auth",this.URL_UserInfo="api/Auth/UserInfo",this.URL_SetUserInfo="api/Auth/SetUser",this.AuthCoockieName="AuthToken"}async AuthAsync(e,t){return await Ct(this.URL_Auth,"Post",{Login:e,Password:t}).then(function(e){return e.Successe?this._SetTocken(e.Token):this._SetTocken(""),e}.bind(this))}Logout(){this._SetTocken("")}async GetUserInfoAsync(){return await Ct(this.URL_UserInfo,"Post").then(function(e){return e.Successe?this._SetTocken(e.Token):this._SetTocken(""),e}.bind(this))}async SetUserInfo(e){return await Ct(this.URL_SetUserInfo,"Post",{Password:e}).then(function(e){return e}.bind(this))}IsAuth(){return""!=this._GetTocken()}_getCookie(e){let t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):""}_GetTocken(){return this._getCookie(this.AuthCoockieName)}_SetTocken(e){document.cookie=this.AuthCoockieName+"="+e}}class Tt extends ${constructor(e){super(e,"MenuControl"),this.authServices=new xt,this.state={isAuth:this.authServices.IsAuth()},this.EventRegister.RegisterListener("OnAuthChange",this)}Event_OnAuthChange(){this.setState({isAuth:this.authServices.IsAuth()})}render(){return r.a.createElement(Ze,null,r.a.createElement(Ze.Brand,null,"WebFileServer"),r.a.createElement(Et,null,r.a.createElement(Et.Link,{as:Z,to:"/"},"App"),r.a.createElement(Et.Link,{as:Z,to:"/Admin"},"Admin"),r.a.createElement(Et.Link,{as:Z,to:"/User"},"User")))}}class kt extends ${constructor(e){super(e,"Header")}OnRegistersClick(){this.GlobalState,$.controlRegister,this.EventRegister}render(){return r.a.createElement("div",null,r.a.createElement("p",null,"Header"),r.a.createElement("button",{onClick:this.OnRegistersClick},"Registers"),r.a.createElement(Tt,{ref:"MenuControl"}),r.a.createElement("hr",null))}}class St extends ${constructor(e){super(e,"Footer")}render(){return r.a.createElement("div",null,r.a.createElement("p",null,"Footer"))}}var Dt=n(43),Rt=n.n(Dt),Mt={},_t=0,Pt=function(e,t){var n=""+t.end+t.strict+t.sensitive,o=Mt[n]||(Mt[n]={});if(o[e])return o[e];var r=[],i={re:Rt()(e,r,t),keys:r};return _t<1e4&&(o[e]=i,_t++),i},Lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var o=t,r=o.path,i=o.exact,a=void 0!==i&&i,s=o.strict,l=void 0!==s&&s,u=o.sensitive,c=void 0!==u&&u;if(null==r)return n;var d=Pt(r,{end:a,strict:l,sensitive:c}),p=d.re,h=d.keys,f=p.exec(e);if(!f)return null;var m=f[0],g=f.slice(1),v=e===m;return a&&!v?null:{path:r,url:"/"===r&&""===m?"/":m,isExact:v,params:h.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}};var Ot=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){P()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){l()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,o=void 0,i=void 0;return r.a.Children.forEach(t,function(t){if(null==o&&r.a.isValidElement(t)){var a=t.props,s=a.path,l=a.exact,u=a.strict,c=a.sensitive,d=a.from,p=s||d;i=t,o=Lt(n.pathname,{path:p,exact:l,strict:u,sensitive:c},e.match)}}),o?r.a.cloneElement(i,{location:n,computedMatch:o}):null},t}(r.a.Component);Ot.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},Ot.propTypes={children:c.a.node,location:c.a.object};var Nt=Ot,Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function At(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var It=function(e){return 0===r.a.Children.count(e)},Ht=function(e){function t(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=o=At(this,e.call.apply(e,[this].concat(i))),o.state={match:o.computeMatch(o.props,o.context.router)},At(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:Ft({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,o=e.location,r=e.path,i=e.strict,a=e.exact,s=e.sensitive;if(n)return n;P()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,u=(o||l.location).pathname;return Lt(u,{path:r,strict:i,exact:a,sensitive:s},l.match)},t.prototype.componentWillMount=function(){l()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),l()(!(this.props.component&&this.props.children&&!It(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),l()(!(this.props.render&&this.props.children&&!It(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){l()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,o=t.component,i=t.render,a=this.context.router,s=a.history,l=a.route,u=a.staticContext,c={match:e,location:this.props.location||l.location,history:s,staticContext:u};return o?e?r.a.createElement(o,c):null:i?e?i(c):null:"function"==typeof n?n(c):n&&!It(n)?r.a.Children.only(n):null},t}(r.a.Component);Ht.propTypes={computedMatch:c.a.object,path:c.a.string,exact:c.a.bool,strict:c.a.bool,sensitive:c.a.bool,component:c.a.func,render:c.a.func,children:c.a.oneOfType([c.a.func,c.a.node]),location:c.a.object},Ht.contextTypes={router:c.a.shape({history:c.a.object.isRequired,route:c.a.object.isRequired,staticContext:c.a.object})},Ht.childContextTypes={router:c.a.object.isRequired};var zt=Ht;function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ut{}jt(Ut,"RooDirectoryID",-1),jt(Ut,"upload_chunk_size",1048576);var Bt=r.a.createContext({controlId:void 0}),Wt=r.a.forwardRef(function(e,t){var n=e.bsPrefix,i=e.className,a=e.children,s=e.controlId,l=e.as,u=void 0===l?"div":l,c=Object(ee.a)(e,["bsPrefix","className","children","controlId","as"]);n=fe(n,"form-group");var p=Object(o.useMemo)(function(){return{controlId:s}},[s]);return r.a.createElement(Bt.Provider,{value:p},r.a.createElement(u,Object(d.a)({},c,{ref:t,className:oe()(i,n)}),a))});Wt.displayName="FormGroup";var qt=Wt,Gt={type:c.a.string.isRequired,as:c.a.elementType},Vt=r.a.forwardRef(function(e,t){var n=e.as,o=void 0===n?"div":n,i=e.className,a=e.type,s=Object(ee.a)(e,["as","className","type"]);return r.a.createElement(o,Object(d.a)({},s,{ref:t,className:oe()(i,a&&a+"-feedback")}))});Vt.displayName="Feedback",Vt.propTypes=Gt,Vt.defaultProps={type:"valid"};var Yt=Vt,$t=r.a.forwardRef(function(e,t){var n,i,a=e.bsPrefix,s=e.type,l=e.size,u=e.id,c=e.className,p=e.isValid,h=e.isInvalid,f=e.plaintext,m=e.readOnly,g=e.as,v=void 0===g?"input":g,y=Object(ee.a)(e,["bsPrefix","type","size","id","className","isValid","isInvalid","plaintext","readOnly","as"]),b=Object(o.useContext)(Bt).controlId;if(a=fe(a,"form-control"),f)(i={})[a+"-plaintext"]=!0,n=i;else if("file"===s){var w;(w={})[a+"-file"]=!0,n=w}else{var E;(E={})[a]=!0,E[a+"-"+l]=l,n=E}return r.a.createElement(v,Object(d.a)({},y,{type:s,ref:t,readOnly:m,id:u||b,className:oe()(c,n,p&&"is-valid",h&&"is-invalid")}))});$t.displayName="FormControl",$t.Feedback=Yt;var Xt=$t,Kt=r.a.forwardRef(function(e,t){var n=e.id,i=e.bsPrefix,a=e.className,s=e.isValid,l=e.isInvalid,u=e.isStatic,c=Object(ee.a)(e,["id","bsPrefix","className","isValid","isInvalid","isStatic"]);i=fe(i,"form-check-input");var p=Object(o.useContext)(Bt),h=p.controlId,f=p.custom;return r.a.createElement("input",Object(d.a)({},c,{ref:t,id:n||h,className:oe()(a,!f&&i,f&&"custom-control-input",s&&"is-valid",l&&"is-invalid",u&&"position-static")}))});Kt.displayName="FormCheckInput",Kt.defaultProps={type:"checkbox"};var Qt=Kt,Jt=r.a.forwardRef(function(e,t){var n=e.bsPrefix,i=e.className,a=e.htmlFor,s=Object(ee.a)(e,["bsPrefix","className","htmlFor"]);n=fe(n,"form-check-label");var l=Object(o.useContext)(Bt),u=l.controlId,c=l.custom;return r.a.createElement("label",Object(d.a)({},s,{ref:t,htmlFor:a||u,className:oe()(i,!c&&n,c&&"custom-control-label")}))});Jt.displayName="FormCheckLabel",Jt.defaultProps={type:"checkbox"};var Zt=Jt,en=r.a.forwardRef(function(e,t){var n=e.id,i=e.bsPrefix,a=e.inline,s=e.disabled,l=e.isValid,u=e.isInvalid,c=e.feedback,p=e.className,h=e.style,f=e.title,m=e.type,g=e.label,v=e.children,y=e.custom,b=Object(ee.a)(e,["id","bsPrefix","inline","disabled","isValid","isInvalid","feedback","className","style","title","type","label","children","custom"]);i=fe(i,"form-check");var w=Object(o.useContext)(Bt).controlId,E=Object(o.useMemo)(function(){return{controlId:n||w,custom:y}},[w,y,n]),C=null!=g&&!1!==g&&!v,x=r.a.createElement(Qt,Object(d.a)({},b,{type:m,ref:t,isValid:l,isInvalid:u,isStatic:!C,disabled:s}));return r.a.createElement(Bt.Provider,{value:E},r.a.createElement("div",{style:h,className:oe()(p,!y&&i,y&&"custom-control custom-"+m,a&&(y?"custom-control":i)+"-inline")},v||r.a.createElement(r.a.Fragment,null,x,C&&r.a.createElement(Zt,{title:f},g),(l||u)&&r.a.createElement(Yt,{type:l?"valid":"invalid"},c))))});en.displayName="FormCheck",en.defaultProps={type:"checkbox",inline:!1,disabled:!1,isValid:!1,isInvalid:!1,title:""},en.Input=Qt,en.Label=Zt;var tn=en,nn=["xl","lg","md","sm","xs"],on=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=e.as,a=void 0===i?"div":i,s=Object(ee.a)(e,["bsPrefix","className","as"]),l=fe(n,"col"),u=[],c=[];return nn.forEach(function(e){var t,n,o,r=s[e];if(delete s[e],null!=r&&"object"==typeof r){var i=r.span;t=void 0===i||i,n=r.offset,o=r.order}else t=r;var a="xs"!==e?"-"+e:"";null!=t&&u.push(!0===t?""+l+a:""+l+a+"-"+t),null!=o&&c.push("order"+a+"-"+o),null!=n&&c.push("offset"+a+"-"+n)}),u.length||u.push(l),r.a.createElement(a,Object(d.a)({},s,{ref:t,className:oe.a.apply(void 0,[o].concat(u,c))}))});on.displayName="Col";var rn=on,an=r.a.forwardRef(function(e,t){var n=e.bsPrefix,i=e.column,a=e.srOnly,s=e.className,l=e.htmlFor,u=Object(ee.a)(e,["bsPrefix","column","srOnly","className","htmlFor"]),c=Object(o.useContext)(Bt).controlId;n=fe(n,"form-label");var p=oe()(s,n,a&&"sr-only",i&&"col-form-label");return l=l||c,i?r.a.createElement(rn,Object(d.a)({as:"label",className:p,htmlFor:l},u)):r.a.createElement("label",Object(d.a)({ref:t,className:p,htmlFor:l},u))});an.displayName="FormLabel",an.defaultProps={column:!1,srOnly:!1};var sn=an,ln=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=e.as,a=void 0===i?"small":i,s=e.muted,l=Object(ee.a)(e,["bsPrefix","className","as","muted"]);return n=fe(n,"form-text"),r.a.createElement(a,Object(d.a)({},l,{ref:t,className:oe()(o,n,s&&"text-muted")}))});ln.displayName="FormText";var un=ln,cn=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.inline,i=e.className,a=e.validated,s=e.as,l=void 0===s?"form":s,u=Object(ee.a)(e,["bsPrefix","inline","className","validated","as"]);return n=fe(n,"form"),r.a.createElement(l,Object(d.a)({},u,{ref:t,className:oe()(i,a&&"was-validated",o&&n+"-inline")}))});cn.displayName="Form",cn.defaultProps={inline:!1},cn.Row=ve("form-row"),cn.Group=qt,cn.Control=Xt,cn.Check=tn,cn.Label=sn,cn.Text=un;var dn=cn,pn=n(18),hn=n.n(pn);class fn{static Sho(e,t){let n=new Date,o=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+" | "+e;hn.a.success(o,t,{timeOut:3e3,progressBar:!0,closeButton:!0})}static MesOk(e,t){let n=new Date,o=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+" | "+e;hn.a.success(o,t,{closeButton:!0,progressBar:!0})}static MesOk_NoHide(e,t){let n=new Date,o=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+" | "+e;hn.a.success(o,t,{timeOut:-1,closeButton:!0,progressBar:!0})}static MesEr(e,t){let n=new Date,o=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+" | "+e;hn.a.error(o,t,{timeOut:-1,closeButton:!0})}}class mn extends ${constructor(e){super(e,"UserControl"),this.state={UserName:""},this.authServices=new xt,this.authServices.IsAuth()&&this.authServices.GetUserInfoAsync().then(function(e){e.Successe?(this.setState({UserName:e.UserName}),this.EventRegister.EventAction("OnAuthChange")):(this.setState({UserName:""}),fn.MesEr(e.ResMessage,"Auth"))}.bind(this))}AuthClick(){let e=this.refs.Login.value,t=this.refs.Password.value;this.authServices.AuthAsync(e,t).then(function(e){e.Successe?(this.setState({UserName:e.UserName}),this.EventRegister.EventAction("OnAuthChange")):(this.setState({UserName:""}),fn.MesEr(e.ResMessage,"Auth"))}.bind(this))}LogoutClick(){this.authServices.Logout(),this.setState({UserName:""}),this.EventRegister.EventAction("OnAuthChange")}render(){let e=this.state;return r.a.createElement("div",null,this.authServices.IsAuth()?r.a.createElement("div",null,r.a.createElement("p",null,"Вы авторизованы. Пользователь: ",e.UserName,"."),r.a.createElement("button",{onClick:this.LogoutClick},"Logout")):r.a.createElement("div",null,r.a.createElement("p",null,"Вы не авторизованы ",e.UserName,".  Вход:"),r.a.createElement(dn.Control,{ref:"Login",type:"text",placeholder:"Enter login"}),r.a.createElement(dn.Text,{className:"text-muted"},"We'll never share your login with anyone else."),r.a.createElement("br",null),r.a.createElement(dn.Control,{ref:"Password",type:"password",placeholder:"Password"}),r.a.createElement("br",null),r.a.createElement("button",{onClick:this.AuthClick},"Auth")))}}class gn{constructor(){this.URL_DirectoryItems="api/Explorer/GetDirectoryItems?ID=",this.URL_ScanDirectory="api/Explorer/ScanDirectory?ID=",this.URL_Delete="api/Explorer/DeleteFile",this.URL_Move="api/Explorer/MoveElement",this.URL_Download="api/Explorer/GetFile?ID=",this.URL_CreateDirectory="api/Explorer/CreateDirectory?"}async DirectoryGetItemsAsync(e){let t=this.URL_DirectoryItems+e;return await Ct(t,"Get")}async ScanDirectoryAsync(e){let t=this.URL_ScanDirectory+e;return await Ct(t,"Get")}async DeleteAsync(e){return await Ct(this.URL_Delete,"POST",{ID:e})}async MoveAsync(e,t){return await Ct(this.URL_Move,"POST",{ID:e,NewParent:t})}OpenDownload(e){let t=this.URL_Download+e;window.open(t,"_blank")}async CreateDirectoryAsync(e,t){return await Ct(this.URL_CreateDirectory,"POST",{ParentID:t,Name:e})}}var vn=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.variant,i=e.size,a=e.active,s=e.className,l=e.block,u=e.type,c=e.as,p=Object(ee.a)(e,["bsPrefix","variant","size","active","className","block","type","as"]),h=fe(n,"btn"),f=oe()(s,h,a&&"active",h+"-"+o,l&&h+"-block",i&&h+"-"+i);if(p.href)return r.a.createElement(ft,Object(d.a)({},p,{as:c,innerRef:t,className:oe()(f,p.disabled&&"disabled")}));var m=c||"button";return t&&(p.ref=t),r.a.createElement(m,Object(d.a)({},p,{type:u,className:f}))});vn.displayName="Button",vn.defaultProps={variant:"primary",active:!1,disabled:!1,type:"button"};var yn=vn;class bn extends ${constructor(e){super(e,"FileExplorerRow"),this.state={Data:this.props.data,ShoSelectColumn:this.props.ShoSelectColumn}}componentWillReceiveProps(e){this.props=e,null!=this.refs.Select&&(this.refs.Select.checked=!1),this.setState({Data:this.props.data,ShoSelectColumn:this.props.ShoSelectColumn})}GetDirectory(){return this.GlobalState[this.props.CurrentDirectoryName]}GetData(){return this.state.Data}GetDataID(){return this.state.Data.ID}IsCheked(){return null!=this.refs.Select&&this.refs.Select.checked}OnDirectoryClick(){this.GetDirectory().ID=this.GetDataID(),this.EventRegister.EventAction(this.GetDirectory().ChangeEvent)}render(){let e=this.state,t=e.Data;return r.a.createElement("tr",null,r.a.createElement("td",null,t.ID),e.ShoSelectColumn?r.a.createElement("td",null,r.a.createElement("input",{ref:"Select",type:"checkbox"})):null,"RootDirectory"===t.Type||"Directory"===t.Type?r.a.createElement("td",null,r.a.createElement(Z,{to:`/?ID=${t.ID}`},r.a.createElement(yn,{id:t.ID,onClick:this.OnDirectoryClick,variant:"outline-dark"},t.Name))):r.a.createElement("td",null,t.Name),r.a.createElement("td",null,t.Type),r.a.createElement("td",null,t.Size))}}class wn extends ${constructor(e){super(e,"FileExplorerControl"),this.state={data:{},ShoSelectColumn:this.GetDirectory().ShoSelectColumn},this.ChildRows=[],this.fileExplorerServices=new gn,this.GetDirectory().ExplorerControl=this,this.EventRegister.RegisterListener(this.GetDirectory().ChangeEvent,this),this.EventRegister.RegisterListener("OnAuthChange",this),this.Event_OnItemsChange_Main()}componentWillUnmount(){super.componentWillUnmount(),this.GetDirectory().ExplorerControl=null}GetDirectory(){return this.GlobalState[this.props.CurrentDirectoryName]}Event_OnItemsChange_Main(){this.LoadDirectory()}Event_OnItemsChange_Move(){this.LoadDirectory()}Event_OnAuthChange(){this.LoadDirectory()}OnBackClick(e){this.Log("OnBackClick "+this.state.data.ParentID),this.GetDirectory().ID=this.state.data.ParentID,this.EventRegister.EventAction(this.GetDirectory().ChangeEvent)}OnSortClick(e){let t=e.target.attributes[0].value,n=this.state.data;n.items.sort(function(e,t){var n,o,r=arguments.length;if(0===r)return(e,t)=>(e<t?-1:e>t&&1)||0;if(1===r)switch(typeof e){case"number":return e<0?(e,t)=>(e<t?1:e>t&&-1)||0:(e,t)=>(e<t?-1:e>t&&1)||0;case"string":return(t,n)=>(t[e]<n[e]?-1:t[e]>n[e]&&1)||0}if(2===r&&"number"==typeof t)return t<0?(t,n)=>(t[e]<n[e]?1:t[e]>n[e]&&-1)||0:(t,n)=>(t[e]<n[e]?-1:t[e]>n[e]&&1)||0;if("object"==typeof e)n=Object.getOwnPropertyNames(e),o=n.map(t=>e[t]),r=n.length;else{n=new Array(r),o=new Array(r);for(let e=r;e--;)n[e]=arguments[e],o[e]=1}return(e,t)=>{for(let i=0;i<r;i++){if(e[n[i]]<t[n[i]])return o[i];if(e[n[i]]>t[n[i]])return-o[i]}return 0}}(t,1)),this.setState({data:n})}OnScanDirClick(e){let t=this.GetDirectory().ID;this.Log("ScanDirectory "+t),this.fileExplorerServices.ScanDirectoryAsync(t).then(function(e){this.EventRegister.EventAction(this.GetDirectory().ChangeEvent)}.bind(this))}LoadDirectory(){let e=this.GetDirectory().ID;this.Log("LoadDirectory "+e),this.fileExplorerServices.DirectoryGetItemsAsync(e).then(function(t){this.setState({data:t,ShoSelectColumn:!(!this.GetDirectory().ShoSelectColumn||-1==e)})}.bind(this))}GetSelectedID(){return this.ChildRows.filter(e=>e.IsCheked()).map(e=>e.GetDataID())}render(){let e=this.state.data;return"{}"!==JSON.stringify(e)?(this.Log("Data"),r.a.createElement("div",null,this.GetDirectory().ID!=Ut.RooDirectoryID?r.a.createElement("p",null,r.a.createElement(Z,{to:`/?ID=${e.ParentID}`},r.a.createElement("button",{onClick:this.OnBackClick},"l-  На уровень вверх - ",e.ParentName))):null,r.a.createElement("p",null,e.LogicPath),r.a.createElement("p",null,r.a.createElement("button",{onClick:this.LoadDirectory},"Update"),r.a.createElement("button",{onClick:this.OnScanDirClick},"Rescan")),r.a.createElement("table",null,r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement("button",{property:"ID",onClick:this.OnSortClick},"ID")),this.state.ShoSelectColumn?r.a.createElement("th",null,"Select"):null,r.a.createElement("th",null,r.a.createElement("button",{property:"Name",onClick:this.OnSortClick},"Name")),r.a.createElement("th",null,r.a.createElement("button",{property:"Type",onClick:this.OnSortClick},"Type")),r.a.createElement("th",null,r.a.createElement("button",{property:"Size",onClick:this.OnSortClick},"Size")))),r.a.createElement("tbody",null,e.items.map(function(e,t,n){return[r.a.createElement(bn,{ref:e=>{null!=e?this.ChildRows[t]=e:this.ChildRows.splice(t,1)},ParentComponent:this,CurrentDirectoryName:this.props.CurrentDirectoryName,key:t,ShoSelectColumn:this.state.ShoSelectColumn,data:e})]}.bind(this)))))):(this.Log("NoData"),r.a.createElement("div",null,r.a.createElement("p",null,"NoData")))}}var En,Cn=n(21),xn=n.n(Cn),Tn=n(14),kn=n.n(Tn),Sn=n(11),Dn=n.n(Sn),Rn=n(15),Mn=n.n(Rn),_n=n(42),Pn=n.n(_n),Ln=((En={})[Re]="show",En[Me]="show",En),On=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).handleEnter=function(e){Oe(e),t.props.onEnter&&t.props.onEnter(e)},t}return Object(te.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=Object(ee.a)(e,["className","children"]);return r.a.createElement(Le,Object(d.a)({addEndListener:xe.a},o,{onEnter:this.handleEnter}),function(e,o){return r.a.cloneElement(n,Object(d.a)({},o,{className:oe()("fade",t,n.props.className,Ln[e])}))})},t}(r.a.Component);On.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};var Nn=On,Fn=ve("modal-body"),An=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=e.centered,a=e.size,s=e.children,l=e.scrollable,u=Object(ee.a)(e,["bsPrefix","className","centered","size","children","scrollable"]),c=(n=fe(n,"modal"))+"-dialog";return r.a.createElement("div",Object(d.a)({},u,{ref:t,className:oe()(c,o,a&&n+"-"+a,i&&c+"-centered",l&&c+"-scrollable")}),r.a.createElement("div",{className:oe()(n+"-content")},s))});An.displayName="ModalDialog";var In=An,Hn=ve("modal-footer"),zn={label:c.a.string.isRequired,onClick:c.a.func},jn=r.a.forwardRef(function(e,t){var n=e.label,o=e.onClick,i=e.className,a=Object(ee.a)(e,["label","onClick","className"]);return r.a.createElement("button",Object(d.a)({ref:t,type:"button",className:oe()("close",i),onClick:o},a),r.a.createElement("span",{"aria-hidden":"true"},"×"),r.a.createElement("span",{className:"sr-only"},n))});jn.displayName="CloseButton",jn.propTypes=zn,jn.defaultProps={label:"Close"};var Un=jn,Bn=r.a.createContext({onHide:function(){}}),Wn=r.a.forwardRef(function(e,t){var n=e.bsPrefix,i=e.closeLabel,a=e.closeButton,s=e.onHide,l=e.className,u=e.children,c=Object(ee.a)(e,["bsPrefix","closeLabel","closeButton","onHide","className","children"]);n=fe(n,"modal-header");var p=Object(o.useContext)(Bn),h=Ge(function(){p&&p.onHide(),s&&s()});return r.a.createElement("div",Object(d.a)({ref:t},c,{className:oe()(l,n)}),u,a&&r.a.createElement(Un,{label:i,onClick:h}))});Wn.displayName="ModalHeader",Wn.defaultProps={closeLabel:"Close",closeButton:!1};var qn,Gn=Wn,Vn=ve("modal-title",{Component:(qn="h4",r.a.forwardRef(function(e,t){return r.a.createElement("div",Object(d.a)({},e,{ref:t,className:oe()(e.className,qn)}))}))}),Yn=n(27),$n=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Xn=".sticky-top",Kn=".navbar-toggler",Qn={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:In,manager:new(function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).adjustAndStore=function(e,t,n){var o=t.style[e];t.dataset[e]=o,Ee()(t,e,parseFloat(Ee()(t,e))+n+"px")},t.restore=function(e,t){var n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Ee()(t,e,n))},t}Object(te.a)(t,e);var n=t.prototype;return n.setContainerStyle=function(t,n){var o=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var r=Mn()();nt()(n,$n).forEach(function(e){return o.adjustAndStore("paddingRight",e,r)}),nt()(n,Xn).forEach(function(e){return o.adjustAndStore("margingRight",e,-r)}),nt()(n,Kn).forEach(function(e){return o.adjustAndStore("margingRight",e,r)})}},n.removeContainerStyle=function(t,n){var o=this;e.prototype.removeContainerStyle.call(this,t,n),nt()(n,$n).forEach(function(e){return o.restore("paddingRight",e)}),nt()(n,Xn).forEach(function(e){return o.restore("margingRight",e)}),nt()(n,Kn).forEach(function(e){return o.restore("margingRight",e)})},t}(n.n(Yn).a))};function Jn(e){return r.a.createElement(Nn,e)}function Zn(e){return r.a.createElement(Nn,e)}var eo=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).state={style:{}},t.modalContext={onHide:function(){return t.props.onHide()}},t.setModalRef=function(e){t._modal=e},t.handleDialogMouseDown=function(){t._waitingForMouseUp=!0},t.handleMouseUp=function(e){t._waitingForMouseUp&&e.target===t._modal.dialog&&(t._ignoreBackdropClick=!0),t._waitingForMouseUp=!1},t.handleClick=function(e){t._ignoreBackdropClick||e.target!==e.currentTarget?t._ignoreBackdropClick=!1:t.props.onHide()},t.handleEnter=function(e){var n;e&&(e.style.display="block",t.updateDialogStyle(e));for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t.props.onEnter&&(n=t.props).onEnter.apply(n,[e].concat(r))},t.handleEntering=function(e){for(var n,o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t.props.onEntering&&(n=t.props).onEntering.apply(n,[e].concat(r)),xn.a.on(window,"resize",t.handleWindowResize)},t.handleExited=function(e){var n;e&&(e.style.display="");for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];t.props.onExited&&(n=t.props).onExited.apply(n,r),xn.a.off(window,"resize",t.handleWindowResize)},t.handleWindowResize=function(){t.updateDialogStyle(t._modal.dialog)},t.renderBackdrop=function(e){var n=t.props,o=n.bsPrefix,i=n.backdropClassName;return r.a.createElement("div",Object(d.a)({},e,{className:oe()(o+"-backdrop",i)}))},t}Object(te.a)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){xn.a.off(window,"resize",this.handleWindowResize)},n.updateDialogStyle=function(e){if(Dn.a){var t=this.props.manager.isContainerOverflowing(this._modal),n=e.scrollHeight>kn()(e).documentElement.clientHeight;this.setState({style:{paddingRight:t&&!n?Mn()():void 0,paddingLeft:!t&&n?Mn()():void 0}})}},n.render=function(){var e=this.props,t=e.bsPrefix,n=e.className,o=e.style,i=e.dialogClassName,a=e.children,s=e.dialogAs,l=e.show,u=e.animation,c=e.backdrop,p=e.keyboard,h=e.manager,f=e.onEscapeKeyDown,m=e.onShow,g=e.onHide,v=e.container,y=e.autoFocus,b=e.enforceFocus,w=e.restoreFocus,E=e.onEntered,C=e.onExit,x=e.onExiting,T=(e.onExited,e.onEntering,e.onEnter,e.onEntering,e.backdropClassName,Object(ee.a)(e,["bsPrefix","className","style","dialogClassName","children","dialogAs","show","animation","backdrop","keyboard","manager","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","onEntered","onExit","onExiting","onExited","onEntering","onEnter","onEntering","backdropClassName"])),k=!0===c?this.handleClick:null,S=Object(d.a)({},o,this.state.style);return u||(S.display="block"),r.a.createElement(Bn.Provider,{value:this.modalContext},r.a.createElement(Pn.a,{show:l,backdrop:c,container:v,keyboard:p,autoFocus:y,enforceFocus:b,restoreFocus:w,onEscapeKeyDown:f,onShow:m,onHide:g,onEntered:E,onExit:C,onExiting:x,manager:h,ref:this.setModalRef,style:S,className:oe()(n,t),containerClassName:t+"-open",transition:u?Jn:void 0,backdropTransition:u?Zn:void 0,renderBackdrop:this.renderBackdrop,onClick:k,onMouseUp:this.handleMouseUp,onEnter:this.handleEnter,onEntering:this.handleEntering,onExited:this.handleExited},r.a.createElement(s,Object(d.a)({},T,{onMouseDown:this.handleDialogMouseDown,className:i}),a)))},t}(r.a.Component);eo.defaultProps=Qn;var to=me(eo,"modal");to.Body=Fn,to.Header=Gn,to.Title=Vn,to.Footer=Hn,to.Dialog=In,to.TRANSITION_DURATION=300,to.BACKDROP_TRANSITION_DURATION=150;var no=to;class oo extends ${constructor(e){super(e,"ExplorerActionsControl"),this.state={MoveWindowsShow:!1},this.fileExplorerServices=new gn,this.GlobalState.MoveExplorer={ID:this.GlobalState.MainExplorer.ID,ShoSelectColumn:!1,ChangeEvent:"OnItemsChange_Move"}}OnDownloadClick(e){this.GlobalState.MainExplorer.ExplorerControl.GetSelectedID().map(e=>{this.Log("OnDownload "+e),this.fileExplorerServices.OpenDownload(e)})}OnDeleteClick(e){let t=this.GlobalState.MainExplorer.ExplorerControl.GetSelectedID().map(e=>(this.Log("OnDelete "+e),this.fileExplorerServices.DeleteAsync(e)));Promise.all(t).then(function(e){let t="";e.map(function(e){t+="Succese: "+e.Successe+" ResultMsg:"+e.ResMessage+" | "}),fn.MesOk(t,"Move"),this.EventRegister.EventAction(this.GlobalState.MainExplorer.ChangeEvent)}.bind(this))}OnCreateDirectoryClick(e){let t=this.refs.DirectoryName.value,n=this.GlobalState.MainExplorer.ID;this.fileExplorerServices.CreateDirectoryAsync(t,n).then(function(e){this.EventRegister.EventAction(this.GlobalState.MainExplorer.ChangeEvent),fn.MesOk("Complete","CreateDir")}.bind(this)),this.refs.DirectoryName.value=""}OnMoveClick(e){let t=this.GlobalState.MainExplorer.ExplorerControl.GetSelectedID();0!=t.length&&(this.selected=t,this.GlobalState.MoveExplorer.ID=this.GlobalState.MainExplorer.ID,this.EventRegister.EventAction("OnItemsChange_Move"),this.setState({MoveWindowsShow:!0}))}OnMoveWindowCloseClick(){this.setState({MoveWindowsShow:!1})}OnMoveWindowClick(){if(this.GlobalState.MainExplorer.ID==this.GlobalState.MoveExplorer.ID)return this.setState({MoveWindowsShow:!1}),void fn.MesEr("Src dir == Dst dir","Move");let e=this.selected.map(function(e){return this.Log("OnMove "+e),this.fileExplorerServices.MoveAsync(e,this.GlobalState.MoveExplorer.ID)}.bind(this));Promise.all(e).then(function(e){let t="";e.map(function(e){t+="Succese: "+e.Successe+" ResultMsg:"+e.ResMessage+" | "}),fn.MesOk(t,"Move"),this.EventRegister.EventAction(this.GlobalState.MainExplorer.ChangeEvent)}.bind(this)),this.setState({MoveWindowsShow:!1})}render(){return r.a.createElement("div",null,r.a.createElement("p",null,"ExplorerControlPanel"),r.a.createElement("p",null,r.a.createElement("input",{ref:"DirectoryName"}),r.a.createElement("button",{onClick:this.OnCreateDirectoryClick},"CreateDirectory")),r.a.createElement("table",null,r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,r.a.createElement("button",{onClick:this.OnDownloadClick},"Скачать")),r.a.createElement("th",null,r.a.createElement("button",{onClick:this.OnDeleteClick},"Удалить")),r.a.createElement("th",null,r.a.createElement("button",{onClick:this.OnMoveClick},"Переместить"))))),r.a.createElement(no,{ref:"Modal",show:this.state.MoveWindowsShow,onHide:this.OnMoveWindowCloseClick,size:"lg","aria-labelledby":"contained-modal-title-vcenter",centered:!0},r.a.createElement(no.Header,{closeButton:!0},r.a.createElement(no.Title,null,"Select destination directory")),r.a.createElement(no.Body,null,r.a.createElement(wn,{ref:"FileExplorerControl",ParentComponent:this,CurrentDirectoryName:"MoveExplorer"})),r.a.createElement(no.Footer,null,r.a.createElement(yn,{variant:"secondary",onClick:this.OnMoveWindowCloseClick},"Cansel"),r.a.createElement(yn,{variant:"primary",onClick:this.OnMoveWindowClick},"Move to directory"))))}}class ro{constructor(){this.URL_Start="/api/UploadFiles/StartUpload",this.URL_Upload="/api/UploadFiles/UploadBlob",this.URL_Cansel="/api/UploadFiles/Cansel",this.upload_chunk_size=Ut.upload_chunk_size,this.ID=-1,this._ContinueDownload=!1,this._file=null,this._ParentID=null,this.OnProggresseChange=null,this.OnIDReceived=null,this.OnError=null}async _ReadBlobAsync(e,t){return new Promise(function(n,o){let r=this._file.slice(e,t),i=new FileReader;i.onload=function(){n(i.result)},i.onerror=o,i.readAsDataURL(r)}.bind(this))}async _StartUploadAsync(){let e;return await Ct(this.URL_Start,"Post",{ParentID:this._ParentID,Name:this._file.name,Size:this._file.size}).then(function(t){e=t}.bind(this)),e}async _UploadBlobAsync(e,t){if(q("UploadServices","_UploadBlobAsync"),!this._ContinueDownload)return{State:!0};if(""!=e){let n;return q("UploadServices",this.URL_Upload+t),await Ct(this.URL_Upload,"Post",{ID:this.ID,chunk:e}).then(function(e){n=e}.bind(this)),n}}async UploadFileAsync(e,t){null!=this.OnProggresseChange&&this.OnProggresseChange(0),this._file=e,this._ParentID=t;let n=await this._StartUploadAsync();if(n.State){this._ContinueDownload=!0,this.ID=n.ID,null!=this.OnIDReceived&&this.OnIDReceived(this.ID);for(let t=0,n=0;t<this._file.size;t+=this.upload_chunk_size,n++){if(!this._ContinueDownload)return;let o=await this._ReadBlobAsync(t,t+this.upload_chunk_size),r=await this._UploadBlobAsync(o,n);if(!r.State)return void(null!=this.OnError&&this.OnError(r.Msg));let i=Math.round(100*t/e.size);q("UploadServices","p = "+i),null!=this.OnProggresseChange&&this.OnProggresseChange(i)}this._ContinueDownload=!1}else null!=this.OnError&&this.OnError(n.Msg)}Cansel(){this._ContinueDownload=!1,setTimeout(function(){Ct(this.URL_Cansel,"Post",{ID:this.ID})}.bind(this),500)}}class io extends ${constructor(e){super(e,"UploaderControl"),this.state={progress:0,ButtonUploadEnable:!0,_state:0,FileInfo:{},ResultMsg:""},this.uploadServices=new ro,this.uploadServices.OnProggresseChange=this.OnProgresseChange,this.uploadServices.OnError=this.OnError}UploadClick(){let e=this.refs.file,t=e.files;if(0==t.length)return;let n=t[0];this.setState({ButtonUploadEnable:!1,_state:1,FileInfo:{name:n.name,size:n.size}}),this.uploadServices.UploadFileAsync(n,this.GlobalState.MainExplorer.ID).then(function(){fn.MesOk("Complete","Upload"),this.setState({ButtonUploadEnable:!0,_state:0,FileInfo:{},ResultMsg:""}),this.EventRegister.EventAction(this.GlobalState.MainExplorer.ChangeEvent),e.value=""}.bind(this))}CancelClick(){this.uploadServices.Cansel(),this.setState({ButtonUploadEnable:!0,_state:0,FileInfo:{}})}OnProgresseChange(e){this.setState({progress:e})}OnError(e){this.setState({progress:0,ButtonUploadEnable:!0,_state:0,FileInfo:{},ResultMsg:e})}render(){return r.a.createElement("div",null,r.a.createElement("h2",null,"Upload"),r.a.createElement("p",null,r.a.createElement("input",{ref:"file",type:"file",disabled:!this.state.ButtonUploadEnable}),r.a.createElement("button",{disabled:!this.state.ButtonUploadEnable,onClick:this.UploadClick},"Upload"),r.a.createElement("button",{disabled:this.state.ButtonUploadEnable,onClick:this.CancelClick},"Cancel")),1==this.state._state?r.a.createElement("div",null,r.a.createElement("p",null,"Прогресс ",this.state.progress," %"),r.a.createElement("p",null,"Выполняется загрука файла:"),r.a.createElement("p",null,"Имя файла: ",this.state.FileInfo.name),r.a.createElement("p",null,"Размеры файла: ",this.state.FileInfo.size)):"",""!=this.state.ResultMsg?r.a.createElement("p",null,"Результат: ",this.state.ResultMsg):null)}}var ao=r.a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.className,i=Object(ee.a)(e,["bsPrefix","className"]),a=fe(n,"btn-toolbar");return r.a.createElement("div",Object(d.a)({},i,{ref:t,className:oe()(o,a)}))});ao.displayName="ButtonToolbar",ao.defaultProps={role:"toolbar"};var so=ao;class lo extends ${constructor(e){super(e,"BootstrapControl")}ToastifyTest(){this.Leght=(null==this.Leght?0:this.Leght)+500}render(){return r.a.createElement("div",null,r.a.createElement("p",null,"Bootstrap test"),r.a.createElement(so,null,r.a.createElement(yn,{onClick:this.ToastifyTest,variant:"outline-primary"},"Primary"),r.a.createElement(yn,{variant:"outline-secondary"},"Secondary"),r.a.createElement(yn,{variant:"outline-success"},"Success"),r.a.createElement(yn,{variant:"outline-warning"},"Warning"),r.a.createElement(yn,{variant:"outline-danger"},"Danger"),r.a.createElement(yn,{variant:"outline-info"},"Info"),r.a.createElement(yn,{variant:"outline-light"},"Light"),r.a.createElement(yn,{variant:"outline-dark"},"Dark")))}}class uo extends ${constructor(e){super(e,"FileExplorerPage");let t=-1,n=new URL(window.location.href).searchParams.get("ID");null!=n&&(t=n),this.GlobalState.MainExplorer={ID:t,ShoSelectColumn:!0,ChangeEvent:"OnItemsChange_Main"}}render(){return r.a.createElement("div",null,r.a.createElement(mn,{ref:"UserControl",ParentComponent:this}),r.a.createElement("hr",null),r.a.createElement(wn,{ref:"FileExplorerControl",ParentComponent:this,CurrentDirectoryName:"MainExplorer"}),r.a.createElement("hr",null),this.GlobalState.MainExplorer.ID!=Ut.RooDirectoryID?r.a.createElement("div",null,r.a.createElement(oo,{ref:"ExplorerActionsControl",ParentComponent:this}),r.a.createElement("hr",null),r.a.createElement(io,{ref:"UploaderControl",ParentComponent:this}),r.a.createElement("hr",null)):null,r.a.createElement("hr",null),r.a.createElement(lo,null),r.a.createElement("hr",null))}}var co=n(16);class po{constructor(){this.URL_GetUsers="api/Users/GetUserList",this.URL_SetUsers="api/Users/SetUserList",this.URL_GetGroups="api/Users/GetGroupList",this.URL_SetGroups="api/Users/SetGroupList",this.ID=0}async GetUsersAsync(){return await Ct(this.URL_GetUsers,"Post").then(function(e){return e.Successe&&(this.Groups=e.Groups),e}.bind(this))}async SetUsersAsync(e){return await Ct(this.URL_SetUsers,"Post",e).then(function(e){return e}.bind(this))}CreateUser(){return this.ID--,{ID:this.ID,Name:"NewUser"+this.ID,Password:"QWERTY",Active:!0,Changes:2,Groups:this.Groups.map(e=>({ID:e.ID,Name:e.Name,EnterInGroup:"Пользователи"==e.Name}))}}CreateStubUser(){return{ID:-1,Name:"",Password:"",Active:!1,Changes:-1,Groups:[{ID:-11,Name:"",EnterInGroup:!1}]}}async GetGroupsAsync(){return await Ct(this.URL_GetGroups,"Post").then(function(e){return e.Successe&&(this.RootDirs=e.RootDirs),e}.bind(this))}async SetGroupsAsync(e){return await Ct(this.URL_SetGroups,"Post",e).then(function(e){return e}.bind(this))}CreateGroup(){return this.ID--,{ID:this.ID,Name:"NewGroup"+this.ID,Changes:2,RootDirs:this.RootDirs.map(e=>({ID:e.ID,Name:e.Name,CanDownload:!1,CanUpload:!1,CanOpen:!1}))}}CreateStubGroup(){return{ID:this.ID,Name:"NewGroup"+this.ID,Changes:2,RootDirs:[{ID:-11,Name:"",CanDownload:!1,CanUpload:!1,CanOpen:!1}]}}}class ho extends ${constructor(e){super(e,"UserListControl"),this.userServices=new po,this.state={Users:[],ShoGroups:!1,UserGroups:this.userServices.CreateStubUser()},this.columns=[{title:"ID",field:"ID"},{title:"Name",field:"Name",editor:"input"},{title:"Password",field:"Password",editor:"input"},{title:"Active",field:"Active",editor:"tick"},{title:"Groups",formatter:this.ButtonFormatter,align:"center",cellClick:this.OnGroupsClick},{title:"Delete",formatter:this.ButtonFormatter,align:"center",cellClick:this.DeleteUserClick}],this.columns_groups=[{title:"ID",field:"ID"},{title:"Name",field:"Name"},{title:"EnterInGroup",field:"EnterInGroup",editor:"tick"}],this.DownloadUsers()}DownloadUsers(){this.userServices.GetUsersAsync().then(function(e){let t=e.Users;this.Groups=e.Groups,this.setState({Users:t})}.bind(this))}UploadUsers(){this.userServices.SetUsersAsync(this.state.Users).then(function(e){e.Successe?fn.MesOk(e.ResMessage,"Save"):fn.MesEr(e.ResMessage,"Save"),this.DownloadUsers()}.bind(this))}ButtonFormatter(e,t,n){return"<i class='fa fa-print'><button>Action</button></i>"}OnCellChange(e){let t=this.state.Users,n=e.getRow()._row.data.ID;var o=t.filter(e=>e.ID===n)[0];0===o.Changes&&(o.Changes=1)}OnCellChange_Groups(e){0===this.state.UserGroups.Changes&&(this.state.UserGroups.Changes=1)}UpdateClick(){this.DownloadUsers()}CreateUserCick(){let e=this.userServices.CreateUser(),t=this.state.Users;t.push(e),this.setState({Users:t})}DeleteUserClick(e,t){let n=t.getRow()._row.data.ID,o=this.state.Users,r=o.filter(e=>e.ID===n)[0];2===r.Changes?o.splice(o.findIndex(e=>e.ID===n),1):r.Changes=3,this.setState({Users:o})}OnGroupsClick(e,t){let n=t.getRow()._row.data.ID,o=this.state.Users.filter(e=>e.ID===n)[0];this.setState({ShoGroups:!0,UserGroups:o})}OnGroupsClose(){this.setState({ShoGroups:!1})}render(){return r.a.createElement("div",null,r.a.createElement("button",{onClick:this.CreateUserCick},"CreateUser"),r.a.createElement("button",{onClick:this.DownloadUsers},"Update(Изменения будут утеряны)"),r.a.createElement("button",{onClick:this.UploadUsers},"SaveChanges"),r.a.createElement(co.ReactTabulator,{ref:"table",data:this.state.Users.filter(e=>3!=e.Changes),columns:this.columns,tooltips:!0,layout:"fitData",cellEdited:this.OnCellChange}),r.a.createElement(no,{ref:"Modal",show:this.state.ShoGroups,onHide:this.OnGroupsClose,size:"lg","aria-labelledby":"contained-modal-title-vcenter",centered:!0},r.a.createElement(no.Header,{closeButton:!0},r.a.createElement(no.Title,null,"User Groups: ",this.state.UserGroups.ID+" "+this.state.UserGroups.Name)),r.a.createElement(no.Body,null,r.a.createElement(co.ReactTabulator,{ref:"table_UserGroups",data:this.state.UserGroups.Groups,columns:this.columns_groups,tooltips:!0,layout:"fitData",cellEdited:this.OnCellChange_Groups})),r.a.createElement(no.Footer,null,r.a.createElement(yn,{variant:"secondary",onClick:this.OnGroupsClose},"Close"))))}}class fo extends ${constructor(e){super(e,"UserListControl"),this.userServices=new po,this.state={Groups:[],ShoPermissions:!1,GroupPermissions:this.userServices.CreateStubGroup()},this.columns=[{title:"ID",field:"ID"},{title:"Name",field:"Name",editor:"input"},{title:"Permissions",formatter:this.ButtonFormatter,align:"center",cellClick:this.OnPermissionsClick},{title:"Delete",formatter:this.ButtonFormatter,align:"center",cellClick:this.DeleteGroupClick}],this.columns_permission=[{title:"ID",field:"ID"},{title:"Name",field:"Name"},{title:"CanDownload",field:"CanDownload",editor:"tick"},{title:"CanUpload",field:"CanUpload",editor:"tick"},{title:"CanOpen",field:"CanOpen",editor:"tick"}],this.DownloadGroups()}DownloadGroups(){this.userServices.GetGroupsAsync().then(function(e){let t=e.Groups;this.RootDirs=e.RootDirs,this.setState({Groups:t})}.bind(this))}UploadGroups(){this.userServices.SetGroupsAsync(this.state.Groups).then(function(e){e.Successe?fn.MesOk(e.ResMessage,"Save"):fn.MesEr(e.ResMessage,"Save"),this.DownloadGroups()}.bind(this))}ButtonFormatter(e,t,n){return"<i class='fa fa-print'><button>Action</button></i>"}OnCellChange(e){let t=this.state.Groups,n=e.getRow()._row.data.ID;var o=t.filter(e=>e.ID===n)[0];0===o.Changes&&(o.Changes=1)}OnCellChange_Permission(e){0===this.state.GroupPermissions.Changes&&(this.state.GroupPermissions.Changes=1)}UpdateClick(){this.DownloadGroups()}CreateGroupClick(){let e=this.userServices.CreateGroup(),t=this.state.Groups;t.push(e),this.setState({Groups:t})}DeleteGroupClick(e,t){let n=t.getRow()._row.data.ID,o=this.state.Groups,r=o.filter(e=>e.ID===n)[0];2===r.Changes?o.splice(o.findIndex(e=>e.ID===n),1):r.Changes=3,this.setState({Groups:o})}OnPermissionsClick(e,t){let n=t.getRow()._row.data.ID,o=this.state.Groups.filter(e=>e.ID===n)[0];this.setState({ShoPermissions:!0,GroupPermissions:o})}OnPermissionsClose(){this.setState({ShoPermissions:!1})}render(){return r.a.createElement("div",null,r.a.createElement("button",{onClick:this.CreateGroupClick},"CreateGroup"),r.a.createElement("button",{onClick:this.DownloadGroups},"Update(Изменения будут утеряны)"),r.a.createElement("button",{onClick:this.UploadGroups},"SaveChanges"),r.a.createElement(co.ReactTabulator,{ref:"table",data:this.state.Groups.filter(e=>3!=e.Changes),columns:this.columns,tooltips:!0,layout:"fitData",cellEdited:this.OnCellChange}),r.a.createElement(no,{ref:"Modal",show:this.state.ShoPermissions,onHide:this.OnPermissionsClose,size:"lg","aria-labelledby":"contained-modal-title-vcenter",centered:!0},r.a.createElement(no.Header,{closeButton:!0},r.a.createElement(no.Title,null,"User Groups: ",this.state.GroupPermissions.ID+" "+this.state.GroupPermissions.Name)),r.a.createElement(no.Body,null,r.a.createElement(co.ReactTabulator,{ref:"table_GroupPermission",data:this.state.GroupPermissions.RootDirs,columns:this.columns_permission,tooltips:!0,layout:"fitData",cellEdited:this.OnCellChange_Permission})),r.a.createElement(no.Footer,null,r.a.createElement(yn,{variant:"secondary",onClick:this.OnPermissionsClose},"Close"))))}}class mo extends ${constructor(e){super(e,"AdministratorPage"),this.authServices=new xt,this.state={ActiveWindows:0,isAuth:this.authServices.IsAuth()},this.EventRegister.RegisterListener("OnAuthChange",this)}Event_OnAuthChange(){this.setState({isAuth:this.authServices.IsAuth()})}OnUsersClick(){this.setState({ActiveWindows:0})}OnGroupsClick(){this.setState({ActiveWindows:1})}render(){return r.a.createElement("div",null,this.state.isAuth?r.a.createElement("div",null,r.a.createElement(Et,{variant:"tabs"},r.a.createElement(Et.Item,null,r.a.createElement(Et.Link,{onClick:this.OnUsersClick},"Users")),r.a.createElement(Et.Item,null,r.a.createElement(Et.Link,{onClick:this.OnGroupsClick}," Groups"))),0==this.state.ActiveWindows?r.a.createElement(ho,{ref:"UserListControl"}):r.a.createElement(fo,{ref:"GroupListControl"})):r.a.createElement("p",null,"Вы не авторизованы"))}}class go extends ${constructor(e){super(e,"UserDetailControl"),this.authServices=new xt}SaveChange(){let e=this.refs.Password.value;this.refs.Password.value="";let t=this.refs.RepeatPassword.value;this.refs.RepeatPassword.value="",e===t?this.authServices.SetUserInfo(e).then(function(e){e.Successe?fn.MesOk(e.ResMessage,"SaveChange"):fn.MesEr(e.ResMessage,"SaveChange")}):fn.MesEr("password != repeat_password","SaveChange")}render(){return r.a.createElement("div",null,r.a.createElement(dn.Control,{ref:"Password",type:"password",placeholder:"New password"}),r.a.createElement(dn.Control,{ref:"RepeatPassword",type:"password",placeholder:"Repeat Password"}),r.a.createElement("button",{onClick:this.SaveChange},"SaveChange"))}}class vo extends ${constructor(e){super(e,"UserPage"),this.authServices=new xt,this.state={isAuth:this.authServices.IsAuth()},this.EventRegister.RegisterListener("OnAuthChange",this)}Event_OnAuthChange(){this.setState({isAuth:this.authServices.IsAuth()})}render(){return r.a.createElement("div",null,this.state.isAuth?r.a.createElement("div",null,r.a.createElement(go,null)):r.a.createElement("p",null,"Вы не авторизованы"))}}class yo extends ${constructor(e){super(e,"RouteSystem")}render(){return r.a.createElement(Nt,null,r.a.createElement(zt,{ref:"CurrentPage",exact:!0,path:"/",component:uo}),r.a.createElement(zt,{ref:"CurrentPage",exact:!0,path:"/App",component:uo}),r.a.createElement(zt,{ref:"CurrentPage",exact:!0,path:"/index.html",component:uo}),r.a.createElement(zt,{ref:"CurrentPage",path:"/?ID=:ID",component:uo}),r.a.createElement(zt,{ref:"CurrentPage",path:"/Admin",component:mo}),r.a.createElement(zt,{ref:"CurrentPage",path:"/User",component:vo}))}}a.a.render(r.a.createElement(class extends ${constructor(e){super(e,"LayoutPage")}render(){return r.a.createElement(U,null,r.a.createElement("div",null,r.a.createElement(kt,null),r.a.createElement(yo,null),r.a.createElement(St,null)))}},null),document.getElementById("App")),console.log("index.js")}]);
//# sourceMappingURL=app_bundle.js.map